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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #1a1a1a;
    color: #d4af37;
    min-height: 100vh;
    background: linear-gradient(135deg, #8B0000 0%, #4A0000 50%, #2D0000 100%);
    background-attachment: fixed;
    max-width: 480px;
    margin: 0 auto;
}

.cardapio-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 15px;
    background: url('background.jpg') center/cover no-repeat fixed;
    position: relative;
}

.cardapio-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 0, 0, 0.85);
    z-index: -1;
}

.cardapio-header {
    text-align: center;
    padding: 25px 15px;
    border: 3px double #d4af37;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.cardapio-header h1 {
    font-size: 2em;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    font-weight: normal;
}

.cardapio-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border: 2px solid #d4af37;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.categoria {
    margin-bottom: 35px;
}

.categoria-titulo {
    font-size: 1.4em;
    color: #d4af37;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.produtos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.produto {
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.produto:last-child {
    border-bottom: none;
}

.produto-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.produto-nome {
    font-size: 0.95em;
    font-weight: bold;
    color: #f5e6c8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.produto-linha {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #d4af37 0px,
        #d4af37 5px,
        transparent 5px,
        transparent 10px
    );
    opacity: 0.5;
}

.produto-preco {
    font-size: 0.95em;
    font-weight: bold;
    color: #d4af37;
    white-space: nowrap;
    margin-left: auto;
}

.produto-descricao {
    color: #c9b88a;
    font-size: 0.8em;
    line-height: 1.6;
    padding-left: 5px;
    font-style: italic;
    margin-bottom: 10px;
}

.produto-add-section {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.quantidade-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
}

.quantidade-selector button {
    background: #d4af37;
    color: #2d0000;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantidade-selector button:hover {
    background: #f4d03f;
}

.quantidade-selector button:active {
    transform: scale(0.95);
}

.quantidade-selector input {
    width: 50px;
    border: none;
    background: transparent;
    color: #d4af37;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px;
}

.btn-adicionar {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #2d0000;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-adicionar:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Carrinho Flutuante */
.carrinho-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
    z-index: 1000;
    transition: all 0.3s ease;
}

.carrinho-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.8);
}

.carrinho-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

/* Modal do Carrinho */
.modal-carrinho {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-carrinho-content {
    background: linear-gradient(135deg, #8B0000 0%, #4A0000 100%);
    margin: 5% auto;
    padding: 0;
    width: 95%;
    max-width: 480px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #d4af37;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-carrinho-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-bottom: 2px solid #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.modal-carrinho-header h2 {
    color: #d4af37;
    margin: 0;
    font-size: 1.3em;
}

.close-carrinho {
    color: #d4af37;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-carrinho:hover {
    color: #f4d03f;
    transform: scale(1.2);
}

.carrinho-itens {
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    min-height: 150px;
}

.carrinho-vazio {
    text-align: center;
    color: #c9b88a;
    font-style: italic;
    padding: 40px 20px;
}

.carrinho-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #d4af37;
}

.carrinho-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-nome {
    color: #f5e6c8;
    font-weight: bold;
}

.carrinho-item-quantidade {
    color: #d4af37;
    font-size: 0.9em;
    margin-top: 3px;
}

.carrinho-item-preco {
    color: #d4af37;
    font-weight: bold;
    margin: 0 10px;
}

.btn-remover {
    background: #ff0000;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
}

.btn-remover:hover {
    background: #cc0000;
}

.carrinho-item-obs {
    color: #c9b88a;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 2px solid #d4af37;
}

.carrinho-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-top: 2px solid #d4af37;
    border-radius: 0 0 15px 15px;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    color: #d4af37;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn-finalizar {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-finalizar:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Modal de Observações */
.modal-observacoes {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-observacoes-content {
    background: linear-gradient(135deg, #8B0000 0%, #4A0000 100%);
    margin: 10% auto;
    padding: 20px;
    width: 95%;
    max-width: 480px;
    border-radius: 15px;
    border: 2px solid #d4af37;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-observacoes-content h3 {
    color: #d4af37;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

#produtoSelecionado {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #f5e6c8;
    border: 1px solid #d4af37;
    font-size: 0.95em;
}

.modal-observacoes-content label {
    color: #d4af37;
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#observacoesText {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #f5e6c8;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    min-height: 80px;
}

#observacoesText:focus {
    outline: none;
    border-color: #f4d03f;
    background: rgba(0, 0, 0, 0.4);
}

.modal-observacoes-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Adicionais */
.adicionais-header {
    margin-top: 20px;
    margin-bottom: 10px;
}

.adicionais-header label {
    color: #d4af37;
    font-weight: bold;
    font-size: 1.1em;
}

.adicionais-list {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 15px;
}

.adicional-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #d4af37;
    border-radius: 5px;
}

.adicional-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.adicional-nome {
    color: #f5e6c8;
    font-weight: bold;
    font-size: 0.85em;
}

.adicional-preco {
    color: #d4af37;
    font-size: 0.8em;
}

.adicional-quantidade {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
    border-radius: 6px;
    overflow: hidden;
}

.adicional-quantidade button {
    background: #d4af37;
    color: #2d0000;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adicional-quantidade button:hover {
    background: #f4d03f;
}

.adicional-quantidade button:active {
    transform: scale(0.95);
}

.adicional-quantidade input {
    width: 40px;
    border: none;
    background: transparent;
    color: #d4af37;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    padding: 5px;
}

.carrinho-item-adicional {
    color: #c9b88a;
    font-size: 0.85em;
    margin-top: 3px;
    padding-left: 10px;
}

.carrinho-item-total-linha {
    color: #d4af37;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.modal-observacoes-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background: #4b5563;
}

.btn-confirm {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #2d0000;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
}

.cardapio-footer {
    text-align: center;
    padding: 20px;
    color: #d4af37;
    font-style: italic;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 25px;
    border: 1px solid #d4af37;
    font-size: 0.85em;
}

/* Responsividade */
@media (max-width: 768px) {
    .cardapio-header h1 {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .cardapio-content {
        padding: 20px;
    }
    
    .categoria-titulo {
        font-size: 1.4em;
    }
    
    .produto-nome {
        font-size: 0.95em;
    }
    
    .produto-preco {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    body {
        max-width: 100%;
    }
    
    .cardapio-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .cardapio-header {
        padding: 20px 10px;
    }
    
    .cardapio-header h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .cardapio-content {
        padding: 15px;
    }
    
    .categoria-titulo {
        font-size: 1.3em;
    }
    
    .produto-header {
        flex-wrap: wrap;
    }
    
    .produto-nome,
    .produto-preco {
        font-size: 0.9em;
    }
    
    .produto-descricao {
        font-size: 0.75em;
    }
    
    .btn-adicionar {
        font-size: 0.8em;
        padding: 8px 12px;
    }
    
    .quantidade-selector button {
        width: 32px;
        height: 32px;
    }
    
    .quantidade-selector input {
        width: 45px;
        font-size: 1em;
    }
}