@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* NOVA PALETA DE CORES */
    --primary-blue: #3530D8;    /* Azul Profundo (Fundo/Marca/Textos no Amarelo) */
    --electric-blue: #4F57F4;   /* Azul Elétrico (Cards/Sidebars) */
    --secondary-yellow: #FFCE00; /* Amarelo Ouro (Destaques/Header/Hero BG) */
    --white: #FFFFFF;           /* Branco Puro (Texto/Inputs) */
    
    /* Variáveis de Texto mantidas/mapeadas para a nova paleta */
    --light-text: #FFFFFF;
    --medium-text: #E0E0E0;     
    --border-color: #4F57F4;
    
    --header-height: 85px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--primary-blue); /* Fundo Azul Profundo (nas outras seções) */
    color: var(--light-text);
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- UTILITÁRIOS MOBILE --- */
.mobile-only {
    display: none !important;
}

/* --- CABEÇALHO (Desktop Padrão) --- */
.main-header {
    background-color: var(--secondary-yellow); /* Amarelo Sólido */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 85px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.main-header.scrolled {
    background-color: var(--secondary-yellow) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

#header-logo {
    height: 50px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.main-header.scrolled #header-logo,
.main-header #header-logo { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--primary-blue); /* Texto Azul no fundo Amarelo */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-blue); /* Sublinhado Azul */
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- HERO SECTION (Desktop Padrão) --- */
.hero {
    min-height: 100vh;
    /* ALTERAÇÃO: Fundo Amarelo para destacar o logo azul */
    background-color: var(--secondary-yellow) !important; 
    background-image: none !important;
    /* ALTERAÇÃO: Texto Azul para contrastar com o fundo amarelo */
    color: var(--primary-blue) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 50px;
    position: relative;
}

.hero-logo img {
    height: 180px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.hero-categories {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1000px;
}

/* Categorias no Hero (Fundo Azul no Hero Amarelo se destaca bem) */
.hero-category {
    background: var(--electric-blue); 
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid var(--electric-blue);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.hero-category:hover {
    background: var(--primary-blue); /* Escurece um pouco no hover */
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilos Padrão de Botão (Para uso geral) */
.cta-button {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.22s ease, box-shadow 0.22s ease;
    border: 2px solid var(--secondary-yellow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.cta-button-secondary {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
    border: 2px solid var(--secondary-yellow);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* --- AJUSTE DE BOTÕES ESPECÍFICO PARA O HERO AMARELO --- */
/* Como o fundo do hero agora é amarelo, precisamos inverter os botões 
   DENTRO da hero section para que eles apareçam */

/* Botão Principal na Hero (Fundo Azul, Texto Amarelo) */
.hero .cta-button {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
    border-color: var(--primary-blue);
}
.hero .cta-button:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* Botão Secundário na Hero (Outline Azul, Texto Azul) */
.hero .cta-button-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none; /* Remove sombra para ficar clean no fundo claro */
}
.hero .cta-button-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
}
/* ------------------------------------------------------- */


.cta-button:focus,
.cta-button-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(53, 48, 216, 0.4); /* Foco azul */
}


/* ==========================================================================
   LAYOUT PRINCIPAL (DESKTOP)
   ========================================================================== */

.catalog-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 0;
    position: relative;
    scroll-margin-top: 100px;
}

.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    align-self: flex-start; /* keep sidebar from stretching so position:sticky works reliably */
    position: sticky;
    top: calc(var(--header-height) + 10px); /* respect header height and add small gap */
    height: auto;
    background: var(--electric-blue); /* Azul Elétrico Sólido */
    padding: 30px;
    border-radius: 16px;
    border: none; 
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    z-index: 100;
    display: block;
}

/* When on the home screen (or above catalog), hide the filters on desktop */
.filters-sidebar.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.46s cubic-bezier(0,0,0.2,1), transform 0.46s cubic-bezier(0,0,0.2,1);
}

/* Keep hidden state ignored on smaller screens where the sidebar becomes a panel */
@media (max-width: 991px) {
    .filters-sidebar.hidden { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
}

.sidebar-header-mobile,
#close-sidebar-btn,
#mobile-filter-fab {
    display: none !important;
}

.filters-sidebar h3.desktop-only-title {
    color: var(--secondary-yellow);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary-yellow);
    padding-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* Search inside the filters sidebar */
.filters-sidebar .sidebar-search {
    margin-bottom: 16px;
}
.filters-sidebar .sidebar-search .search-container {
    position: relative;
    height: 44px;
    width: 100%;
}
.filters-sidebar .sidebar-search .search-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--white);
    z-index: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.filters-sidebar .sidebar-search .search-container:focus-within::before {
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
    border-color: rgba(79,87,244,0.18);
}
.filters-sidebar .sidebar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--primary-blue);
    font-size: 1rem;
    pointer-events: none; /* prevent icon from receiving focus and showing outline */
}
.filters-sidebar .sidebar-search input {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px 14px 10px 44px;
    border: none;
    background: transparent;
    color: var(--primary-blue);
    font-size: 0.95rem;
    border-radius: 12px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 991px) {
    .filters-sidebar .sidebar-search { display: none; } /* hide inside mobile panel, as mobile has its own search FAB */
} 

