/* Microinterações para modal de complementos/adicionais */
.modifier-option-card.selected-anim {
    animation: mod-select-pop 0.35s cubic-bezier(.6,-0.28,.74,.05);
    box-shadow: 0 0 0 2px var(--primary-color, #8B5CF6), 0 2px 12px 0 rgba(139,92,246,0.10);
}
@keyframes mod-select-pop {
    0% { transform: scale(1); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.modifier-group-container.focus-anim {
    animation: mod-focus-glow 0.6s cubic-bezier(.6,-0.28,.74,.05);
    box-shadow: 0 0 0 3px var(--primary-color, #8B5CF6), 0 2px 12px 0 rgba(139,92,246,0.10);
    border-radius: 12px;
}
@keyframes mod-focus-glow {
    0% { box-shadow: 0 0 0 0 var(--primary-color, #8B5CF6); }
    60% { box-shadow: 0 0 0 6px var(--primary-color, #8B5CF6); }
    100% { box-shadow: 0 0 0 0 var(--primary-color, #8B5CF6); }
}
/* Animação: produto voando até a sacola */
.fly-to-cart-anim {
    box-shadow: 0 4px 24px 0 rgba(139,92,246,0.25), 0 1.5px 6px 0 rgba(0,0,0,0.10);
    animation: fly-to-cart-pop 0.7s cubic-bezier(.6,-0.28,.74,.05);
    will-change: transform, opacity, left, top;
}
@keyframes fly-to-cart-pop {
    0% { opacity: 1; transform: scale(1); }
    80% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 0.2; transform: scale(0.5); }
}
/* --- MODAL DE CUPONS --- */
#cupons-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.55); z-index: 4000; display: none; align-items: center; justify-content: center;
    transition: opacity 0.25s;
}
#cupons-modal.active { display: flex; opacity: 1; }
.cupons-modal-content {
    background: var(--bg-card,#fff); color: var(--text-primary,#222); border-radius: 18px; max-width: 420px; width: 95vw; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 0; display: flex; flex-direction: column; overflow: hidden;
}
.cupons-modal-content .modal-header {
    display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem 0.5rem 1.5rem; border-bottom: 1px solid var(--border-color,#eee);
}
.cupons-modal-content .modal-header h3 { font-size: 1.25rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 0.7em; }
.cupons-modal-content .modal-header .close-btn { background: none; border: none; color: var(--text-secondary,#888); font-size: 1.5rem; cursor: pointer; }
.cupons-modal-content .modal-body { padding: 1.2rem 1.5rem 1.5rem 1.5rem; max-height: 65vh; overflow-y: auto; }
.cupons-card { background: var(--bg-main,#f9f9f9); border-radius: 12px; margin-bottom: 1.2rem; box-shadow: 0 2px 8px rgba(139,92,246,0.07); padding: 1rem 1rem 0.7rem 1rem; border-left: 4px solid #8B5CF6; }
.cupons-card-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5em; display: flex; align-items: center; gap: 0.5em; }
.cupons-card-codigo-row { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.5em; }
.cupons-card-codigo { font-family: monospace; font-size: 1.1em; background: #23272f; color: #fff; border-radius: 6px; padding: 0.18em 0.7em; letter-spacing: 1px; }
.cupons-copy-btn { background: none; border: none; color: var(--primary-color,#8B5CF6); font-size: 1.2em; cursor: pointer; transition: color 0.18s, transform 0.18s; }
.cupons-copy-btn:hover { color: var(--primary-hover,#7C3AED); transform: scale(1.15); }
.cupons-cond-list { margin: 0.5em 0 0.2em 1.2em; padding: 0; color: var(--text-secondary,#888); font-size: 0.98em; }
.cupons-cond-list li { margin-bottom: 0.2em; }
.cupons-alert { color: #F87171; font-size: 0.97em; margin-top: 2px; }
.cupons-validade { color: #aaa; font-size: 0.97em; margin-top: 2px; }
@media (max-width: 600px) {
    .cupons-modal-content { max-width: 98vw; padding: 0; }
    .cupons-modal-content .modal-header, .cupons-modal-content .modal-body { padding-left: 1em; padding-right: 1em; }
    .cupons-modal-content .modal-header { padding-top: 1em; }
}
/* Microinteração: Pulse para botões de copiar/cupom */
.copy-btn.pulse-anim, .copy-coupon-btn.pulse-anim {
    animation: pulse-anim 0.4s cubic-bezier(.36,1.56,.64,1);
}
@keyframes pulse-anim {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
/* === FAVORITOS: Botões de ação === */
.fav-cart-btn, .fav-remove-btn {
    background: var(--bg-contrast);
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 1.15rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* Container para alinhar os botões à direita */
.fav-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}
.fav-cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}
.fav-remove-btn {
    color: var(--danger-color);
}
.fav-remove-btn:hover {
    background: var(--danger-color);
    color: #fff;
    transform: scale(1.08);
}
/* === FAVORITOS === */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.18);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    z-index: 20;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    opacity: 0.85;
}
.favorite-btn:hover, .favorite-btn.active {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.12);
    opacity: 1;
}
.favorite-btn i {
    pointer-events: none;
}

.favorites-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1rem 1.2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(139,92,246,0.07);
}
.fav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.fav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
}
.fav-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.fav-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #23272f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.fav-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.04em;
    line-height: 1.2;
}
.no-favs {
    color: var(--text-secondary);
    text-align: center;
    padding: 1.2rem 0;
}
.search-suggestion-item[data-type="product"] {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid rgba(55,65,81,0.08);
    background: none;
}
.search-suggestion-item[data-type="product"]:last-child {
    border-bottom: none;
}
.search-suggestion-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: #23272f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.search-suggestion-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.04em;
    line-height: 1.2;
    margin-bottom: 2px;
}
.search-suggestion-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.98em;
    margin-left: 0.5em;
}
.search-suggestion-item[data-type="product"]:hover, .search-suggestion-item[data-type="product"].active {
    background: linear-gradient(90deg, #23272f 60%, #8B5CF6 100%);
    color: #fff;
}
/* Dropdown de sugestões de busca */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 3002;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.3rem 0;
    display: none;
}
.search-suggestions.active { display: block; }
.search-suggestion-item {
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.search-suggestion-item:hover, .search-suggestion-item.active {
    background: var(--primary-color);
    color: #fff;
}
.search-suggestion-category {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.97em;
    margin: 0.5em 0 0.2em 0;
    padding: 0.3em 1.2em 0.1em 1.2em;
    letter-spacing: 0.01em;
    display: block;
}
/* Acessibilidade: foco visível e contraste em botões principais */
.filter-btn:focus-visible,
.add-to-cart-btn:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 4000;
}
/* Fade-in animado para cards de produto */
.product-card.fade-in {
    animation: fadeInProduct 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeInProduct {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 991px) {
    .back-to-top {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 3000 !important;
        position: fixed !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        background: var(--primary-color);
    }
    .back-to-top.mobile-only,
    .mobile-only.back-to-top {
        display: flex !important;
    }
    .back-to-top[style*="display: none"] {
        display: flex !important;
    }


    .filter-btn {
        position: relative;
        overflow: hidden;
    }
    .cat-ripple {
        position: absolute;
        width: 120px;
        height: 120px;
        background: rgba(16,185,129,0.18);
        border-radius: 50%;
        pointer-events: none;
        transform: scale(0);
        animation: cat-ripple-anim 0.5s linear;
        z-index: 2;
        left: 50%;
        top: 50%;
        translate: -50% -50%;
    }
    @keyframes cat-ripple-anim {
        to {
            transform: scale(2.2);
            opacity: 0;
        }
    }
}
@media (max-width: 991px) {
            .category-filters {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding: 0.7rem 0.3rem 0.7rem 0.3rem;
                gap: 2.3rem;
                scrollbar-width: none;
                display: flex;
                align-items: center;
                scroll-behavior: smooth;
                background: linear-gradient(120deg, rgba(36,39,48,0.92) 0%, rgba(28,30,36,0.92) 100%);
                border-radius: 1.5rem;
                box-shadow: 0 4px 24px 0 rgba(20,20,30,0.18), 0 1.5px 6px 0 rgba(20,20,30,0.10);
                margin-bottom: 0.5rem;
                backdrop-filter: blur(10px) saturate(1.3);
                -webkit-backdrop-filter: blur(10px) saturate(1.3);
                border: 1.5px solid rgba(60, 65, 80, 0.22);
            }
            .filter-btn {
                background: rgba(34,36,42,0.92);
                color: #e5e7eb;
                border: 1.5px solid #23272f;
                box-shadow: 0 2px 8px rgba(20,20,30,0.10);
            }
            .filter-btn.active {
                background: linear-gradient(90deg, #23272f 0%, #374151 100%);
                color: #fff;
                border: none;
                box-shadow: 0 4px 16px rgba(55,65,81,0.18);
                outline: 2px solid #23272f55;
            }
            .filter-btn:active {
                background: #23272f;
                color: #fff;
                box-shadow: 0 2px 8px rgba(55,65,81,0.13);
            }
            .filter-btn:focus-visible {
                outline: 2.5px solid #374151;
                outline-offset: 2px;
            }
    .category-filters::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        min-width: 110px;
        font-size: 1.08rem;
        padding: 0.85rem 1.5rem;
        border-radius: 2.2rem;
        background: #fff;
        color: #23272f;
        border: 1.5px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(55,65,81,0.06);
        transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
        margin-bottom: 0.2rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        position: relative;
        outline: none;
        z-index: 1;
    }
    .filter-btn.active {
        background: #23272f;
        color: #fff;
        border: none;
        box-shadow: 0 4px 16px rgba(55,65,81,0.13);
        font-weight: 700;
        transform: scale(1.11);
        outline: 2px solid #23272f22;
    }
    .filter-btn:active {
        background: #ececec;
        color: #23272f;
        box-shadow: 0 2px 8px rgba(55,65,81,0.10);
        transform: scale(0.97);
    }
    .filter-btn:focus-visible {
        outline: 2.5px solid #23272f;
        outline-offset: 2px;
    }
}
@media (max-width: 991px) {
    .back-to-top {
        position: fixed;
        right: 18px;
        bottom: 74px;
                z-index: 2147483647 !important;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--primary-color);
        color: #fff;
        border: none;
        box-shadow: 0 4px 16px rgba(139,92,246,0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s, transform 0.3s;
        transform: translateY(30px) !important;
    }
    .back-to-top.show {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}
/* --- BOTÃO VOLTAR AO TOPO (MOBILE) --- */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 74px;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(139,92,246,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(30px);
}
.back-to-top.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
@media (min-width: 992px) {
    .back-to-top { display: none !important; }
}
@media (max-width: 991px) {
    .product-search-container {
        display: none !important;
    }
}
/*
 * DR. SMOKE - STYLE DEFINITIVO
 * Versão: 2.0 - Correções Finais de Layout, Componentes e Preloader
*/

/* === 1. VARIÁVEIS GLOBAIS E RESET === */
:root {
    --primary-color: #8B5CF6;
    --primary-hover: #7C3AED;
    --bg-main: #111827;
    --bg-card: #080b0e;
    --bg-contrast: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --shadow-color: rgba(139, 92, 246, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --font-primary: 'Manrope', sans-serif;
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
    --container-padding: 1rem;
    --border-radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background-color: var(--primary-color); color: white; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.cart-open { overflow: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--container-padding); }
img { max-width: 100%; display: block; }
a { color: var(--primary-color); text-decoration: none; }
button { font-family: var(--font-primary); border: none; background: none; cursor: pointer; }


/* === 2. COMPONENTES REUTILIZÁVEIS === */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background-color: var(--primary-color); color: var(--text-primary);
    border-radius: 8px; padding: 0.8rem 1.5rem; font-size: 1rem;
    font-weight: 600; transition: var(--transition-fast);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.3);
}
.btn-primary:disabled {
    background-color: var(--bg-contrast); color: var(--text-secondary);
    cursor: not-allowed; transform: none;
}
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background-color: var(--danger-color); color: var(--bg-main);
    border-radius: 8px; padding: 0.8rem 1.5rem; font-size: 1rem;
    font-weight: 600; transition: var(--transition-fast);
}
.btn-secondary:hover { background-color: var(--danger-color); color: var(--bg-main); opacity: 0.8; transform: translateY(-2px); }
.btn-secondary:disabled {
    background-color: var(--danger-color); color: var(--bg-main); opacity: 0.8;
    cursor: not-allowed; transform: none;
}
#age-confirm-yes{ margin-top: 20px; }
.close-btn {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
    color: var(--text-secondary); transition: var(--transition-fast);
}
.close-btn:hover { color: var(--text-primary); transform: rotate(90deg); }
.empty-message { text-align: center; padding: 4rem 1rem; color: var(--text-secondary); }
.empty-message i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }


/* === 3. LAYOUT PRINCIPAL === */
.desktop-only { display: none; }
.mobile-only { display: flex; }
.section-wrapper { padding: 3rem 0; }
.section-header { margin-bottom: 2rem; text-align: center; }
.section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.75rem;
}
.section-header h2 i { color: var(--primary-color); }

/* === 4. CABEÇALHO (HEADER) & NAVEGAÇÃO === */
.main-header {
    background-color: transparent; /* Começa transparente */
    backdrop-filter: blur(0);
    border-bottom: 1px solid transparent; /* Sem borda inicial */
    position: sticky;
    top: 0;
    z-index: 998;
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease; /* Transição suave */
    padding: 1rem 0;
}

/* Estado do header quando a página é rolada (classe 'scrolled' adicionada via JS) */
.main-header.scrolled {
    background-color: rgba(17, 24, 39, 0.6); /* Um pouco mais transparente */
    backdrop-filter: blur(12px); /* Desfoque mais intenso */
    border-bottom-color: rgba(55, 65, 81, 0.5); /* Borda semi-transparente */
}

/* --- MOBILE NAV AJUSTADA --- */
.mobile-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background-color: rgba(31, 41, 55, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    height: 52px;
    padding: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    max-width: 100vw;
}
.main-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 48px; border-radius: 12px; transition: var(--transition-fast); }
.logo img:hover { transform: scale(1.05); }
.main-nav a, .action-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); font-weight: 600; transition: var(--transition-fast);
}
.main-nav a:hover, .action-btn:hover { color: var(--primary-color); }
.cart-link { position: relative; }
.cart-badge {
    position: absolute; top: -8px; right: -13px;
    background-color: var(--primary-color); color: white;
    border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-main);
}

.mobile-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background-color: rgba(31, 41, 55, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    height: 64px;
    padding: 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
    max-width: 100vw;
}
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0 0 1px 0;
    flex-grow: 1;
    transition: var(--transition-fast);
    position: relative;
    min-width: 60px;
    border-radius: 12px;
    touch-action: manipulation;
    height: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.nav-link i {
    font-size: 1.18rem;
    line-height: 1.18rem;
    margin-bottom: 0.1rem;
    display: block;
    overflow: visible;
}
.nav-link:active, .nav-link:focus {
    background: rgba(139,92,246,0.08);
    color: var(--primary-color);
}
.nav-link.active {
    color: var(--primary-color);
    background: none;
    box-shadow: none;
    position: relative;
}
.nav-link.active::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-color);
}
.mobile-nav .cart-badge {
    left: 60%;
    top: 2px;
    transform: translateX(-30%);
    font-size: 0.85rem;
    width: 16px;
    height: 16px;
}


/* === 5. SEÇÕES DE CONTEÚDO === */
.hero-section {
    padding: 4rem 0; text-align: center;
    background: radial-gradient(ellipse at top, var(--bg-card), var(--bg-main) 70%);
}
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.hero-text p { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem auto; }
.hero-cta i { transition: var(--transition-fast); }
.hero-cta:hover i { transform: translateY(4px); }

/* --- Busca e Filtros de Categoria --- */
.product-search-container { position: relative; max-width: 600px; margin: 1.5rem auto 0 auto; }
#product-search-input {
    width: 100%; padding: 0.9rem 1.5rem 0.9rem 3rem;
    border-radius: 999px; border: 1px solid var(--border-color);
    background-color: var(--bg-card); color: var(--text-primary);
    font-size: 1rem; transition: var(--transition-fast);
}
#product-search-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--shadow-color); }
.product-search-container > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.filters-wrapper { margin-top: 2rem; }
.carousel-wrapper { position: relative; padding: 0.25rem 0; }
.category-filters {
    display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none;
    padding: 0.5rem var(--container-padding);
    margin: 0 calc(-1 * var(--container-padding));
}
.category-filters::-webkit-scrollbar { display: none; }
.filter-btn {
    flex-shrink: 0; padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color); background-color: transparent;
    color: var(--text-secondary); border-radius: 999px; cursor: pointer;
    font-weight: 600; font-size: 0.9rem; transition: var(--transition-fast);
}
.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: scale(1.05); /* Adiciona um ligeiro aumento */
}
.filter-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.carousel-arrow { display: none !important; }

/* --- Grade de Produtos --- */

/* --- Grade de Produtos (VERSÃO CORRIGIDA COM FLEXBOX) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-fast);
    position: relative;
    box-shadow: var(--shadow-md);
    
    /* --- INÍCIO DA CORREÇÃO PRINCIPAL --- */
    display: flex;
    flex-direction: column; /* 1. Empilha a imagem e as informações verticalmente */
    height: 100%; /* Garante que o card ocupe o espaço do seu contentor (slide ou grelha) */
    /* --- FIM DA CORREÇÃO PRINCIPAL --- */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.product-image.no-photo {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
}

.product-image.no-photo img {
    object-fit: contain;
    opacity: 0.85;
}

.product-image.no-photo .no-photo-badge {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-image.no-photo::before {
    content: '\f03e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 2.2rem;
    opacity: 0.22;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
    text-align: left;

    /* --- INÍCIO DA CORREÇÃO PRINCIPAL --- */
    display: flex;
    flex-direction: column; /* 2. Empilha o nome e o preço verticalmente */
    flex-grow: 1; /* 3. FAZ ESTA ÁREA OCUPAR TODO O ESPAÇO DISPONÍVEL, empurrando o preço para baixo */
    /* --- FIM DA CORREÇÃO PRINCIPAL --- */
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem; /* Espaçamento entre o nome e o preço */

    /* Limita o texto a 2 linhas e adiciona "..." (Isto já estava correto) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    
    /* --- INÍCIO DA CORREÇÃO PRINCIPAL --- */
    margin-top: auto; /* 4. Garante que o preço fique "colado" na parte de baixo */
    padding-top: 0.5rem; /* Adiciona um espaço extra se o nome for curto */
    /* --- FIM DA CORREÇÃO PRINCIPAL --- */
}

/* --- (NOVO) Garante que os slides do carrossel se estiquem --- */
.swiper-wrapper {
    align-items: stretch; /* Essencial para que os slides tenham a mesma altura */
}

.featured-products-carousel .swiper-slide,
.promotion-product-carousel .swiper-slide {
    height: auto; /* Permite que o Swiper calcule a altura, mas o conteúdo interno irá esticar */
    display: flex;
    flex-direction: column;
}
/* --- Botão Adicionar ao Carrinho --- */
.add-to-cart-btn {
    position: absolute; bottom: 0.75rem; right: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background-color: var(--primary-color); color: white;
    transition: all 0.3s ease; overflow: hidden; font-size: 0;
}
.add-to-cart-btn i { font-size: 1rem; transition: var(--transition-fast); }
.add-to-cart-btn:hover { background-color: var(--primary-hover); }
.add-to-cart-btn.added { background-color: var(--success-color); transform: scale(1.1); }
.add-to-cart-btn.added .fa-plus { display: none; }
.add-to-cart-btn.added .fa-check { display: inline-block; font-size: 1rem; }
.add-to-cart-btn .fa-check { display: none; }

/* --- Carrosséis Swiper (Destaques e Promoções) --- */
.swiper-container-wrapper { position: relative; }
.featured-products-carousel, .promotion-product-carousel {
    overflow: hidden; padding: 0.25rem;
}
.swiper-wrapper { padding-bottom: 2.5rem; align-items: stretch; max-height: 500px; }
.featured-products-carousel .swiper-slide,
.promotion-product-carousel .swiper-slide {
    width: 85vw;
    max-width: 320px;
    min-width: 220px;
    box-sizing: border-box;
    transition: width 0.3s ease;
    display: flex;
    align-items: stretch;
}
.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet { background: var(--text-secondary); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--primary-color); }
.swiper-button-prev, .swiper-button-next { display: none; }
.promotions-section { border-top: 1px solid var(--border-color); }
.promotion-card {
    background: linear-gradient(135deg, var(--primary-color) 50%, var(--primary-hover) 75%);
    color: var(--text-primary); padding: 1.5rem; border-radius: var(--border-radius);
    box-shadow: 0 8px 25px var(--shadow-color); text-align: center; margin-bottom: 1.5rem;
}
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination-btn {
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); border-radius: 8px; width: 44px; height: 44px;
    transition: var(--transition-fast); font-size: 1rem;
}
.pagination-btn:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#page-info { font-weight: 600; color: var(--primary-color); }

/* --- Rodapé --- */
.main-footer {
    background-color: var(--bg-card); border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem 0; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
.footer-column h4 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-column p, .footer-column li { color: var(--text-secondary); list-style: none; }
.footer-column a:hover { color: var(--primary-color); }
.footer-logo { border-radius: 12px; margin-bottom: 5px;}
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.social-links a { font-size: 1.5rem; transition: var(--transition-fast); }
.social-links a:hover { transform: scale(1.1); color: var(--primary-color); }
.footer-bottom { text-align: center; padding: 2rem 0 0 0; margin-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); }
body { padding-bottom: 52px; }

/* Esconde o botão de voltar ao topo quando o carrinho está aberto */
body.cart-open #back-to-top {
    display: none !important;
}


/* === 6. MODAIS E OVERLAYS === */
.overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 999; opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.overlay.active { opacity: 1; pointer-events: auto; }
.mobile-search-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--bg-card); padding: 1rem; z-index: 1000;
    border-bottom: 1px solid var(--border-color); transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-search-bar.active { transform: translateY(0); }
