/* Products-page collection (2026-09-30). One long mouton table; each dress is a "bundle" of three prints.
   Mobile first. Every dress uses a different bundle shape (.shape-1 ... .shape-7) so no two look alike.
   See specs/wireframes/zero-base-2026-09-30.md. */
/* one seamless table: the mouton photo stacked with its mirror image tiles vertically without a seam */
.collection { background: #F1F1EF url("mouton-tile.webp") center top / 100% auto repeat-y; padding: 72px 0 56px; }
.collection .wrap { padding-left: 20px; padding-right: 20px; }
.c-head .en { font-size: 12px; letter-spacing: .24em; margin: 0 0 6px; }
.c-head .h2 { margin: 0 0 10px; }
.c-head .body { margin: 0 0 28px; font-size: 15px; }

/* table of contents: two loose groups of tiny prints */
.toc { display: grid; gap: 22px; margin: 0 0 40px; }
.toc .kind, .dress .kind { font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); margin: 0 0 10px; }
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 0; padding: 0; }
.toc a { display: block; width: 68px; text-align: center; text-decoration: none; color: inherit; }
.toc .print { display: block; padding: 5px 5px 12px; box-shadow: 0 8px 16px -12px rgba(0,0,0,.45); }
.toc .print::before, .toc .print::after { display: none; }
.toc img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.toc li:nth-child(3n+1) .print { transform: rotate(-2deg); }
.toc li:nth-child(3n+2) .print { transform: rotate(1.5deg); margin-top: 8px; }
.toc li:nth-child(3n) .print { transform: rotate(-.5deg); }
.toc .n { display: block; margin-top: 6px; font-size: 16px; }
.toc a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* one dress */
.dress { position: relative; padding: 44px 0 36px; }
.dress + .dress::before { content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 1px; background: var(--gold); }
.d-head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; margin-bottom: 14px; }
.d-head .kind { grid-column: 1; margin: 0 0 2px; }
.d-head .no { grid-column: 1; font-weight: 500; font-size: 48px; line-height: 1; margin: 0; }
.d-head .count { grid-column: 2; grid-row: 2; align-self: end; font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); margin: 0 0 6px; }

.bundle { position: relative; aspect-ratio: 358 / 470; margin: 0 0 22px; }
.bundle .print { position: absolute; margin: 0; padding: 8px 8px 22px; box-shadow: 0 16px 26px -18px rgba(0,0,0,.5);
                 transition: left .55s cubic-bezier(.2,.7,.2,1), top .55s cubic-bezier(.2,.7,.2,1), width .55s cubic-bezier(.2,.7,.2,1),
                             transform .55s cubic-bezier(.2,.7,.2,1); }
