:root {
    --bg-dark: #0b0d17;
    --bg-card: #151828;
    --primary-yellow: #f0b90b;
    --primary-red: #e60000;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2d42;
    --search-bg: rgba(0,0,0,0.4);
    --header-border: rgba(255,255,255,0.05);
    --benefits-bg: rgba(11, 13, 23, 0.6);
    --accordion-bg: rgba(0,0,0,0.2);
}

/* VARIÁVEIS DO MODO CLARO */
[data-theme="light"] {
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --primary-yellow: #f0b90b;
    --primary-red: #e60000;
    --text-light: #1a1a1a;
    --text-muted: #555555;
    --border-color: #d1d5db;
    --search-bg: #ffffff;
    --header-border: rgba(0,0,0,0.1);
    --benefits-bg: rgba(255, 255, 255, 0.8);
    --accordion-bg: rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        url('../Img/Loja/1.png'), 
        url('../Img/Loja/3.png'), 
        url('../Img/Loja/5.png'), 
        url('../Img/Loja/6.png'), 
        url('../Img/Loja/2.png'), 
        url('../Img/Loja/4.png');
    background-position: 
        right 150px,  
        left 135px,   
        left 850px,   
        right 850px,  
        left bottom,  
        right bottom; 
    background-repeat: 
        no-repeat, no-repeat, no-repeat, 
        no-repeat, no-repeat, no-repeat;
    background-size: 
        auto, auto, auto, 
        auto, auto, auto;
    color: var(--text-light);
    scroll-behavior: smooth; 
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Evita rolagem horizontal */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    opacity: 0; 
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-header {
    padding: 15px 0 0 0;
    border-bottom: 1px solid var(--header-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; 
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 170px;
    height: auto;
    display: block;
}

.search-bar {
    display: flex;
    gap: 5px;
    background: var(--search-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    align-items: center;
    padding: 5px 15px;
    flex: 1;
    max-width: 550px;
    margin: 0 20px;
    transition: 0.3s;
}

.btn-menu-lateral {
    background: transparent;
    color: var(--primary-yellow);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.btn-menu-lateral:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

.search-divisor {
    width: 1px;
    height: 25px;
    background: var(--border-color);
    margin: 0 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-light);
    outline: none;
    padding: 10px 5px;
    width: 100%;
}

.btn-lupa {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 10px;
    transition: 0.3s;
}

.btn-lupa:hover {
    color: var(--primary-yellow);
}

.user-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}
.user-actions a {
    font-size: 0.9rem;
    font-weight: 600;
}
.cart-icon {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--primary-yellow);
    color: black;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 15px 0;
}
.main-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.main-nav a:hover, .highlight-link {
    color: var(--primary-yellow);
}

.hero-section {
    padding: 35px 0;
}
.hero-content {
    display: flex;
    align-items: center;
}
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-title-img {
    max-width: 450px; 
    margin-bottom: 10px;
    margin-left: -60px; 
    transition: all 0.3s;
}
.hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
}
.btn-primary {
    display: inline-block;
    background: var(--primary-yellow);
    color: #0b0d17;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4);
}

.hero-image {
    flex: 1;
    height: 380px;
    background: url('../Img/Loja/raquete.png') no-repeat center right; 
    background-size: contain;
}

.benefits-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 25px;
    background: var(--benefits-bg);
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}
.benefits-container {
    display: flex;
    justify-content: space-between;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.benefit-item i {
    font-size: 1.8rem;
    color: var(--primary-yellow);
}
.benefit-item strong {
    display: block;
    font-size: 0.85rem;
}
.benefit-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s;
    min-width: 100px;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card i {
    font-size: 1.3rem;
    color: var(--text-light);
    background: var(--bg-card);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.category-card span {
    font-size: 0.65rem;
    font-weight: 600;
}

.products-section {
    margin-bottom: 30px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden; 
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../Img/Principal/fundo.png') no-repeat center center;
    background-size: cover;
    opacity: 0.10; 
    z-index: -1; 
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-yellow);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}
.product-img-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.product-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}
.stars {
    color: var(--primary-yellow);
    font-size: 0.7rem;
    margin-bottom: 8px;
}
.stars span {
    color: var(--text-muted);
    font-size: 0.7rem;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}
