:root {
    --bg: #180f36;
    --bg-elevated: #1f1444;
    --bg-card: #251a4e;
    --bg-card-hover: #2c2059;
    --border: #362a63;
    --text: #ece9f7;
    --text-muted: #a099c2;
    --accent: #7c5cff;
    --accent-2: #c026d3;
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.14);
    --star: #fbbf24;
    --radius: 14px;
    --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    left: 50%;
    bottom: -25%;
    width: 140%;
    height: 70vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.4), rgba(192, 38, 211, 0.12) 45%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.site-header, main, .site-footer {
    position: relative;
    z-index: 1;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 13, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #04121a;
    font-size: 15px;
}

.brand-mark-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-mark-img {
    position: relative;
    z-index: 1;
    height: 46px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* luz correndo ao redor da logo, sem borda nem fundo — só o lens-flare */
.brand-mark-wrap::before {
    content: "";
    position: absolute;
    inset: -7px;
    z-index: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg, transparent 268deg,
        rgba(124, 92, 255, 0) 300deg,
        rgba(124, 92, 255, 0.6) 325deg,
        #ffffff 344deg,
        rgba(56, 189, 248, 0.7) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.brand-mark-wrap::after {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg, transparent 268deg,
        rgba(124, 92, 255, 0) 300deg,
        rgba(124, 92, 255, 0.35) 325deg,
        rgba(255, 255, 255, 0.8) 344deg,
        rgba(56, 189, 248, 0.4) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(4px);
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-tag { font-size: 11px; color: var(--text-muted); }

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 560px;
}

.header-search .icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.header-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
}

.header-search input::placeholder { color: var(--text-muted); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}

.header-nav a:hover { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: 8px;
}

.nav-toggle:hover { background: var(--bg-card); }

.nav-toggle span {
    width: 4px;
    height: 4px;
    background: var(--text);
    border-radius: 50%;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.6);
    z-index: 59;
}

.mobile-menu-backdrop.open { display: block; }

.header-nav-mobile {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 20px;
    gap: 22px;
    overflow-y: auto;
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.header-nav-mobile.open {
    display: flex;
    transform: translateX(0);
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
}

.mobile-search .icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.mobile-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
}

.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-menu-links a:last-child { border-bottom: none; }

.mobile-menu-section { display: flex; flex-direction: column; gap: 10px; }

.mobile-menu-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.mobile-menu-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-menu-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    line-height: 1.2;
}

.mobile-menu-categories img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }

/* ---------- User menu (avatar dropdown) ---------- */
.user-menu { position: relative; }

.user-avatar-wrap {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.user-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--success), var(--accent));
    animation: avatarRingSpin 3.5s linear infinite;
}

@keyframes avatarRingSpin { to { transform: rotate(360deg); } }

.user-avatar-btn {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s;
}

.user-avatar-btn:hover { transform: scale(1.05); }
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.user-avatar-status {
    position: absolute;
    bottom: -4px;
    right: -8px;
    z-index: 2;
    animation: avatarOnlinePulse 2.2s ease-in-out infinite;
}

.status-toggle-track {
    display: inline-flex;
    align-items: center;
    width: 34px;
    height: 18px;
    padding: 2px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 2px var(--bg);
}

.status-toggle-knob {
    margin-left: auto;
    width: 20px;
    height: 14px;
    border-radius: 999px;
    background: #04170c;
    color: var(--success);
    font-size: 7.5px;
    font-weight: 900;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes avatarOnlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ---------- Botão de Login: cadeado com partículas em órbita + contorno lens-flare verde ---------- */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px 7px 8px;
    border-radius: 999px;
    border: 1.5px solid rgba(34, 224, 92, 0.5);
    background: rgba(34, 197, 94, 0.08);
    color: var(--success);
    font-weight: 700;
}

.login-btn:hover { color: #eaffef; background: rgba(34, 197, 94, 0.14); }

.login-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-lock-svg { width: 100%; height: 100%; }

.login-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: loginOrbitSpin 4s linear infinite;
}

@keyframes loginOrbitSpin {
    to { transform: rotate(360deg); }
}

.btn-glow-green { position: relative; isolation: isolate; }