.mobile-search-bar.mobile-only.active .container {
    width: 100%;
    display: flex;
    gap: 14px;
}
#mobile-product-search {
    flex-grow: 1; border: 1px solid var(--border-color);
    background-color: var(--bg-main); color: var(--text-primary);
    padding: 0.8rem 1rem; border-radius: 8px; font-size: 1rem;
}
#mobile-product-search:focus { outline: none; border-color: var(--primary-color); }
#mobile-search-close { flex-shrink: 0; }
.cart-sidebar {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;
    background-color: var(--bg-main);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}
.cart-sidebar.active {
    transform: translateY(0);
}
@media (min-width: 992px) {
    .cart-sidebar {
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: 400px;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
    }
    .cart-sidebar.active {
        transform: translateX(0);
    }
}
.cart-header { padding: 1.25rem; border-bottom: 1px solid var(--border-color); }
.cart-header h3 { font-size: 1.2rem; }
.cart-body { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.cart-item-image img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex-grow: 1; }
.cart-item-name { font-weight: 600; display: block; }
.cart-item-price { color: var(--text-secondary); font-size: 0.9rem; }
.cart-item-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
 qty-btn {
    background: var(--bg-contrast); border: 1px solid var(--border-color);
    color: var(--text-primary); cursor: pointer; border-radius: 50%;
    width: 28px; height: 28px; transition: var(--transition-fast);
}
 qty-btn:hover { background-color: var(--border-color); }