.bundle .print img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.bundle figcaption { position: absolute; left: 8px; right: 8px; bottom: 3px; font-size: 11px; letter-spacing: .06em; color: var(--ink-soft);
                     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bundle [data-pos="main"] { width: 62%; z-index: 3; }
.bundle [data-pos="tuck"] { width: 44%; z-index: 2; }
.bundle [data-pos="small"] { width: 30%; z-index: 4; }
.bundle .b-vest img { aspect-ratio: 1 / 1; }
.bundle .b-front[data-pos="tuck"] figcaption { visibility: hidden; } /* the tucked front sits behind: only the chosen vest is named */

/* each shape's box is as tall as its prints (measured at 375px; everything inside scales with the width) */
.shape-1 .bundle { aspect-ratio: 335 / 447; }
.shape-2 .bundle { aspect-ratio: 335 / 417; }
.shape-3 .bundle { aspect-ratio: 335 / 468; }
.shape-4 .bundle { aspect-ratio: 335 / 473; }
.shape-5 .bundle { aspect-ratio: 335 / 443; }
.shape-6 .bundle { aspect-ratio: 335 / 412; }
.shape-7 .bundle { aspect-ratio: 335 / 473; }
/* seven bundle shapes (position of main / tuck / small, in % of the bundle box) */
.shape-1 [data-pos="main"]  { left: 2%;  top: 2%;  transform: rotate(-1.5deg); }
.shape-1 [data-pos="tuck"]  { left: 54%; top: 12%; transform: rotate(3deg); }
.shape-1 [data-pos="small"] { left: 50%; top: 64%; transform: rotate(-3deg); }
.shape-2 [data-pos="main"]  { left: 36%; top: 1%;  transform: rotate(1.5deg); }
.shape-2 [data-pos="tuck"]  { left: 2%;  top: 16%; transform: rotate(-3deg); }
.shape-2 [data-pos="small"] { left: 6%;  top: 67%; transform: rotate(2.5deg); }
.shape-3 [data-pos="main"]  { left: 4%;  top: 1%;  transform: rotate(-1deg); }
.shape-3 [data-pos="tuck"]  { left: 54%; top: 24%; transform: rotate(2deg); }
.shape-3 [data-pos="small"] { left: 40%; top: 69%; transform: rotate(-2deg); }
.shape-4 [data-pos="main"]  { left: 34%; top: 4%;  transform: rotate(2deg); }
.shape-4 [data-pos="tuck"]  { left: 1%;  top: 26%; transform: rotate(-2deg); }
.shape-4 [data-pos="small"] { left: 66%; top: 70%; transform: rotate(3deg); }
.shape-5 [data-pos="main"]  { left: 18%; top: 1%;  transform: rotate(-.8deg); }
.shape-5 [data-pos="tuck"]  { left: 55%; top: 38%; transform: rotate(3deg); }
.shape-5 [data-pos="small"] { left: 2%;  top: 63%; transform: rotate(-3deg); }
.shape-6 [data-pos="main"]  { left: 3%;  top: 8%;  transform: rotate(1deg); }
.shape-6 [data-pos="small"] { left: 60%; top: 1%;  transform: rotate(-3deg); }
.shape-6 [data-pos="tuck"]  { left: 54%; top: 40%; transform: rotate(2deg); }
.shape-7 [data-pos="main"]  { left: 36%; top: 0;   transform: rotate(-1.5deg); }
.shape-7 [data-pos="tuck"]  { left: 2%;  top: 18%; transform: rotate(2deg); }
.shape-7 [data-pos="small"] { left: 30%; top: 70%; transform: rotate(-2.5deg); }

.dress a.zoom { display: block; cursor: zoom-in; }
.dress a.zoom:focus-visible, .dress button:focus-visible, .step a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* text */
.info .facts { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; line-height: 2; letter-spacing: .06em; }
.info .btn { width: 100%; max-width: 320px; }
.vest-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.vest-btn { font: inherit; font-size: 14px; letter-spacing: .06em; color: var(--ink); background: rgba(255,255,255,.55);
            border: 1px solid #B9B9B6; min-height: 44px; padding: 0 14px; cursor: pointer; }
.vest-btn[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.vest-btn .new { font-size: 11px; letter-spacing: .1em; color: #7A6A45; margin-left: 4px; }
.spread-btn { display: flex; gap: 12px; align-items: baseline; font: inherit; font-size: 15px; letter-spacing: .08em; color: var(--ink);
              background: none; border: 0; padding: 14px 0; margin-top: 10px; min-height: 44px; cursor: pointer; }
.spread-btn .t { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.spread-btn .n { font-size: 13px; color: var(--ink-soft); }

/* the spread: photos dealt out onto the table */
.spread { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; align-items: start; }
.spread[hidden] { display: none; }
.spread li { opacity: 0; transform: translate(var(--fx, 0), -46px) rotate(var(--r0, -6deg)) scale(.82);
             transition: opacity .45s ease calc(var(--d0, 0ms) + var(--i) * 55ms),
                         transform .7s cubic-bezier(.18,.8,.22,1) calc(var(--d0, 0ms) + var(--i) * 55ms); }
.spread.is-open li { opacity: 1; transform: translate(0, 0) rotate(var(--r, 0deg)) scale(1); }
.spread li.s-rack { grid-column: 1 / -1; width: 78%; justify-self: center; }
.spread li:nth-child(4n+1) { --r: -1.5deg; --r0: -8deg; --fx: 20px; }
.spread li:nth-child(4n+2) { --r: 1.2deg;  --r0: 7deg;  --fx: -24px; margin-top: 22px; }
.spread li:nth-child(4n+3) { --r: 2deg;    --r0: 9deg;  --fx: 16px; }
.spread li:nth-child(4n)   { --r: -1deg;   --r0: -7deg; --fx: -14px; margin-top: -10px; }
.spread li.s-rack { --r: -.6deg; --r0: -4deg; --fx: 0; margin-top: 0; }
.spread .print { padding: 7px 7px 18px; box-shadow: 0 14px 22px -16px rgba(0,0,0,.5); }
.spread .print::before, .spread .print::after { display: none; }
.spread .print img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.spread .s-detail .print img { aspect-ratio: 4 / 5; }

.step { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; font-size: 13px; letter-spacing: .08em; }
.step a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding: 10px 0 3px; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(30, 30, 32, .82); }
.lightbox img { display: block; max-width: 94vw; max-height: 86vh; width: auto; height: auto; }
.lightbox button { font: inherit; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.6); min-width: 44px; min-height: 44px; cursor: pointer; }
.lightbox .lb-close { position: absolute; top: 8px; right: 8px; padding: 0 14px; letter-spacing: .1em; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 20px; }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .bundle .print, .spread li { transition: none; }
}

/* tablet and up: bundle and text side by side, alternating */
@media (min-width: 761px) {
  .collection { padding: 110px 0 80px; }
  .collection .wrap { padding-left: 40px; padding-right: 40px; }
  .toc { grid-template-columns: auto auto; justify-content: start; gap: 56px; }
  .toc a { width: 76px; }
  /* the number heads the text column; heading + text sit as one group at the middle of the bundle's height */
  .dress { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
           column-gap: 72px; padding: 80px 0 56px; }
  .dress .bundle { grid-column: 1; grid-row: 1 / 5; margin: 0; }
  .dress .d-head { grid-column: 2; grid-row: 2; column-gap: 20px; margin-bottom: 26px; }
  .dress .info { grid-column: 2; grid-row: 3; }
  .dress:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .dress:nth-of-type(even) .bundle { grid-column: 2; }
  .dress:nth-of-type(even) .d-head, .dress:nth-of-type(even) .info { grid-column: 1; }
  .dress .spread, .dress .step { grid-column: 1 / -1; }
  .spread { grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin-top: 40px; }
  .spread li.s-rack { grid-column: span 2; grid-row: span 2; width: 88%; }
  .d-head .no { font-size: 60px; }
}
/* tablet: the text column needs room for the button label on one line */
@media (min-width: 761px) and (max-width: 1100px) {
  .dress, .dress:nth-of-type(even) { column-gap: 40px; }
  .dress { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .dress:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .info .btn { white-space: nowrap; letter-spacing: .1em; padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 1101px) {
  .spread { grid-template-columns: repeat(5, 1fr); }
}
