/* MERCH - countdown stage, product grid + drawer, size guide. .cover, .soon, .tick, .redact, .tag are shared (site.css). */
.stage [hidden], .drawer [hidden] { display: none !important; }

/* 1. STAGE ---------------------------------------------------------------- */
.stage {
  min-height: min(calc(100svh - var(--header-h)), 860px); padding: 56px 0 64px; overflow: hidden;
  display: flex; align-items: center; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, rgba(30, 63, 174, .55), transparent 72%), #050506;
}
.stage .in { display: flex; flex-direction: column; align-items: center; }
.stage h1 { font-size: clamp(56px, 17vw, 260px); line-height: .85; }
.stage .big { margin-top: -5vw; width: min(66vw, 520px); position: relative; z-index: 1; pointer-events: none; }
.stage .grow { transform-origin: 50% 40%; will-change: transform; }
.stage [data-tilt] { pointer-events: auto; }
.stage .big img { width: 100%; height: auto; }
.stage .soon { margin: 6px 0 4px; font-size: 13px; }
/* countdown: .count lives in index.css, so redeclared here */
.mcount { display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); margin: 10px 0 8px; }
.mcount b {
  display: inline-block; font: 800 clamp(30px, 6vw, 72px)/1 var(--f-x); font-stretch: 125%; font-variant-numeric: tabular-nums;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mcount span { display: block; font: 500 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.tba { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--mu); margin-bottom: 20px; }
.stage .btn { margin: 8px 0 20px; }
.notify { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(100%, 520px); margin-top: 6px; }
.notify .field { background: rgba(255, 255, 255, .06); border: 1px solid rgba(233, 237, 242, .4); color: var(--cream); }
.notify .field::placeholder { color: #9aa1ac; }
.notify small { flex-basis: 100%; font-size: 11px; opacity: .7; }
.ok { margin-top: 6px; min-height: 1.5em; font-size: 14px; color: var(--cyan); }

/* 3. GRID ----------------------------------------------------------------- */
.intro { color: var(--mu); font-size: 13px; margin: 12px 0 32px; }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .04); }
.prod .cover, .prod .ph { border-bottom: 1px solid var(--line); position: relative; aspect-ratio: 1; }
.prod .cover b { font-size: clamp(16px, 2vw, 24px); }
.prod .cover .tag { position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 10px; background: rgba(5, 6, 10, .6); }
.prod .mi { padding: 14px 16px; }
.mys .cover img { opacity: .4; filter: blur(2px) drop-shadow(0 4px 12px rgba(0, 0, 0, .7)); }
.mys .redact { width: 100%; margin: 0; }
.mys .redact i { height: 10px; }
.ph { overflow: hidden; background: radial-gradient(circle at 30% 18%, #4a5058, #14161a 55%, #050506); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.ph img.b { opacity: 0; }
.prod:hover .ph img.b, .prod:focus-within .ph img.b { opacity: 1; }
.ph .tag { position: absolute; left: 12px; top: 12px; font-size: 10px; background: rgba(5, 6, 10, .7); }
.prod h3 { font-size: 15px; color: #fff; }
.prod .pr { margin-top: 4px; font-size: 14px; color: var(--cyan); }
.sz { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.sz li, .dr-sz button { font: 500 11px var(--f-mono); letter-spacing: .08em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--cream); }
.prod .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prod.out { filter: grayscale(1); opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .prod { transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s; }
  .mo .prod.mys.is-in:hover, .prod.mys:hover { transform: translateY(-6px); border-color: var(--cyan); }
}

/* 4 pieces: one big tile (left, 2 rows) + three on the right (two on top, one wide below) */
@media (min-width: 641px) {
  .prods.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .n4 .prod:nth-of-type(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .n4 .prod:nth-of-type(4) { grid-column: 3 / 5; }
  .n4 .prod:not(:nth-of-type(1)) .cover, .n4 .prod:not(:nth-of-type(1)) .ph { aspect-ratio: auto; flex: 1; min-height: 150px; }
  .n4 .prod:nth-of-type(1) .cover b { font-size: clamp(28px, 4vw, 56px); }
}
@media (max-width: 640px) {
  .prods { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prods.n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .n4 .prod:nth-of-type(1) { grid-column: 1 / -1; }
  .n4 .prod:not(:nth-of-type(1)) .mi { padding: 8px; }
  .n4 .prod:not(:nth-of-type(1)) .cover .tag { left: 5px; top: 5px; font-size: 8px; letter-spacing: .06em; padding: 2px 4px; }
  .n4 .prod:not(:nth-of-type(1)) .cover b { font-size: 12px; }
  .n4 .prod:not(:nth-of-type(1)) .sz, .n4 .prod:not(:nth-of-type(1)) .buy { display: none; }
  .n4 .prod:not(:nth-of-type(1)) h3 { font-size: 11px; }
  .n4 .prod:not(:nth-of-type(1)) .pr { font-size: 12px; }
}

/* 4. DRAWER --------------------------------------------------------------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); height: 100dvh; max-height: none;
  padding: 64px 28px 32px; overflow-y: auto; color: var(--cream);
  background: var(--ink); border: 0; border-left: 1px solid var(--line);
}
.drawer::backdrop { background: rgba(0, 0, 0, .7); }
.drawer:not([open]) { display: none; }
.drawer[open] { display: flex; flex-direction: column; gap: 16px; }
.dr-x { position: absolute; right: 16px; top: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; color: var(--cream); background: none; border: 1px solid var(--line); }
.dr-x:hover { color: var(--cyan); border-color: var(--cyan); }
.dr-main { aspect-ratio: 1; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dr-main img { width: 100%; height: 100%; object-fit: cover; }
.dr-th { display: flex; gap: 8px; }
.dr-th button { width: 64px; height: 64px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; }
.dr-th button[aria-pressed="true"] { border-color: var(--cyan); }
.dr-th img { width: 100%; height: 100%; object-fit: cover; }
.drawer h2 { font-size: clamp(22px, 4vw, 32px); color: #fff; }
.dr-price { color: var(--cyan); }
.dr-sz { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-sz button { background: none; cursor: pointer; padding: 9px 16px; }
.dr-sz button[aria-pressed="true"] { background: var(--cream); color: #111; border-color: var(--cream); }
.dr-det { color: var(--mu); font-size: 14px; display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.drawer .btn { align-self: flex-start; }
@media (max-width: 640px) { .drawer { width: 100%; border-left: 0; padding: 64px 20px 28px; } }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: dr-in .4s cubic-bezier(.2, .7, .2, 1); }
  .drawer[open]::backdrop { animation: dr-fade .4s; }
}
@keyframes dr-in { from { transform: translateX(100%); } }
@keyframes dr-fade { from { opacity: 0; } }

/* 5. SIZE GUIDE ----------------------------------------------------------- */
.sizes { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sizes summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font: 500 13px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
}
.sizes summary::-webkit-details-marker { display: none; }
.sizes summary::after { content: "+"; font: 800 24px/1 var(--f-x); background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sizes[open] summary::after { content: "\2212"; }
.sizes table { border-collapse: collapse; width: min(100%, 520px); font: 400 13px var(--f-mono); }
.sizes th, .sizes td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); }
.sizes thead th { color: var(--cyan); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.sizes p { color: var(--mu); font-size: 12px; padding: 14px 0 22px; }

/* 6. CLOSE ---------------------------------------------------------------- */
.close { text-align: center; padding-bottom: 104px; }
.close h2 { font-size: clamp(32px, 7vw, 96px); line-height: .95; margin-bottom: 32px; }
.close .acts { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.close .acts a.mono { overflow-wrap: anywhere; }
.close p { margin-top: 14px; font-size: 12px; color: var(--mu); }