.btn-glow-green::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(34, 224, 92, 0) 300deg,
        rgba(34, 224, 92, 0.7) 325deg,
        #eaffef 344deg,
        rgba(13, 255, 150, 0.85) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.btn-glow-green::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(34, 224, 92, 0) 300deg,
        rgba(34, 224, 92, 0.4) 325deg,
        rgba(234, 255, 239, 0.8) 344deg,
        rgba(13, 255, 150, 0.5) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(4px);
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 60;
}

.user-dropdown.open { display: flex; }

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.user-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.user-dropdown-info { display: flex; flex-direction: column; min-width: 0; gap: 3px; }

.user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 10.5px;
    font-weight: 700;
}
.user-dropdown-info strong { font-size: 13.5px; color: var(--text); }
.user-dropdown-info span {
    font-size: 11.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown a { padding: 10px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.user-dropdown a:hover { background: rgba(124, 92, 255, 0.12); color: var(--accent); }

.user-dropdown-link { display: flex !important; align-items: center; gap: 10px; }

.menu-icon { width: 17px; height: 17px; flex-shrink: 0; }
.icon-compras { color: #eab308; }
.icon-perfil { color: #38bdf8; }
.icon-config { color: var(--text-muted); }
.icon-sair { color: #f87171; }

.user-dropdown a.user-dropdown-link-sair { color: #f87171; }
.user-dropdown a.user-dropdown-link-sair:hover { background: rgba(248, 113, 113, 0.12); color: #f87171; }

/* ---------- Aviso pós-clique em "Comprar agora" ---------- */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 8, 14, 0.72);
    backdrop-filter: blur(4px);
}

.checkout-modal.open { display: flex; }

.checkout-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    text-align: center;
}

.checkout-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.checkout-modal-close:hover { color: var(--text); border-color: var(--accent); }

.checkout-modal-icon { font-size: 34px; margin-bottom: 8px; }
.checkout-modal-box h3 { margin: 0 0 10px; font-size: 18px; }
.checkout-modal-box > p { color: var(--text-muted); font-size: 13.5px; margin: 0 0 20px; }

.checkout-modal-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 18px;
}

.checkout-modal-step { display: flex; gap: 12px; align-items: flex-start; }

.checkout-modal-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #04121a;
    font-weight: 800;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-modal-step strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.checkout-modal-step p { margin: 0; font-size: 12.5px; color: var(--text-muted); }

.checkout-modal-note {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #d1fae5;
    margin-bottom: 18px;
    text-align: left;
}

/* ---------- Painel da conta (sidebar) ---------- */
.conta-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.conta-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    position: sticky;
    top: 92px;
}

.conta-sidebar nav { display: flex; flex-direction: column; gap: 2px; }

.conta-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.conta-sidebar a:hover { background: rgba(124, 92, 255, 0.1); color: var(--text); }
.conta-sidebar a.active { background: var(--accent-gradient); color: #04121a; }
.conta-sidebar a.active .menu-icon { color: #04121a; }

.conta-sidebar a.conta-sidebar-sair { color: #f87171; }
.conta-sidebar a.conta-sidebar-sair:hover { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.conta-conteudo { min-width: 0; }

@media (max-width: 720px) {
    .conta-layout { grid-template-columns: 1fr; }
    .conta-sidebar { position: static; }
    .conta-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .conta-sidebar a { flex: 1 1 auto; text-align: center; }
}

/* ---------- Minhas Compras (tabela) ---------- */
.compras-header { margin-bottom: 18px; }
.compras-header h2 { margin: 0 0 4px; }
.compras-header p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

.compras-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.compras-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
}

.compras-search svg { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }

.compras-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
}

.compras-status-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 13.5px;
}

.compras-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.compras-table { width: 100%; border-collapse: collapse; min-width: 620px; }

.compras-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.compras-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
}

.compras-table tr:last-child td { border-bottom: none; }

.compras-produto-cell { display: flex; align-items: center; gap: 12px; }

.compras-produto-cell img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.compras-produto-cell strong { display: block; font-size: 13.5px; }
.compras-produto-cell span { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.status-concluido { background: var(--success-bg); color: var(--success); }

.btn-sm { padding: 8px 14px; font-size: 12.5px; }

.compras-sem-link { color: var(--text-muted); font-size: 12px; }

.compras-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avaliado-badge { color: var(--success); font-size: 12px; font-weight: 600; }

/* ---------- Modal "Avaliar Vendedor" ---------- */
.avaliar-modal-box { text-align: left; max-width: 460px; }
.avaliar-modal-box h3 { display: flex; align-items: center; gap: 8px; }
.avaliar-modal-box h3 .icone-svg { width: 20px; height: 20px; color: #eab308; }
.avaliar-modal-produto { color: var(--text-muted); font-size: 13px; margin: 0 0 18px; }
.avaliar-campo-label { font-size: 12.5px; color: var(--text-muted); margin: 14px 0 8px; }
.avaliar-campo-label:first-of-type { margin-top: 0; }

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label {
    font-size: 30px;
    line-height: 1;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s ease;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #eab308;
}

.avaliar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-check { cursor: pointer; }
.tag-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag-check span {
    display: inline-block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.15s ease;
}
.tag-check input:checked + span {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

.avaliar-modal-box textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
}

.avaliar-modal-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.compras-nota {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.compras-nota a { color: var(--accent); }

@media (max-width: 720px) {
    .compras-table thead { display: none; }
    .compras-table, .compras-table tbody, .compras-table tr, .compras-table td { display: block; width: 100%; }
    .compras-table tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .compras-table td { border-bottom: none; padding: 4px 0; }
    .compras-table td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        min-width: 70px;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
    }
}

/* ---------- Avatar picker ---------- */
.avatar-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    justify-items: center;
    margin-top: 24px;
}

.avatar-option {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }

.avatar-swatch {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    border: 3px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}

.avatar-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-option input:checked + .avatar-swatch { border-color: var(--accent); transform: scale(1.08); }

.avatar-option-nome { font-size: 11.5px; color: var(--text-muted); }

.avatar-picker button { grid-column: 1 / -1; margin-top: 8px; }

@media (max-width: 640px) {
    .avatar-picker { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
}

.hero p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 15px;
}

.hero-logo {
    max-width: min(480px, 82vw);
    width: 100%;
    height: auto;
    margin: 0 auto 18px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 40px rgba(124, 92, 255, 0.5));
}

.hero-logo-video {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
    filter: none;
    mix-blend-mode: normal;
}

/* ---------- Mural do hero (grade de colunas rolando) ---------- */
.video-wall {
    position: relative;
    height: calc(100vh - 72px);
    min-height: 520px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 10px;
    background: var(--bg);
}

.video-wall-col {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius);
}

.video-wall-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    animation-name: wallScrollUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.video-wall-down .video-wall-track {
    animation-name: wallScrollDown;
}

.video-wall-track img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    flex-shrink: 0;
    display: block;
}