.filters-sidebar h3 {
    color: var(--secondary-yellow);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.filter-section h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-options::-webkit-scrollbar { width: 8px; }
.filter-options::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.filter-options::-webkit-scrollbar-thumb { background: var(--secondary-yellow); border-radius: 10px; }

.filter-item label {
    display: block;
    position: relative;
    padding: 10px 10px 10px 40px;
    cursor: pointer;
    color: var(--white);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.filter-item label:hover {
    background-color: rgba(255, 206, 0, 0.1);
}

.filter-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.filter-item label::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--white);
    border-radius: 6px;
    background: transparent;
}

.filter-item input:checked + label::before {
    background-color: var(--secondary-yellow);
    border-color: var(--secondary-yellow);
}

.filter-item input:checked + label::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 47%;
    width: 6px;
    height: 12px;
    border: solid var(--primary-blue); /* Checkmark azul no fundo amarelo */
    border-width: 0 3px 3px 0;
    transform: translateY(-50%) rotate(45deg);
}

.clear-filters-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--secondary-yellow);
    background-color: transparent;
    color: var(--secondary-yellow);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 25px;
    text-transform: uppercase;
}

.clear-filters-btn:hover {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
}

.dev-notice {
    margin-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.product-main-content {
    flex-grow: 1;
    min-width: 0;
    /* Espaço apenas para o header + search pill */
    padding-top: calc(var(--header-height) + 28px);
} 

.desktop-only { display: block; }

/* Mobile search (toggled by FAB) */
.mobile-search {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9999;
    padding: 0 16px; /* mais margem nas laterais */
}

.mobile-search.open { display: block; }

/* Mobile search (toggled by FAB) */
.mobile-search {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 9999;
    padding: 0 16px; /* mais margem nas laterais */
}

.mobile-search.open { display: block; }

/* Search FAB (shown on mobile, hidden on desktop) */
.fab-btn-search {
    display: none;
    position: fixed;
    bottom: 110px; /* sits above the cart FAB */
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-size: 1.2rem;
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--secondary-yellow);
    box-shadow: 0 6px 18px rgba(0,0,0,0.24);
    /* start hidden (will be revealed on scroll) */
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.fab-btn-search.visible-on-scroll {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-flex !important; }

    /* Ensure the mobile search uses compact width and side margins */
    .mobile-search .search-container { max-width: 92%; width: calc(100% - 32px); height: 40px; }
    .mobile-search .search-container .search-icon { left: 12px; font-size: 0.95rem; }
    .mobile-search .search-container input { padding: 8px 12px 8px 44px; font-size: 0.95rem; }

    /* Show the search FAB on mobile */
    .fab-btn-search { display: flex; }

    /* Reserve space for header + fab/search to avoid overlap */
    .product-main-content { padding-top: calc(var(--header-height) + 64px); }
}

