/* Le vestiaire — collections page (wardrobe.js). */
.cl-page {
  --bg: #fbf1e6;
  --edge: clamp(16px, 4.4vw, 80px);
  --plum: #59192f;
  background: var(--bg);
  color: #3b1424;
}

/* ---------- Hero: a moving wall of every piece, and a quiet title card ---------- */
.cl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: calc(100svh - var(--nav-height));
  min-height: 560px;
  background: #22070f;
}
.cl-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 0 14px;
  overflow: hidden;
  transform-origin: 50% 0;
}
.cl-col {
  min-width: 0;
}
.cl-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}
.cl-wall.is-static .cl-col:nth-child(even) .cl-track {
  transform: translateY(-50%);
}
.cl-tile {
  position: relative;
  flex: none;
  display: block;
  width: 100%;
  aspect-ratio: 0.8;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--tint), white 45%), var(--tint) 78%);
  transition:
    scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.cl-tile img {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 84%;
  height: 74%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(3px 9px 7px #2e101940);
}
.cl-tile span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font: 650 0.72rem var(--sans);
  color: #2e1019;
  opacity: 0;
  transition: opacity 0.3s;
}
.cl-tile:hover {
  scale: 1.04;
}
.cl-tile:hover span {
  opacity: 1;
}
.cl-wall:hover .cl-tile:not(:hover) {
  filter: saturate(0.55) brightness(0.72);
}
.cl-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 50% 50%, #22070fd9, #22070f66 62%, transparent 85%),
    linear-gradient(#22070f99, transparent 18%, transparent 82%, #22070f99);
}
.cl-card {
  position: relative;
  z-index: 2;
  width: min(600px, calc(100% - 40px));
  padding: clamp(26px, 3.4vw, 46px);
  border-radius: 22px;
  text-align: center;
  background: #fbf1e6;
  box-shadow: 0 40px 90px #00000080;
}
.cl-kicker {
  display: flex;
  justify-content: center;
  gap: 10px;
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--plum);
}
.cl-kicker span {
  opacity: 0.4;
}
.cl-title {
  margin-top: 12px;
  font: 400 clamp(54px, 7.2vw, 118px) / 0.84 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #2e1019;
}
.cl-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.03em;
}
.cl-line {
  display: block;
}
.cl-intro {
  max-width: 36ch;
  margin: 14px auto 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #5d4448;
}
.cl-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cl-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 40px;
  border: 1px solid #59192f24;
  background: #ffffff;
  font: 700 0.86rem var(--sans);
  color: #2e1019;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.cl-quick a:hover,
.cl-quick a:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff9ef;
}
.cl-quick i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px #0000001f;
}
.cl-quick sup {
  font-size: 0.65em;
  opacity: 0.6;
}

/* ---------- Sticky bar ---------- */
.cl-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 9;
  display: grid;
  grid-template-columns: auto minmax(0, 440px);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px var(--edge);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid #59192f1f;
}
.cl-tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 40px;
  background: #fff9ef;
  border: 1px solid #59192f22;
  overflow-x: auto;
  scrollbar-width: none;
}
.cl-tabs::-webkit-scrollbar {
  display: none;
}
.cl-tabs button {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 8px 15px;
  border-radius: 30px;
  font: 700 0.86rem var(--sans);
  color: var(--plum);
  white-space: nowrap;
  transition: color 0.3s;
}
.cl-tabs button sup {
  margin-left: 3px;
  font-size: 0.62em;
  opacity: 0.7;
}
.cl-tabs button[aria-pressed="true"] {
  color: #fff9ef;
}
.cl-tabs button[data-here]:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #cf5976;
}
.cl-pill {
  position: absolute;
  z-index: 0;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 0;
  border-radius: 30px;
  background: var(--plum);
  transition:
    transform 0.6s cubic-bezier(0.3, 1.35, 0.5, 1),
    width 0.6s cubic-bezier(0.3, 1.35, 0.5, 1),
    background-color 0.4s;
}
.cl-search {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 440px;
  padding: 9px 16px;
  border-radius: 40px;
  background: #fff9ef;
  border: 1px solid #59192f22;
  color: var(--plum);
  transition: box-shadow 0.25s;
}
.cl-search:focus-within {
  box-shadow: 0 0 0 2px #cf5976;
}
.cl-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: 500 0.92rem var(--sans);
  color: #3b1424;
}
.cl-search input::placeholder {
  color: #8d7378;
}

