/* Mystic Ratna — product photo slider (product pages) */
.product__gallery.pgallery{ display:block; }
.pgallery__stage{ position:relative; border-radius:var(--radius); overflow:hidden; background:var(--ivory); border:1px solid var(--line); }
.pgallery__track{ display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; overscroll-behavior-x:contain; outline:none; }
.pgallery__track::-webkit-scrollbar{ display:none; }
.pgallery__track:focus-visible{ box-shadow:inset 0 0 0 3px var(--gold-ink); }
.pgallery__slide{ flex:0 0 100%; margin:0; aspect-ratio:1/1; scroll-snap-align:center; scroll-snap-stop:always; }
.pgallery__slide img{ display:block; width:100%; height:100%; object-fit:cover; }
.pgallery__arrow{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.92); border:1px solid var(--line); color:var(--navy); box-shadow:0 6px 18px rgba(17,27,47,.12); transition:opacity .2s, background .2s; z-index:2; }
.pgallery__arrow:hover{ background:#fff; }
.pgallery__arrow[disabled]{ opacity:0; pointer-events:none; }
.pgallery__arrow svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pgallery__arrow--prev{ left:12px; }
.pgallery__arrow--next{ right:12px; }
.pgallery__counter{ position:absolute; right:12px; bottom:12px; margin:0; padding:4px 10px; border-radius:999px; background:rgba(17,27,47,.72); color:#fff; font-size:.75rem; letter-spacing:.06em; z-index:2; }
.pgallery__thumbs{ display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin; }
.pgallery__thumbs button{ flex:0 0 72px; height:72px; padding:0; border:1.5px solid var(--line); border-radius:10px; overflow:hidden; background:var(--ivory); cursor:pointer; opacity:.7; transition:opacity .2s, border-color .2s; }
.pgallery__thumbs button:hover{ opacity:1; }
.pgallery__thumbs button[aria-current="true"]{ border-color:var(--gold-ink); opacity:1; }
.pgallery__thumbs img{ width:100%; height:100%; object-fit:cover; }
@media (hover:none){ .pgallery__arrow{ width:38px; height:38px; } }
@media (prefers-reduced-motion:reduce){ .pgallery__track{ scroll-behavior:auto; } }

/* Open-in-zoom button over each slide */
.pgallery__open{ display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.pgallery__open:focus-visible{ outline:3px solid var(--gold-ink); outline-offset:-3px; }
.pgallery__zoom-hint{ position:absolute; left:12px; bottom:12px; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.9); border:1px solid var(--line); pointer-events:none; z-index:2; }
.pgallery__zoom-hint svg{ width:18px; height:18px; fill:none; stroke:var(--navy); stroke-width:2; stroke-linecap:round; }

/* Zoom popup */
.plightbox{ width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:rgba(10,15,28,.94); color:#fff; overflow:hidden; }
.plightbox::backdrop{ background:rgba(10,15,28,.6); }
.plightbox[open]{ display:block; animation:plightboxIn .2s ease both; }
@keyframes plightboxIn{ from{ opacity:0; } to{ opacity:1; } }
.plightbox__stage{ position:absolute; inset:56px 64px 64px; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; }
.plightbox__stage img{ max-width:100%; max-height:100%; object-fit:contain; cursor:zoom-in; user-select:none; -webkit-user-select:none; transition:transform .25s ease; transform-origin:50% 50%; will-change:transform; }
.plightbox--zoomed .plightbox__stage img{ cursor:grab; transition:none; }
.plightbox--zoomed .plightbox__stage img:active{ cursor:grabbing; }
.plightbox__btn{ position:absolute; width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff; cursor:pointer; z-index:2; transition:background .2s; }
.plightbox__btn:hover{ background:rgba(255,255,255,.24); }
.plightbox__btn:focus-visible{ outline:2px solid var(--gold, #c6a15b); outline-offset:2px; }
.plightbox__btn svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.plightbox__close{ top:12px; right:12px; }
.plightbox__prev{ left:12px; top:50%; transform:translateY(-50%); }
.plightbox__next{ right:12px; top:50%; transform:translateY(-50%); }
.plightbox__bar{ position:absolute; left:0; right:0; bottom:16px; margin:0; display:flex; justify-content:center; gap:18px; font-size:.82rem; letter-spacing:.04em; color:rgba(255,255,255,.8); }
.plightbox__bar span:empty{ display:none; }
@media (max-width:600px){
  .plightbox__stage{ inset:60px 0 56px; }
  .plightbox__prev,.plightbox__next{ top:auto; bottom:6px; transform:none; width:42px; height:42px; }
  .plightbox__bar{ bottom:18px; }
}
@media (prefers-reduced-motion:reduce){ .plightbox[open]{ animation:none; } .plightbox__stage img{ transition:none; } }

/* Compact slider inside cards (offer link page) */
.pgallery--compact .pgallery__stage{ border:0; border-radius:0; }
.pgallery--compact .pgallery__arrow{ width:32px; height:32px; opacity:0; transition:opacity .2s; }
.pgallery--compact .pgallery__arrow svg{ width:16px; height:16px; }
.pgallery--compact .pgallery__arrow--prev{ left:8px; }
.pgallery--compact .pgallery__arrow--next{ right:8px; }
.pgallery--compact:hover .pgallery__arrow:not([disabled]),
.pgallery--compact .pgallery__arrow:focus-visible:not([disabled]){ opacity:1; }
@media (hover:none){ .pgallery--compact .pgallery__arrow:not([disabled]){ opacity:.9; } }
.pgallery--compact .pgallery__counter{ right:8px; bottom:8px; font-size:.68rem; padding:2px 8px; }
.pgallery--compact .pgallery__zoom-hint{ left:8px; bottom:8px; width:28px; height:28px; }
.pgallery--compact .pgallery__zoom-hint svg{ width:15px; height:15px; }
.offer-card__media{ display:block; }
