/* ============================================================
   RANA REKOR ALİ — Public Product Gallery v7
   Admin medya manifesti ile senkron thumbnail / swipe / lightbox
   ============================================================ */
.rra-product-gallery-v7{position:relative;outline:none;touch-action:pan-y}
.rra-product-gallery-v7:focus-visible{box-shadow:0 0 0 3px rgba(9,103,242,.14),0 0 0 1px #0967f2 inset}
.rra-product-gallery-v7 .pdp__stageview[data-view="photo"]{position:absolute;inset:0;padding:0!important;overflow:hidden;background:radial-gradient(circle at 50% 42%,#fff 0,#f9fbfd 48%,#edf3f8 100%)}
.rra-pdp-main-image{position:absolute;inset:0;width:100%;height:100%;padding:34px;border:0;background:transparent;display:grid;place-items:center;cursor:zoom-in;overflow:hidden}
.rra-pdp-main-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,0) 60%,rgba(6,26,49,.035));pointer-events:none}
.rra-pdp-main-image img{display:block;max-width:88%;max-height:88%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(6,26,49,.14));transition:opacity .18s ease,transform .24s ease}
.rra-pdp-main-image:hover img{transform:scale(1.018)}
.rra-pdp-main-image img.is-switching{opacity:.38}
.rra-pdp-zoom-badge{position:absolute;right:14px;bottom:14px;z-index:3;height:34px;padding:0 11px;border:1px solid rgba(15,53,88,.1);border-radius:10px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);display:inline-flex;align-items:center;gap:6px;color:#38546f;font-size:9.5px;font-weight:850;box-shadow:0 8px 20px rgba(6,26,49,.08)}
.rra-pdp-gallery-arrow{position:absolute;top:50%;z-index:5;width:40px;height:40px;margin-top:-20px;border:1px solid #dce8f3;border-radius:12px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);display:grid;place-items:center;color:#183b5c;box-shadow:0 8px 24px rgba(6,26,49,.09);opacity:.82;transition:.18s ease}
.rra-pdp-gallery-arrow:hover{opacity:1;background:#0967f2;color:#fff;border-color:#0967f2;transform:scale(1.04)}
.rra-pdp-gallery-arrow.is-prev{left:12px}.rra-pdp-gallery-arrow.is-next{right:12px}
.rra-pdp-gallery-counter{position:absolute;left:14px;bottom:14px;z-index:4;height:30px;padding:0 10px;border-radius:9px;background:rgba(6,26,49,.82);backdrop-filter:blur(10px);display:inline-flex;align-items:center;gap:4px;color:#bcd0e3;font-size:9px;font-weight:700;letter-spacing:.04em}
.rra-pdp-gallery-counter b{color:#fff;font-size:10px}
.rra-pdp-thumbs{display:flex;gap:8px;margin-top:11px;padding:2px 1px 5px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c8d8e8 transparent}
.rra-pdp-thumbs::-webkit-scrollbar{height:5px}.rra-pdp-thumbs::-webkit-scrollbar-thumb{background:#c8d8e8;border-radius:99px}.rra-pdp-thumbs::-webkit-scrollbar-track{background:transparent}
.rra-pdp-thumb{position:relative;flex:0 0 74px;width:74px;height:64px;padding:6px;border:1px solid #dfe8f1;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;scroll-snap-align:center;transition:.17s ease;cursor:pointer}
.rra-pdp-thumb:hover{border-color:#9fc6fb;transform:translateY(-1px)}
.rra-pdp-thumb.is-active{border-color:#0967f2;box-shadow:0 0 0 2px rgba(9,103,242,.1)}
.rra-pdp-thumb img{max-width:100%;max-height:100%;object-fit:contain;pointer-events:none}
.rra-pdp-thumb__cover{position:absolute;left:4px;bottom:4px;height:16px;padding:0 5px;border-radius:5px;background:#0967f2;color:#fff;display:inline-flex;align-items:center;font-size:7px;font-weight:850;letter-spacing:.03em;text-transform:uppercase;box-shadow:0 3px 8px rgba(9,103,242,.2)}

/* Fullscreen lightbox */
html.rra-gallery-locked{overflow:hidden}
.rra-gallery-lightbox{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;color:#fff}
.rra-gallery-lightbox.is-open{opacity:1;visibility:visible}
.rra-gallery-lightbox__backdrop{position:absolute;inset:0;background:rgba(2,11,21,.92);backdrop-filter:blur(16px)}
.rra-gallery-lightbox__shell{position:relative;z-index:1;width:min(1180px,calc(100vw - 34px));height:min(900px,calc(100vh - 34px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.rra-gallery-lightbox__topbar{min-height:52px;padding:0 4px 0 8px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.rra-gallery-lightbox__topbar>div{min-width:0;display:flex;align-items:baseline;gap:10px}.rra-gallery-lightbox__topbar strong{max-width:min(620px,60vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:850;letter-spacing:-.01em}.rra-gallery-lightbox__topbar span{font-size:10px;color:#8fa9c2;font-family:'Roboto Mono',monospace}
.rra-gallery-lightbox__close{width:42px;height:42px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.07);display:grid;place-items:center;color:#fff;cursor:pointer;transition:.16s}.rra-gallery-lightbox__close:hover{background:#fff;color:#0a1e32;border-color:#fff}
.rra-gallery-lightbox__viewer{min-height:0;position:relative;display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;gap:10px}
.rra-gallery-lightbox__imagewrap{height:100%;min-height:0;position:relative;display:grid;place-items:center;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.08),rgba(255,255,255,.025) 55%,rgba(255,255,255,.015));overflow:hidden;touch-action:pan-y}
.rra-gallery-lightbox__image{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 24px 38px rgba(0,0,0,.28));user-select:none;-webkit-user-drag:none}
.rra-gallery-lightbox__caption{position:absolute;left:14px;bottom:14px;height:28px;padding:0 9px;border-radius:8px;background:rgba(0,0,0,.36);backdrop-filter:blur(10px);display:inline-flex;align-items:center;color:#bfd0e0;font-size:9px;font-weight:700}
.rra-gallery-lightbox__nav{width:46px;height:46px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.06);display:grid;place-items:center;color:#fff;cursor:pointer;transition:.16s}.rra-gallery-lightbox__nav:hover{background:#0967f2;border-color:#0967f2;transform:scale(1.04)}
.rra-gallery-lightbox__thumbs{display:flex;justify-content:flex-start;gap:8px;padding:2px 62px 4px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent;scroll-snap-type:x proximity}
.rra-gallery-lightbox__thumbs button{position:relative;flex:0 0 66px;width:66px;height:56px;padding:5px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.05);display:grid;place-items:center;overflow:hidden;opacity:.58;cursor:pointer;scroll-snap-align:center;transition:.16s}
.rra-gallery-lightbox__thumbs button:hover{opacity:.9}.rra-gallery-lightbox__thumbs button.is-active{opacity:1;border-color:#53a0ff;box-shadow:0 0 0 2px rgba(9,103,242,.25)}.rra-gallery-lightbox__thumbs img{max-width:100%;max-height:100%;object-fit:contain}

@media(max-width:820px){
  .rra-pdp-main-image{padding:26px}.rra-pdp-gallery-arrow{width:38px;height:38px;margin-top:-19px}.rra-pdp-thumb{flex-basis:68px;width:68px;height:60px}
  .rra-gallery-lightbox__shell{width:100vw;height:100dvh;max-height:none;gap:6px}.rra-gallery-lightbox__topbar{padding:8px 12px 0}.rra-gallery-lightbox__viewer{grid-template-columns:1fr}.rra-gallery-lightbox__imagewrap{border-left:0;border-right:0;border-radius:0;padding:12px}.rra-gallery-lightbox__nav{position:absolute;z-index:4;top:50%;margin-top:-22px;width:42px;height:42px;background:rgba(5,24,43,.65);backdrop-filter:blur(8px)}.rra-gallery-lightbox__nav.is-prev{left:10px}.rra-gallery-lightbox__nav.is-next{right:10px}.rra-gallery-lightbox__thumbs{padding:4px 12px 12px}.rra-gallery-lightbox__topbar strong{max-width:68vw}
}
@media(max-width:560px){
  .rra-pdp-main-image{padding:20px}.rra-pdp-gallery-arrow{width:34px;height:34px;margin-top:-17px;border-radius:10px}.rra-pdp-gallery-arrow.is-prev{left:7px}.rra-pdp-gallery-arrow.is-next{right:7px}.rra-pdp-gallery-counter{left:8px;bottom:8px}.rra-pdp-zoom-badge{right:8px;bottom:8px;height:30px;padding:0 8px}.rra-pdp-thumb{flex-basis:62px;width:62px;height:56px;border-radius:10px}.rra-pdp-thumb__cover{display:none}.rra-gallery-lightbox__topbar{min-height:48px}.rra-gallery-lightbox__topbar strong{font-size:11px}.rra-gallery-lightbox__close{width:38px;height:38px}.rra-gallery-lightbox__thumbs button{flex-basis:58px;width:58px;height:50px}.rra-gallery-lightbox__caption{left:8px;bottom:8px}
}
@media print{.rra-pdp-thumbs,.rra-pdp-gallery-arrow,.rra-pdp-gallery-counter,.rra-pdp-zoom-badge,.rra-gallery-lightbox{display:none!important}}
/* Premium detail stylesheet's legacy stage hover is intentionally softened for gallery navigation. */
.rra-product-gallery-v7:hover .pdp__stageview.is-active .rra-pdp-main-image img{transform:scale(1.018)}
