/* V4 progressive product browsing: contained carousels, category tabs, and image quick view. */
.v4-carousel{
  position:relative;
  margin-top:30px;
}

.v4-product-catalog{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.v4-product-catalog .product-row-v2{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}

.v4-product-catalog .product-row-image{
  display:flex;
  min-height:300px;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  order:0!important;
  background:#eeeae3;
}

.v4-product-catalog .product-row-image img{
  width:100%;
  height:300px;
  object-fit:contain;
}

.v4-product-catalog .product-row-copy{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:flex-start;
  align-self:stretch;
  padding:24px;
}

.v4-product-catalog .product-row-copy h2{font-size:clamp(25px,2.2vw,34px)}
.v4-product-catalog .product-row-copy .chip-list{margin-bottom:22px}
.v4-product-catalog .product-row-copy .button{margin-top:auto}

.v4-carousel-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-bottom:14px;
}

.v4-carousel-status{
  min-width:64px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

.navy-section .v4-carousel-status{color:rgba(244,241,234,.72)}

.v4-carousel-button{
  display:inline-grid;
  width:44px;
  height:44px;
  place-items:center;
  border:1px solid var(--border);
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  cursor:pointer;
  font:600 22px/1 var(--sans);
  transition:background .2s var(--ease),color .2s var(--ease),transform .2s var(--ease);
}

.v4-carousel-button:hover{background:var(--navy);color:#fff;transform:translateY(-1px)}
.v4-carousel-button:disabled{cursor:default;opacity:.35;transform:none}

.v4-carousel-track,
.photo-showcase-grid.v4-carousel-track,
.product-gallery-grid.v4-carousel-track,
.more-photo-strip.v4-carousel-track,
.gallery-grid.gallery-grid-four.v4-carousel-track,
.gallery-grid.gallery-grid-five.v4-carousel-track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px,calc((100% - 36px)/3));
  grid-template-columns:none;
  gap:18px;
  margin:0;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  padding:2px 2px 18px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-color:rgba(13,27,42,.22) transparent;
  scrollbar-width:thin;
}

.navy-section .v4-carousel-track{scrollbar-color:rgba(244,241,234,.35) transparent}
.v4-carousel-track>*{min-width:0;scroll-snap-align:start}

.v4-carousel-track .photo-showcase-card,
.v4-carousel-track .gallery-card,
.v4-carousel-track.more-photo-strip a{
  align-self:start;
  height:100%;
  margin:0;
}

.v4-carousel-track .photo-showcase-card img,
.v4-carousel-track .gallery-card img,
.v4-carousel-track.more-photo-strip img{
  display:block;
  width:100%;
  height:clamp(260px,30vw,390px);
  min-height:0;
  object-fit:contain;
  background:#eeeae3;
}

.v4-carousel-track.more-photo-strip a{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#eeeae3;
}

.v4-disclosure{
  margin-top:30px;
  border:1px solid var(--border);
  background:#fff;
}

.v4-disclosure>summary{
  position:relative;
  padding:20px 60px 20px 22px;
  color:var(--navy);
  cursor:pointer;
  font:600 15px/1.4 var(--sans);
  list-style:none;
}

.v4-disclosure>summary::-webkit-details-marker{display:none}
.v4-disclosure>summary::after{
  content:'+';
  position:absolute;
  top:50%;
  right:22px;
  transform:translateY(-50%);
  font-size:25px;
  font-weight:400;
}
.v4-disclosure[open]>summary::after{content:'−'}
.v4-disclosure .v4-carousel{margin:0;padding:0 20px 20px}

.v4-gallery-tabs{margin-top:30px}
.v4-gallery-tablist{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:24px;
}
.v4-gallery-tab{
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  cursor:pointer;
  padding:11px 18px;
  font:600 13px/1 var(--sans);
}
.v4-gallery-tab[aria-selected="true"]{border-color:var(--navy);background:var(--navy);color:#fff}
.v4-gallery-panel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  max-width:920px;
  margin:0 auto;
}
.v4-gallery-panel[hidden]{display:none}
.v4-gallery-panel .photo-showcase-card{height:100%}
.v4-gallery-panel .photo-showcase-card img{
  width:100%;
  height:clamp(300px,38vw,500px);
  object-fit:contain;
  background:#eeeae3;
}