@keyframes wallScrollUp {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes wallScrollDown {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

.video-wall-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: 16px;
    padding: 24px;
    padding-bottom: 64px;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(10, 8, 22, 0.6) 84%, var(--bg) 100%);
}

.video-wall-overlay p {
    color: #dcd9ec;
}

@media (max-width: 900px) {
    .video-wall { grid-template-columns: repeat(4, 1fr); height: calc(100vh - 72px); }
}

@media (max-width: 560px) {
    .video-wall { grid-template-columns: repeat(2, 1fr); height: calc(100vh - 72px); }
    .video-wall-col:nth-child(n+3) { display: none; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Section headings ---------- */
.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 40px 0 20px;
}

.section-title h2 { font-size: 22px; margin: 0; }
.section-title span { color: var(--text-muted); font-size: 13px; }

/* ---------- Product grid & cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
    padding-bottom: 60px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.product-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: radial-gradient(ellipse 65% 60% at 50% 46%, rgba(178, 156, 255, 0.42) 0%, rgba(150, 120, 255, 0.22) 32%, rgba(124, 92, 255, 0.1) 52%, transparent 78%), var(--bg-elevated);
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Selo "macOS" no canto superior direito — produtos para Mac (flag 'mac' no produtos.php) */
.product-card-media.is-mac::after,
.product-banner.is-mac::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 12px;
    width: 50px;
    height: 20px;
    background: url("../img/selo-macos.svg") right center / contain no-repeat;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
    pointer-events: none;
    z-index: 2;
}

