:root {
    --primary-green: #2e7b52;        
    --secondary-green: #4f9d69;    
    --highlight-yellow: #f9c74f;     
    --highlight-yellow-light: #ffd670;
    
    --bg-light: #f5f7f4;             
    --text-dark: #191919;
    --text-light: #5a5a5a;
    --text-price: #e63946;             
    --text-highlight: var(--primary-green);
    
    --card-bg: #98c58c;            
    --footer-bg: #2e7b52;
    --border-color: #e0e0e0;
    
    --link-color: #d4a517;
    --link-hover: #b8860b;
    
    --btn-primary-bg: var(--primary-green);
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #246542;
    
    --btn-secondary-bg: var(--highlight-yellow);
    --btn-secondary-text: #191919;
    --btn-secondary-hover: #e0b43f;
    
    --success: #4f9d69;  
    --warning: #f9c74f;  
    --error: #e63946;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary-green: #4f9d69;       
    --secondary-green: #5ab17a;     
    --highlight-yellow: #ffd670;     
    --highlight-yellow-light: #ffe599;
    
    --bg-light: #1a1a1a;          
    --text-dark: #f0f0f0;
    --text-light: #b0b0b0;
    --text-highlight: var(--highlight-yellow);
    --card-bg: #242424;
    --footer-bg: #1f5d43;
    --border-color: #333333;
    
    --link-color: #ffd670;
    --link-hover: #ffe599;
    
    --btn-primary-bg: var(--primary-green);
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #5ab17a;
    
    --btn-secondary-bg: var(--highlight-yellow);
    --btn-secondary-text: #1a1a1a;
    --btn-secondary-hover: #ffe599;
    
    --success: #5ab17a;   
    --warning: #ffd670;
    --error: #ff6b6b;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    grid-area: header;
    background-color: var(--primary-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100000000;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.devMenuBtn,
.menuBtn,
.carrinho {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.devMenuBtn:hover,
.menuBtn:hover,
.carrinho:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.devMenuBtn i,
.menuBtn i,
.carrinho i {
    color: var(--btn-primary-text);
}

.headerRight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.menuBtn {
    border-radius: 10px;
    position: relative;
}

.carrinho {
    position: relative;
}

.carrinho i {
    font-size: 1.2rem;
}

.numCarrinho {
    width: 20px;
    height: 20px;
    background-color: var(--warning);
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -6px;   
    right: -6px;
    box-shadow: var(--shadow-sm);
}

.numCarrinho p {
    margin: 0;
}

/* ===== DROPDOWNS ===== */
.dropdownMenu,
.devDropdownMenu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    right: 1rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 200;
    min-width: 200px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    animation: slideDown 0.3s ease forwards;
    border: 1px solid var(--border-color);
}

.devDropdownMenu {
    left: 1rem;
    right: auto;
}

.dropdownMenu.show,
.devDropdownMenu.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.userProfile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.userProfile i {
    font-size: 1.5rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.userProfile h1 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdownMenu a,
.dropdownMenu button,
.devLink {
    text-decoration: none;
    color: var(--text-dark);
    border: none;
    background: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdownMenu a:hover,
.dropdownMenu button:hover,
.devLink:hover {
    background-color: var(--bg-light);
    color: var(--primary-green);
}

.dropdownMenu i,
.devLink i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.themeBtn {
    width: 100%;
    margin: 10px 0;
}

/* ===== FOOTER ===== */
footer {
    grid-area: footer;
    background-color: var(--footer-bg);
    color: var(--btn-primary-text);
    padding: 2rem 1rem;
}

.footerContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
    max-width: 1300px;
    margin: 0 auto 1.5rem;
}

.footerBox {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.footerBox h3 {
    font-size: 1rem;
    color: var(--highlight-yellow);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footerBox p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--btn-primary-text);
    margin: 0;
}

.footerBox p i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.footerBox ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
}

.footerBox a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.footerBox a:active {
    color: var(--link-hover);
}

.footerSocial {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footerSocial > a > i {
    margin: 0px auto;
}

.footerSocial a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--btn-primary-text);
    flex-shrink: 0;
    min-height: 40px;
    min-width: 40px;
}

.footerSocial a:active {
    background-color: var(--highlight-yellow);
    color: var(--text-dark);
}

.footerSocial i {
    font-size: 1rem;
}

.pix {
    width: 80%;
    max-width: 200px;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    margin: 0 auto;
}

.footerBottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--btn-primary-text);
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    header {
        padding: 1rem 2rem;
    }

    .logo img {
        width: 60px;
    }

    .devMenuBtn,
    .menuBtn,
    .carrinho {
        width: 48px;
        height: 48px;
    }

    .headerRight {
        gap: 1rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    .footerContainer {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footerBox {
        text-align: center;
    }

    .footerBox h3 {
        font-size: 1.1rem;
    }

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

    .footerBox a {
        font-size: 0.9rem;
        justify-content: center;
    }

    .footerSocial {
        gap: 1.2rem;
    }

    .footerSocial a {
        width: 44px;
        height: 44px;
        min-height: 44px;
        min-width: 44px;
    }

    .pix {
        max-width: 180px;
    }

    .footerBottom {
        font-size: 0.9rem;
    }

    .footerBox a:hover {
        color: var(--link-hover);
    }

    .footerSocial a:hover {
        background-color: var(--highlight-yellow);
        color: var(--text-dark);
    }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    header {
        padding: 1rem 3rem;
    }

    .logo img {
        width: 70px;
    }

    footer {
        padding: 4rem 2rem;
    }

    .footerContainer {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 3rem;
    }

    .footerBox {
        text-align: left;
    }

    .footerBox h3 {
        font-size: 1.2rem;
    }

    .footerBox p,
    .footerBox a {
        font-size: 0.95rem;
    }

    .footerBox a {
        justify-content: flex-start;
    }

    .footerSocial {
        justify-content: flex-start;
    }

    .footerBottom {
        text-align: left;
        font-size: 0.95rem;
    }
}