/* Viewer photo face/dos pour shop BeSwole */
.piv {
    position: relative;
    width: 100%;
    border: 1px solid var(--gray-outline, #ddd);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
.piv-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 14px, transparent 14px 28px);
}
.piv-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
    user-select: none;
}
.piv-img.is-active {
    opacity: 1;
    pointer-events: auto;
}
.piv-toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #3B060A;
    background: #fff;
    color: #3B060A;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: background 150ms, transform 150ms;
    z-index: 2;
}
.piv-toggle:hover { background: #3B060A; color: #fff; }
.piv-toggle:active { transform: scale(0.94); }
.piv-toggle:focus-visible { outline: 2px solid #3B060A; outline-offset: 2px; }
.piv-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.piv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(59, 6, 10, 0.25);
    transition: background 150ms, transform 150ms;
}
.piv-dot.is-active {
    background: #3B060A;
    transform: scale(1.25);
}
.piv-card .piv-stage {
    aspect-ratio: 4 / 5;
}
.piv-card .piv-img-front {
    transition: transform 250ms ease, opacity 200ms ease;
}
.piv-card:hover .piv-img-front {
    transform: scale(1.03);
}

/* Placeholder si aucune image */
.piv-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .piv-toggle { width: 40px; height: 40px; bottom: 12px; right: 12px; }
}

/* Curseur zoom sur la stage en mode full */
.piv:not(.piv-card) .piv-stage {
    cursor: zoom-in;
}

/* Mode full mockup : pas de bordure, fond transparent pour laisser passer le podium */
.piv-fullbleed {
    border: 0;
    background: transparent;
}
.piv-fullbleed .piv-stage {
    background: transparent;
    aspect-ratio: 3 / 4;
    overflow: visible;
}
.piv-fullbleed .piv-img {
    object-fit: contain;
    z-index: 2;
}
.piv-podium {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: min(72%, 380px);
    height: 56px;
    background: radial-gradient(ellipse at center, #5a0a10 0%, #3B060A 60%, #2a0306 100%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 18px 40px rgba(59, 6, 10, 0.18);
    pointer-events: none;
}
.piv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-outline, #ddd);
    background: #fff;
    color: #3B060A;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: background 150ms, transform 150ms, border-color 150ms;
    z-index: 3;
}
.piv-arrow:hover { background: #3B060A; color: #fff; border-color: #3B060A; }
.piv-arrow:active { transform: translateY(-50%) scale(0.94); }
.piv-arrow:focus-visible { outline: 2px solid #3B060A; outline-offset: 2px; }
.piv-arrow-prev { left: 8px; }
.piv-arrow-next { right: 8px; }
.piv-swipe-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.piv-swipe-hint svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
    .piv-arrow { width: 44px; height: 44px; font-size: 18px; }
    .piv-arrow-prev { left: 0; }
    .piv-arrow-next { right: 0; }
    .piv-podium { height: 38px; bottom: 2%; }
}

/* Modale zoom plein ecran */
.piv-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 14, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 200ms ease;
}
.piv-modal.is-open {
    opacity: 1;
}
.piv-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    touch-action: pinch-zoom;
    user-select: none;
}
.piv-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms;
    z-index: 2;
}
.piv-modal-close:hover { background: rgba(255, 255, 255, 0.25); }
.piv-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
    .piv-modal { padding: 12px; }
    .piv-modal-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}