/* Keep filters visible/sticky on desktop */
@media (min-width: 769px) {
    .filters-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 20px);
        max-height: calc(100vh - var(--header-height) - 40px);
        overflow-y: auto;
    }
}

/* On wider desktops, pin the filters to the left and reserve content space */
@media (min-width: 992px) {
    .filters-sidebar {
        position: fixed;
        top: calc(var(--header-height) + 20px);
        left: calc(50% - 700px + 20px); /* align with container left edge when max-width:1400 */
        width: 280px;
        max-height: calc(100vh - var(--header-height) - 40px);
        overflow-y: auto;
        z-index: 1000;
        border-radius: 16px;
        padding-bottom: 16px;
        display: flex;
        flex-direction: column;
    }

    /* Make filter options scroll within the sidebar so footer stays at bottom */
    .filters-sidebar .filter-options { max-height: none; overflow: auto; flex: 1; }
    .filters-sidebar .dev-notice { margin-top: 16px; margin-bottom: 8px; text-align: center; opacity: 0.95; }

    /* Reserve space to avoid overlap with the fixed sidebar */
    .product-main-content { margin-left: calc(280px + 60px); }
}

#searchInput:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--secondary-yellow); /* Foco Amarelo */
}
#searchInput::placeholder { color: #888; }

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-info strong { color: var(--secondary-yellow); font-size: 1.2rem; }

#sortOptions {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--electric-blue);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--electric-blue); /* Fundo do card Azul Elétrico */
    border-radius: 16px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 87, 244, 0.4);
}

.product-image-container {
    position: relative;
    background: var(--white);
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.variations-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 0.95rem;
    color: var(--secondary-yellow); /* Título Amarelo */
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.product-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    background: var(--secondary-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    font-weight: 700;
    text-transform: uppercase;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--white);
    opacity: 0.8;
}

.view-variations-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
    margin-top: 10px;
}

.view-variations-btn:hover { background-color: var(--white); }

.qty-control-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 25px;
    margin-top: 10px;
}

.qty-btn-card {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input-card {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
}
.qty-input-card::-webkit-outer-spin-button,
.qty-input-card::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--white);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* --- MAP SECTION --- */
.map-section {
    padding: 80px 0;
    background-color: var(--electric-blue); /* Painel Azul Elétrico */
    text-align: center;
}

.section-title {
    color: var(--secondary-yellow);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--white);
    margin-bottom: 50px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.location-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    text-align: left;
}

.map-container, .address-card {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
}

.map-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 4px solid var(--white);
}