.product-banner.is-mac::after {
    top: 14px;
    right: 16px;
    width: 72px;
    height: 28px;
}

.ribbon-destaque {
    position: absolute;
    isolation: isolate;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #1a1206;
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 7px 0;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.ribbon-destaque::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(245, 158, 11, 0) 300deg,
        rgba(245, 158, 11, 0.75) 325deg,
        #fffbea 344deg,
        rgba(251, 191, 36, 0.9) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.ribbon-destaque::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(245, 158, 11, 0) 300deg,
        rgba(245, 158, 11, 0.4) 325deg,
        rgba(255, 251, 234, 0.8) 344deg,
        rgba(251, 191, 36, 0.5) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(4px);
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    background: transparent;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* imagens de produto com fundo branco/claro: mostrar como ícone centralizado, não esticar */
.icon-fit {
    background: var(--bg-elevated) !important;
}

.icon-fit img {
    object-fit: contain !important;
    padding: 26px;
    box-sizing: border-box;
}

.badge {
    position: absolute;
    isolation: isolate;
    top: 12px;
    left: 12px;
    background: #22e05c;
    color: #04170c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 2px solid #0d3b1f;
}

.badge::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(34, 224, 92, 0) 300deg,
        rgba(34, 224, 92, 0.7) 325deg,
        #eaffef 344deg,
        rgba(13, 255, 150, 0.85) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.badge::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(34, 224, 92, 0) 300deg,
        rgba(34, 224, 92, 0.4) 325deg,
        rgba(234, 255, 239, 0.8) 344deg,
        rgba(13, 255, 150, 0.5) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(4px);
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.product-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.product-summary {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.rating .stars { color: var(--star); font-size: 15px; letter-spacing: 1px; }
.rating .stars-lg { font-size: 20px; }

/* ---------- Seller row (product page) ---------- */
.seller-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.seller-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-row .seller-name { font-size: 13.5px; color: var(--text-muted); }
.seller-row .seller-name strong { color: var(--text); }

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 8px;
}

.price-block { display: flex; flex-direction: column; }

.price-from {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-now {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent-gradient);
    color: #04121a;
}

.btn-block { width: 100%; }

/* ---------- Product detail page ---------- */
.product-page { padding: 32px 0 72px; }

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--accent); }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.product-gallery {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 64px;
    flex-shrink: 0;
    max-height: 420px;
    overflow-y: auto;
}

.product-gallery-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s;
}

.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb:hover { border-color: var(--text-muted); }
.product-gallery-thumb.active { border-color: var(--accent); }

.product-banner {
    flex: 1;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: radial-gradient(ellipse 65% 60% at 50% 46%, rgba(178, 156, 255, 0.42) 0%, rgba(150, 120, 255, 0.22) 32%, rgba(124, 92, 255, 0.1) 52%, transparent 78%), var(--bg-elevated);
    position: relative;
    aspect-ratio: 16 / 10;
}

.product-banner img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
    .product-gallery-thumbs { width: 48px; }
    .product-gallery-thumb { width: 48px; height: 48px; }
}

.product-title { font-size: 26px; margin: 22px 0 8px; }

.product-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.content-block h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.content-block p { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; }
.content-block p:last-child { margin-bottom: 0; }

.icone-svg { width: 20px; height: 20px; flex-shrink: 0; }

.info-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-block-title .icone-svg { color: var(--accent); }

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.info-list li .icone-svg { width: 16px; height: 16px; color: var(--success); margin-top: 2px; }

.specs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs-table tr { border-top: 1px solid var(--border); }
.specs-table tr:first-child { border-top: none; }
.specs-table td { padding: 10px 0; vertical-align: top; }
.specs-table td:first-child { color: var(--text); font-weight: 600; width: 38%; padding-right: 14px; }
.specs-table td:last-child { color: var(--text-muted); }

.remote-install-box { border-color: var(--success); }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #25D366;
    color: #04170c;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.btn-whatsapp .icone-svg { width: 18px; height: 18px; }

