/* =====================================================
   POPUP CARRITO - DIF
   Solo estilos del popup. No modifica el diseño general del sitio.
   ===================================================== */

.carro-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carro-popup.is-active {
    display: flex;
}

.carro-popup-open {
    overflow: hidden;
}

.carro-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.carro-popup__box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    animation: carroPopupIn 0.22s ease-out;
}

.carro-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carro-popup__close:hover {
    background: #e5e7eb;
}

.carro-popup__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.carro-popup__title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.carro-popup__product {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.carro-popup__img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: #ffffff;
    flex-shrink: 0;
}

.carro-popup__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #374151;
    font-size: 13px;
    min-width: 0;
}

.carro-popup__info strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.25;
}

.carro-popup__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.carro-popup__btn {
    min-height: 46px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 0 16px;
}

.carro-popup__btn--primary {
    background: #111827;
    color: #ffffff !important;
}

.carro-popup__btn--secondary {
    background: #f3f4f6;
    color: #111827;
}

.carro-popup__btn:hover {
    transform: translateY(-1px);
}

@keyframes carroPopupIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .carro-popup__box {
        padding: 24px 18px;
    }

    .carro-popup__actions {
        grid-template-columns: 1fr;
    }
}
