body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0; /* REMOVER ESTE PADDING E ADICIONAR NO CONTAINER OU BODY PARA ACOMODAR O FOOTER */
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 80px; /* Adicione um padding na parte inferior do body para o footer fixo */
                          /* Ajuste este valor se o seu footer tiver uma altura diferente */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Se o footer for fixo e fora do container, não precisa de padding-bottom aqui,
       mas se você usar position: sticky e ele estiver dentro, precisaria.
       Por enquanto, o padding-bottom no body é mais adequado. */
}

.header {
    position: relative;
    padding-bottom: 20px;
}

.header-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust as needed */
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 95%; /* Ajustado para 95% para considerar o padding do container se houver, ou margem */
                /* Melhor: width: 100%; padding: 15px; box-sizing: border-box; */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Adicionado para que o padding não adicione largura */
}

.back-button, .cart-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    margin-top: -30px; /* Overlap with image */
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.store-details {
    display: flex;
    align-items: center;
}

.store-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.store-info h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.store-type {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.store-rating {
    display: flex;
    align-items: center;
    background-color: #ffe08a;
    padding: 5px 10px;
    border-radius: 5px;
    color: #8b572a;
    font-weight: bold;
}

.store-rating i {
    margin-right: 5px;
    color: #8b572a;
}

.store-status {
    display: flex;
    align-items: center;
    padding: 0 15px 0px;
    color: #4CAF50; /* Green for "Aberto" */
    font-weight: bold;
    font-size: 14px;
}

.store-status i {
    margin-right: 5px;
}

.navigation {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* Prevent wrapping of buttons */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.navigation::-webkit-scrollbar {
    display: none; /* Hide scrollbar for a cleaner look */
}

.nav-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.nav-button.active {
    background-color: #FFC72C; /* McDonald's yellow */
    border-color: #FFC72C;
    color: #fff;
    font-weight: bold;
}

.menu-items {
    padding: 15px;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-details {
    flex-grow: 1;
    margin-right: 15px;
}

.item-details h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.item-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive adjustments for smaller screens if needed, though this is mobile-first */
@media (max-width: 400px) {
    .store-info h1 {
        font-size: 20px;
    }
    .store-logo {
        width: 50px;
        height: 50px;
    }
    .item-image {
        width: 80px;
        height: 80px;
    }
}

/* Estilos para o rodapé da sacola - ATUALIZADO */
.cart-summary-footer {
    position: fixed; /* Mantenha fixed para que ele fique sempre visível */
    bottom: 0;
    left: 50%; /* Move para o centro da tela */
    transform: translateX(-50%); /* Ajusta a posição para centralizar perfeitamente */
    width: 100%; /* Isso faz ele se esticar 100% da viewport */
    max-width: 600px; /* Limita a largura do footer para alinhar com o container */
    background-color: #f7f7f7;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    box-sizing: border-box; /* Garante que padding não adicione largura extra */
    border-top-left-radius: 15px; /* Bordas arredondadas no topo */
    border-top-right-radius: 15px; /* Bordas arredondadas no topo */
}

.total-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #555;
}

.total-label {
    font-weight: bold;
    margin-bottom: 2px;
}

.total-value-items {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.view-cart-button {
    background-color: #FFC72C; /* Cor amarela do McDonald's */
    color: #fff;
    border: none;
    border-radius: 25px; /* Mais arredondado */
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.view-cart-button:hover {
    background-color: #e0b000; /* Um tom mais escuro de amarelo ao passar o mouse */
}


/* Media Query para o footer em telas menores que 600px (para preencher a tela) */
@media (max-width: 600px) {
    .cart-summary-footer {
        left: 0;
        transform: translateX(0);
        max-width: 100%; /* Garante que ele preencha a largura total em telas pequenas */
        border-radius: 0; /* Remove as bordas arredondadas em tela cheia */
    }
}