/* assets/css/cart-style.css */

/* Contenedor Principal */
.cart-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cart-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #232f3e;
    border-bottom: 3px solid #f39c12; /* Color naranja licorera */
    display: inline-block;
    margin-bottom: 30px;
}

/* Tabla Estilizada */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.cart-table thead th {
    background-color: #232f3e;
    color: #ffffff;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cart-table tbody tr {
    background-color: #f8f9fa;
    transition: transform 0.2s;
}

.cart-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cart-table td {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* Inputs y Botones */
.quantity-input-cart {
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 5px;
    width: 60px;
    transition: border-color 0.3s;
}

.quantity-input-cart:focus {
    border-color: #f39c12;
    outline: none;
}

.remove-item-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Total y Checkout */
.cart-total {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: right;
    margin: 20px 0;
    font-weight: bold;
}

.btn-checkout {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Modal Estilo Moderno */
#checkoutModal {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    border-radius: 15px;
    border: none;
    padding: 30px;
}
/* Estilos para el Modal (Ventana Emergente) */
#checkoutModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    display: none; /* OCULTO POR DEFECTO */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
    padding: 20px;
}

#checkoutModal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out; /* Animación de entrada */
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Estilos de los inputs dentro del modal */
.form-label {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Importante para el ancho 100% */
}