.remove-item-btn { color: var(--danger-color); margin-left: auto; transition: var(--transition-fast); }
.remove-item-btn:hover { color: red; }
.cart-item-promotion {
    display: flex; align-items: center; gap: 1rem; padding: 1rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success-color);
    border-radius: 8px; margin: 1rem 0;
}
.cart-item-promotion i { color: var(--success-color); font-size: 1.5rem; }
.cart-footer {
    padding: 1.25rem; border-top: 1px solid var(--border-color);
    background-color: rgba(17, 24, 39, 0.7); backdrop-filter: blur(10px);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
.cart-summary { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 1rem; color: var(--text-secondary); }
.summary-line.discount-line span:last-child { color: var(--success-color); font-weight: 600; }
.summary-line.total-line { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
/* >> MELHORIA: Botão de Finalizar Pedido << */
.checkout-btn {
    width: 100%; padding: 1rem 1.5rem; font-size: 1.1rem;
    box-shadow: 0 0 20px var(--shadow-color);
    position: relative;
    display: flex;
}
.checkout-btn::after {
    content: '\f061'; /* Ícone de seta para a direita */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: var(--transition-fast);
}
.checkout-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}
.checkout-btn.disabled {
    box-shadow: none;
}
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1001; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 1rem;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background-color: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); width: 100%; max-width: 500px;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg); transform: scale(0.95); transition: var(--transition-medium);
}
.modal.active .modal-content { transform: scale(1); }
.modal-header { padding: 1.25rem; border-bottom: 1px solid var(--border-color); }
.modal-header h3 { font-size: 1.2rem; }
.modal-body { padding: 1.5rem; overflow-y: auto; flex-grow: 1; }
.modal-footer {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.25rem; border-top: 1px solid var(--border-color);
    background-color: var(--bg-main); border-radius: 0 0 var(--border-radius) var(--border-radius);
}
.final-price { display: flex; flex-direction: column; line-height: 1.2; }
.final-price span { font-size: 0.9rem; color: var(--text-secondary); }
.final-price strong { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.modifier-group-container { margin-bottom: 2rem; }
.modifier-group-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem;
}
.modifier-group-header h4 { font-size: 1.1rem; }
.modifier-group-header .badge { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-weight: 600; }
.badge.required { background-color: var(--primary-color); color: var(--text-primary); }
.badge.optional { background-color: var(--bg-contrast); color: var(--text-secondary); }
.modifier-options-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.modifier-option-label { display: block; cursor: pointer; }
.modifier-option-label input { display: none; }
.modifier-option-card {
    padding: 1rem; border: 2px solid var(--border-color); border-radius: 8px;
    transition: var(--transition-fast); display: flex; justify-content: space-between; align-items: center;
}
.modifier-option-label input:checked + .modifier-option-card {
    border-color: var(--primary-color); background-color: rgba(139, 92, 246, 0.1);
}
.modifier-option-name { font-weight: 600; }
.modifier-option-price { color: var(--primary-color); font-weight: 700; }
.quantity-control { display: flex; align-items: center; gap: 0.75rem; }
.option-quantity { font-weight: 600; font-size: 1.1rem; }
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background-color: var(--bg-card); color: var(--text-primary);
    padding: 15px 20px; border-radius: 8px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px; font-weight: 600;
    transform: translateX(120%); opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 4px solid var(--success-color);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { font-size: 1.2rem; color: var(--success-color); }
