* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo geral do corpo */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Header */
header {
    background-color: rgb(165, 24, 24);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    width: 100%;
    top: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

header .logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
    transform: scale(1.1);
}

nav ul li .nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li .login-btn, nav ul li .cadastro-btn {
    background-color: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
}

nav ul li .login-btn:hover, nav ul li .cadastro-btn:hover {
    background-color: #ffd700;
    color: #a31818;
    transform: translateY(-2px);
}

/* Conteúdo principal */
main {
    padding: 20px;
    margin-top: auto; /* Espaço para compensar o header fixo */
}

h2.section-title {
    text-align: center;
    color: var(--primary-color, #e74c3c);
    font-size: 2rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color, #e74c3c);
    padding-bottom: 10px;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo dos itens do cardápio */
.menu-item {
    background-color: var(--background-dark, #fff);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.menu-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color, #333);
}

.menu-item p {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--secondary-color, #333);
}

.menu-item .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color, #e74c3c);
}

/* Estilo do carrinho */
#cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item {
    background-color: var(--background-dark, #fff);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    gap: 20px; /* Adiciona espaçamento entre elementos do cart-item */
}

.cart-item .item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item .item-info {
    flex-grow: 1;
}

.cart-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color, #333);
}

.cart-item .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color, #e74c3c);
}

.cart-item .quantity-control {
    display: flex !important;
    align-items: center;
    gap: 10px;
    visibility: visible !important;
    opacity: 1 !important;
    margin-right: 20px; /* Adiciona espaçamento à direita do quantity-control */
}

.cart-item .quantity-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color, #e74c3c) !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 30px;
    height: 30px;
    visibility: visible !important;
    opacity: 1 !important;
}

.cart-item .quantity-btn:hover {
    background-color: #d43d1a !important;
    transform: scale(1.05);
}

.cart-item .quantity-input {
    width: 50px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid var(--primary-color, #e74c3c);
    border-radius: 5px;
    padding: 5px;
    visibility: visible !important;
    opacity: 1 !important;
}

.cart-item .delete-btn {
    background-color: #d43d1a !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.cart-item .delete-btn:hover {
    background-color: #b32d15 !important;
    transform: scale(1.05);
}

/* Estilo do botão Adicionar (usado no cardápio) */
.add-to-cart-btn {
    display: inline-block !important;
    background-color: var(--primary-color, #e74c3c) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.add-to-cart-btn:hover {
    background-color: #d43d1a !important;
    transform: scale(1.05);
}

/* Total do carrinho */
#cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color, #e74c3c);
    text-align: center;
    margin-bottom: 20px;
}

/* Botão de limpar carrinho */
#clear-cart-btn {
    background-color: var(--primary-color, #e74c3c) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block !important;
    margin: 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
}

#clear-cart-btn:hover {
    background-color: #d43d1a !important;
    transform: scale(1.05);
}

/* Mensagem de carrinho vazio */
#cart-empty {
    font-size: 1.2rem;
    color: var(--secondary-color, #333);
    text-align: center;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--background-dark, #fff);
    color: var(--secondary-color, #333);
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Estilo do botão Concluir Pagamento */
#checkout-btn {
    background-color: var(--primary-color, #e74c3c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    margin: 10px auto;
    text-align: center;
}

#checkout-btn:hover {
    background-color: #d43d1a;
    transform: scale(1.05);
}

/* Estilo do Modal */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro semi-transparente */
}

/* Conteúdo do Modal */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Botão de Fechar */
.close-btn {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Estilo do QR Code */
#pix-qr-code img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
}

/* Botão Confirmar Pagamento */
#confirm-payment-btn {
    background-color: var(--primary-color, #e74c3c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

#confirm-payment-btn:hover {
    background-color: #d43d1a;
    transform: scale(1.05);
}

footer {
    background-color: #2d1e0f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin: 0.5rem 0;
    font-size: 1rem;
}