.is-zoomable{position:relative;cursor:zoom-in}
.is-zoomable::after{
  content:'Quick view  ↗';
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(13,27,42,.9);
  color:#fff;
  font:600 11px/1 var(--sans);
  letter-spacing:.02em;
  opacity:0;
  pointer-events:none;
  transform:translateY(-4px);
  transition:opacity .2s var(--ease),transform .2s var(--ease);
}
.is-zoomable:hover::after,.is-zoomable:focus-within::after{opacity:1;transform:none}
.is-zoomable img[role="button"]{cursor:zoom-in;outline-offset:-4px}

body.lightbox-open{overflow:hidden}
.v4-lightbox[hidden]{display:none}
.v4-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:rgba(5,12,20,.96);
  color:#fff;
}
.v4-lightbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 18px;
}
.v4-lightbox-count{font:500 13px/1 var(--sans);letter-spacing:.04em;color:rgba(255,255,255,.72)}
.v4-lightbox-close,
.v4-lightbox-nav{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.36);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  font:400 28px/1 var(--sans);
}
.v4-lightbox-close:hover,.v4-lightbox-nav:hover{background:#fff;color:var(--navy)}
.v4-lightbox-stage{
  position:relative;
  display:grid;
  min-height:0;
  place-items:center;
  padding:0 86px;
}
.v4-lightbox-image{
  display:block;
  width:auto;
  height:auto;
  max-width:min(1200px,100%);
  max-height:calc(100vh - 190px);
  object-fit:contain;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
}
.v4-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%)}
.v4-lightbox-prev{left:20px}
.v4-lightbox-next{right:20px}
.v4-lightbox-nav[hidden]{display:none}
.v4-lightbox-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:80px;
  padding:14px 22px 18px;
  text-align:center;
}
.v4-lightbox-caption{max-width:760px;margin:0;color:rgba(255,255,255,.86);font:400 14px/1.5 var(--sans)}
.v4-lightbox-detail{color:#fff;font:600 13px/1.3 var(--sans);text-decoration:underline;text-underline-offset:4px}
.v4-lightbox-detail[hidden]{display:none}

@media(max-width:900px){
  .v4-product-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v4-carousel-track,
  .photo-showcase-grid.v4-carousel-track,
  .product-gallery-grid.v4-carousel-track,
  .more-photo-strip.v4-carousel-track,
  .gallery-grid.gallery-grid-four.v4-carousel-track,
  .gallery-grid.gallery-grid-five.v4-carousel-track{grid-auto-columns:minmax(250px,calc((100% - 18px)/2))}
}

@media(max-width:620px){
  .v4-product-catalog{grid-template-columns:1fr}
  .v4-carousel-track,
  .photo-showcase-grid.v4-carousel-track,
  .product-gallery-grid.v4-carousel-track,
  .more-photo-strip.v4-carousel-track,
  .gallery-grid.gallery-grid-four.v4-carousel-track,
  .gallery-grid.gallery-grid-five.v4-carousel-track{grid-auto-columns:minmax(250px,88%);gap:12px}
  .v4-carousel-track .photo-showcase-card img,
  .v4-carousel-track .gallery-card img,
  .v4-carousel-track.more-photo-strip img{height:330px}
  .v4-gallery-panel{grid-template-columns:1fr}
  .v4-gallery-panel .photo-showcase-card img{height:auto;max-height:500px}
  .v4-lightbox-stage{padding:0 12px}
  .v4-lightbox-image{max-height:calc(100vh - 230px)}
  .v4-lightbox-nav{top:auto;bottom:8px}
  .v4-lightbox-prev{left:14px}
  .v4-lightbox-next{right:14px}
  .v4-lightbox-footer{min-height:120px;flex-direction:column;gap:8px;padding-bottom:74px}
  .is-zoomable::after{opacity:1;transform:none}
}

@media(prefers-reduced-motion:reduce){
  .v4-carousel-track{scroll-behavior:auto}
  .is-zoomable::after,.v4-carousel-button{transition:none}
}
