:root {
    --primary-white: #ffffff;
    --bg-light: #f9f9f9;
    --accent-red: #D32F2F;
    --accent-gold: #FBC02D;
    --accent-blue: #0D1B2A;
    --text-main: #1D1D1F;
    --text-light: #86868b;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--primary-white);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Animações Enterprise --- */
@keyframes fadeInData {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.fade-in-up {
    animation: fadeInData 0.8s ease-out forwards;
    opacity: 0;
    /* Começa invisível */
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    /* Efeito vidro Apple */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent-blue);
}

.gold {
    color: var(--accent-gold);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--accent-red);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* --- Hero --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Camada de Fundo Animada */
.hero-bg-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1547584370-2cc98b8b8dc8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1951&q=80') center/cover;
    animation: slowZoom 20s infinite alternate;
    /* Efeito "Breath" */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}

.badge {
    background: var(--accent-gold);
    color: var(--accent-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 10px 0 20px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Buttons --- */
.btn-secondary {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6);
}

.btn-success {
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.btn-success:hover {
    background: #20b857;
}

/* --- Menu Grid --- */
.menu-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-blue);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-red);
}

.add-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.add-btn:hover {
    background: var(--accent-gold);
    color: var(--accent-blue);
    transform: rotate(90deg);
}

/* --- Footer Premium --- */
#footer {
    background: var(--accent-blue);
    color: white;
    padding-top: 60px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.hours-list {
    list-style: none;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Status da Loja */
.store-status {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.status-dot.open {
    background: #25D366;
    animation: pulseGlow 2s infinite;
    box-shadow: 0 0 10px #25D366;
}

.status-dot.closed {
    background: var(--accent-red);
}

#status-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.8rem;
}

/* --- Sidebar Cart --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-items > p{
    color: #000;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.remove-item {
    color: var(--accent-red);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    transition: 0.2s;
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 25px;
    background: var(--bg-light);
    border-top: 1px solid #eee;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

/* --- Modals e Overlay --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: var(--radius);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-hover);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 30px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #fcfcfc;
}

.input-group input:focus {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 27, 42, 0.05);
}

.full-width {
    width: 100%;
    border-radius: 12px;
}

/* Payment */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.payment-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.payment-card:hover,
.payment-card.selected {
    border-color: var(--accent-gold);
    background: rgba(251, 192, 45, 0.08);
    transform: translateY(-2px);
}

.payment-card i {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}


/* --- Botão Fechar Premium (Sidebar e Modais) --- */

/* Estilo Base: Circular e Clean */
.cart-header button,
.modal-header button {
    background: transparent;
    /* Começa invisível */
    border: 1px solid transparent;
    /* Reserva espaço para borda futura se quiser */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Totalmente redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Curva de animação suave */
    color: var(--text-light);
    /* Cor discreta inicial (cinza) */
}

/* Tamanho do Ícone */
.cart-header button i,
.modal-header button i {
    font-size: 1.2rem;
    transition: color 0.3s;
}

/* Hover Effect: O segredo da UX */
.cart-header button:hover,
.modal-header button:hover {
    background-color: rgba(211, 47, 47, 0.08);
    /* Fundo vermelho MUITO suave */
    color: var(--accent-red);
    /* Ícone fica vermelho vibrante */
    transform: rotate(90deg) scale(1.1);
    /* Gira 90 graus e aumenta levemente */
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15);
    /* Sombra suave colorida */
}

/* Clique (Active): Feedback tátil */
.cart-header button:active,
.modal-header button:active {
    transform: scale(0.95) rotate(90deg);
    /* Encolhe levemente ao clicar */
}


.category-block {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 5px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title i {
    color: var(--accent-red);
    font-size: 1.5rem;
}



/* =================================================================
   ULTIMATE ELITE COSMIC PERFORMANCE ECOSYSTEM - V2.0 (GOD MODE)
   ================================================================= */

/* --- VARIÁVEIS DO SISTEMA (Ajuste fino da Matrix) --- */
:root {
    --color-gold-start: #FFD700;
    --color-gold-mid: #FF8C00;
    --color-gold-end: #FF4500;
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Salto elástico */
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    /* Fluidez absoluta */
}

/* 1. O BADGE: Tecnologia Holográfica */
.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    /* Vidro fosco */
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);

    /* Animação de Entrada 3D */
    opacity: 0;
    transform: perspective(1000px) rotateX(90deg) translateY(-20px);
    animation: hologramFlip 1s var(--ease-smooth) forwards;
    will-change: transform, opacity;
}

/* 2. O TÍTULO: Ouro Líquido em Movimento Perpétuo */
h1 {
    font-size: 4rem;
    /* Tamanho Elite */
    line-height: 1.05;
    margin: 24px 0;
    font-weight: 900;

    /* O Segredo: Gradiente que se mexe DENTRO do texto */
    background: linear-gradient(-45deg,
            #ffffff 0%,
            var(--color-gold-start) 25%,
            var(--color-gold-mid) 50%,
            var(--color-gold-end) 75%,
            #ffffff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Animações combinadas */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(10px);
    animation:
        cinematicFocus 1s var(--ease-smooth) 0.2s forwards,
        /* Entrada */
        liquidShine 4s linear infinite;
    /* Brilho eterno */

    will-change: background-position, transform, opacity, filter;
}

/* 3. O PARÁGRAFO: Renderização Suave */
p {
    color: rgba(255, 255, 255, 0.85);
    /* Branco suave */
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    /* Entrada Cascata */
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    animation: cinematicFocus 1s var(--ease-smooth) 0.4s forwards;
}

/* 4. O BOTÃO: Reator Nuclear Compacto */
.btn-primary {
    position: relative;
    padding: 18px 50px;
    background: transparent;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: visible;
    /* Necessário para o brilho externo */
    z-index: 1;
    transition: all 0.4s var(--ease-elastic);

    /* Entrada Explosiva */
    opacity: 0;
    transform: scale(0.5);
    animation: atomicPop 0.8s var(--ease-elastic) 0.6s forwards;
}

/* O Fundo Gradiente do Botão (camada separada para performance) */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    border-radius: 12px;
    z-index: -1;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.4);
}

/* Efeito de Onda de Choque (Pulse) Infinito */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    border: 2px solid #FF8C00;
    z-index: -2;
    animation: pulseWave 2s infinite;
}

/* Interação Mouse Hover (Acelerador de Partículas) */
.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    letter-spacing: 3px;
    /* Texto expande */
}

.btn-primary:hover::before {
    box-shadow:
        0 20px 50px rgba(255, 69, 0, 0.6),
        0 0 0 2px #ffffff inset;
    /* Borda interna branca brilhante */
    transform: scale(1.05);
    /* Fundo cresce mais que o texto */
}

/* =========================================
   KEYFRAMES (A Motorização do Caos Controlado)
   ========================================= */

/* Entrada do Badge girando no eixo X */
@keyframes hologramFlip {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(90deg) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) translateY(0);
    }
}

/* Entrada estilo Cinema (Blur + Slide + Fade) */
@keyframes cinematicFocus {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* O fluxo eterno do ouro no texto */
@keyframes liquidShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Entrada "Pop" elástico do botão */
@keyframes atomicPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ondas de choque saindo do botão */
@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}