/* ============================================================
   GLITCH FLOW — estilo.css
   ============================================================
   ✏️  Para mudar as cores do site, edite as variáveis em :root
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ─────────────────────────────────────────────────────────── */
/*  ✏️ VARIÁVEIS — Edite aqui para mudar as cores do site      */
/* ─────────────────────────────────────────────────────────── */
:root {
    /* Fundos */
    --bg:           #0a0a10;   /* ← fundo principal do site          */
    --card:         #0f0f1c;   /* ← fundo dos cards de produto        */
    --card-hover:   #141428;   /* ← fundo do card ao passar o mouse   */
    --surface:      #131320;   /* ← navbar, filtros, sidebar          */

    /* Cores principais */
    --primary:      #00d4ff;              /* ← ciano elétrico (cor da marca) */
    --primary-dark: #009ebf;              /* ← ciano escuro (hover)          */
    --primary-glow: rgba(0,212,255,.22);  /* ← brilho usado nos focos        */

    /* Texto */
    --text:         #f0f0ff;   /* ← texto principal         */
    --text-sec:     #7878a0;   /* ← texto secundário        */
    --text-dim:     #35355a;   /* ← texto muito apagado     */

    /* Bordas */
    --border:       rgba(255,255,255,.07);
    --border-act:   var(--primary);

    /* Badges de loja */
    --ml-cor:       #ffe600;  --ml-txt:       #000;  /* Mercado Livre */
    --shopee-cor:   #ee4d2d;  --shopee-txt:   #fff;  /* Shopee        */
    --amazon-cor:   #ff9900;  --amazon-txt:   #000;  /* Amazon        */
    --shein-cor:    #ff5a7e;  --shein-txt:    #fff;  /* Shein         */

    /* Bordas arredondadas e transições */
    --radius:    12px;
    --radius-sm: 8px;
    --trans:     0.22s ease;
}

/* ─────────────────────────────────────────────────────────── */
/*  RESET & BASE                                               */
/* ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--primary); }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }

/* Grade de pontos decorativa no fundo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(64,64,90,.25) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─────────────────────────────────────────────────────────── */
/*  NAVBAR                                                     */
/* ─────────────────────────────────────────────────────────── */
.navbar-gf {
    position: sticky;
    top: 0;
    z-index: 999;
    height: 60px;
    display: flex;
    align-items: center;
    background: rgba(10,10,16,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-gf .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo com efeito glitch */
.brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--primary) !important;
    text-shadow: 0 0 14px rgba(0,212,255,.3);
    animation: glitch-logo 7s infinite;
}
.brand span { color: var(--text); }