.address-card {
    background: var(--white); /* Cartão branco */
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.address-icon {
    background-color: rgba(53, 48, 216, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.address-icon i { font-size: 1.8rem; color: var(--primary-blue); }

.address-text h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.address-text p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.map-link {
    display: inline-block;
    margin-top: 25px;
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--electric-blue); 
    color: var(--white);
    padding: 60px 0 0;
    border-top: 4px solid var(--secondary-yellow);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--secondary-yellow);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-section p {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
}

.footer-section i {
    color: var(--secondary-yellow);
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-section a { color: var(--white); text-decoration: none; }
.footer-section a:hover { color: var(--secondary-yellow); }

.social-links { display: flex; gap: 18px; margin-top: 25px; }
.social-links a {
    color: var(--primary-blue);
    font-size: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    color: var(--primary-blue);
    background: var(--secondary-yellow);
}

.footer-bottom {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show { display: flex; }

.modal-content {
    background: var(--electric-blue); /* Modal Azul Elétrico */
    margin: 20px;
    padding: 40px;
    border-radius: 20px;
    border: none;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    color: var(--white);
}

.close-modal {
    color: var(--secondary-yellow);
    background: rgba(255,255,255,0.1);
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#modal-title {
    color: var(--secondary-yellow);
    margin-bottom: 35px;
    border-bottom: 3px solid var(--secondary-yellow);
    padding-bottom: 20px;
    font-size: 1.7rem;
    font-weight: 700;
    padding-right: 50px;
}

.variations-list { list-style: none; }
.variations-list li {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
    color: var(--white);
}

.variation-name { flex: 1; font-weight: 500; }
.variation-brand {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
    background: var(--secondary-yellow);
    padding: 4px 12px;
    border-radius: 15px;
}

.variation-qty-control { display: flex; align-items: center; }
.variation-qty-input {
    width: 45px;
    padding: 5px;
    border-radius: 5px;
    border: none;
    background: var(--white);
    color: var(--primary-blue);
    text-align: center;
    height: 32px;
}
.btn-add-var {
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
}

.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 1000;
    border: none;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.fab-btn:hover { transform: scale(1.1); background-color: #fff; }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--primary-blue);
}

.cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px;
}

.cart-table { width: 100%; border-collapse: collapse; color: var(--white); }
.cart-table th { text-align: left; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.2); color: var(--secondary-yellow); }
.cart-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }

.cart-qty-input { width: 50px; padding: 5px; border-radius: 5px; border: none; background: var(--white); color: var(--primary-blue); text-align: center; font-weight: bold; }
.remove-item-btn { background: transparent; border: none; color: #ff6b6b; cursor: pointer; font-size: 1.1rem; }

.client-info-form label { display: block; color: var(--secondary-yellow); margin-bottom: 5px; }
.client-info-form input { 
    width: 100%; 
    padding: 12px; 
    border-radius: 8px; 
    border: none; 
    background: var(--white);
    color: var(--primary-blue);
}


/* ==========================================================================
   ESTILOS DO MENU HAMBÚRGUER (Base)
   ========================================================================== */
.hamburger-btn {
    display: none; 
    background: none;
    border: none;
    color: var(--primary-blue); /* Ícone Azul no fundo Amarelo */
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--electric-blue); /* Painel Mobile Azul Elétrico */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--secondary-yellow);
    cursor: pointer;
}

.mobile-menu-logo img {
    max-width: 150px;
    margin-bottom: 30px;
    display: block;
}

.mobile-menu-links, .mobile-menu-categories {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-links h3, .mobile-menu-categories h3 {
    color: var(--secondary-yellow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--secondary-yellow);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.mobile-link {
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 0;
}

.mobile-cat-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-cat-btn:active {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
}

/* ==========================================================================
   BREAKPOINT 1: TABLETS E LAPTOPS PEQUENOS (Max 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* 1. Ativa Menu Hambúrguer */
    .hamburger-btn { display: block; }
    .main-nav { display: none !important; }
    
    /* 2. Ajuste Header */
    .main-header .container {
        justify-content: space-between;
        padding: 0 20px;
    }
    
    #header-logo {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        height: 40px;
    }

    /* 3. Hero Section (Tablet) */
    .hero {
        padding-top: 120px; 
    }
    
    .hero-categories {
        display: none !important; 
    }
}

/* ==========================================================================
   BREAKPOINT 2: CELULARES / IPHONE (Max 768px)
   Layout 100% App-Like
   ========================================================================== */
