/* ============================================================
   1. CONFIGURAÇÕES GERAIS, VARIÁVEIS E RESET
============================================================ */
:root {
    --bg: #0a0a0a;
    --orange: #ff9100; /* Laranja da sua marca */
    --red: #e10600;    /* Vermelho para alertas/intro */
    --white: #fff;
    --gray: #9c9c9c;
    --dark-card: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* SEGURANÇA: Impede o site de balançar para os lados */
    background-color: var(--bg);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
}

/* Títulos: Usamos 'Anton' para impacto (Ciclo da Noite) e mantemos Marker para detalhes */
h1, h2, h3, .intro__logo, .step {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

.nav-links a, .side-menu a, .add-btn {
    font-family: 'Permanent Marker', cursive;
}

/* ============================================================
   2. PRELOADER (TELA DE ENTRADA)
============================================================ */
.intro {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.intro__logo {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 4px;
    animation: pulseLogo 1s infinite alternate;
}

@keyframes pulseLogo {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.05); opacity: 1; }
}

/* ============================================================
   3. HEADER (CABEÇALHO)
============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.95);
    border-bottom: 2px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo-top {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--orange);
}

.cart-icon {
    font-size: 1.4rem;
    color: var(--orange);
    position: relative;
    cursor: pointer;
}

.cart-icon span {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--red);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-family: sans-serif;
}

.menu-icon {
    display: none; /* Escondido no PC */
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* ============================================================
   4. MENU LATERAL (MOBILE)
============================================================ */
.side-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 280px; height: 100vh;
    background: #151515;
    z-index: 1000;
    padding: 30px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 15px rgba(0,0,0,0.7);
    display: flex; flex-direction: column;
}

.side-menu.active { left: 0; }

.close-btn {
    align-self: flex-end;
    font-size: 2rem;
    color: var(--orange);
    cursor: pointer;
    margin-bottom: 30px;
}

.side-menu nav a {
    display: block; color: white;
    text-decoration: none; font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* ============================================================
   5. HERO SECTION (BANNER) - PADRÃO PC
============================================================ */
.hero {
    padding: 0;
    background: var(--bg);
    width: 100%;
}

.hero-wrapper {
    position: relative;
    width: 100%; height: 60vh; min-height: 450px;
    overflow: hidden;
}

.hero-img-bg {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    filter: brightness(0.65);
}

/* Texto sobreposto no PC */
.hero-content-overlay {
    position: absolute;
    top: 50%; left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.hero-content-overlay h1 {
    font-size: 4.5rem; line-height: 1;
    text-shadow: 3px 3px 8px black;
    margin-bottom: 15px;
}
.hero-content-overlay .accent { color: var(--orange); }

.hero-content-overlay h2 {
    font-size: 2rem; color: #fff;
    text-shadow: 2px 2px 5px black;
}
.hero-content-overlay .lead {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem; margin-top: 10px; color: #ddd;
}

/* ============================================================
   6. CICLO DA NOITE (NOVO)
============================================================ */
.night-status-section {
    padding: 40px 20px;
    text-align: center;
    background: #0f0f0f;
    border-bottom: 1px solid #222;
}

.night-status-section h2 { font-size: 2rem; margin-bottom: 20px; }

.night-cycle { max-width: 900px; margin: 0 auto; }
.cycle {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}

.step {
    padding: 8px 16px; border-radius: 999px;
    background: #1a1a1a; color: #555;
    font-size: 0.9rem; position: relative;
    transition: 0.3s;
}

.line { width: 30px; height: 2px; background: #333; }

/* Estado Ativo do Ciclo */
.step.active {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #000; font-weight: bold;
    box-shadow: 0 0 20px rgba(255,145,0, 0.4);
}

.step.pulse::after {
    content: ""; position: absolute; inset: -6px;
    border-radius: 999px; border: 2px solid var(--orange);
    animation: pulse 1.6s infinite;
}

@keyframes pulse { from { opacity: 1; } to { opacity: 0; transform: scale(1.4); } }
.cycle-text { color: var(--gray); font-weight: 700; font-size: 1.1rem; }

/* ============================================================
   7. LISTA DE PRODUTOS
============================================================ */
.menu-container {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px; margin: 0 auto;
}

.product-card {
    background: var(--dark-card);
    border: 1px solid #333;
    border-radius: 15px; padding: 15px;
    display: flex; flex-direction: column;
    gap: 15px; transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.product-image img {
    width: 100%; height: 250px;
    object-fit: cover; border-radius: 10px;
}

.product-info h3 {
    font-size: 1.4rem; margin-bottom: 5px; color: #eee;
}
.product-info p {
    font-size: 0.9rem; color: var(--gray); margin-bottom: 10px;
}

.price-action {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: auto;
}

.price {
    font-size: 1.5rem; font-weight: bold;
    color: var(--white); font-family: 'Anton', sans-serif;
}

.add-btn {
    background: var(--orange); color: black;
    border: none; padding: 10px 25px;
    border-radius: 8px; font-size: 1rem;
    font-weight: bold; cursor: pointer;
    transition: background 0.2s;
}

.add-btn:hover { background: #ffaa33; }
.add-btn:disabled { background: #333; color: #777; cursor: not-allowed; }

footer {
    text-align: center; padding: 30px;
    color: var(--gray); font-size: 0.9rem;
    border-top: 1px solid #222; margin-top: 20px;
}

/* ============================================================
   8. RESPONSIVIDADE (CELULAR - ATÉ 768PX)
============================================================ */
@media (max-width: 768px) {
    
    /* Cabeçalho Mobile */
    header { padding: 15px 20px; }
    .desktop-only { display: none !important; }
    .menu-icon { display: block; }
    .logo-top { height: 50px; }

    /* --- HERO MOBILE: Texto Esquerda, Foto Direita (MANTIDO) --- */
    .hero-wrapper { height: 42vh; min-height: 300px; }
    
    .hero-img-bg {
        object-position: 80% center; 
        filter: brightness(0.6);
    }

    .hero-content-overlay {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 60%;
        max-width: none; text-align: left;
    }

    .hero-content-overlay h1 { font-size: 2.2rem; margin-bottom: 5px; }
    .hero-content-overlay h2 { font-size: 1.2rem; }
    .hero-content-overlay .lead { font-size: 0.9rem; display: none; } /* Opcional: Esconder texto longo no mobile */

    /* --- PRODUTOS MOBILE: Lista Horizontal (MANTIDO) --- */
    .menu-container {
        display: flex; flex-direction: column;
        gap: 20px; padding: 20px 15px;
    }

    .product-card {
        flex-direction: row; align-items: center;
        padding: 12px; height: auto;
    }

    .product-image { width: 110px; flex-shrink: 0; }
    .product-image img { height: 110px; width: 100%; }

    .product-info {
        flex-grow: 1; padding-left: 15px;
        display: flex; flex-direction: column;
        justify-content: center;
    }
    
    .product-info p { display: none; } /* Limpa visual no mobile */
    .product-info h3 { font-size: 1.1rem; margin-bottom: 8px; }

    .price-action { width: 100%; }
    .price { font-size: 1.3rem; }
    .add-btn { padding: 8px 15px; font-size: 0.8rem; }
}