/* Estilos gerais */
:root {
    --primary-color: #d32f2f;
    --secondary-color: #388e3c;
    --accent-color: #ffc107;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Header */
header {
    background-color: var(--primary-color) !important;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Seções do cardápio */
.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Cards de produtos */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: var(--box-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-badges {
    margin-bottom: 1rem;
}

.badge {
    margin-right: 5px;
    padding: 5px 10px;
    font-weight: 500;
}

.badge-vegetariano {
    background-color: #4caf50;
}

.badge-vegano {
    background-color: #8bc34a;
}

.badge-sem-lactose {
    background-color: #03a9f4;
}

.badge-gluten {
    background-color: #ff9800;
}

.btn-add-cart {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: #2e7d32;
    border-color: #2e7d32;
    transform: scale(1.05);
}

.btn-add-cart i {
    margin-right: 5px;
}

/* Filtros */
.filter-btn {
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Carrinho */
#cart-btn {
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

#cart-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    margin: 0 5px;
}

.remove-item-btn {
    color: #f44336;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    color: #d32f2f;
}

/* Modal de checkout */
.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

#checkout-form label {
    font-weight: 500;
    margin-bottom: 5px;
}

#send-whatsapp-btn {
    background-color: #25d366;
    border-color: #25d366;
}

#send-whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
    margin-top: 50px;
}

/* Responsividade */
@media (max-width: 768px) {
    .card-img-top {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        margin-bottom: 5px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-section {
    animation: fadeIn 0.5s ease-out;
}

/* Ícones de características */
.food-icon {
    font-size: 0.9rem;
    margin-right: 5px;
}

.vegetariano-icon {
    color: #4caf50;
}

.vegano-icon {
    color: #8bc34a;
}

.sem-lactose-icon {
    color: #03a9f4;
}

.gluten-icon {
    color: #ff9800;
}

/* Placeholder para imagens */
.placeholder-img {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.placeholder-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

/* Notificações */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.toast-header {
    border-bottom: none;
}

.toast-body {
    padding: 15px;
}

/* Botão flutuante do carrinho para mobile */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.floating-cart-btn i {
    font-size: 1.5rem;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .floating-cart-btn {
        display: flex;
    }
    
    #cart-btn {
        display: none;
    }
}

/* Estilos para o controle de quantidade no modal de personalização */
.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0;
    line-height: 1;
}

.quantity-control .form-control {
    max-width: 50px;
    text-align: center;
    font-weight: bold;
    padding: 0.25rem;
    height: auto;
    margin: 0 8px;
}

.total-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Ajustes para o layout interno do modal */
#item-customization-modal .modal-body {
    padding: 1.5rem;
}

#item-customization-modal .item-details {
    margin-bottom: 1.5rem;
}

#item-customization-modal .item-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

#customization-options {
    margin-bottom: 1.5rem;
}

#customization-options .form-check {
    margin-bottom: 0.75rem;
}

#customization-options .form-check-label {
    font-weight: 500;
}
