/* --- REEMPLAZO COMPLETO DEL MODAL VIEJO POR DISEÑO PREMIUM --- */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding-top: 60px;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #e5e5e5;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
}

.close {
    color: #111111;
    float: right;
    font-size: 24px;
    font-weight: 300;
    opacity: 0.6;
    transition: opacity 0.3s;
    cursor: pointer;
}

.close:hover, 
.close:focus {
    color: #000000;
    opacity: 1;
    text-decoration: none;
}

/* --- FORMULARIO DE ENVÍO REFINADO --- */

#shipping-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

#shipping-form label {
    grid-column: span 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111111;
    margin-bottom: 5px;
}

#shipping-form input[type="text"] {
    width: 100%;
    padding: 10px 5px;
    border: none;
    border-bottom: 1px solid #cccccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #111111;
    background: transparent;
    margin-bottom: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    border-radius: 0px;
}

#shipping-form input[type="text"]:focus {
    outline: none;
    border-bottom-color: #111111;
}

/* --- DISEÑO DE LOS PRODUCTOS EN EL CARRITO --- */

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

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fbfbfb;
    border: 1px solid #eee;
    padding: 5px;
}

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

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: #777777;
}

/* --- CONTROLES DE CANTIDAD MINIMALISTAS --- */

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    width: fit-content;
    margin-top: 10px;
}

.quantity-controls button {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    color: #111111;
    transition: background 0.2s;
}

.quantity-controls button:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 35px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #111111;
}

/* --- BOTÓN ELIMINAR MINIMALISTA --- */

.remove-from-cart {
    background: transparent;
    border: none;
    color: #aa3333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 12px;
    padding: 0;
    display: inline-block;
    transition: color 0.2s;
    border-radius: 0px;
}

.remove-from-cart:hover {
    color: #ff0000;
    text-decoration: underline;
    background-color: transparent;
}

/* --- DESGLOSE DE TOTALES --- */

.cart-totals {
    margin: 25px 0;
    text-align: right;
    font-size: 13px;
    color: #555555;
    line-height: 1.8;
}

/* --- BOTONES DE PAGO (MERCADO PAGO Y TRANSFERENCIA) --- */

#checkout-button, 
#pay-transfer, 
#checkout-bank-transfer {
    width: 100%;
    background-color: #111111;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 15px 0;
    cursor: pointer;
    border-radius: 0px;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

#checkout-button:hover {
    background-color: #333333;
    transform: none;
    box-shadow: none;
}

/* Botón de transferencia bancaria con estilo elegante inverso */
#pay-transfer, 
#checkout-bank-transfer {
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #111111;
}

#pay-transfer:hover, 
#checkout-bank-transfer:hover {
    background-color: #111111;
    color: #ffffff;
}

#checkout-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}