.installments {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-comprar-card {
    width: 100%;
    background: var(--primary-yellow);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-comprar-card:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

footer {
    background: transparent; 
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 40px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}
.footer-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-feature i {
    font-size: 2rem;
    color: var(--primary-yellow);
}
.footer-feature strong { display: block; font-size: 0.9rem; margin-bottom: 5px;}
.footer-feature span { font-size: 0.8rem; color: var(--text-muted); }

.footer-main {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}
.footer-brand .socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.footer-brand .socials i {
    font-size: 1.2rem;
    cursor: pointer;
}
.footer-links h4, .footer-payments h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links a:hover { color: var(--primary-yellow); }

.payment-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pay-icon {
    background: #fff;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

.footer-bottom {
    background: transparent; 
    text-align: center;
    padding: 15px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* =======================================
   MENU LATERAL DE FILTROS (CORRIGIDO) 
   ======================================= */
.overlay-filtros {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 10000; visibility: hidden; opacity: 0; transition: 0.3s ease;
}
.overlay-filtros.active { visibility: visible; opacity: 1; }

.sidebar-filtros {
    /* Troquei o uso do left para transform, o que impede totalmente a invasão na tela */
    position: fixed; top: 0; left: 0; 
    width: 320px; max-width: 85vw; /* No mobile ocupa até 85% */
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    z-index: 10001; 
    transform: translateX(-100%); /* Esconde completamente */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.sidebar-filtros.active { 
    transform: translateX(0); /* Mostra suavemente */
}

.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--border-color);
}
.sidebar-header h3 {
    color: var(--primary-yellow); font-family: 'Fredoka One', cursive; margin: 0;
}
.btn-fechar-sidebar {
    background: transparent; border: none; color: var(--text-light); font-size: 2rem;
    cursor: pointer; transition: 0.3s; line-height: 1;
}
.btn-fechar-sidebar:hover { color: var(--primary-red); transform: rotate(90deg); }

.sidebar-content {
    padding: 20px; flex: 1; overflow-y: auto;
}
.sidebar-footer {
    padding: 20px; border-top: 1px solid var(--border-color);
}

.accordion-btn {
    background: rgba(255,255,255,0.03); color: var(--text-light); cursor: pointer;
    padding: 15px; width: 100%; border: none; text-align: left;
    outline: none; font-size: 0.95rem; font-weight: 600;
    transition: 0.3s; display: flex; justify-content: space-between;
    align-items: center; border-radius: 6px; margin-bottom: 5px;
}
.accordion-btn:hover, .accordion-btn.active {
    background: rgba(240, 185, 11, 0.1); color: var(--primary-yellow);
}
.accordion-btn i { transition: transform 0.3s ease; }
.accordion-btn.active i { transform: rotate(180deg); }

.accordion-content {
    background: transparent;
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.3s ease-out; 
}
.accordion-inner { padding: 10px 15px 20px 15px; display: flex; flex-direction: column; gap: 10px; }
.filtro-label {
    display: flex; align-items: center; gap: 10px; color: var(--text-muted);
    font-size: 0.85rem; cursor: pointer; transition: 0.2s;
}
.filtro-label:hover { color: var(--text-light); }
.filtro-label input { accent-color: var(--primary-yellow); cursor: pointer; }


/* =======================================
   MÍDIA QUERIES - RESPONSIVO PROFISSIONAL
   ======================================= */
@media (max-width: 992px) {
    .search-bar { max-width: 350px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { flex-wrap: wrap; gap: 15px; justify-content: center; }
    .footer-main { flex-direction: column; gap: 30px; text-align: center; }
    .footer-brand, .footer-links, .footer-payments { align-items: center; }
    .footer-brand .socials { justify-content: center; }
}

@media (max-width: 768px) {
    /* Header Flexível */
    .header-container { 
        flex-wrap: wrap; 
        justify-content: space-between;
        padding-bottom: 10px;
    }
    .logo { 
        order: 1; 
        margin-bottom: 0; 
        width: auto;
    }
    .user-actions { 
        order: 2; 
        gap: 20px;
    }
    .search-bar { 
        order: 3; 
        width: 100%; 
        max-width: 100%; 
        margin: 15px 0 0 0; 
    }
    
    .hide-mobile { display: none; }
    .main-nav { overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
    .main-nav ul { justify-content: flex-start; padding: 10px 20px; gap: 20px; }
    
    /* Hero Section Ajustado (Imagem Tema sempre alinhada) */
    .hero-content { flex-direction: column; text-align: center; padding-top: 10px; }
    .hero-text { align-items: center; width: 100%; }
    .hero-title-img { 
        max-width: 90%; 
        margin-left: 0; 
        margin-bottom: 20px; 
    }
    .hero-text p { font-size: 0.95rem; }
    .hero-image { height: 250px; width: 100%; background-position: center; margin-top: 20px; }
    
    .benefits-container { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .benefit-item { width: calc(50% - 20px); justify-content: center; text-align: center; flex-direction: column; gap: 5px; }
    
    .footer-top { flex-direction: column; gap: 25px; align-items: center; text-align: center;}
    .footer-feature { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    /* === 2 PRODUTOS POR LINHA NO MOBILE === */
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    } 
    .product-card { 
        padding: 8px; /* Reduz padding para caber na tela pequena */
    }
    .product-img-placeholder {
        height: 100px; /* Reduz altura da imagem p/ caber dois por linha */
    }
    .product-card h3 {
        font-size: 0.75rem; 
    }
    .price {
        font-size: 0.95rem; /* Ajusta o preço */
    }
    .installments {
        font-size: 0.65rem;
    }
    .btn-comprar-card {
        padding: 8px;
        font-size: 0.75rem;
    }
    .discount-badge {
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    .category-card { width: calc(50% - 15px); }
    .benefit-item { width: 100%; flex-direction: row; text-align: left; }
    .payment-icons { grid-template-columns: repeat(3, 1fr); }
    .hero-title-img { max-width: 100%; }
}