/* --- ESTILOS DE LA VISTA GENERAL DEL CARRITO --- */

:root {
    --primary-main: #2563eb;
    --primary-main-hover: #1d4ed8;
    --dark-slate: #0f172a;
    --light-slate: #f8fafc;
    --main-border: #e2e8f0;
}

/* Tipografía y Títulos */
.section-title {
    font-size: 18pt;
    font-weight: 700;
    color: var(--dark-slate);
}

.section-subtitle {
    font-size: 14pt;
    font-weight: 700;
    color: var(--dark-slate);
}

/* Tarjetas Principales de Productos */
.cart-main-card {
    background: #ffffff;
    border: 1px solid var(--main-border);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-main-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.main-card-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--main-border);
}

.product-main-title {
    font-size: 13pt;
    font-weight: 600;
    line-height: 1.3;
}

/* Botón de Basurero / Borrar */
.btn-delete-main {
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 13pt;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-delete-main:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Selector de Cantidad en Fila */
.main-quantity-selector {
    max-width: 120px;
    overflow: hidden;
    flex-wrap: nowrap;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--main-border);
}

.btn-main-qty {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 2px 10px;
    font-size: 12pt;
    transition: all 0.2s;
}

.btn-main-qty:hover {
    color: var(--primary-main);
}

.qty-input-main {
    min-width: 0;
    background: transparent !important;
    border: none !important;
    font-weight: 600;
    font-size: 11pt;
    color: var(--dark-slate);
    padding: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input-main::-webkit-outer-spin-button,
.qty-input-main::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.cart-update-spinner {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin: 0 4px;
    border-width: 2px;
    border-radius: 50%;
}

.cart-main-card.is-updating .main-quantity-selector {
    opacity: 0.7;
}

.cart-main-card.is-updating .qty-input-main {
    color: var(--primary-main);
}

.main-card-subtotal {
    font-size: 13pt;
    font-weight: 700;
    color: var(--primary-main);
}

/* --- BLOQUE DE CUPÓN --- */
.coupon-section-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.coupon-box-title {
    font-size: 11pt;
    font-weight: 600;
    color: var(--dark-slate);
}

.btn-apply-coupon {
    background-color: var(--dark-slate);
    color: #ffffff;
    font-weight: 500;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.btn-apply-coupon:hover {
    background-color: #1e293b;
    color: #ffffff;
}

/* --- LATERAL / RESUMEN STICKY --- */
.sticky-sidebar-summary {
    position: sticky;
    top: 24px;
    background: #ffffff;
}

.main-summary-title {
    font-size: 14pt;
    font-weight: 700;
    color: var(--dark-slate);
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .summary-header,
    .summary-line,
    .summary-total {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .summary-header [data-cart-total-lines],
    .summary-line > span:last-child,
    .summary-total [data-cart-total-final] {
        margin-top: 0.35rem;
    }
}

.btn-main-checkout {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 11pt;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.btn-main-checkout:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-main-continue {
    background: transparent;
    color: #475569;
    border: 1px solid var(--main-border);
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-main-continue:hover {
    background: var(--light-slate);
    color: var(--dark-slate);
}

.btn-continue-main {
    background: #ffffff;
    color: #475569;
    border: 1px solid var(--main-border);
    border-radius: 10px;
    font-weight: 500;
    font-size: 10pt;
}

.main-disclaimer {
    font-size: 8pt;
    line-height: 1.4;
    color: #64748b;
}

/* --- BLOQUE RECOMENDACIONES --- */
.recommendation-item-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f1f5f9 !important;
}

.recommendation-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08) !important;
}

.recommendation-img {
    aspect-ratio: 1/1;
    object-fit:contain;
}

.recommendation-item-title {
    font-size: 10pt;
    font-weight: 500;
    display: -webkit-box; 
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.recommendation-item-price {
    font-size: 11pt;
    font-weight: 700;
    color: var(--primary-main);
}

