:root {
    --primary-green: #2e7b52;        
    --secondary-green: #4f9d69;    
    --highlight-yellow: #fff876;     
    --highlight-yellow-dark: #f9c74f;
    
    --bg-light: #e4e6e3;             
    --text-dark: #191919;
    --text-light: #404040;
    --text-price: #f11764;             
    --text-highlight: var(--primary-green);
    
    --card-bg: #98c58c;              
    --footer-bg: #469e6f;
    --border-color: #d2d6d2;
    
    --link-color: #e9dc2d;
    --link-hover: #cec327;
    
    --btn-primary-bg: var(--primary-green);
    --btn-primary-text: #fff;
    --btn-primary-hover: #5aa461;
    
    --btn-secondary-bg: var(--highlight-yellow);
    --btn-secondary-text: #2e2e2e;
    --btn-secondary-hover: var(--highlight-yellow-dark);
    
    --success: #90be6d;  
    --warning: #f9c74f;  
    --error: #f28482;
}

[data-theme="dark"] {
    --primary-green: #2e7b52;       
    --secondary-green: #4f9d69;     
    --highlight-yellow: #ffd670;     
    --highlight-yellow-dark: #f9c74f;
    
    --bg-light: #1c1c1c;          
    --text-dark: #ededed;
    --text-light: #c0c0c0;
    --text-highlight: var(--highlight-yellow);
    --card-bg: #262626;
    --footer-bg: rgb(59, 134, 82);
    --border-color: #3a3a3a;
    
    --link-color: #ffd670;
    --link-hover: #f9c74f;
    
    --btn-primary-bg: var(--primary-green);
    --btn-primary-text: #fff;
    --btn-primary-hover: #336a42;
    
    --btn-secondary-bg: var(--highlight-yellow);
    --btn-secondary-text: #1c1c1c;
    --btn-secondary-hover: var(--highlight-yellow-dark);
    
    --success: #4f9d69;   
    --warning: #ffd670;
    --error: #f28b82;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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;
}

main {
    display: grid;
    grid-template-areas:
        "header"
        "textoHomePage"
        "bannerQueima"
        "navProdutos"
        "cardsDest"
        "footer";
    grid-template-rows: auto auto auto auto 1fr auto;
    min-height: 100vh;
}

/* ===== NAV PRODUTOS ===== */
.navProdutos {
    grid-area: navProdutos;
    background-color: var(--card-bg);
    padding: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navProdutos nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0.2rem 0;
}

/* Esconde scrollbar no Chrome/Safari/Edge */
.navProdutos nav::-webkit-scrollbar {
    display: none;
}

.navProdutos a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
}

.navProdutos a i {
    font-size: 1.1rem;
    color: var(--primary-green);
    transition: all 0.2s ease;
}

.navProdutos a span {
    line-height: 1;
}

.navProdutos a:active {
    background-color: var(--primary-green);
    color: #fff;
    transform: scale(0.95);
    border-color: var(--primary-green);
}

.navProdutos a:active i {
    color: var(--highlight-yellow);
    transform: scale(1.1);
}

/* ===== DROPDOWNS ===== */
.dropdownMenu,
.devDropdownMenu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 0.8rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    padding: 0.8rem;
    z-index: 200;
    min-width: 160px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    animation: slideDown 0.3s ease forwards;
}

.devDropdownMenu {
    left: 0.8rem;
    right: auto;
}

.dropdownMenu.show,
.devDropdownMenu.show {
    display: flex;
    top: 80px;
}
.dropdownMenu.show{
    right: 20px;
}
.devDropdownMenu.show{
    left: 77px;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.userProfile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    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.85rem;
    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.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdownMenu a:hover,
.dropdownMenu button:hover,
.devLink:hover {
    background-color: rgba(255, 248, 118, 0.3);
    color: var(--highlight-yellow-dark);
    transform: translateX(3px);
}

.dropdownMenu i,
.devLink i {
    font-size: 1rem;
    flex-shrink: 0;
}

.themeBtn {
    width: 100%;
    margin: 8px 0;
}

/* ===== HERO SECTION ===== */
.textoHomePage {
    grid-area: textoHomePage;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(152, 197, 140, 0.85) 100%);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    gap: 1rem;
}