.count-badge {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    margin-left: 2px;
}

.tempo-relativo { color: var(--text-muted); font-size: 12px; }

.avaliacao-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Perguntas sobre o produto ---------- */
.pergunta-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.pergunta-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pergunta-form input[type="text"],
.pergunta-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 44px;
}
.pergunta-form input[name="nome"] { max-width: 260px; }
.pergunta-form .btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.pergunta-form .btn .icone-svg { width: 16px; height: 16px; }
.pergunta-erro { color: #ef4444; font-size: 13px; margin: 0; }

.pergunta-lista { display: flex; flex-direction: column; gap: 18px; }
.pergunta-item { border-top: 1px solid var(--border); padding-top: 16px; }
.pergunta-item:first-child { border-top: none; padding-top: 0; }
.pergunta-autor { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pergunta-autor strong { font-size: 13.5px; }
.pergunta-texto { font-size: 14px; color: var(--text); margin: 0 0 10px; }
.pergunta-resposta {
    display: flex;
    gap: 10px;
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 12px 14px;
    margin-left: 42px;
}
.resposta-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f0a24;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.resposta-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.pergunta-resposta strong { font-size: 13px; }
.pergunta-resposta p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }

.pergunta-responder-form {
    display: flex;
    gap: 10px;
    margin-left: 42px;
}
.pergunta-responder-form textarea {
    flex: 1;
    box-sizing: border-box;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    min-height: 44px;
    resize: vertical;
}
.pergunta-responder-form .btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.pergunta-responder-form .btn .icone-svg { width: 16px; height: 16px; }

/* ---------- Avaliações do Anúncio ---------- */
.avaliacao-resumo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.avaliacao-media { font-size: 26px; font-weight: 800; }
.avaliacao-total { color: var(--text-muted); font-size: 13px; }

.avaliacao-lista { display: flex; flex-direction: column; gap: 18px; }
.avaliacao-item { display: flex; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.avaliacao-item:first-child { border-top: none; padding-top: 0; }
.avaliacao-cabecalho { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avaliacao-cabecalho strong { font-size: 13.5px; }
.avaliacao-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag-chip {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.avaliacao-comentario { font-size: 14px; color: var(--text-muted); margin: 4px 0 0; }

.faq-item {
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.faq-item:first-of-type { border-top: none; padding-top: 0; }

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 18px; }
.faq-item[open] summary::after { content: "–"; }

.faq-item p { margin-top: 10px; }

.buy-box {
    position: sticky;
    top: 92px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.price-highlight {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(192, 38, 211, 0.22));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
}

.price-highlight .price-label { font-size: 13px; color: var(--text-muted); }
.price-highlight .price-block { align-items: flex-end; }
.price-highlight .price-now { font-size: 28px; }
.price-highlight .price-from { font-size: 12.5px; }

.delivery-badge {
    position: relative;
    isolation: isolate;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--success);
    color: #04170c;
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    animation: deliveryPulse 2.2s ease-in-out infinite;
}

@keyframes deliveryPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); filter: brightness(1); }
    50% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); filter: brightness(1.12); }
}

/* ---------- Luz percorrendo a borda (comet/lens-flare no contorno) ---------- */
@property --glow-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes borderChase {
    to { --glow-angle: 360deg; }
}

.btn-glow {
    position: relative;
    isolation: isolate;
}

/* traço nítido da luz, exatamente sobre o contorno */
.btn-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(124, 92, 255, 0) 300deg,
        rgba(124, 92, 255, 0.6) 325deg,
        #ffffff 344deg,
        rgba(56, 189, 248, 0.7) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

/* halo suave em volta do traço, pra parecer luz de verdade */
.btn-glow::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(124, 92, 255, 0) 300deg,
        rgba(124, 92, 255, 0.35) 325deg,
        rgba(255, 255, 255, 0.8) 344deg,
        rgba(56, 189, 248, 0.4) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(4px);
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

/* ---------- Selo "Entrega automática" no banner: verde chapado + contorno em lens-flare verde ---------- */
.badge-banner {
    position: absolute;
    isolation: isolate;
    top: 14px;
    left: 14px;
    background: #22e05c;
    color: #04170c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 7px 14px;
    border-radius: 999px;
    border: 2px solid #0d3b1f;
}

