/* ASYS Product Lightbox 1.0.0 — scoped to single-product pages. */
body.single-product .woocommerce-product-gallery__image a,
body.single-product div.product div.images .woocommerce-product-gallery__image img {
    cursor: zoom-in;
}
body.asys-lb-open { overflow: hidden !important; }
#asys-product-lightbox,
#asys-product-lightbox * { box-sizing: border-box; }
#asys-product-lightbox[hidden] { display: none !important; }
#asys-product-lightbox {
    position: fixed; inset: 0; width: 100vw; height: 100vh;
    height: 100dvh; z-index: 2147483000;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #fff; text-align: initial;
}
#asys-product-lightbox .asys-lb-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 28, .95); }
#asys-product-lightbox .asys-lb-panel { position: absolute; inset: 0; outline: none; }
#asys-product-lightbox .asys-lb-toolbar {
    position: absolute; z-index: 3; top: 0; left: 0; right: 0;
    min-height: 56px; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}
#asys-product-lightbox .asys-lb-tools { display: flex; align-items: center; gap: 6px; }
#asys-product-lightbox .asys-lb-counter { min-width: 46px; font-size: 13px; font-variant-numeric: tabular-nums; color: #e2e8f0; }
#asys-product-lightbox button {
    appearance: none; background: rgba(27, 41, 65, .78); border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px; padding: 0; margin: 0; width: 42px; height: 42px;
    color: #fff; font-size: 23px; font-weight: 400; line-height: 1;
    display: inline-flex; justify-content: center; align-items: center;
    cursor: pointer; touch-action: manipulation;
}
#asys-product-lightbox button:hover { background: rgba(51, 84, 135, .94); }
#asys-product-lightbox button:focus-visible { outline: 3px solid #79bbff; outline-offset: 3px; }
#asys-product-lightbox button:disabled { opacity: .30; cursor: default; }
#asys-product-lightbox .asys-lb-stage {
    position: absolute; inset: 60px 54px 44px;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; cursor: default;
}
#asys-product-lightbox .asys-lb-image {
    display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain; transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center; transition: transform .13s ease;
    user-select: none; -webkit-user-drag: none; touch-action: none;
    cursor: zoom-in; filter: none; border: 0; box-shadow: none; padding: 0; margin: 0;
}
#asys-product-lightbox .asys-lb-stage[data-zoomed="1"] .asys-lb-image { cursor: grab; }
#asys-product-lightbox .asys-lb-stage[data-dragging="1"] .asys-lb-image { cursor: grabbing; transition: none; }
#asys-product-lightbox .asys-lb-arrow {
    position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
    width: 44px; height: 56px; border-radius: 12px;
}
#asys-product-lightbox .asys-lb-prev { left: 10px; }
#asys-product-lightbox .asys-lb-next { right: 10px; }
#asys-product-lightbox .asys-lb-tip {
    position: absolute; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom));
    font-size: 12px; text-align: center; color: #bdc9d8; pointer-events: none;
}
@media (max-width: 600px) {
    #asys-product-lightbox .asys-lb-stage { inset: 64px 8px 76px; }
    #asys-product-lightbox .asys-lb-arrow { top: auto; bottom: 22px; transform: none; width: 46px; height: 42px; }
    #asys-product-lightbox .asys-lb-prev { left: 12px; }
    #asys-product-lightbox .asys-lb-next { right: 12px; }
    #asys-product-lightbox .asys-lb-tip { bottom: max(6px, env(safe-area-inset-bottom)); font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    #asys-product-lightbox .asys-lb-image { transition: none; }
}
#asys-product-lightbox button[hidden] { display: none !important; }