@media (max-width: 768px) {
    
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* HEADER FIXO COMPACTO */
    .main-header {
        height: 60px;
        background-color: var(--secondary-yellow); /* Amarelo Sólido */
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .hamburger-btn {
        font-size: 1.5rem;
        padding: 0;
        color: var(--primary-blue);
    }

    #header-logo {
        height: 30px; 
    }

    /* HERO MOBILE */
    .hero {
        margin-top: 60px; 
        padding: 40px 20px 60px 20px !important;
        min-height: auto !important;
        height: auto !important;
        background-attachment: scroll !important;
        background-image: none !important;
        /* ALTERAÇÃO MOBILE: Fundo Amarelo no mobile também */
        background: var(--secondary-yellow) !important;
        color: var(--primary-blue) !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero, .hero::before, .hero::after, .hero * {
        background-image: none !important;
    }

    .hero-categories {
        display: none !important;
    }

    .hero-logo img {
        width: clamp(120px, 45%, 200px) !important;
        height: auto !important;
        margin-bottom: 30px;
        display: none !important; 
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1rem;
    }

    .location-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        text-align: center;
    }

    .map-container,
    .address-card {
        width: 100%;
        min-height: 320px;
    }

    .map-container iframe {
        width: 100%;
        height: 320px;
        min-height: 320px;
    }

    .address-card {
        padding: 30px;
    }

    .address-text h3 {
        font-size: 1.4rem;
    }

    .map-link {
        display: inline-block;
        margin-top: 15px;
    }

    .catalog-container {
        padding: 0 15px;
        margin-top: 10px;
    }

    .mobile-only { display: block !important; }
    #mobile-filter-fab { display: block !important; }

    /* FAB Filters Left */
    .fab-btn-left {
        position: fixed;
        bottom: 30px;
        left: 20px;
        z-index: 1100;
        background-color: var(--secondary-yellow);
        color: var(--primary-blue);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        border: none;
        cursor: pointer;
        /* start hidden and reveal on scroll */
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }
    .fab-btn-left.visible-on-scroll {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .filters-overlay {
        position: fixed;
        inset: 0; 
        background: rgba(0,0,0,0.45);
        z-index: 19000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
    }
    .filters-overlay.show { opacity: 1; visibility: visible; }

    /* Smooth transitions for overlay and sidebar */
    .filters-overlay { transition: opacity 0.50s cubic-bezier(0,0,0.2,1), visibility 0.50s ease; }

    /* Smoother sidebar transitions (slower + ease-out) */
    .filters-sidebar { transition: transform 0.52s cubic-bezier(0,0,0.2,1), opacity 0.46s ease-out 0.06s, box-shadow 0.32s ease; will-change: transform, opacity; }
    .hamburger-btn { transition: transform 0.18s ease; }
    .hamburger-btn:active { transform: scale(0.95); }

    @media (max-width: 380px) {
        .fab-btn-left { width: 52px; height: 52px; }
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 85%;
        max-width: 360px;
        transform: translateX(105%) translateZ(0);
        opacity: 0;
        will-change: transform, opacity;
        transition: transform 0.52s cubic-bezier(0,0,0.2,1), opacity 0.46s ease-out 0.06s, box-shadow 0.32s ease;
        z-index: 20000;
        padding: 20px;
        box-shadow: -6px 0 25px rgba(0,0,0,0.25);
        background: var(--electric-blue); /* Sidebar Mobile Azul Elétrico */
        color: var(--white);
    }

    .filters-sidebar.open { transform: translateX(0) translateZ(0); opacity: 1; }

    .sidebar-header-mobile { display: flex !important; justify-content: space-between; align-items: center; }
    #close-sidebar-btn { display: block !important; background: transparent; border: none; color: var(--secondary-yellow); font-size: 1.2rem; }

    .filters-sidebar h3.desktop-only-title { display: none !important; }

    .filters-sidebar h3, .filters-sidebar h4 { color: var(--secondary-yellow); }
    .filter-item label { color: var(--white); background: transparent; }

    .catalog-container { gap: 20px; }

    .header-search {
        top: 60px;
        margin: 0 -15px 20px -15px;
        padding: 0;
        background: transparent;
    }
    
    #searchInput { font-size: 16px; } 

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-info h3 {
        font-size: 0.8rem;
        height: 2.8em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .product-brand { display: none; }
    
    .filters-sidebar {
        width: 85%;
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
    }
}