/* plugins/products/public/assets/css/home-section.css */
/* Products: cards (page /produtos, homepage section, video page), filter, affiliate note, platform block. Theme tokens only. */

.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; align-items: stretch; }
.pd-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.pd-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.22), transparent 60%),
        var(--bg-3);
}
.pd-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.pd-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.pd-brand { margin: 0; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pd-name { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pd-note { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--text-muted); }
.pd-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.pd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pd-video { font-size: 0.88rem; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.pd-video:hover { color: var(--accent); text-decoration-color: var(--accent); }
.pd-aff { margin: 0; font-size: 0.74rem; color: var(--text-muted); }
.pd-card[hidden] { display: none; }

.pd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pd-filter {
    min-height: 40px;
    padding: 8px 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--bg-2);
    color: var(--text-muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.pd-filter:hover { border-color: var(--accent); color: var(--accent); }
.pd-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pd-empty { padding: 56px 24px; text-align: center; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-muted); font-size: 1.1rem; }
.pd-disclosure { margin: 32px 0 0; font-size: 0.82rem; color: var(--text-muted); }

.pd-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 56px;
    padding: 36px 40px;
    border-radius: 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.pd-platform:first-child { margin-top: 0; }
.pd-platform h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.pd-platform p { margin: 0; max-width: 560px; color: var(--text-muted); }

/* homepage section + video page */
.pd-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pd-home-head .section-head { margin-bottom: 28px; }
.pd-home-head .btn { margin-bottom: 32px; }
.pd-video-head { margin: 72px 0 26px; font-size: clamp(1.4rem, 3vw, 1.9rem); }

@media (max-width: 640px) {
    .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pd-body { padding: 12px 12px 14px; gap: 6px; }
    .pd-name { font-size: 1rem; }
    .pd-note { font-size: 0.86rem; }
    .pd-links .btn { width: 100%; }
    .pd-platform { padding: 26px 22px; }
    .pd-platform .btn { width: 100%; }
    .pd-home-head { flex-direction: column; align-items: flex-start; gap: 0; }
    .pd-home-head .btn { margin: -12px 0 24px; }
    .pd-video-head { margin-top: 52px; }
}
