/* --- Variáveis Globais (Raiz) --- */
:root {
    --primary-color: #F97316; /* Laranja do seu logo */
    --secondary-color: #111827; /* Cinza Escuro (para texto) */
    --light-gray: #f4f4f5;
    --white: #FFFFFF;
    --font-sans: 'Arial', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
}

/* --- Reset Básico e Padrões --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background-color: var(--white);
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Classe de container reutilizável */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Header e Navegação --- */
.header {
    background-color: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px; /* Ajuste a altura do seu logo */
}

.nav-links {
    display: none; /* Oculto no celular (mobile-first) */
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    font-size: 1.5rem;
}

/* --- Menu Hamburger (Mobile) --- */
.hamburger {
    display: flex; /* Visível no celular */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Animação do Hamburger (JS vai adicionar a classe 'open') */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- Seção Hero --- */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* --- Grade de Produtos (CSS GRID) --- */
.product-grid {
    padding: 3rem 0;
}

.product-grid h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no celular */
    gap: 1.5rem;
}

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem 0;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Seção Sobre Nós --- */
.about-us {
    padding: 2rem 0;
    background-color: var(--light-gray);
    text-align: center;
}
.about-us p {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Rodapé (Footer) --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no celular */
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a, .footer-section p {
    color: #d1d5db;
    font-size: 0.9rem;
}
.footer-section a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    font-size: 0.85rem;
}

/* --- Media Queries (Responsividade para Desktop) --- */

@media (min-width: 768px) {
    /* Mostra o menu desktop */
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
    }
    
    /* Esconde o hamburger */
    .hamburger {
        display: none;
    }
    
    /* Ajusta a grade de produtos */
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
    
    /* Ajusta o rodapé */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas no desktop */
    }
}

@media (min-width: 1024px) {
    /* Ajusta a grade de produtos */
    .grid-container {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas em desktops largos */
    }
}

/* Menu Mobile Ativo (controlado pelo JS) */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; /* Altura do header */
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}