@keyframes glitch-logo {
    0%,87%,100% { text-shadow: 0 0 14px rgba(0,212,255,.3); transform: none; }
    88% { text-shadow: 2px 0 #f0f, -2px 0 var(--primary); transform: skewX(-1.5deg); }
    89% { text-shadow: -2px 0 #f0f, 2px 0 var(--primary); transform: skewX( 1.5deg); }
    90% { text-shadow: 0 0 14px rgba(0,212,255,.3); transform: none; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-ig {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-sec);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--trans);
}
.nav-ig:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}
.nav-admin {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: var(--trans);
    background: none;
    cursor: pointer;
}
.nav-admin:hover { color: var(--text-sec); border-color: var(--text-dim); }

/* ─────────────────────────────────────────────────────────── */
/*  HERO / BANNER                                              */
/* ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: linear-gradient(135deg, #080818 0%, #100820 50%, #080e1c 100%);
}
/* Luz radial de fundo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 100% at 10% 50%, rgba(0,212,255,.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 90% at 90% 50%, rgba(124,58,237,.07) 0%, transparent 70%);
    pointer-events: none;
}
/* Linha gradiente na base do hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), #7c3aed, transparent);
    opacity: 0.6;
}
.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.25;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,16,.15), rgba(10,10,16,.75));
}
.hero-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,212,255,.1);
    color: var(--primary);
    border: 1px solid rgba(0,212,255,.2);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    letter-spacing: 6px;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0,212,255,.35);
    margin-bottom: 14px;
    line-height: 1;
}
.hero p {
    color: #9898b8;
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 24px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    transition: var(--trans);
}
.hero-btn:hover {
    color: #000;
    background: #fff;
    box-shadow: 0 0 24px rgba(0,212,255,.4);
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────── */
/*  BARRA DE FILTROS                                           */
/* ─────────────────────────────────────────────────────────── */
.filtros-bar {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: rgba(10,10,16,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.busca-wrap { position: relative; }
.busca-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.8rem;
    pointer-events: none;
}
.busca-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 0.87rem;
    padding: 8px 14px 8px 36px;
    border-radius: var(--radius-sm);
    transition: var(--trans);
}
.busca-input::placeholder { color: var(--text-dim); }
.busca-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.filtros-lojas {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Mobile: filtros em scroll horizontal — sem quebra de linha */
@media (max-width: 767.98px) {
    .filtros-bar { padding: 8px 0; }
    .filtros-lojas {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
        mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    }
    .filtros-lojas::-webkit-scrollbar { display: none; }
    .filtro-btn {
        flex-shrink: 0;
        font-size: 0.75rem;
        padding: 6px 14px;
        min-height: 36px;
    }
}
.filtro-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-family: 'Syne', sans-serif;
    font-size: 0.77rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
}
.filtro-btn:hover,
.filtro-btn.ativo {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 10px rgba(0,212,255,.2);
}

/* ─────────────────────────────────────────────────────────── */
/*  TÍTULO DE SEÇÃO                                            */
/* ─────────────────────────────────────────────────────────── */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.section-title p {
    color: var(--text-sec);
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────── */
/*  CARD DE PRODUTO                                            */
/* ─────────────────────────────────────────────────────────── */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    touch-action: manipulation; /* remove 300ms tap delay on mobile */
    transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(0,212,255,.18), 0 8px 24px rgba(0,0,0,.4);
    background: var(--card-hover);
}

/* Badge ⭐ DESTAQUE */
.badge-destaque {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 5;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
}

/* Imagem do card */
.card-img-top {
    height: 240px;
    object-fit: contain;
    object-position: center center;
    padding: 0;
    background: #09091a;
    width: 100%;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img-top { transform: scale(1.02); }

/* Corpo do card */
.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Badge da loja no card */
.store-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 5px;
}
.badge-ml     { background: var(--ml-cor);     color: var(--ml-txt);     }
.badge-shopee { background: var(--shopee-cor);  color: var(--shopee-txt); }
.badge-amazon { background: var(--amazon-cor);  color: var(--amazon-txt); }
.badge-shein  { background: var(--shein-cor);   color: var(--shein-txt);  }
.badge-other  { background: #44446a;            color: #fff;              }

/* Nome e descrição */
.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-text {
    font-size: 0.8rem;
    color: var(--text-sec);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Preço */
.price-tag {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Estrelas de avaliação */
.rating { color: #ffc107; font-size: 0.8rem; }
.rating .text-muted { color: var(--text-sec) !important; font-size: 0.78rem; }

/* Botão "Ver Detalhes" */
.btn-details {
    margin-top: auto;
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--trans);
}
.btn-details:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 14px rgba(0,212,255,.25);
}

/* ─────────────────────────────────────────────────────────── */
/*  CARDS — RESPONSIVIDADE                                     */
/* ─────────────────────────────────────────────────────────── */

/* SM–MD (576–991px): 2 colunas, card vertical otimizado */
@media (min-width: 576px) and (max-width: 991.98px) {
    .card-img-top {
        height: 170px;
        padding: 0;
        object-fit: contain;
        object-position: center center;
    }
    .card-body { padding: 12px; gap: 7px; }

    /* Empilha badge e preço verticalmente */
    .card-body > .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 3px !important;
    }
    .price-tag   { font-size: 1.1rem; }
    .card-title  { font-size: 0.86rem; }
    .card-text   { font-size: 0.76rem; -webkit-line-clamp: 2; }
    .btn-details {
        padding: 11px 12px;
        font-size: 0.76rem;
        min-height: 44px; /* touch target generoso */
    }
    .product-card:hover { transform: none; } /* sem lift em touch */
}

/* XS (<576px): 1 coluna — card HORIZONTAL (imagem à esquerda) */
@media (max-width: 575.98px) {
    .product-card {
        flex-direction: row !important;
        align-items: stretch;
        height: auto !important;
        min-height: 115px;
    }
    .badge-destaque {
        top: 7px;
        left: 7px;
        font-size: 0.55rem;
        padding: 3px 7px;
    }
    .card-img-top {
        width: 115px !important;
        min-width: 115px;
        height: auto !important;
        min-height: 115px;
        object-fit: contain !important;
        object-position: center center !important;
        padding: 0 !important;
        border-radius: 0;
        flex-shrink: 0;
        align-self: stretch;
    }
    .card-body {
        padding: 10px 12px;
        gap: 4px;
        flex: 1;
        min-width: 0; /* impede overflow de texto */
        justify-content: space-between;
    }
    /* Badge acima do preço no card horizontal */
    .card-body > .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 2px !important;
    }
    .price-tag   { font-size: 1.05rem; }
    .card-title  { font-size: 0.83rem; -webkit-line-clamp: 3; }
    .card-text   { display: none; } /* oculta descrição no card compacto */
    .rating      { font-size: 0.73rem; }
    .rating .text-muted { display: none; } /* oculta contagem de avaliações */
    .btn-details {
        margin-top: auto;
        padding: 8px 10px;
        font-size: 0.72rem;
        min-height: 36px;
    }
    .product-card:hover { transform: none; }
}

/* Hero — ajustes mobile */
@media (max-width: 768px) {
    .hero     { height: 340px; }
    .hero h1  { font-size: 2.2rem; letter-spacing: 3px; }
    .hero p   { font-size: 0.92rem; margin-bottom: 18px; }
    .hero-btn { padding: 11px 22px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .hero       { height: 280px; }
    .hero h1    { font-size: 1.7rem; letter-spacing: 2px; }
    .hero p     { font-size: 0.86rem; margin-bottom: 14px; }
    .hero-btn   { padding: 10px 16px; font-size: 0.82rem; }
    .hero-badge { font-size: 0.65rem; padding: 5px 14px; margin-bottom: 12px; }
}

/* Estado vazio / sem resultados */
.sem-resultados {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}
.sem-resultados p {
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ─────────────────────────────────────────────────────────── */
/*  PÁGINA DE PRODUTO (produto.html)                           */
/* ─────────────────────────────────────────────────────────── */
.product-detail-page {
    padding: 48px 0 80px;
    position: relative;
    z-index: 1;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sec);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--trans);
    margin-bottom: 36px;
}
.back-button:hover { color: var(--text); border-color: var(--text-sec); }

/* Container da imagem na página de produto */
.product-image-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image-container img {
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.4s ease;
}
.product-image-container:hover img { transform: scale(1.03); }

/* Informações do produto */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}
.store-badge-detail {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
#product-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
    line-height: 1.2;
}
.detalhe-preco-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
#product-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    text-shadow: 0 0 22px rgba(0,212,255,.35);
    letter-spacing: -1px;
    line-height: 1;
}
.rating-detail { font-size: 1rem; }
.rating-detail .text-muted { font-size: 0.85rem; color: var(--text-sec) !important; }

