/* ================================================= */
/* 1. VARIÁVEIS DE TEMA (Padrão: Blue) */
/* ================================================= */

:root {
    --primary-color: #7289DA; 
    --secondary-color: #5865F2; 
    --background-dark: #1e1e2c;
    --background-light: #282a36;
    --text-color: #ffffff;
    --text-muted: #b9bbbe;
    --highlight-red: #ff4757;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --card-hover-bg: rgba(255, 255, 255, 0.05);
    --border-radius: 12px;
    --product-thumb-size: 250px;
}

/* Modo DARK */
[data-theme="dark"] {
    --primary-color: #BB86FC;
    --secondary-color: #3700B3; 
    --background-dark: #121212;
    --background-light: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-hover-bg: rgba(255, 255, 255, 0.05);
}

/* Modo WHITE (Claro) */
[data-theme="white"] {
    --primary-color: #03a9f4;
    --secondary-color: #0288d1;
    --background-dark: #f0f2f5;
    --background-light: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --highlight-red: #d32f2f;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-hover-bg: rgba(0, 0, 0, 0.05);
}

/* ================================================= */
/* 2. BASE, TIPOGRAFIA E PARTÍCULAS */
/* ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

#particles, .particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1000px;
    width: 90%;
    margin: calc(var(--header-offset, 80px) + 20px) auto 40px; 
    padding: 20px 0;
    flex-grow: 1;
}

section {
    margin-bottom: 40px;
}

h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

h3 i {
    margin-right: 10px;
}

/* ================================================= */
/* 3. HEADER E NAVEGAÇÃO */
/* ================================================= */
.header {
    background-color: rgba(30, 30, 44, 0.95); 
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 1px;
    text-decoration: none;
}

.subtitle {
    font-size: 0.8em;
    color: var(--text-muted);
}

.header .badge,
.header .badge-text {
    display: none !important;
}

.badge {
    background-color: var(--highlight-red);
    color: var(--text-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: top;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.menu-btn {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-btn:hover, .menu-btn.active {
    color: var(--primary-color);
    background-color: var(--card-hover-bg);
}

.highlight-btn {
    background-color: var(--highlight-red);
    color: var(--text-color) !important;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
}

.highlight-btn:hover {
    background-color: #e53947;
    box-shadow: 0 6px 12px rgba(255, 71, 87, 0.6);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
}

.theme-switcher {
    display: flex;
    gap: 6px;
}

.theme-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    transform: translateY(-1px);
}

.theme-btn i {
    font-size: 0.9em;
    line-height: 1;
}

/* Swatches (match the screenshot: distinct borders/fills) */
.theme-btn[data-theme="dark"] {
    background: rgba(18, 18, 18, 0.9);
    border-color: rgba(255, 71, 87, 0.9);
    color: rgba(255, 71, 87, 0.95);
}

.theme-btn[data-theme="blue"] {
    background: rgba(114, 137, 218, 0.18);
    border-color: rgba(114, 137, 218, 0.95);
    color: rgba(114, 137, 218, 0.95);
}

.theme-btn[data-theme="white"] {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.95);
    color: rgba(30, 30, 44, 0.95);
}

.theme-btn.is-active {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.10), 0 10px 20px rgba(0,0,0,0.25);
}

/* ================================================= */
/* 4. CARDS E BOTÕES GERAIS */
/* ================================================= */
.card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px var(--shadow-color);
    border: 1px solid rgba(var(--text-color), 0.1);
    transition: transform 0.3s ease, background-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-top: 15px;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(var(--text-color), 0.1);
    color: var(--text-color);
}

.btn-secondary:hover:not(.disabled) {
    background-color: rgba(var(--text-color), 0.2);
}

.btn-donation {
    background-color: var(--highlight-red);
    color: var(--text-color);
    font-size: 1.1em;
    padding: 15px 25px;
    box-shadow: 0 4px 10px rgba(var(--highlight-red), 0.4);
}

.btn-donation:hover {
    background-color: #e53947;
    box-shadow: 0 6px 12px rgba(var(--highlight-red), 0.6);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================= */
/* 5. ANIMAÇÕES GLOW (Brilho e Reflexo) */
/* ================================================= */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(var(--primary-color), 0.5);
    border-color: var(--primary-color);
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s;
}

.glow-on-hover:hover::before {
    transform: translateX(100%);
}

/* ================================================= */
/* 6. MODAL / POPUP */
/* ================================================= */
.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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-light);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-btn {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--highlight-red);
    text-decoration: none;
    cursor: pointer;
}

#modal-details img { 
    width: 100%; 
    max-height: 250px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 15px; 
}
#modal-details h4 { color: var(--primary-color); margin-bottom: 10px; }
#modal-details p { color: var(--text-muted); margin-bottom: 15px; }


/* ================================================= */
/* 7. FOOTER E RESPONSIVIDADE (MOBILE) */
/* ================================================= */

/* ================================================= */
/* 7.5. COOKIE CONSENT BANNER */
/* ================================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;
    padding: 14px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.cookie-banner .cookie-inner {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}

.cookie-banner .cookie-card {
    background: var(--background-light);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 14px 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner .cookie-text {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.35;
}

.cookie-banner .cookie-text strong {
    color: var(--text-color);
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.cookie-banner .cookie-actions .btn {
    width: auto;
    margin-top: 0;
    padding: 10px 16px;
}

.cookie-banner .cookie-actions .btn.btn-secondary {
    background-color: rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .cookie-banner .cookie-card {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner .cookie-actions {
        justify-content: stretch;
    }
    .cookie-banner .cookie-actions .btn {
        width: 100%;
    }
}
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 40px;
    border-top: 1px solid rgba(var(--text-color), 0.05);
}

@media (max-width: 768px) {
    .container {
        margin-top: calc(var(--header-offset, 70px) + 10px);
    }

    .header-content {
        padding: 10px 0;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-dark);
        border-top: 1px solid rgba(var(--text-color), 0.1);
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-btn {
        width: 100%;
        text-align: left;
        padding: 10px 5%;
        border-radius: 0;
    }
    
    .theme-switcher {
        justify-content: center;
        padding: 10px 0;
    }

    /* Modal vira tela cheia no mobile */
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
    }
}
