/* Noctilupus V2.2 — editorial hero, proportion system, responsive PDP and touch lightbox */

/* Campaign image: real, unprinted white Basic couple against dark industrial wall */
.hero{background:#1c252c;isolation:isolate;}
.hero-art{
  background-image:url('https://cdn.shopify.com/s/files/1/0949/4524/7579/files/Noctilupus_End_Of_Season_Urban_Couple_2026.jpg?v=1793444126');
  background-color:#1c252c;
  background-size:auto 107%;
  background-position:right center;
  background-repeat:no-repeat;
  transition:transform 1.4s ease;
}
.hero-shade{background:linear-gradient(90deg,rgba(16,22,27,.28) 0%,rgba(16,22,27,.15) 51%,transparent 78%)}
.hero-content{max-width:690px}
.hero-title{font-size:clamp(60px,7.35vw,112px);letter-spacing:-.09em}
.hero-bottom .pill{flex:none}
.hero-sub{max-width:260px}

/* Stable image ratios, without distorting the original photo */
.product-card-media{display:block;aspect-ratio:4 / 5;background:#f5f5f4}
.product-card-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 22%}
.collection-image{object-position:center 27%}
.duo-image{object-fit:cover;object-position:center 35%}
.campaign-visual{object-position:center 24%}
.end-frame-image{object-position:center 30%}

/* One focused image with an accessible, scrollable thumbnail rail */
.pdp-grid{align-items:start}
.pdp-gallery{display:block;min-width:0}
.pdp-gallery-stage{
  position:relative;
  height:min(75vh,790px);
  min-height:440px;
  overflow:hidden;
  background:#f4f4f2;
  touch-action:pan-y;
  display:flex;align-items:center;justify-content:center;
  border-radius:4px;
}
.pdp-gallery-stage .pdp-gallery-main{
  width:100%;height:100%;display:block;object-fit:contain;
  object-position:center;
  aspect-ratio:auto;
  grid-column:auto;
  background:transparent;
  cursor:zoom-in;
  user-select:none;
}
.gallery-stage-open{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;color:#111;cursor:zoom-in;z-index:1}
.gallery-stage-open span{
  position:absolute;bottom:17px;right:18px;
  border-radius:99px;background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  display:flex;align-items:center;gap:7px;
  padding:9px 12px;
  font:550 10px 'Inter',sans-serif;letter-spacing:.02em;
  box-shadow:0 3px 15px rgba(0,0,0,.055);
}
.gallery-stage-open svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.5;fill:none}
.gallery-step{
  width:40px;height:40px;border:1px solid rgba(0,0,0,.04);
  border-radius:50%;background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  font:400 28px/1 'Inter',sans-serif;display:grid;place-items:center;
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  box-shadow:0 1px 9px rgba(0,0,0,.05);
  transition:background .25s;
}
.gallery-step:hover{background:#fff}
.gallery-step.prev{left:14px}
.gallery-step.next{right:14px}
.gallery-counter{position:absolute;bottom:18px;left:18px;z-index:3;font:500 11px/1 'Inter',sans-serif;letter-spacing:.09em;color:#4f4f4f;background:rgba(255,255,255,.86);padding:9px 12px;border-radius:99px}
.gallery-rail{
  margin-top:12px;display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;overscroll-behavior-inline:contain;
  padding:0 0 8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
  scrollbar-color:#d4d4d4 transparent;
}
.gallery-thumb{
  padding:0;border:1px solid transparent;border-radius:3px;
  background:#f4f4f2;flex:0 0 76px;height:94px;
  overflow:hidden;scroll-snap-align:start;
  transition:border-color .18s,opacity .18s;
  opacity:.7;
}
.gallery-thumb[aria-current="true"]{border-color:#151515;opacity:1}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;object-position:center 18%;display:block;aspect-ratio:auto}
.pdp-info{top:98px}
.size-button{min-width:52px;min-height:48px}
.product-detail{padding-bottom:80px}
.image-lightbox-open{overflow:hidden}

/* Full screen, pinch/double-tap/drag image viewer */
.image-lightbox{
  position:fixed;inset:0;z-index:250;
  width:100%;max-width:none;height:100%;height:100dvh;max-height:none;
  padding:0;margin:0;border:0;border-radius:0;overflow:hidden;
  background:#f7f7f6;color:#151515;
}
.image-lightbox::backdrop{background:rgba(0,0,0,.92)}
.image-lightbox[open]{display:flex;flex-direction:column}
.zoom-toolbar,.zoom-footer{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex:0 0 auto;padding:15px 30px;
  font:550 10px 'Inter',sans-serif;letter-spacing:.12em;
  background:#f7f7f6;position:relative;z-index:5;
}
.zoom-toolbar{min-height:72px;border-bottom:1px solid #e8e8e8}
.zoom-counter{margin-left:auto;margin-right:14px;font-variant-numeric:tabular-nums}
.zoom-round{height:39px;width:39px;border:1px solid #ddd;background:#fff;border-radius:50%;font:400 28px/1 Arial,sans-serif}
.zoom-stage{position:relative;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;cursor:zoom-in}
.zoom-stage.is-zoomed{cursor:grab}
.zoom-stage.is-zoomed:active{cursor:grabbing}
.zoom-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;transform-origin:center;will-change:transform}
.zoom-side{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(0,0,0,.08);border-radius:50%;background:rgba(255,255,255,.92);color:#111;z-index:4;font:400 32px/1 Arial,sans-serif}
.zoom-side:disabled{visibility:hidden}
.zoom-side.zoom-left{left:22px}
.zoom-side.zoom-right{right:22px}
.zoom-footer{min-height:65px;border-top:1px solid #e8e8e8;color:#666;font-size:9px}
.zoom-footer button{border:1px solid #cfcfcf;border-radius:99px;background:#fff;color:#161616;font:600 11px 'Inter',sans-serif;padding:11px 20px}

/* Tablet screens */
@media(max-width:1020px){
  .hero-art{background-size:auto 106%}
  .hero-title{font-size:clamp(55px,8vw,83px)}
  .pdp-gallery-stage{min-height:350px;height:min(68vh,700px)}
}

/* Phone — preserve both models; text occupies the dark wall area */
@media(max-width:700px){
  .hero{min-height:0;height:min(760px,calc(100svh - 141px));max-height:none;aspect-ratio:auto;background:#1c252c;}
  .hero-art{
    background-image:url('https://cdn.shopify.com/s/files/1/0949/4524/7579/files/Noctilupus_End_Of_Season_Urban_Couple_2026.jpg?v=1793444126');
    background-size:cover;background-position:center center;
  }
  .hero-shade{background:linear-gradient(to bottom,rgba(7,15,22,.42) 0%,rgba(7,15,22,.03) 37%,rgba(7,15,22,0) 59%,rgba(7,15,22,.45) 100%)}
  .hero-content{
    inset:30px 22px 33px;
    bottom:33px;left:22px;right:22px;top:30px;max-width:none;
    display:flex;flex-direction:column;align-items:flex-start;
  }
  .hero-overline{font-size:9px;margin:0 0 15px}
  .hero-title{font-size:clamp(48px,13.2vw,78px);line-height:.9;margin:0;max-width:100%}
  .hero-bottom{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:13px}
  .hero-sub{max-width:255px;font-size:11px}
  .hero-index{right:18px;bottom:20px;font-size:9px}
  .product-card-media{aspect-ratio:4 / 5}
  .product-card-media img{object-position:center 20%}
  .collection-image,.editorial-card:nth-child(2) .collection-image{aspect-ratio:4 / 5;object-position:center 23%}
  .duo-image{width:100%;max-height:570px;aspect-ratio:4 / 5;object-fit:cover;object-position:center 28%}
  .campaign-grid .campaign-visual{aspect-ratio:4 / 5;object-position:center 20%}
  .care-image{aspect-ratio:4 / 5}
  .end-frame{min-height:0;aspect-ratio:4 / 5;max-height:700px}
  .product-detail{padding-top:14px;padding-bottom:50px}
  .pdp-grid{gap:26px}
  .pdp-gallery-stage{height:auto;min-height:0;aspect-ratio:4 / 5;max-height:72svh}
  .pdp-gallery-stage .pdp-gallery-main{height:100%;width:100%;object-fit:contain}
  .gallery-thumb{flex-basis:67px;height:84px}
  .gallery-step{width:36px;height:36px;font-size:25px}
  .gallery-step.prev{left:9px}.gallery-step.next{right:9px}
  .gallery-stage-open span{bottom:13px;right:13px;padding:8px 10px}
  .gallery-counter{bottom:13px;left:13px}
  .pdp-info{position:static}
  .pdp-action{min-height:54px}
  .size-button{min-width:52px;height:52px}
  .image-lightbox{height:100dvh}
  .zoom-toolbar{min-height:60px;padding:10px 18px}
  .zoom-label{font-size:9px;letter-spacing:.06em}
  .zoom-counter{margin-right:0}
  .zoom-round{width:36px;height:36px}
  .zoom-side{width:35px;height:35px;font-size:25px}
  .zoom-side.zoom-left{left:7px}.zoom-side.zoom-right{right:7px}
  .zoom-footer{min-height:59px;padding:10px 18px;gap:10px}
  .zoom-footer span{font-size:8px;letter-spacing:.045em}
  .zoom-footer button{padding:9px 13px;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){
  .gallery-step,.gallery-thumb{transition:none}
}

/* Zoom control is a small tap target, never an invisible overlay over the swipe surface */
.gallery-stage-open{
  inset:auto 15px 15px auto;width:auto;height:auto;z-index:4;border-radius:99px;
  background:rgba(255,255,255,.94);
  box-shadow:0 3px 15px rgba(0,0,0,.06);
}
.gallery-stage-open span{position:static;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
@media(max-width:700px){.gallery-stage-open{right:12px;bottom:12px}}