#product-description {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-sec);
}

/* Botão COMPRAR */
#buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--trans);
    text-decoration: none;
}
#buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,212,255,.4);
    color: #000;
    background: linear-gradient(135deg, #fff, var(--primary));
}

.buy-obs {
    text-align: center;
    font-size: 0.73rem;
    color: var(--text-dim);
    margin-top: -6px;
}

/* Especificações */
.product-specs {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}
.spec-item:last-child { border-bottom: none; }
.spec-label { color: var(--text-sec); font-size: 0.83rem; font-weight: 500; }
.spec-value { color: var(--primary); font-weight: 600; font-size: 0.83rem; }

/* ─────────────────────────────────────────────────────────── */
/*  TOAST NOTIFICAÇÃO                                          */
/* ─────────────────────────────────────────────────────────── */
.toast-gf {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,212,255,.2);
    animation: toast-in .25s ease;
}
@keyframes toast-in {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ─────────────────────────────────────────────────────────── */
/*  FOOTER                                                     */
/* ─────────────────────────────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 30px;
    text-align: center;
    color: var(--text-sec);
    position: relative;
    z-index: 1;
}
.footer-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 8px;
}
.footer-brand span { color: var(--text); }
footer p { font-size: 0.85rem; }
footer small {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 4px;
    display: block;
}

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN — Tela de senha                                      */
/* ─────────────────────────────────────────────────────────── */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,8,14,.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.admin-overlay-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}
.admin-overlay-box h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.admin-overlay-box p {
    color: var(--text-sec);
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.admin-senha-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 6px;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    transition: var(--trans);
}
.admin-senha-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.erro-msg {
    color: #ef4444;
    font-size: 0.82rem;
    min-height: 20px;
    margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN — Layout (sidebar + main)                            */
/* ─────────────────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}
.admin-sidebar {
    width: 210px;
    min-width: 210px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}
.admin-sidebar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding: 0 8px;
}
.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--text-sec);
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--trans);
    margin-bottom: 2px;
}
.admin-menu-item:hover,
.admin-menu-item.ativo {
    background: rgba(0,212,255,.1);
    color: var(--primary);
}
.admin-menu-item i { width: 16px; font-size: 0.82rem; }
.admin-main {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN — Formulários                                        */
/* ─────────────────────────────────────────────────────────── */
.form-gf label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 6px;
    font-weight: 600;
}
.form-gf input,
.form-gf textarea,
.form-gf select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--trans);
}
.form-gf input:focus,
.form-gf textarea:focus,
.form-gf select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-gf textarea { resize: vertical; min-height: 80px; }
.form-gf select option { background: var(--bg); color: var(--text); }
.form-group { margin-bottom: 0; }
.form-hint {
    font-size: 0.74rem;
    color: var(--text-dim);
    margin-top: 5px;
    line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN — Botões                                             */
/* ─────────────────────────────────────────────────────────── */
.btn-gf-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-gf-primary:hover {
    box-shadow: 0 4px 16px rgba(0,212,255,.3);
    transform: translateY(-1px);
}
.btn-gf-outline {
    background: transparent;
    color: var(--text-sec);
    border: 1px solid var(--border);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--trans);
}
.btn-gf-outline:hover { border-color: var(--text-sec); color: var(--text); }
.btn-gf-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--trans);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-gf-danger:hover { background: #ef4444; color: #fff; }
.btn-gf-edit {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--trans);
}
.btn-gf-edit:hover { background: var(--primary); color: #000; }

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN — Tabela de produtos                                 */
/* ─────────────────────────────────────────────────────────── */
.tabela-admin th {
    background: var(--surface);
    color: var(--text-sec);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.67rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 12px;
    border-color: var(--border);
    font-weight: 600;
}
.tabela-admin td {
    border-color: var(--border);
    color: var(--text);
    background: var(--card);
    padding: 12px;
    vertical-align: middle;
    font-size: 0.87rem;
}
.tabela-admin tbody tr:hover td { background: var(--card-hover); }

/* Toggle de destaque */
.toggle-sw {
    width: 44px;
    height: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    position: relative;
    transition: var(--trans);
    flex-shrink: 0;
}
.toggle-sw::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text-dim);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--trans);
}
.toggle-sw.on {
    background: rgba(0,212,255,.15);
    border-color: var(--primary);
}
.toggle-sw.on::after {
    left: calc(100% - 18px);
    background: var(--primary);
}

