/* Carrinho Page Styles */

.cart-section {
    padding: 4rem 0;
    background-color: #ECF0F1;
    min-height: 60vh;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 0;
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #BDC3C7;
    margin-bottom: 2rem;
}

.empty-cart h2 {
    color: #2C3E50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #7F8C8D;
    margin-bottom: 2rem;
}

/* Cart Content */
.cart-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cart-header {
    border-bottom: 2px solid #ECF0F1;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cart-header h2 {
    color: #2C3E50;
    margin: 0;
}

/* Cart Items */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #ECF0F1;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cart-item-price {
    color: #7F8C8D;
    font-weight: 600;
}

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

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

.quantity-btn:hover {
    background-color: #E67E22;
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #2C3E50;
}

.cart-item-total {
    font-weight: 700;
    color: #E74C3C;
    font-size: 1.1rem;
}

.cart-item-remove {
    text-align: center;
}

.remove-btn {
    background-color: #E74C3C;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: #C0392B;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    background-color: #F8F9FA;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    color: #2C3E50;
    font-weight: 600;
}

.summary-value {
    color: #2C3E50;
    font-weight: 600;
}

.total-row {
    border-top: 2px solid #ECF0F1;
    padding-top: 1rem;
    margin-top: 1rem;
}

.total-row .summary-label,
.total-row .summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E74C3C;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cart-actions .btn {
    flex: 1;
    max-width: 250px;
}

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

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

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

.modal-header h2 {
    margin: 0;
    color: #2C3E50;
}

.close {
    color: #BDC3C7;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #E74C3C;
}

.modal-body {
    padding: 2rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F39C12;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2C3E50;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ECF0F1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #F39C12;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ECF0F1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #F39C12;
    background-color: #FEF9E7;
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2C3E50;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: #F39C12;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsividade */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
        justify-self: end;
        margin-top: 0.5rem;
    }
    
    .cart-item-quantity {
        justify-self: start;
        margin-top: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-content {
        padding: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        padding: 1rem 0;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

