/* ============================================
   Cart Timer - Botón flotante esquina superior derecha
   ============================================ */

.cart-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: #000;
    color: #fff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-timer.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Icono botella + contador */
.cart-timer-icon {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-timer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cart-timer-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #000;
    background: #fff;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-sizing: border-box;
}

/* Contador regresivo */
.cart-timer-countdown {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    min-width: 44px;
    text-align: center;
}

/* Flecha → carrito */
.cart-timer-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-timer-arrow:hover {
    background: #d4c9a8;
    transform: translateX(2px);
}

/* ============================================
   Modal de expiración
   ============================================ */

.cart-timer-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-timer-modal.is-open {
    display: flex;
}

.cart-timer-modal-content {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 32px;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.cart-timer-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.cart-timer-modal-content p {
    margin: 0 0 28px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.cart-timer-modal-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-timer-modal-btn:hover {
    background: #d4c9a8;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 600px) {
    .cart-timer {
        top: 12px;
        right: 12px;
        font-size: 13px;
        padding: 5px 12px 5px 5px;
    }
    .cart-timer-icon {
        width: 32px;
        height: 32px;
    }
    .cart-timer-arrow {
        width: 26px;
        height: 26px;
    }
}
