/* Shared product lightbox — centered modal, navigation, price + buy row */

.bl-pm-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px;
}

.bl-pm-sheet {
    border-radius: 16px !important;
    max-height: min(92vh, 720px) !important;
    animation: blPmFadeIn 0.22s ease !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes blPmFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.bl-pm-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;
    border: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    padding: 0 !important;
}

.bl-pm-media {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0a0a0a !important;
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(58vh, 480px);
    aspect-ratio: auto !important;
    overflow: hidden;
}

.bl-pm-media img,
.bl-pm-media video {
    width: 100% !important;
    height: 100% !important;
    max-height: min(58vh, 480px) !important;
    object-fit: contain !important;
    display: block;
}

.bl-pm-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.bl-pm-nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.75);
}

.bl-pm-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.bl-pm-prev { left: 10px; }
.bl-pm-next { right: 10px; }

.bl-pm-body {
    flex-shrink: 0;
    text-align: center;
}

.bl-pm-body h2 {
    text-align: center;
}

.bl-pm-body p {
    text-align: center;
}

.bl-pm-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.bl-pm-price {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bl-pm-footer .bl-pm-cta,
.bl-pm-footer a[class*="-modal-cta"] {
    width: auto !important;
    min-width: 140px;
    padding: 0 20px !important;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .bl-pm-modal {
        padding: 8px;
    }

    .bl-pm-sheet {
        width: 100% !important;
        max-width: 100% !important;
    }

    .bl-pm-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .bl-pm-footer {
        flex-direction: column;
        gap: 10px;
    }

    .bl-pm-footer .bl-pm-cta,
    .bl-pm-footer a[class*="-modal-cta"] {
        width: 100% !important;
    }
}
