:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --primary-color: #f7ca18; /* Amarelo da logo */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --whatsapp: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 110px;
    overflow-y: scroll; 
}

/* ================= HEADER ================= */
.menu-header {
    background-color: #000;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    z-index: 110;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo .yellow { color: var(--primary-color); }
.tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

/* ============ CATEGORIAS ============ */
.categories {
    display: flex;
    overflow-x: auto;
    padding: 12px 15px;
    gap: 10px;
    background-color: var(--bg-color);
    position: fixed; 
    top: 80px; 
    left: 0;
    width: 100%;
    height: 60px; 
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.categories::-webkit-scrollbar { 
    display: none; 
}

.cat-btn {
    padding: 10px 22px;
    border-radius: 25px;
    border: 1px solid #333;
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.cat-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: scale(1.05);
}
@media (hover: hover) {
    .cat-btn:hover:not(.active) {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
}

/* ============ CORPO DO CARDÁPIO (GRID) ============ */
.menu-container {
    padding: 160px 15px 20px 15px; 
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 15px;
}

.category-divider {
    grid-column: 1 / -1; 
    margin: 10px 0 5px 0;
    scroll-margin-top: 150px; 
}
.divider-content { 
    display: flex; 
    align-items: center; 
    gap: 15px;
}

.divider-content h2 {
    font-size: 1.2rem; 
    color: var(--primary-color); 
    font-weight: 700; 
    white-space: nowrap; 
    text-transform: uppercase;
}

.divider-content hr { 
    flex: 1; 
    border: 0; 
    border-top: 1px solid #333; }

/* ============ ITENS DO MENU ============ */
.menu-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: transform 0.2s, box-shadow 0.2s;
}
.menu-item:active { 
    transform: scale(0.98); 
}

@media (hover: hover) {
    .menu-item:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
}

.item-details { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.item-details h3 { 
    font-size: 1.15rem; 
    color: var(--primary-color); 
    margin-bottom: 8px; 
    text-transform: uppercase; 
}

.item-details p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 15px; 
    line-height: 1.5; 
    flex-grow: 1; 
}

.price-actions { 
    display: flex; 
    gap: 10px; 
    margin-top: auto; 
}

.btn-add {
    flex: 1; 
    background: #2a2a2a; 
    color: var(--text-main); 
    border: 1px solid #444; 
    padding: 12px 10px;
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}
.btn-add small { 
    font-size: 0.75rem; 
    font-weight: 400; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    margin-top: 4px; }

.btn-add.combo { 
    border-color: var(--primary-color); 
    background: rgba(247, 202, 24, 0.05); 
}

@media (hover: hover) {
    .btn-add:hover { 
        background: #333; 
    }
    .btn-add.combo:hover {
        background: rgba(247, 202, 24, 0.15);
    }
}

.single-price .item-details { 
    flex-direction: row; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center; 
}

.single-price h3 { 
    width: 100%; 
    margin-bottom: 5px; 
}

.single-price p { 
    width: 100%; 
    margin-bottom: 15px; 
}

.single-price .price { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--text-main); 
}

.btn-add-single {
    background: var(--primary-color); 
    color: #000; 
    border: none; 
    padding: 10px 20px;
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: all 0.2s;
}
@media (hover: hover) { 
    .btn-add-single:hover { 
        background: #e6b800; 
        transform: scale(1.05); 
    } 
}

/* ============ FOOTER ============ */
.cart-footer {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: #111; 
    padding: 15px 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid #333;
    z-index: 1000; 
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
}
.cart-info { 
    display: flex; 
    flex-direction: column; 
}

.cart-info p { 
    font-weight: 700; 
    font-size: 1.25rem; 
    color: var(--primary-color); 
}

.cart-info small { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.btn-order {
    background: var(--whatsapp); 
    color: white; 
    border: none; 
    padding: 14px 24px; 
    border-radius: 10px;
    font-weight: 700; 
    font-size: 1.05rem; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); 
    transition: all 0.2s;
}

@media (hover: hover) { 
    .btn-order:hover { 
        background: #20b858; 
        transform: translateY(-2px); 
    } 
}

/* ============ MODAIS (CHECKOUT & ADICIONAIS) ============ */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    align-items: center; 
    justify-content: center;
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { 
    from { opacity: 0; } to { opacity: 1; } 
}

.modal-content {
    background-color: var(--card-bg); 
    border: 1px solid #333; 
    border-radius: 12px; 
    padding: 25px;
    width: 100%; 
    max-width: 450px; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    /* Se o modal for muito grande no celular, ele dá scroll interno */
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    color: var(--text-muted);
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.2s; 
    z-index: 10;
}
.close-btn:hover { 
    color: var(--primary-color); 
}

.modal-content h2 { 
    color: var(--primary-color); 
    margin-bottom: 5px; 
    font-size: 1.4rem; 
    text-transform: uppercase; 
}

/* Estilos gerais de inputs do checkout */
.modal-content label:not(.addon-item) { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: var(--text-muted); 
}

.modal-content textarea, .modal-content select, .modal-content input:not(.addon-checkbox) {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    background: #111; 
    color: var(--text-main);
    border: 1px solid #333; 
    border-radius: 8px; 
    font-size: 1rem; 
    font-family: 'Lexend', sans-serif;
}
.modal-content textarea:focus, .modal-content select:focus, .modal-content input:focus { 
    outline: none; 
    border-color: var(--primary-color); 
}

/* Botoes de confirmar nos Modais */
.btn-confirm {
    width: 100%; 
    background: var(--whatsapp); 
    color: white; 
    border: none; 
    padding: 15px; 
    border-radius: 8px;
    font-weight: 700; 
    font-size: 1.1rem; 
    cursor: pointer; 
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* ================= CSS EXCLUSIVO: LISTA DE ADICIONAIS RESPONSIVA ================= */
.addons-list {
    display: grid;
    grid-template-columns: 1fr; /* 1 Coluna no Celular */
    gap: 10px;
    margin-bottom: 15px;
    overflow-y: auto; 
    padding-right: 5px;
    /* Estilizando a barra de rolagem para ficar bonita */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #222;
}

.addons-list::-webkit-scrollbar { 
    width: 6px; 
}

.addons-list::-webkit-scrollbar-track { 
    background: #222; 
    border-radius: 10px; 
}

.addons-list::-webkit-scrollbar-thumb { 
    background-color: var(--primary-color); 
    border-radius: 10px; 
}

/* Card de cada Adicional */
.addon-item {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0; /* Remove margens padrão de labels */
}

/* Efeito de selecionar o card */
.addon-item:has(input:checked), .addon-item:active {
    border-color: var(--primary-color);
    background: rgba(247, 202, 24, 0.05);
}

.addon-checkbox {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.addon-details {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.addon-name {
    font-size: 0.95rem;
    color: var(--text-main);
}

.addon-price {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}


/* ================= REGRAS DE RESPONSIVIDADE ================= */
@media (max-width: 380px) {
    .price-actions { 
        flex-direction: column; 
    }

    .btn-add {
        width: 100%; 
        padding: 10px; 
    }

    .cart-footer { 
        padding: 12px 15px; 
    }

    .btn-order { 
        padding: 12px 15px; 
        font-size: 0.95rem; 
    }

    .cart-info p { 
        font-size: 1.1rem; 
    }
}

@media (min-width: 600px) {
    /* No computador ou tablet a lista de adicionais fica com 2 colunas */
    .addons-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .menu-container { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }

    .categories { 
        justify-content: center; 
    }

    .cart-footer { 
        padding: 20px 10%; 
    }

    .cart-info p { 
        font-size: 1.5rem; 
    }
}

@media (min-width: 1024px) {
    .menu-container { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 25px; 
    }

    .cart-footer { 
        padding: 20px 15%; 
    }
}

/* ================= AJUSTE DE FRAMING DE IMAGENS ================= */
.menu-item .item-image {
    width: 100%;             /* Preenche a largura do container */
    height: 200px;           /* Defina uma altura fixa para o frame. Ajuste conforme necessário. */
    object-fit: cover;       /* Preenche o frame sem distorção, mantendo a proporção */
    object-position: center center; /* Posicionamento padrão (centro/centro) */
    border-radius: 12px 12px 0 0; 
}

.menu-item img[alt="Burguer Picanha"]{
    object-position: center 70%;
}

.menu-item img[alt="Burguer Salada"]{
    object-position: center 60%;
}

.menu-item img[alt="Burguer Duplo Especial"]{
    object-position: center 70%;
}

.menu-item img[alt="Burguer Bacon"]{
    object-position: center 60%;
}

.menu-item img[alt="Burguer Doritos"]{
    object-position: center 90%;
}

.menu-item img[alt="Burguer Frango"]{
    object-position: center 45%;
}

/* ================= BARRA DE ROLAGEM CUSTOMIZADA ================= */

/* Suporte para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #333333 var(--bg-color);
}

/* Largura da barra (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
}

/* Fundo da barra (Track) */
::-webkit-scrollbar-track {
    background: var(--bg-color); /* Puxa o fundo preto do site */
}

/* O "puxador" da barra (Thumb) */
::-webkit-scrollbar-thumb {
    background: #333333; /* Cinza escuro elegante */
    border-radius: 10px; /* Deixa as pontas arredondadas */
}

/* O "puxador" quando o mouse passa por cima (Hover) */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color); /* Fica amarelo (da sua logo) no hover */
}