/* ---------- Chapters ---------- */
.cl-ch {
  scroll-margin-top: calc(var(--nav-height) + var(--bar-h, 64px));
}
.cl-ch-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--tint), white 45%), transparent 60%),
    var(--tint);
  color: var(--ink);
}
.cl-ch-band {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  background: var(--ink);
  color: var(--tint);
  font: 700 0.76rem var(--sans);
  letter-spacing: 0.22em;
}
.cl-ch-track {
  display: inline-flex;
  width: max-content;
}
.cl-ch-track i {
  margin: 0 1em;
  font-style: normal;
}
.cl-ch-main {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(26px, 4vw, 56px) var(--edge) clamp(20px, 3vw, 40px);
}
.cl-ch-no {
  font: 400 clamp(40px, 5vw, 88px) / 0.9 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.cl-ch-no small {
  font-size: 0.4em;
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.cl-ch-title {
  position: relative;
  font: 400 clamp(76px, 14.5vw, 260px) / 0.8 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cl-ch-title:after {
  content: attr(data-text);
  position: absolute;
  z-index: -1;
  left: 0.05em;
  top: 0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  opacity: 0.45;
}
.cl-ch-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.cl-ch-side b {
  font: 600 clamp(24px, 2.2vw, 36px) / 1 var(--hand);
}
.cl-ch-side > span {
  font: 700 0.74rem var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cl-ch-fabrics {
  display: flex;
  padding-left: 10px;
  margin-top: 4px;
}
.cl-ch-fabrics i {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  border-radius: 50%;
  background: center / cover;
  border: 3px solid var(--tint);
  box-shadow: 0 3px 6px #0000002e;
}

/* ---------- Rail of hanging pieces ---------- */
.cl-rail {
  --gap: clamp(14px, 2vw, 30px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(236px, 42vw), 1fr));
  gap: 64px var(--gap);
  padding: 54px var(--edge) 96px;
}
.cl-card {
  position: relative;
  padding-top: 30px;
}
.cl-card:before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(var(--gap) / -2 - 1px);
  right: calc(var(--gap) / -2 - 1px);
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(#e7dfe2, #9a8b92 55%, #6c5d64);
  box-shadow: 0 4px 5px #3b142430;
}
.cl-hook {
  position: absolute;
  z-index: 2;
  top: -4px;
  left: 50%;
  width: 30px;
  height: 40px;
  margin-left: -15px;
  color: #74656c;
}
.cl-hook svg {
  display: block;
  width: 100%;
  height: 100%;
}
.cl-hang {
  transform-origin: 50% -24px;
  will-change: transform;
  filter: drop-shadow(0 14px 16px #3b142424);
}
.cl-shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.8;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--tint), white 50%), var(--tint) 75%);
  clip-path: polygon(18% 0, 82% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
  border-radius: 0 0 16px 16px;
}
.cl-shot:before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 4.5%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 2px 3px #00000040;
}
.cl-fabric {
  position: absolute;
  inset: 0;
  background: center / 230% auto;
  clip-path: circle(0 at var(--fx, 50%) var(--fy, 50%));
  transition: clip-path 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cl-shot:hover .cl-fabric,
.cl-shot:focus-visible .cl-fabric {
  clip-path: circle(46% at var(--fx, 50%) var(--fy, 50%));
}
.cl-img {
  position: absolute;
  z-index: 1;
  left: 9%;
  top: 13%;
  width: 82%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(4px 10px 8px #3b14243d);
  transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.cl-shot:hover .cl-img {
  transform: scale(1.07) translateY(-2%);
}
.cl-badge {
  position: absolute;
  z-index: 2;
  top: 14%;
  left: -34px;
  width: 140px;
  padding: 4px 0;
  rotate: -38deg;
  background: var(--ink);
  color: #fff9ef;
  font: 700 0.56rem var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.cl-no {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 9px;
  font: 400 clamp(24px, 2.2vw, 34px) / 1 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}
.cl-tag {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font: 600 1.15rem/0.9 var(--hand);
  background: var(--ink);
  color: #fff9ef;
  rotate: 9deg;
  box-shadow: 0 4px 0 #00000026;
}
.cl-tag small {
  font-size: 0.7em;
}
.cl-tag.is-ask {
  font-size: 0.92rem;
  background: #fff9ef;
  color: var(--ink);
  border: 1.5px dashed var(--ink);
}
.cl-info {
  padding: 14px 4px 0;
  text-align: center;
}
.cl-info h3 {
  font: 650 clamp(15px, 1.15vw, 19px) / 1.15 var(--sans);
  letter-spacing: -0.02em;
  color: #3b1424;
}
.cl-info p {
  margin-top: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #6d5559;
}
.cl-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.cl-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: center / cover;
  border: 2px solid #fff9ef;
  box-shadow: 0 0 0 1px #59192f45;
  transition:
    transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1),
    box-shadow 0.2s;
}
.cl-dot:hover {
  transform: scale(1.28);
}
.cl-dot[aria-pressed="true"] {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--ink);
}

.cl-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 90px var(--edge);
  text-align: center;
  font: 600 clamp(24px, 2.4vw, 36px) / 1.2 var(--hand);
  color: var(--plum);
}
.cl-reset {
  padding: 11px 22px;
  border-radius: 40px;
  background: var(--plum);
  color: #fff9ef;
  font: 700 0.86rem var(--sans);
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .cl-hero {
    min-height: 520px;
  }
  .cl-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 10px;
  }
  .cl-col:nth-child(n + 4) {
    display: none;
  }
  .cl-track {
    gap: 10px;
  }
  .cl-tile {
    border-radius: 12px;
  }
  .cl-card {
    width: calc(100% - 32px);
  }
  .cl-title {
    font-size: clamp(48px, 15vw, 96px);
  }
  .cl-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 8px;
  }
  .cl-search {
    justify-self: stretch;
    max-width: none;
    padding: 8px 14px;
  }
  .cl-ch-main {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .cl-ch-no {
    position: absolute;
    top: 18px;
    right: var(--edge);
  }
  .cl-ch-side {
    justify-items: start;
    text-align: left;
  }
  .cl-rail {
    grid-template-columns: 1fr 1fr;
    gap: 50px var(--gap);
    padding-top: 40px;
  }
  .cl-tag {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  .cl-tag.is-ask {
    font-size: 0.78rem;
  }
  .cl-dot {
    width: 18px;
    height: 18px;
  }
  .cl-badge {
    font-size: 0.5rem;
    left: -40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cl-pill,
  .cl-fabric,
  .cl-img,
  .cl-dot,
  .cl-tile,
  .cl-quick a {
    transition: none;
  }
}