.toast-error {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}
.toast-error i {
    color: #ef4444;
}
.age-gate {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-main); z-index: 9999; display: none;
    align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
}
.age-gate-content { max-width: 400px; }
.age-gate-logo { height: 80px; margin-bottom: 2rem; border-radius: 16px; margin-left: auto; margin-right: auto; }
.age-gate-actions { display: flex; flex-direction: column; gap: 1rem; }

/* === 7. PRELOADER / SKELETON === */

/* Skeleton Loader aprimorado */
.product-card.is-loading .product-image div {
    width: 100%; height: 100%;
    background: linear-gradient(120deg, #23272f 30%, #31343c 60%, #23272f 100%);
    border-radius: 10px;
}
.product-card.is-loading .product-info {
    background-color: transparent;
}
.product-card.is-loading .product-name,
.product-card.is-loading .product-price {
    background: linear-gradient(90deg, #23272f 20%, #31343c 50%, #23272f 80%);
    border-radius: 4px; color: transparent; user-select: none;
    position: relative; overflow: hidden;
}
.product-card.is-loading .product-name { height: 1rem; width: 80%; margin-bottom: 0.5rem; }
.product-card.is-loading .product-price { height: 1.25rem; width: 40%; }
.product-card.is-loading .add-to-cart-btn {
    background: #23272f;
    pointer-events: none;
    border-radius: 50%;
    position: relative; overflow: hidden;
}
.product-card.is-loading .add-to-cart-btn i { display: none; }
.product-card.is-loading .product-image div,
.product-card.is-loading .product-name,
.product-card.is-loading .product-price,
.product-card.is-loading .add-to-cart-btn {
    position: relative; overflow: hidden;
}
.product-card.is-loading .product-image div::before,
.product-card.is-loading .product-name::before,
.product-card.is-loading .product-price::before,
.product-card.is-loading .add-to-cart-btn::before {
    content: '';
    position: absolute; top: 0; left: -120%;
    height: 100%; width: 120%;
    background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.10) 50%, transparent 100%);
    animation: shimmer 1.2s infinite;
}
@keyframes shimmer { 100% { left: 120%; } }


