/* ============================================================
   FLOW — LOJA — NIGHT SPEED THEME
   ============================================================ */

:root {
    --bg-base:        #FFFFFF;
    --bg-surface:     #F5F6F8;
    --bg-elevated:    #EEF0F3;
    --fire:           #FFD200;
    --fire-mid:       #E0AE00;
    --fire-glow:      rgba(255, 210, 0, 0.30);
    --fire-subtle:    rgba(255, 210, 0, 0.12);
    --fire-border:    rgba(255, 210, 0, 0.55);
    --green:          #16b455;
    --green-subtle:   rgba(22, 180, 85, 0.14);
    --text-primary:   #16181D;
    --text-secondary: #565C68;
    --border-subtle:  #E7E9ED;
    --border-mid:     #D7DAE0;
    --shadow:         0 6px 22px rgba(16, 18, 22, 0.08);
    --shadow-lg:      0 18px 50px rgba(16, 18, 22, 0.14);
    --transition:     all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'DM Sans', 'Poppins', sans-serif;
    margin: 0;
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 18px rgba(16, 18, 22, 0.05);
    padding: 0.6rem 0;
}
.navbar .nav-link { color: #16181D !important; transition: color 0.2s; font-weight: 600; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #0E0F12 !important; }
.navbar .navbar-brand img { max-height: 38px; width: auto; }
.navbar .dropdown-menu {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.navbar .dropdown-item { color: #565C68; transition: color 0.2s, background 0.2s; }
.navbar .dropdown-item:hover { background: #FFF6CC; color: #0E0F12; }
.navbar .btn-outline-primary { color: #0E0F12 !important; border: 1.5px solid #0E0F12 !important; font-size: 0.85rem; padding: 0.4rem 1.2rem; border-radius: 999px; font-weight: 700; }
.navbar .btn-outline-primary:hover { background: #FFD200 !important; border-color: #FFD200 !important; color: #0E0F12 !important; }

/* ── HERO ── */
.loja-hero {
    position: relative;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3.5rem 0 3rem;
    overflow: hidden;
}

.loja-hero::before {
    content: 'SHOP';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 900;
    color: rgba(255, 210, 0,0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.loja-hero-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fire);
    margin-bottom: 0.75rem;
    display: block;
}

.loja-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.loja-hero h1 i { color: var(--fire); }

.loja-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.loja-hero-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    display: flex;
}
.loja-hero-stripe-solid { width: 80px; background: var(--fire); }
.loja-hero-stripe-dim   { flex: 1; background: linear-gradient(90deg, rgba(255, 210, 0,0.25), transparent); }

/* ── LAYOUT ── */
.loja-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 2.5rem 0 5rem;
    min-height: 60vh;
    align-items: start;
}

/* ── SIDEBAR ── */
.loja-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.loja-sidebar h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loja-sidebar h4 i { color: var(--fire); font-size: 0.9rem; }

.categoria-item {
    display: block;
    padding: 0.6rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    font-size: 0.88rem;
    transition: var(--transition);
    margin-bottom: 2px;
}

.categoria-item:hover {
    border-left-color: var(--fire);
    background: var(--fire-subtle);
    color: var(--text-primary);
}

.categoria-item.ativo {
    border-left-color: var(--fire);
    background: var(--fire-subtle);
    color: var(--fire);
    font-weight: 600;
}

/* ── BUSCA ── */
.loja-busca {
    margin-bottom: 1.8rem;
}

.busca-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-mid);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.busca-form:focus-within { border-color: var(--fire); }

.busca-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    outline: none;
}

.busca-form input::placeholder { color: var(--text-secondary); }

.busca-form button {
    padding: 0.75rem 1.3rem;
    background: var(--fire);
    color: #0E0F12;
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.busca-form button:hover { background: var(--fire-mid); }

/* ── GRID DE PRODUTOS ── */
.loja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

/* ── CARD DE PRODUTO ── */
.produto-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.produto-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--fire);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.produto-card:hover {
    border-color: var(--fire-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 24px var(--fire-glow);
}

.produto-card:hover::after { transform: scaleX(1); }

.produto-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-elevated);
    display: block;
    transition: transform 0.4s ease;
}

.produto-card:hover .produto-img { transform: scale(1.04); }

.produto-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.produto-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.produto-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-preco {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--fire);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.produto-preco.preco-gratis {
    color: var(--green);
}

.produto-estoque {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.produto-estoque i { color: var(--fire); }
.produto-estoque .digital-badge i { color: var(--green); }

.produto-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-detalhe {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-mid);
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-family: 'DM Sans', 'Poppins', sans-serif;
}

.btn-detalhe:hover {
    border-color: var(--fire);
    color: var(--fire);
}

.btn-carrinho {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: var(--fire);
    color: #0E0F12;
    border: none;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-family: 'DM Sans', 'Poppins', sans-serif;
}

.btn-carrinho:hover {
    background: var(--fire-mid);
    color: #0E0F12;
    transform: translateY(-1px);
}

.btn-carrinho:disabled {
    background: rgba(0,0,0,0.06);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.btn-carrinho.btn-download {
    background: var(--green);
}

.btn-carrinho.btn-download:hover {
    background: #16a34a;
}

/* ── VAZIO ── */
.vazio {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.vazio i {
    font-size: 3.5rem;
    color: rgba(255, 210, 0,0.25);
    margin-bottom: 1.2rem;
    display: block;
}

.vazio h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.vazio p { font-size: 0.9rem; }

/* ── TOAST ── */
.go-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 0.9rem 1.4rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: toastIn 0.25s ease;
    max-width: 320px;
}

.go-toast.sucesso { background: var(--green); border-left: 3px solid #16a34a; }
.go-toast.erro    { background: #dc2626; border-left: 3px solid #991b1b; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .loja-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem 0 3.5rem;
    }
    .loja-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem;
        padding: 1rem;
    }
    .loja-sidebar h4 { width: 100%; margin-bottom: 0.4rem; }
    .categoria-item {
        border-left: none;
        border: 1px solid var(--border-subtle);
        border-radius: 20px;
        padding: 0.35rem 0.9rem;
        font-size: 0.82rem;
    }
    .categoria-item:hover, .categoria-item.ativo {
        border-color: var(--fire);
        background: var(--fire-subtle);
    }
}

@media (max-width: 600px) {
    .loja-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .produto-img { height: 150px; }
    .produto-body { padding: 0.9rem; }
    .produto-titulo { font-size: 0.88rem; }
    .produto-preco { font-size: 1.3rem; }
    .btn-detalhe, .btn-carrinho { font-size: 0.78rem; padding: 0.5rem 0.3rem; }
}

@media (max-width: 400px) {
    .loja-grid { grid-template-columns: 1fr; }
}

/* ── Ajustes tema claro: amarelo só em preenchimento; texto/preço em preto ── */
.produto-preco { color: var(--text-primary); }
.loja-hero-tag { color: var(--fire-mid); }
.categoria-item.ativo { color: #0E0F12; }
