:root {
    --primary: #e63946;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #333333;
}

/* Carrinho Styles */
.carrinho-section {
    background-color: var(--light);
    padding: 60px 0;
    margin-top: 90px;
}

.carrinho-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-link {
    position: relative;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-link:hover {
    background-color: #d0242f;
}

.cart-link.active {
    background-color: #d0242f;
}

.cart-count {
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Menu Actions */
.menu-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.add-to-cart-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background-color: #d0242f;
    transform: translateY(-2px);
}

/* Carrinho Items */
.carrinho-items {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carrinho-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e1e1e1;
}

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

.carrinho-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.carrinho-item-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

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

.carrinho-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.quantity-display {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background-color: #dc3545;
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: #c82333;
}

/* Carrinho Resumo */
.carrinho-resumo {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.carrinho-resumo h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e1e1;
}

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

.resumo-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    padding-top: 15px;
}

.carrinho-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-continue, .btn-checkout {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-continue {
    background-color: #6c757d;
    color: var(--white);
}

.btn-continue:hover {
    background-color: #5a6268;
}

.btn-checkout {
    background-color: var(--primary);
    color: var(--white);
}

.btn-checkout:hover {
    background-color: #d0242f;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e1e1;
}

.modal-header h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--dark);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--dark);
}

.modal-body {
    padding: 30px;
}



.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit, .btn-confirm-order {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit:hover, .btn-confirm-order:hover {
    background-color: #d0242f;
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-content i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-content h4 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.success-content p {
    color: #666;
    margin-bottom: 20px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-whatsapp, .btn-home {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
}

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

.btn-home {
    background-color: var(--primary);
    color: var(--white);
}

.btn-home:hover {
    background-color: #d0242f;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .carrinho-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carrinho-item {
        flex-direction: column;
        text-align: center;
    }
    
    .carrinho-item-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    

    
    .success-actions {
        flex-direction: column;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
}