/* === 8. MEDIA QUERIES PARA RESPONSIVIDADE === */

@media (min-width: 600px) {
    :root { --container-padding: 1.5rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .footer-column { display: flex; flex-direction: column; align-items: flex-start; }
    .social-links, .footer-column .contact-list { justify-content: flex-start; }
    .cart-sidebar { max-width: 400px; }
    .featured-products-carousel .swiper-slide,
    .promotion-product-carousel .swiper-slide {
        width: 80vw;
        max-width: 320px;
        min-width: 180px;
    }
}

@media (min-width: 768px) {
    .featured-products-carousel .swiper-slide,
    .promotion-product-carousel .swiper-slide {
        width: 33vw;
        max-width: 260px;
        min-width: 180px;
    }
}

@media (min-width: 992px) {
    :root { --container-padding: 2rem; }
    .mobile-only { display: none; }
    .desktop-only { display: flex; }
    body { padding-bottom: 0; }
    .section-wrapper { padding: 5rem 0; }
    .section-header { text-align: left; }
    .section-header h2 { justify-content: flex-start; }

    /* >> CORREÇÃO: Layout do Cabeçalho Desktop << */
    .main-header .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 2rem;
        align-items: center;
    }
    .main-header .logo { grid-column: 1 / 2; }
    .main-header .main-nav { grid-column: 2 / 3; justify-self: center; gap: 20px; }
    .main-header .header-actions { grid-column: 3 / 4; gap: 20px; }

    .products-section .section-header { display: flex; justify-content: space-between; align-items: center; }
    .product-search-container { margin: 0; width: 350px; }
    .category-filters { padding: 0; margin: 0; }
    
    .carousel-wrapper { padding: 0 30px; }
    .carousel-wrapper::before, .carousel-wrapper::after {
        content: ''; position: absolute; top: -5px; bottom: -5px;
        width: 50px; z-index: 2; pointer-events: none;
    }
    .carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-main) 20%, transparent); }
    .carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-main) 20%, transparent); }
    
    .carousel-arrow {
        display: flex !important;
        justify-content: center;
        align-items: center;
        position: absolute; z-index: 3;
        top: 50%; transform: translateY(-50%);
        background-color: var(--bg-main);
        border: 1px solid var(--border-color); color: var(--text-primary);
        border-radius: 50%; width: 40px; height: 40px; font-size: 1rem;
        transition: var(--transition-fast);
    }
    .carousel-arrow:hover { background-color: var(--primary-color); border-color: var(--primary-color); }
    .carousel-arrow.prev { left: -20px; }
    .carousel-arrow.next { right: -20px; }
    
    .swiper-container-wrapper { padding: 0 0rem; }
    .swiper-button-prev, .swiper-button-next {
        display: flex; align-items: center; justify-content: center;
        width: 40px !important; height: 40px !important; border-radius: 50%;
        background: var(--bg-card); border: 1px solid var(--border-color);
        color: var(--text-primary); transition: var(--transition-fast);
        top: 50%; transform: translateY(-50%);
    }
    .swiper-button-prev:hover, .swiper-button-next:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--bg-main)}
    .swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; }
    .swiper-button-prev { left: 0; }
    .swiper-button-next { right: 0; }

    .featured-products-carousel .swiper-slide,
    .promotion-product-carousel .swiper-slide {
        width: 280px; /* Largura fixa final */
    }

    /* >> CORREÇÃO: Efeito de hover do botão 'Adicionar' << */
    .product-card .add-to-cart-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.product-card .add-to-cart-btn i {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Esconde os ícones de carrinho e de "check" por defeito */
.product-card .add-to-cart-btn .fa-cart-plus,
.product-card .add-to-cart-btn .fa-check {
    transform: rotate(-20deg) scale(0.5);
    opacity: 0;
}

/* Efeito ao passar o rato */
.product-card:hover .add-to-cart-btn {
    transform: scale(1.1); /* Botão aumenta ligeiramente */
    box-shadow: 0 0 15px var(--shadow-color);
}

.product-card:hover .add-to-cart-btn .fa-plus {
    transform: rotate(20deg) scale(0.5); /* Ícone de '+' roda e some */
    opacity: 0;
}

.product-card:hover .add-to-cart-btn .fa-cart-plus {
    transform: rotate(0) scale(1); /* Ícone do carrinho entra no lugar */
    opacity: 1;
}

/* Quando o produto é adicionado */
.product-card .add-to-cart-btn.added {
    background-color: var(--success-color);
}

.product-card .add-to-cart-btn.added .fa-plus,
.product-card .add-to-cart-btn.added .fa-cart-plus {
    display: none; /* Esconde os ícones de adicionar */
}

.product-card .add-to-cart-btn.added .fa-check {
    display: inline-block; /* Mostra o ícone de 'check' */
    transform: scale(1);
    opacity: 1;
}
    
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .modal-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --- (NOVO E CORRIGIDO) Estilos para a Busca Mobile --- */
.mobile-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 1rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    
    /* Começa escondida acima da tela */
    transform: translateY(-120%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Quando a classe 'active' é adicionada, a barra desliza para a visão */
.mobile-search-bar.active {
    transform: translateY(0);
}

.mobile-search-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0; /* Remove padding extra do container interno */
}

#mobile-product-search {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    @media (min-width: 992px) {
        :root { --container-padding: 2rem; }
        .mobile-only { display: none; }
        .desktop-only { display: flex; }
        body { padding-bottom: 0; }
        .section-wrapper { padding: 5rem 0; }
        .section-header { text-align: left; }
        .section-header h2 { justify-content: flex-start; }

        /* >> CORREÇÃO: Layout do Cabeçalho Desktop << */
        .main-header .container {
            display: grid;
            grid-template-columns: auto 1fr auto;
            gap: 2rem;
            align-items: center;
        }
        .main-header .logo { grid-column: 1 / 2; }
        .main-header .main-nav { grid-column: 2 / 3; justify-self: center; gap: 20px; }
        .main-header .header-actions { grid-column: 3 / 4; gap: 20px; }

        .products-section .section-header { display: flex; justify-content: space-between; align-items: center; }
        .product-search-container { margin: 0; width: 350px; }
        .category-filters { padding: 0; margin: 0; }
    
        .carousel-wrapper { padding: 0 30px; }
        .carousel-wrapper::before, .carousel-wrapper::after {
            content: ''; position: absolute; top: -5px; bottom: -5px;
            width: 50px; z-index: 2; pointer-events: none;
        }
        .carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-main) 20%, transparent); }
        .carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-main) 20%, transparent); }
    
        .carousel-arrow {
            display: flex !important;
            justify-content: center;
            align-items: center;
            position: absolute; z-index: 3;
            top: 50%; transform: translateY(-50%);
            background-color: var(--bg-main);
            border: 1px solid var(--border-color); color: var(--text-primary);
            border-radius: 50%; width: 40px; height: 40px; font-size: 1rem;
            transition: var(--transition-fast);
        }
        .carousel-arrow:hover { background-color: var(--primary-color); border-color: var(--primary-color); }
        .carousel-arrow.prev { left: -20px; }
        .carousel-arrow.next { right: -20px; }
    
        .swiper-container-wrapper { padding: 0 0rem; }
        .swiper-button-prev, .swiper-button-next {
            display: flex; align-items: center; justify-content: center;
            width: 40px !important; height: 40px !important; border-radius: 50%;
            background: var(--bg-card); border: 1px solid var(--border-color);
            color: var(--text-primary); transition: var(--transition-fast);
            top: 50%; transform: translateY(-50%);
        }
        .swiper-button-prev:hover, .swiper-button-next:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--bg-main)}
        .swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; }
        .swiper-button-prev { left: 0; }
        .swiper-button-next { right: 0; }
        .featured-products-carousel .swiper-slide,
        .promotion-product-carousel .swiper-slide {
            width: 220px;
            max-width: 260px;
            min-width: 180px;
        }
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        -45deg, 
        rgba(139, 92, 246, 0.2), 
        rgba(17, 24, 39, 0), 
        rgba(34, 197, 94, 0.15), 
        rgba(17, 24, 39, 0)
    );
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    z-index: -1;
    opacity: 0.5;
}

