/* Volumetric garment sprites: a compact composition opens into a floating fan. */
.assortment-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px 30px;
  padding-top: 20px;
  isolation: isolate;
}
.assortment-category {
  position: relative;
  min-width: 0;
  z-index: 1;
  transition: opacity .45s ease;
}
.assortment-category.is-expanded { z-index: 10; }
.assortment-grid.has-active .assortment-category:not(.is-expanded) { opacity: .28; }
.assortment-stage {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(290px, 30vw, 420px);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  appearance: none;
  perspective: 1100px;
  perspective-origin: 50% 48%;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  cursor: zoom-in;
}
.is-expanded .assortment-stage { cursor: zoom-out; }
.assortment-stage::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 12%;
  bottom: 2%;
  left: 19%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #000b, transparent 72%);
  filter: blur(10px);
  opacity: .8;
  transform: scale(1);
  transition: transform .9s ease, opacity .9s ease;
  pointer-events: none;
}
.is-expanded .assortment-stage::after { transform: translateX(var(--open-shift, 0px)) scale(1.55); opacity: .42; }
.assortment-stage:focus-visible { outline: 1px solid #f12d3690; outline-offset: 5px; }
.assortment-scene {
  display: block;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateX(0) rotateX(4deg) rotateY(0);
  transition: transform .9s cubic-bezier(.22,.8,.18,1);
  pointer-events: none;
}
.is-expanded .assortment-scene {
  transform: translateX(var(--open-shift, 0px)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--fan-fit, 1));
}
.assortment-piece {
  display: block;
  position: absolute;
  width: 86%;
  max-width: 365px;
  aspect-ratio: 1;
  top: 47%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%,-50%) translate3d(var(--x),var(--y),var(--z))
    rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--scale));
  transition: transform .75s cubic-bezier(.22,.8,.18,1);
}
.assortment-piece--left {
  --x:-28%; --y:-5%; --z:-36px; --rx:3deg; --ry:-16deg; --rz:-10deg; --scale:.91;
}
.assortment-piece--right {
  --x:28%; --y:-8%; --z:-54px; --rx:3deg; --ry:16deg; --rz:10deg; --scale:.91;
}
.assortment-piece--center {
  --x:0%; --y:5%; --z:48px; --rx:0deg; --ry:-3deg; --rz:-1deg; --scale:.98;
}
.is-expanded .assortment-piece {
  transition-duration: 1.05s;
  transition-timing-function: cubic-bezier(.16,.9,.18,1);
}
.is-expanded .assortment-piece--left {
  --x:-69%; --y:-6%; --z:150px; --rx:0deg; --ry:-10deg; --rz:-7deg; --scale:1.02;
  transition-delay: 45ms;
}
.is-expanded .assortment-piece--right {
  --x:69%; --y:-6%; --z:140px; --rx:0deg; --ry:10deg; --rz:7deg; --scale:1.02;
  transition-delay: 90ms;
}
.is-expanded .assortment-piece--center {
  --x:0%; --y:-1%; --z:215px; --rx:0deg; --ry:0deg; --rz:0deg; --scale:1.06;
}
.assortment-float, .assortment-surface {
  display: block;
  position: absolute;
  inset: 0;
}
.assortment-float {
  transform-style: preserve-3d;
  animation: garment-breathe 8s ease-in-out infinite;
  animation-play-state: paused;
}
.is-visible .assortment-float { animation-play-state: running; }
.assortment-surface {
  filter: url("#garment-edge-clean") drop-shadow(1px 2px 0 #020203aa)
    drop-shadow(0 16px 12px #0007);
  transition: filter .85s ease;
}
.is-expanded .assortment-surface {
  filter: url("#garment-edge-clean") drop-shadow(1px 2px 0 #020203aa)
    drop-shadow(0 30px 19px #0009);
}
.assortment-cutout {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.garment-atlas {
  display:block;
  position:absolute;
  height:100%;
  aspect-ratio:2 / 3;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  overflow:hidden;
}
.garment-atlas img {
  display:block;
  position:absolute;
  top:0;
  left:calc(-100% * var(--atlas-index));
  width:300%;
  max-width:none;
  height:100%;
  user-select:none;
  -webkit-user-drag:none;
}
.has-source-mask {
  -webkit-mask: var(--piece-mask) center / contain no-repeat;
  mask: var(--piece-mask) center / contain no-repeat;
}
.assortment-category--tracksuits .assortment-piece { width: 82%; max-width: 340px; }
.assortment-piece--stack { width: 74%; max-width: 295px; }
.is-expanded .assortment-piece--stack { --z:135px; --scale:1; }
.assortment-info { position: relative; margin-top: 20px; }
.assortment-info h3 {
  font: 500 clamp(15px,1.35vw,19px)/1.5 Manrope,sans-serif;
  color: #e7e7e9;
  letter-spacing: -.035em;
  min-height: 3em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.assortment-price {
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
  margin: 0; color: #f12d36;
  font-size: clamp(28px,2.4vw,36px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.065em;
}
.assortment-currency { font-size: .57em; font-weight: 400; letter-spacing: -.02em; }
.pieces-section .pieces-brands { margin-top: 48px; }
@keyframes garment-breathe {
  0%,100% { transform: translate3d(0,3px,0) rotateX(1deg) rotateY(-4deg) rotateZ(.5deg); }
  50% { transform: translate3d(0,-6px,8px) rotateX(-1deg) rotateY(4deg) rotateZ(-.5deg); }
}
@media (min-width:1600px) { .assortment-grid { column-gap: 56px; } }
@media (max-width:1100px) {
  .is-expanded .assortment-piece--left { --x:-60%; --z:100px; }
  .is-expanded .assortment-piece--right { --x:60%; --z:90px; }
  .is-expanded .assortment-piece--center { --z:145px; }
}
@media (max-width:900px) {
  .assortment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px 16px; }
  .assortment-stage { height:clamp(250px,42vw,360px); }
  .assortment-piece { max-width:340px; }
}
@media (max-width:520px) {
  #prices-title { font-size:clamp(28px,8.2vw,36px); line-height:1.15; }
  #prices-title .red-text { display:block; }
  .assortment-grid { width:calc(100% - 28px); gap:30px 8px; padding-top:10px; }
  .assortment-stage { height:clamp(180px,52vw,260px); perspective:1000px; }
  .assortment-piece { width:94%; }
  .assortment-category--tracksuits .assortment-piece { width:90%; }
  .assortment-piece--left { --x:-24%; --z:-24px; --ry:-12deg; }
  .assortment-piece--right { --x:24%; --z:-34px; --ry:12deg; }
  .assortment-piece--center { --z:24px; }
  .is-expanded .assortment-piece--left { --x:-66%; --z:55px; --scale:1.01; --rz:-5deg; }
  .is-expanded .assortment-piece--right { --x:66%; --z:50px; --scale:1.01; --rz:5deg; }
  .is-expanded .assortment-piece--center { --z:105px; --scale:1.05; }
  .is-expanded .assortment-piece--stack { --z:90px; --scale:1.06; }
  .is-expanded .assortment-stage::before {
    content:"";
    position:absolute;
    inset:0 auto 0 calc(50% + var(--open-shift,0px) - 50vw + 12px);
    width:calc(100vw - 24px);
    z-index:3;
  }
  .assortment-info { margin-top:9px; padding-inline:4px; }
  .assortment-info h3 { font-size:14px; min-height:4.5em; margin-bottom:7px; line-height:1.5; }
  .assortment-price { font-size:27px; }
}
@media (prefers-reduced-motion:reduce) {
  .assortment-float { animation:none; }
  .assortment-piece,.assortment-scene,.assortment-surface,
  .assortment-category,.assortment-stage::after { transition:none; }
}
.garment-filters { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