/* ─────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────── */
/*  RESPONSIVIDADE — Geral e Produto Detalhe                  */
/* ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Página de detalhe do produto */
    .product-detail-page { padding: 28px 0 60px; }
    .product-image-container {
        min-height: 260px;
        padding: 20px;
    }
    .product-image-container img { max-height: 240px; }
    .back-button {
        margin-bottom: 24px;
        padding: 10px 16px;
        min-height: 44px;
    }
    #product-name  { font-size: 1.35rem; letter-spacing: 0px; }
    #product-price { font-size: 2rem; }

    /* Admin: sidebar vira nav horizontal */
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px;
        display: flex;
        gap: 4px;
        overflow-x: auto;
    }
    .admin-sidebar-label { display: none; }
    .admin-menu-item { white-space: nowrap; padding: 6px 12px; font-size: 0.82rem; }
    .admin-main { padding: 18px; }
}
@media (max-width: 480px) {
    /* Produto detalhe compacto */
    .product-detail-page { padding: 20px 0 50px; }
    .product-image-container {
        min-height: 200px;
        padding: 14px;
    }
    .product-image-container img { max-height: 180px; }
    #product-name  { font-size: 1.15rem; }
    #product-price { font-size: 1.65rem; }
    #buy-button    { padding: 13px 20px; font-size: 0.88rem; }
    .spec-label    { font-size: 0.78rem; }
    .spec-value    { font-size: 0.78rem; }
    .spec-item     { padding: 9px 12px; }
}