/* Precisamos de garantir que a secção do herói possa conter o pseudo-elemento */
.hero-section {
    position: relative;
    overflow: hidden; /* Garante que o gradiente não "vaze" */
    z-index: 1;
}

/* No final do seu ficheiro style.css */

/* Prepara o card para o efeito de brilho */
.product-card {
    position: relative; /* Já deve ter, mas é importante garantir */
    overflow: hidden;   /* Esconde o brilho que sai fora do card */
}

/* O elemento que cria o brilho */
.product-card::before {
    content: "";
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle closest-side, rgba(139, 92, 246, 0.25), transparent);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

/* A magia acontece no hover */
.product-card:hover::before {
    width: 300px;
    height: 300px;
}

/* No final do seu ficheiro style.css */

@keyframes bounce-cart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(10deg); }
}

.cart-link.item-added i {
    animation: bounce-cart 0.5s ease;
}

/* No final do ficheiro style.css */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

.hero-cta {
  animation: pulse 2s infinite;
}

/* Estilo para itens indisponíveis */
/* Estilo para produtos indisponíveis */
.product-card.unavailable {
    position: relative;
    cursor: not-allowed;
}
.product-card.unavailable::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 26, 27, 0.7);
    z-index: 2;
    pointer-events: none;
}
.product-card.unavailable::after {
    content: "Indisponível";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    z-index: 15;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}
.product-card.unavailable .product-image {
    filter: grayscale(80%) brightness(0.7);
}
.product-card.unavailable .product-info {
    position: relative;
}

/* Remove TODOS os efeitos de hover do card quando indisponível */
.product-card.unavailable:hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border-color) !important;
}

.product-card.unavailable:hover .product-image img {
    transform: none !important;
}

/* Estilização do botão indisponível */
.product-card.unavailable .add-to-cart-btn {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background: #4b5563 !important;
    color: #d1d5db !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card.unavailable .add-to-cart-btn i {
    font-size: 1.1rem;
    color: #d1d5db !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
}

.product-card.unavailable .add-to-cart-btn:hover {
    background: #4b5563 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove hover do botão quando indisponível */
.product-card.unavailable:hover .add-to-cart-btn {
    transform: none !important;
    box-shadow: none !important;
}

.product-card.unavailable:hover .add-to-cart-btn .fa-ban {
    transform: none !important;
    opacity: 1 !important;
}

.product-card.unavailable .favorite-btn {
    z-index: 20;
}

.product-card.unavailable .favorite-btn.active,
.product-card.unavailable .favorite-btn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    opacity: 1 !important;
    transform: scale(1.12) !important;
}