.badge-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(34, 224, 92, 0) 300deg,
        rgba(34, 224, 92, 0.7) 325deg,
        #eaffef 344deg,
        rgba(13, 255, 150, 0.85) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.badge-banner::after {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 0deg,
        transparent 268deg,
        rgba(34, 224, 92, 0) 300deg,
        rgba(34, 224, 92, 0.4) 325deg,
        rgba(234, 255, 239, 0.8) 344deg,
        rgba(13, 255, 150, 0.5) 356deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    filter: blur(4px);
    animation: borderChase 4.5s linear infinite;
    pointer-events: none;
}

.protection-box {
    margin-top: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.protection-box .protection-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.protection-box p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ---------- Título centralizado e grande (seção Categorias) ---------- */
/* ---------- Texto institucional/SEO na home (estilo hero, sem caixa) ---------- */
.home-hero-text {
    text-align: center;
    max-width: 720px;
    margin: 44px auto;
}

.home-hero-title {
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-hero-title-line {
    font-size: clamp(34px, 6.2vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.home-hero-title-line.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-subtitle {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 26px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.home-hero-subtitle .accent-highlight { color: var(--accent); font-weight: 700; }

.section-heading-center {
    text-align: center;
    margin: 40px 0 26px;
}

.section-heading-center h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    margin: 0 0 6px;
}

.section-heading-center span {
    color: var(--text-muted);
    font-size: 13px;
}

/* ---------- Título grande centralizado + controle (botão/contador) à direita ---------- */
.section-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 40px 0 26px;
}

.section-title-row h2 {
    grid-column: 2;
    text-align: center;
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
}

.section-title-row .btn-outline,
.section-title-row > span {
    grid-column: 3;
    justify-self: end;
}

@media (max-width: 640px) {
    .section-title-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }
    .section-title-row h2 { grid-column: 1; white-space: normal; }
    .section-title-row .btn-outline,
    .section-title-row > span { grid-column: 1; justify-self: center; }
}

/* ---------- Categorias (cards grandes tipo pôster) ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    padding-bottom: 20px;
}

.category-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 6, 20, 0.92) 0%, rgba(8, 6, 20, 0.55) 38%, transparent 68%);
}

.category-tile-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    padding: 0 14px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

/* ---------- Related products (smaller cards) ---------- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.related-grid .product-card-media { aspect-ratio: 16 / 11; }
.related-grid .product-card-body { padding: 12px 14px 14px; gap: 5px; }
.related-grid .product-name { font-size: 13.5px; }
.related-grid .product-category { font-size: 10.5px; }
.related-grid .product-summary { display: none; }
.related-grid .rating { font-size: 11px; }
.related-grid .rating .stars { font-size: 12px; }
.related-grid .price-now { font-size: 16px; }
.related-grid .price-from { font-size: 10.5px; }
.related-grid .btn { padding: 8px 12px; font-size: 12px; }
.related-grid .badge { font-size: 9.5px; padding: 4px 8px; top: 8px; left: 8px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
}

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin: 0 0 14px;
}

.bar {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
}

.bar-blue { background: var(--accent-2); }
.bar-green { background: var(--success); }
.bar-pink { background: #ec4899; }

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 13.5px;
    padding: 5px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #04121a;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- Entrada suave ao rolar a página ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .badge::before, .badge::after,
    .badge-banner::before, .badge-banner::after,
    .btn-glow::before, .btn-glow::after,
    .btn-glow-green::before, .btn-glow-green::after,
    .ribbon-destaque::before, .ribbon-destaque::after,
    .delivery-badge,
    .user-avatar-wrap::before,
    .user-avatar-status,
    .login-ring,
    .brand-mark-wrap::before,
    .brand-mark-wrap::after {
        animation: none;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .header-search, .header-nav { display: none; }
    .nav-toggle { display: flex; }

    .product-layout { grid-template-columns: 1fr; }
    .buy-box { position: static; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .header-inner { gap: 10px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 14px; }
    .brand-mark-img { height: 36px; }
    .mobile-menu-categories { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}
