/* =====================================================
   CARRITO PREMIUM
===================================================== */

body {
    background: #f7f7f7;
}

/* =====================================================
   HEADER
===================================================== */

#carritoCantidadTexto {
    font-size: 0.95rem;
}

/* =====================================================
   CARD GENERAL
===================================================== */

.card {
    border-radius: 20px;
}

/* =====================================================
   ITEMS CARRITO
===================================================== */

.carrito-premium-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
}

.carrito-premium-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =====================================================
   IMAGEN PRODUCTO
===================================================== */

.carrito-premium-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border-radius: 16px;
    overflow: hidden;
}

.carrito-premium-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   INFO PRODUCTO
===================================================== */

.carrito-premium-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.carrito-premium-sku {
    font-size: 0.82rem;
    color: #8c8c8c;
}

.carrito-premium-price {
    font-size: 1rem;
    font-weight: 700;
    color: #198754;
}

.carrito-premium-old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

.carrito-premium-offer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

/* =====================================================
   CONTROLES CANTIDAD
===================================================== */

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    width: fit-content;
    background: #fff;
}

.quantity-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.quantity-btn:hover {
    background: #f3f3f3;
}

.quantity-input {
    width: 55px;
    height: 42px;
    border: none;
    text-align: center;
    font-weight: 600;
    outline: none;
    background: transparent;
}

/* =====================================================
   SUBTOTAL ITEM
===================================================== */

.carrito-premium-subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

/* =====================================================
   BTN ELIMINAR
===================================================== */

.btn-remove-item {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fff;
    transition: all 0.2s ease;
}

.btn-remove-item:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* =====================================================
   RESUMEN STICKY
===================================================== */
.cp-sticky-summary {
    z-index: 1;
}

.card-resumen {
    border-radius: 24px;
    overflow: hidden;
}

.card-resumen .card-body {
    padding: 2rem;
}

/* =====================================================
   TOTAL
===================================================== */

#carritoTotal {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
}

/* =====================================================
   BOTÓN CHECKOUT
===================================================== */

#btnIrCheckout {
    height: 58px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

#btnIrCheckout:hover {
    transform: translateY(-2px);
}

/* =====================================================
   BTN VACIAR
===================================================== */

#btnVaciarCarritoPremium {
    height: 52px;
    border-radius: 16px;
    font-weight: 600;
}

/* =====================================================
   EMPTY STATE
===================================================== */

#carritoPremiumVacio {
    border-radius: 24px;
}

#carritoPremiumVacio .bi-cart-x {
    opacity: 0.7;
}

/* =====================================================
   BENEFICIOS
===================================================== */

.card-resumen .small {
    font-size: 0.85rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .sticky-top {
        position: relative !important;
        top: auto !important;
    }

    #carritoTotal {
        font-size: 1.7rem;
    }

    .card-resumen .card-body {
        padding: 1.5rem;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .carrito-premium-item .card-body {
        padding: 1rem;
    }

    .carrito-premium-title {
        font-size: 0.95rem;
    }

    .carrito-premium-subtotal {
        font-size: 1rem;
    }

    .quantity-btn {
        width: 38px;
        height: 38px;
    }

    .quantity-input {
        width: 45px;
        height: 38px;
        font-size: 0.9rem;
    }

    #btnIrCheckout {
        height: 54px;
    }

    #btnVaciarCarritoPremium {
        height: 48px;
    }
}

/* =====================================================
   MICROINTERACCIONES
===================================================== */

.btn,
.card,
.quantity-btn,
.btn-remove-item {
    transition: all 0.25s ease;
}

/* =====================================================
   SCROLL SUAVE
===================================================== */

html {
    scroll-behavior: smooth;
}