.textoHomePage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 248, 118, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.logoTopo {
    width: 90px;
    height: auto;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.textoHomePage p {
    font-size: 1.3rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== BANNER QUEIMA DE ESTOQUE ===== */
.bannerQueima {
    grid-area: bannerQueima;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 50%, #ff4757 100%);
    padding: 1.2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

[data-theme="dark"] .bannerQueima {
    background: linear-gradient(135deg, #d63447 0%, #ff5252 50%, #d63447 100%);
    box-shadow: 0 4px 15px rgba(214, 52, 71, 0.4);
}

/* Efeito de brilho animado */
.bannerQueima::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.bannerQueima .conteudoBanner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bannerQueima .iconeQueima {
    font-size: 2rem;
    color: #fff876;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.bannerQueima .textoQueima {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.bannerQueima h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.bannerQueima p {
    font-size: 1rem;
    color: #fff876;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .bannerQueima p {
    color: #ffd670;
}

.bannerQueima .destaque {
    background-color: #ffffff;
    color: #ff4757;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: bounce 2s ease-in-out infinite;
}

[data-theme="dark"] .bannerQueima .destaque {
    background-color: #ffd670;
    color: #d63447;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== PRODUCTS SECTION ===== */
.cardsDest {
    grid-area: cardsDest;
    padding: 1.5rem 0.8rem;
    background-color: var(--bg-light);
}

.cardsDest h1 {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Seções de Produtos */
.secaoProdutos {
    max-width: 1300px;
    margin: 0 auto 3rem;
}

.secaoProdutos:last-child {
    margin-bottom: 0;
}

.tituloSecao {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tituloSecao i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.produtosDest {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.cardProd {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cardProd:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.imagemProd {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(46, 123, 82, 0.1) 0%, rgba(79, 157, 105, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagemProd img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cardProd:active .imagemProd img {
    transform: scale(1.05);
}

.infoProd {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
    background-color: var(--card-bg);
    border-radius: 15px;
}

.infoProd h2 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preco {
    font-size: 1.3rem;
    color: var(--text-price);
    font-weight: 700;
    margin: 0;
}

.btComprar {
    background: linear-gradient(135deg, var(--btn-secondary-bg) 0%, var(--highlight-yellow-dark) 100%);
    color: var(--btn-secondary-text);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
    min-height: 36px;
}
.btComprar-esgotado{
    background-color: #9e9e9e;
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
    min-height: 36px;
    pointer-events: none;
}

.btComprar:active{
    background: linear-gradient(135deg, var(--highlight-yellow-dark) 0%, var(--btn-secondary-bg) 100%);
    transform: scale(0.98);
}

.btComprar-esgotado:active{
    background: linear-gradient(135deg, var(--error) 0%, var(--btn-secondary-bg) 100%);
    transform: scale(0.98);
}

.btComprar i {
    font-size: 0.8rem;
}

.noProdutos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== FOOTER ===== */


/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    header {
        padding: 0.8rem 1.5rem;
        gap: 1.2rem;
    }

    .logo img {
        width: 70px;
    }

    .devMenuBtn,
    .menuBtn,
    .carrinho {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .headerRight {
        gap: 0.8rem;
    }

    .dropdownMenu,
    .devDropdownMenu {
        right: -20px;
        top: 60px;
        min-width: 180px;
        max-height: calc(100vh - 80px);
    }

    .devDropdownMenu {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .navProdutos {
        padding: 1.2rem 1.5rem;
    }

    .navProdutos nav {
        gap: 0.8rem;
        justify-content: center;
    }

    .navProdutos a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .navProdutos a:hover {
        background-color: var(--primary-green);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(46, 123, 82, 0.3);
    }

    .navProdutos a:hover i {
        color: var(--highlight-yellow);
    }

    .textoHomePage {
        padding: 2.5rem 1.5rem;
        min-height: 240px;
        gap: 1.2rem;
    }

    .logoTopo {
        width: 110px;
    }

    .textoHomePage p {
        font-size: 1.5rem;
    }

    /* Banner Queima - Tablet */
    .bannerQueima {
        padding: 1.5rem 1.5rem;
    }

    .bannerQueima .conteudoBanner {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .bannerQueima .iconeQueima {
        font-size: 2.5rem;
    }

    .bannerQueima h2 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .bannerQueima p {
        font-size: 1.1rem;
    }

    .bannerQueima .destaque {
        padding: 0.4rem 1rem;
    }

    .cardsDest {
        padding: 2.5rem 1rem;
    }

    .cardsDest h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .tituloSecao {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .tituloSecao i {
        font-size: 1.4rem;
    }

    .produtosDest {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .infoProd {
        padding: 1.2rem;
        gap: 0.6rem;
    }

    .infoProd h2 {
        font-size: 1.1rem;
    }

    .preco {
        font-size: 1.5rem;
    }

    .btComprar {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .cardProd:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    }

    .cardProd:hover .imagemProd img {
        transform: scale(1.08);
    }

    .logo:hover img {
        transform: scale(1.08) translateY(-3px);
    }

    .devMenuBtn:hover,
    .menuBtn:hover,
    .carrinho:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

    .dropdownMenu a:hover,
    .dropdownMenu button:hover,
    .devLink:hover {
        background-color: rgba(255, 248, 118, 0.3);
        color: var(--highlight-yellow-dark);
        transform: translateX(3px);
    }

    .btComprar:hover {
        background: linear-gradient(135deg, var(--highlight-yellow-dark) 0%, var(--btn-secondary-bg) 100%);
        transform: translateX(5px);
        box-shadow: 0 6px 16px rgba(249, 199, 79, 0.35);
    }

    .btComprar:hover i {
        transform: translateX(3px);
    }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    header {
        padding: 0.8rem 2rem;
        gap: 1.5rem;
    }

    .logo img {
        width: 90px;
    }

    .headerRight {
        gap: 1.2rem;
    }

    .navProdutos {
        padding: 1.5rem 2rem;
    }

    .navProdutos a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .navProdutos a i {
        font-size: 1.1rem;
    }

    .textoHomePage {
        padding: 3.5rem 2rem;
        min-height: 280px;
    }

    .textoHomePage p {
        font-size: 1.9rem;
    }

    /* Banner Queima - Desktop */
    .bannerQueima {
        padding: 2rem 2rem;
    }

    .bannerQueima .iconeQueima {
        font-size: 3rem;
    }

    .bannerQueima h2 {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .bannerQueima p {
        font-size: 1.3rem;
    }

    .bannerQueima .destaque {
        padding: 0.5rem 1.2rem;
        font-size: 1.1rem;
    }

    .bannerQueima:hover::before {
        animation: shine 1.5s infinite;
    }

    .cardsDest {
        padding: 3.5rem 2rem;
    }

    .cardsDest h1 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .tituloSecao {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .tituloSecao i {
        font-size: 1.6rem;
    }

    .produtosDest {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 2rem;
    }

    .infoProd {
        padding: 1.5rem;
        gap: 0.8rem;
    }

    .infoProd h2 {
        font-size: 1.3rem;
    }

    .preco {
        font-size: 1.8rem;
    }

    .btComprar {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}