/* The Shop: generated pages under /shop, on top of styles.css. */
/* The one light-grey surface every product photo stands on, JD Sports' own backdrop: a photo on white multiplies into it, and JD's matches it. */
:root { --photo-surface: #ededed; }
.shop-page {
  --ink-soft: #4a4a4a;
  --nav-h: 76px;
}

/* --- The Shop header --- */
.shop-head { text-align: center; padding: 40px 24px 28px; }
.shop-mark {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--black); display: flex; align-items: center; justify-content: center;
}
.shop-mark span {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 700; font-size: 54px; line-height: 1; color: #fff;
  text-shadow: -2.5px 0 var(--accent-2), 2.5px 0 var(--accent-3);
}
.shop-head h1 {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 40px;
  letter-spacing: -0.01em; color: var(--ink-soft);
}
.shop-sub {
  margin-top: 14px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}

/* --- Category tabs --- */
.shop-tabs {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.shop-tabs-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 40px;
  display: flex; align-items: center; justify-content: safe center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  --fade: 88px;
}
/* shop.js marks the edges that have more to scroll; the fade says "there's more this way". */
.shop-tabs-inner[data-more="end"] {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
}
.shop-tabs-inner[data-more="start"] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade));
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade));
}
.shop-tabs-inner[data-more="both"] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.shop-tabs-inner::-webkit-scrollbar { display: none; }
.shop-tabs button {
  flex: none; font: inherit; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 18px;
  padding: 6px 16px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--ink-soft); cursor: pointer;
}
.shop-tabs button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.shop-tabs .count {
  margin-left: 6px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 11px;
  color: var(--ink-soft); vertical-align: 2px;
}
/* The page's own brand or category: filled, so it reads as where you are; × goes back to the directory. */
.shop-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 18px;
  padding: 6px 14px 6px 16px; border-radius: 999px; margin-right: 8px;
  background: var(--ink); color: var(--white); text-decoration: none;
}
.shop-chip span { font-family: 'Geist', 'Geist Fallback', sans-serif; font-size: 15px; opacity: 0.7; }
.shop-chip:hover span { opacity: 1; }
.shop-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shop-tabs button:hover { color: var(--ink); }
.shop-tabs button:focus-visible, .card:focus-visible, .shop-cta a:focus-visible,
.pdp a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- Feed of cards --- */
.shop-wide { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.shop-feed {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px; padding-top: 36px;
}
.shop-feed li[hidden] { display: none; }
/* A product is its photo on the shared surface, edge to edge, with its brand and name below on the page: no card around it. */
.card { height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo-surface); }
.card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 12%; mix-blend-mode: multiply; transition: transform 0.35s ease;
}
.card-img.cover img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
/* A dark photo on its own edge colour (the catalog's backdrop): the whole photo, edge to edge, as it was shot. */
.card-img.backdrop { background: var(--backdrop); }
.card-img.backdrop img { padding: 0; mix-blend-mode: normal; }
.card:hover .card-img img { transform: scale(1.03); }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-text { flex: 1; padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card-brand {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.card-name {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 500; font-size: 21px;
  line-height: 1.15; letter-spacing: -0.005em;
}

/* --- Ways to shop --- */
.shop-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 520px; margin: 72px auto 96px;
}
.shop-cta a {
  display: flex; align-items: center; justify-content: center; padding: 13px 20px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
  font-size: 14px; color: var(--ink); transition: background 0.2s, color 0.2s;
}
.shop-cta a:hover { background: var(--ink); color: #fff; }
/* Three ways to shop sit in one row; on a phone the third takes the row below. */
.shop-cta:has(> a:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); max-width: 780px; }
/* A store's button reads "Shop Amazon picks" on a computer, "Amazon picks" on a phone; its name is the full label either way. */
.shop-cta .cta-short { display: none; }
@media (max-width: 720px) {
  /* Equal buttons, each label on one line: two by two while the widest label (shop.js measures it as --cta-min) fits in half the row, else one column; never three across. */
  .shop-cta { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--cta-min, 11em), calc(50% - 6px))), 1fr)); }
  .shop-cta a { position: relative; white-space: nowrap; min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .shop-cta:has(> a:nth-child(3):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--cta-min, 11em), calc(50% - 6px))), 1fr)); }
  .shop-cta > a:nth-child(3):last-child { grid-column: 1 / -1; }
  .shop-cta .cta-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .shop-cta .cta-short { display: inline; }
}

/* --- Product page --- */
.pdp {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h)); border-bottom: 1px solid var(--line);
}
.pdp-info { display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.pdp-inner { width: 100%; max-width: 440px; }
.pdp-back {
  display: inline-block; margin-bottom: 40px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.pdp-meta { font-size: 13px; color: var(--ink-soft); }
.pdp-meta a { color: var(--ink-soft); text-decoration: none; }
.pdp-meta a:hover { text-decoration: underline; }
.pdp-disc { font-style: italic; }
.pdp-title {
  margin-top: 10px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400;
  font-size: 46px; line-height: 1.05; letter-spacing: -0.015em;
}
.pdp-by { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.pdp-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--black); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 700; font-size: 13px;
}
.pdp-note { margin-top: 40px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 23px; line-height: 1.35; }
.pdp-buy {
  display: block; margin-top: 48px; padding: 15px 24px; border-radius: 999px;
  background: var(--black); color: #fff; text-align: center; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.pdp-buy:hover { background: var(--accent); }
.pdp-other { margin-top: 24px; }
.pdp-other h2 {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-weight: 400; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.pdp-other ul { list-style: none; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-other a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink); text-decoration: none;
}
.pdp-other a:hover { border-color: var(--ink); }
.pdp-more-link {
  display: block; margin-top: 16px; text-align: center; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.pdp-panel {
  background: var(--photo-surface); display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
/* A product cut out of its white margin sits in a square, at about three quarters of the panel. */
.pdp-photo { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; }
.pdp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
/* A photo with a person fills the whole panel, with no white frame. */
.pdp-panel:has(.pdp-photo.cover) { padding: 0; align-items: stretch; }
.pdp-photo.cover { max-width: none; aspect-ratio: auto; }
.pdp-photo.cover img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
/* JD Sports' photo of a person is never cropped: the whole photo, fitted edge to edge on JD's grey. */
.pdp-photo.whole img, .card-img.whole img { padding: 0; }
.more { padding-top: 72px; padding-bottom: 96px; }
.more h2 { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 32px; text-align: center; }
.more .shop-feed { padding-top: 28px; }

/* --- Shop by Brand and Shop by Category --- */
.dir-head { text-align: center; padding: 56px 0 8px; }
.dir-head h1 {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 56px;
  line-height: 1.05; letter-spacing: -0.015em;
}
.dir-head .kicker {
  display: block; margin-bottom: 6px; font-style: italic; font-size: 22px;
  letter-spacing: 0; color: var(--ink-soft);
}
.shop-wide + .shop-tabs { margin-top: 28px; }
.mosaic {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 10px; padding-top: 28px;
}
.mosaic > .tile { aspect-ratio: 1 / 1; }
.mosaic > .big { grid-column: span 2; grid-row: span 2; }
.mosaic > .wide { grid-column: span 2; aspect-ratio: auto; }
.tile {
  position: relative; overflow: hidden; border-radius: 4px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 9%; color: var(--ink);
}
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tile-photo, .tile-photo picture { position: absolute; inset: 0; }
.tile-photo img { position: absolute; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.35s ease; }
.tile:hover .tile-photo img { transform: scale(1.03); }
.tile-name { position: relative; z-index: 1; text-align: center; padding: 0 12px; }

/* Brands: a photo on a person with the name over it, or the product with the name below. */
.tile.brand { background: var(--photo-surface); }
.tile.brand .tile-photo img { top: 8%; left: 15%; width: 70%; height: 58%; }
.tile.brand .tile-name {
  font-weight: 600; font-size: clamp(13px, 1.4vw, 18px); letter-spacing: 0.32em;
  padding-left: calc(12px + 0.32em); text-transform: uppercase; line-height: 1.35;
}
.tile.brand:has(.cover) { justify-content: center; padding-bottom: 0; color: #fff; }
.tile.brand:has(.cover)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)); }
.tile.brand .cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.tile.brand:has(.cover) .tile-name { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.tile.brand.big .tile-name { font-size: clamp(18px, 2.6vw, 34px); }
/* A brand shown by its product alone, as on the homepage: on the generator's colour (a palette colour, or JD Sports' grey under a JD photo; no two of one colour touch), the name a third of the way down, the product large below it. */
/* Padding runs off the width: a third of a square tile's height, of a wide (2:1) tile's half as much. */
.tile.brand.still-tile { background: var(--bg); justify-content: flex-start; padding: 30% 0 0; }
.tile.brand.still-tile.wide { padding-top: 15%; }
.tile.brand.still-tile .tile-photo img { top: 42%; left: 8%; width: 84%; height: 48%; object-position: center bottom; }

/* Categories: the product alone on the shared surface. */
/* Each on the generator's colour: a palette colour, or JD Sports' grey under a JD photo; no two of one colour touch. */
.tile.category { background: var(--bg, var(--photo-surface)); padding-bottom: 18px; }
.tile.category .tile-photo img { top: 10%; left: 14%; width: 72%; height: 62%; }
.tile.category .cover img { top: 0; left: 0; width: 100%; height: 76%; object-fit: cover; mix-blend-mode: normal; }
/* JD Sports' photo of a person takes the same box, fitted whole rather than cropped. */
.tile.category .tile-photo.whole img { top: 0; left: 0; width: 100%; height: 76%; }
.tile.category .tile-name { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: clamp(20px, 2vw, 30px); }
.tile.category.big .tile-name { font-size: clamp(30px, 3.4vw, 52px); }
.tile.category.big .tile-photo img { top: 12%; height: 66%; }

/* Stores: the store's name set in type on a palette colour (no logo, no photo). */
.tile.store { background: var(--bg); justify-content: center; padding: 0 8%; }
.tile.store .tile-name { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; }

/* --- Disclosure --- */
.prose { max-width: 680px; margin: 0 auto; padding: 72px 24px 112px; }
.prose h1 { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 56px; letter-spacing: -0.015em; margin-bottom: 12px; }
.prose p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.prose a { color: var(--ink); }

@media (max-width: 1000px) {
  .shop-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-page { --nav-h: 69px; }
}
@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pdp-panel { order: -1; padding: 24px; }
  .pdp-photo { max-width: 420px; }
  .pdp-photo.cover { aspect-ratio: 4 / 5; }
  .pdp-info { padding: 28px 16px 40px; }
  .pdp-back { margin-bottom: 20px; }
  .pdp-title { font-size: 36px; }
  .pdp-note { margin-top: 24px; font-size: 20px; }
  .pdp-buy { margin-top: 28px; }
}
@media (max-width: 720px) {
  .shop-wide, .shop-tabs-inner { padding-left: 16px; padding-right: 16px; }
  .shop-tabs-inner { justify-content: flex-start; }
  .shop-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; }
  .card-name { font-size: 17px; }
  .card-text { padding: 10px 2px 0; }
  .shop-cta { margin: 56px auto 72px; }
  .dir-head h1, .prose h1 { font-size: 40px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile.brand .tile-name { font-size: 12px; letter-spacing: 0.24em; }
}
@media (prefers-reduced-motion: reduce) {
  .card-img img, .card, .shop-cta a, .tile-photo img { transition: none; }
}

/* --- Shop sections, after ShopMy's homepage: a header row over a grid of 4:5 tiles --- */
.sx {
  --ink-soft: #4a4a4a;
  max-width: 1440px; margin: 0 auto; padding: 112px 100px 0;
}
.sx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 0 12px 44px; }
.sx-title { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; color: var(--ink); }
.sx-kicker { display: block; font-style: italic; font-size: 26px; line-height: 1.1; }
.sx-word { display: block; font-weight: 300; font-size: 100px; line-height: 0.95; letter-spacing: -0.02em; margin-left: -4px; }
.sx-side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; text-align: right; padding-bottom: 10px; }
.sx-desc { max-width: 30em; font-size: 18px; font-weight: 300; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.sx-btn {
  display: inline-block; padding: 13px 24px; background: var(--black); color: #fff; text-decoration: none; border-radius: 2px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s ease;
}
.sx-btn:hover { background: var(--accent); }
.sx-btn:focus-visible, .sx-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sx-foot { display: none; }
.sx-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.sx-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--photo-surface); }
.sx-tile picture { position: absolute; inset: 0; }
.sx-tile img { position: absolute; transition: transform 0.4s cubic-bezier(.2, .7, .2, 1); }
.sx-tile:hover img { transform: scale(1.035); }
/* Products and categories: the product alone in the upper part, the label below. */
.sx-tile.product, .sx-tile.category { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 16px 9%; }
.sx-tile.product img, .sx-tile.category img { top: 9%; left: 16%; width: 68%; height: 60%; object-fit: contain; mix-blend-mode: multiply; }
/* A category stands on the generator's colour, as a brand does: a palette colour, or JD Sports' grey under a JD photo; no two of one colour touch. */
.sx-tile.category { background: var(--bg, var(--photo-surface)); }
/* Product names run to two lines, so the label starts at a fixed height and the brands in a row line up. */
/* A product, as in the feed: its photo on the shared surface, edge to edge, its brand and name below on the page. */
.sx-grid:has(.sx-tile.product) { gap: 40px 16px; }
.sx-tile.product { display: block; aspect-ratio: auto; overflow: visible; padding: 0; background: none; }
.sx-tile.product picture { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--photo-surface); }
.sx-tile.product img { inset: 0; width: 100%; height: 100%; padding: 12%; }
.sx-tile.product .sx-label { text-align: left; padding: 14px 2px 0; }
.sx-tile.product:hover .sx-label b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sx-label { position: relative; z-index: 1; text-align: center; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; }
.sx-label i { display: block; font-size: 16px; line-height: 1.2; color: var(--ink-soft); }
.sx-label b { display: block; margin-top: 2px; font-weight: 400; font-size: 30px; line-height: 1.08; letter-spacing: -0.005em; }
.sx-tile.product .sx-label b { font-size: 25px; }
/* Brands: a photo with a person fills the tile, the name in white across the middle. */
.sx-tile.brand { display: flex; align-items: center; justify-content: center; background: #2a2a2a; }
.sx-tile.brand img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-tile.brand::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); transition: background 0.3s ease; }
.sx-tile.brand:hover::after { background: rgba(0, 0, 0, 0.3); }
.sx-tile.brand .sx-name {
  position: relative; z-index: 1; width: 100%; padding: 0 10% 0 calc(10% + 0.28em); text-align: center; color: #fff;
  font-weight: 600; font-size: 17px; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
/* A brand shown by a product alone: the product on a coloured backdrop, the name in ink above it. */
/* Its backdrop is the generator's: a palette colour, or JD Sports' grey under a JD photo; no two of one colour touch. */
/* The name a third of the way down, the product large below it. */
.sx-tile.brand.still-tile { background: var(--bg); align-items: flex-start; padding-top: 38%; }
.sx-tile.brand.still-tile::after { content: none; }
/* Studio light on every palette tile: brands here, on For Brands and on Shop by Brand, categories and stores (none over a JD photo, below). */
.sx-tile.brand.still-tile::before, .sx-tile.category::before, .tile.brand.still-tile::before, .tile.category::before, .tile.store::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 0%, rgba(255, 255, 255, 0.4), transparent 60%); }
.sx-tile.brand.still-tile img { inset: auto; left: 8%; top: 43%; width: 84%; height: 47%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.sx-tile.brand.still-tile .sx-name { color: var(--ink); text-shadow: none; }
@media (max-width: 1100px) {
  .sx { padding-left: 40px; padding-right: 40px; }
  .sx-word { font-size: 84px; }
  .sx-label b { font-size: 24px; }
  .sx-tile.product .sx-label b { font-size: 21px; }
}
@media (max-width: 720px) {
  .sx { padding: 72px 4px 0; }
  .sx-head { display: block; padding: 0 12px 28px; }
  .sx-kicker { font-size: 22px; }
  .sx-word { font-size: 60px; }
  .sx-side { display: block; text-align: left; padding: 0; margin-top: 12px; }
  .sx-desc { font-size: 15px; line-height: 1.45; }
  .sx-side .sx-btn { display: none; }
  .sx-foot { display: flex; justify-content: center; padding-top: 32px; }
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The generator's phone order for brand tiles, so no two of one colour touch in 2 columns either. */
  .sx-grid > li { order: var(--m, 0); }
  .sx-tile.category { padding-left: 10px; padding-right: 10px; }
  .sx-tile.category { padding-bottom: 8%; }
  .sx-grid:has(.sx-tile.product) { gap: 28px 8px; }
  .sx-tile.product .sx-label { padding-left: 4px; padding-right: 4px; }
  .sx-label i { font-size: 13px; }
  .sx-label b { font-size: 21px; }
  .sx-tile.product .sx-label b { font-size: 18px; }
  .sx-tile.brand .sx-name { font-size: 12px; letter-spacing: 0.24em; padding: 0 8% 0 calc(8% + 0.24em); }
}

/* --- Still-life hero: products cut from their white backgrounds, standing on a coloured backdrop --- */
.still {
  --bg: #dccab0;
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(580px, calc(100vh - 81px), 760px); background: var(--bg);
}
/* A soft studio sweep: light from the top right, a slightly darker floor. */
.still::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255, 255, 255, 0.38), transparent 60%),
    linear-gradient(transparent 76%, rgba(60, 40, 20, 0.06) 76.2%, rgba(60, 40, 20, 0.015));
}
.still-inner { position: relative; z-index: 2; max-width: 1440px; height: 100%; margin: 0 auto; padding: 0 112px; display: flex; align-items: center; pointer-events: none; }
.still-text { max-width: 560px; pointer-events: auto; }
.still-text h1 {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 300;
  font-size: clamp(54px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance;
}
.still-text h1 em { font-style: italic; font-weight: 400; }
.still-text p { margin-top: 22px; max-width: 30em; font-size: 18px; line-height: 1.5; color: rgba(22, 22, 22, 0.78); text-wrap: pretty; }
.still-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.still-link { font-size: 14px; color: var(--ink); text-underline-offset: 4px; }
.still a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* No z-index on the stage: a stacking context would cut the products off from the backdrop they multiply with. */
.still-stage { position: absolute; top: 12%; bottom: 17%; left: 46%; right: 3%; }
.still-slide { position: absolute; mix-blend-mode: multiply; }
.still-slide img { position: absolute; top: 6%; bottom: 0; left: 8%; width: 84%; height: 94%; object-fit: contain; object-position: center bottom; }
/* The shadow each product casts on the floor. */
.still-slide::after {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: -3.5%; height: 7%;
  background: radial-gradient(closest-side, rgba(40, 25, 10, 0.3), transparent); filter: blur(3px);
}
/* Three products side by side on one floor line, never overlapping (multiply would show one through another).
   The left slot is set for a laptop, whose photo includes the shadow under it, so it stands a little lower. */
.still-slide.a { top: 18%; bottom: 6%; left: -2%; right: 54%; }
.still-slide.b { top: 24%; bottom: 8%; left: 49%; right: 37%; }
.still-slide.c { top: 44%; bottom: 8%; left: 66%; right: -4%; }
@media (max-width: 1100px) {
  .still-inner { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 760px) {
  .still { height: auto; }
  .still::before { background: radial-gradient(120% 90% at 78% 8%, rgba(255, 255, 255, 0.38), transparent 60%), linear-gradient(transparent calc(100% - 150px), rgba(60, 40, 20, 0.06) calc(100% - 150px + 1px), rgba(60, 40, 20, 0.015)); }
  .still-inner { display: block; height: auto; padding: 48px 16px 0; }
  .still-text h1 { font-size: 46px; }
  .still-text p { font-size: 16px; }
  .still-actions { margin-top: 24px; }
  .still-stage { position: relative; inset: auto; height: 170px; margin: 36px 16px 32px; }
  .still-slide.a { top: 18%; bottom: 0; left: -4%; right: 54%; }
  .still-slide.b { top: 0; bottom: 0; left: 46%; right: 34%; }
  .still-slide.c { top: 36%; bottom: 0; left: 66%; right: -4%; }
}

/* --- For Brands --- */
/* Keep the nav button on one line on phones. */
.nav-cta { white-space: nowrap; }
.bw-brands { padding-bottom: 112px; }
.bw-steps .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-promote { max-width: 1320px; margin: 0 auto; padding: 120px 40px; }
.bw-promote h2, .bw-wait h2 {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 300;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 48px;
}
/* Two lists of the same length whose rows line up: each row is as tall as the taller of its pair. */
.bw-cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(var(--rows), 1fr); column-gap: 56px; }
.bw-col { display: grid; grid-row: span calc(var(--rows) + 1); grid-template-rows: subgrid; }
.bw-col h3 { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 26px; margin-bottom: 18px; }
.bw-col ul { list-style: none; display: grid; grid-row: span var(--rows); grid-template-rows: subgrid; border-top: 1px solid var(--line); }
.bw-col li { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.bw-wait { background: var(--paper); padding: 120px 40px; }
.bw-wait-inner { max-width: 760px; margin: 0 auto; }
.bw-wait h2 { margin-bottom: 20px; text-align: center; }
.bw-wait-inner > p { max-width: 36em; margin: 0 auto 40px; text-align: center; font-size: 17px; line-height: 1.6; color: rgba(22, 22, 22, 0.72); opacity: 1; }
.bw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bw-form .is-full, .bw-form .apply-modal-error { grid-column: 1 / -1; }
.bw-form button { grid-column: 1 / -1; justify-self: center; min-width: 240px; justify-content: center; }
.bw-small { grid-column: 1 / -1; text-align: center; font-size: 13px; color: rgba(22, 22, 22, 0.6); }
.bw-wait .apply-modal-success { text-align: center; }
@media (max-width: 860px) {
  .bw-brands { padding-bottom: 72px; }
  .bw-steps .how-grid { grid-template-columns: 1fr; }
  .bw-promote, .bw-wait { padding: 80px 16px; }
  .bw-cols { display: block; }
  .bw-col + .bw-col { margin-top: 40px; }
  .bw-form { grid-template-columns: 1fr; }
  .bw-form button { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-tile img, .sx-tile.brand::after { transition: none; }
}

/* --- The homepage: The Shop --- */
/* The hero turns one product at a time: backdrop, product and headline change together. */
.still-rotate { transition: background-color 1.1s ease; }
.still-rotate .still-stage { left: 50%; right: 7%; }
.still-rotate .still-slide {
  inset: 0; opacity: 0; transform: translateY(18px) scale(0.97);
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.still-rotate .still-slide.on { opacity: 1; transform: none; }
.still-rotate .still-slide:not(.on) { pointer-events: none; }
.still-text .still-kicker {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-weight: 400;
  font-size: 12px; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(22, 22, 22, 0.7);
}
.still-text .still-lines {
  display: grid; margin-top: 18px; max-width: none;
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 300;
  font-size: clamp(54px, 5.8vw, 88px); line-height: 0.98; letter-spacing: -0.03em; color: var(--ink);
}
.still-lines span { grid-area: 1 / 1; text-wrap: balance; opacity: 0; transform: translateY(10px); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.still-lines span.on { opacity: 1; transform: none; }
.still-lines em { font-style: italic; font-weight: 400; }
.still-text .still-lines + p { margin-top: 24px; }
/* What's showing, and the controls. */
.still-foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px;
  max-width: 1440px; margin: 0 auto; padding: 0 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.still-ctrl { display: flex; align-items: center; }
.still-bars { display: flex; align-items: center; gap: 6px; }
.still-bars button { position: relative; width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.still-bars button::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(22, 22, 22, 0.18); }
.still-bars button::after { content: ''; position: absolute; left: 0; top: 11px; height: 2px; width: 0; background: var(--ink); }
.still-bars button.done::after { width: 100%; }
.still-bars button.on::after { animation: still-fill 5s linear forwards; }
.still.paused .still-bars button.on::after { animation-play-state: paused; }
@keyframes still-fill { to { width: 100%; } }
.still-pause { margin-left: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(22, 22, 22, 0.25); background: none; color: var(--ink); font-size: 11px; cursor: pointer; }
.still-pause:hover { border-color: var(--ink); }
.still-caption { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 20px; color: var(--ink); text-decoration: none; }
.still-caption i { font-size: 16px; margin-right: 6px; color: rgba(22, 22, 22, 0.7); }
.still-caption:hover { text-decoration: underline; text-underline-offset: 4px; }
.still button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Three promises on paper. */
.sh-promise { background: var(--paper); }
.sh-promise-inner { max-width: 1240px; margin: 0 auto; padding: 72px 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.sh-promise-inner > div { padding: 0 40px; text-align: center; }
.sh-promise-inner > div + div { border-left: 1px solid var(--line); }
.sh-promise i { display: block; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 20px; color: #4a4a4a; }
.sh-promise b { display: block; margin-top: 6px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.sh-promise span { display: block; max-width: 22em; margin: 12px auto 0; font-size: 15px; line-height: 1.55; color: #4a4a4a; text-wrap: balance; }

/* An edit: two photos and a short story with category links. */
.sh-edit { max-width: 1240px; margin: 128px auto 0; display: grid; grid-template-columns: 7fr 5fr; gap: 4px; }
.sh-edit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sh-edit-photos picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.sh-edit-photos img { width: 100%; height: 100%; object-fit: cover; }
.sh-edit-text { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; background: var(--paper); }
.sh-edit-text > i { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 24px; }
.sh-edit-text h2 { margin-top: 4px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 300; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.sh-edit-text p { margin-top: 18px; font-size: 16px; line-height: 1.55; color: #4a4a4a; }
.sh-edit-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; margin-top: 28px; }
.sh-edit-links a { padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px; text-align: center; font-size: 14px; color: var(--ink); text-decoration: none; transition: background 0.2s, color 0.2s; }
.sh-edit-links a:hover { background: var(--ink); color: #fff; }
.sh-edit-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* A dark band for what's coming. */
.sh-gifts { position: relative; overflow: hidden; margin-top: 128px; background: var(--black); color: #fff; }
.sh-gifts-inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 88px 112px; }
.sh-gifts-k { font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.sh-gifts h2 { margin-top: 14px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.sh-gifts h2 em { font-style: italic; font-weight: 400; }
.sh-gifts p { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, 0.75); }
.sh-gifts-word::before { content: 'Gifts'; }
.sh-gifts-word { position: absolute; right: -0.04em; bottom: -0.24em; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-style: italic; font-weight: 400; font-size: clamp(180px, 22vw, 320px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }

/* For Creators and For Brands, side by side. */
.sh-split { max-width: 1240px; margin: 0 auto; padding: 128px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sh-split a { display: block; padding: 56px 48px; background: var(--paper); text-decoration: none; color: var(--ink); transition: background 0.2s; }
.sh-split a:hover { background: #ebe8e1; }
.sh-split a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sh-split i { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 22px; }
.sh-split b { display: block; margin-top: 4px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 44px; line-height: 1.05; letter-spacing: -0.015em; }
.sh-split span { display: block; margin-top: 14px; max-width: 30em; font-size: 15px; line-height: 1.55; color: #4a4a4a; }
.sh-split u { display: inline-block; margin-top: 22px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }

@media (max-width: 1100px) {
  .still-foot, .sh-gifts-inner { padding-left: 40px; padding-right: 40px; }
  .sh-edit { margin-left: 40px; margin-right: 40px; }
  .sh-split { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 760px) {
  .still-text .still-lines { font-size: 46px; }
  .still-rotate .still-stage { inset: auto; height: 260px; margin: 28px 24px 0; }
  .still-foot { position: relative; bottom: auto; padding: 18px 16px 20px; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .still-caption { font-size: 17px; }
}
@media (max-width: 720px) {
  .sh-promise-inner { grid-template-columns: 1fr; padding: 40px 16px; }
  .sh-promise-inner > div { padding: 24px 0; }
  .sh-promise-inner > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sh-edit { grid-template-columns: 1fr; margin: 80px 4px 0; }
  .sh-edit-text { padding: 36px 20px; }
  .sh-gifts { margin-top: 80px; }
  .sh-gifts-inner { padding: 64px 16px 120px; }
  .sh-gifts-word { font-size: 160px; }
  .sh-split { grid-template-columns: 1fr; padding: 80px 4px; }
  .sh-split a { padding: 40px 24px; }
  .sh-split b { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .still-rotate, .still-rotate .still-slide, .still-lines span { transition: none; }
  .still-bars button.on::after { animation: none; width: 100%; }
}

/* --- Even product sizes: a JD Sports photo can't be cropped closer, so a brand's own cut-out photo is shown smaller to match --- */
.card-img:not(.jd):not(.cover):not(.backdrop) img, .sx-tile.product:not(.jd) img { scale: 0.8; }
.sx-tile.category:not(.jd) img, .tile-photo:not(.jd):not(.cover) img { scale: 0.85; }
.sx-tile.brand.still-tile:not(.jd) img, .tile.brand.still-tile .tile-photo:not(.jd) img { scale: 0.7; transform-origin: 50% 100%; }

/* --- JD Sports' photos: shown as JD made them, so the frame takes JD's backdrop and the photo fits by layout alone --- */
.card-img.jd, .tile-photo.jd, .sx-tile.jd:not(.product), .sx-tile.product.jd picture, .sx-tile.brand.still-tile.jd, .pdp-panel:has(.pdp-photo.jd) { background: #ededed; }
.card-img.jd img, .pdp-photo.jd img, .tile-photo.jd img, .sx-tile.jd img, .sx-tile.brand.still-tile.jd img, .still-slide.jd { mix-blend-mode: normal; }
/* A still-life hero holding a JD photo stands on JD's backdrop (the turning hero sets it per slide, in data-bg). */
.still:not(.still-rotate):has(.still-slide.jd) { --bg: #ededed; }
/* No studio light or floor shadow, which would show the photo's edges, nor on a tile grey by design, so it's the same grey. */
.sx-tile.brand.still-tile.jd::before, .sx-tile.category.grey::before, .tile.brand.still-tile.grey::before, .tile.category:has(.tile-photo.jd)::before, .still-slide.jd::after,
.still:not(.still-rotate):has(.still-slide.jd)::before, .still-rotate:has(.still-slide.jd.on)::before { content: none; }

/* Wide tracking pulls Thai vowel and tone marks away from their letters. */
.still-kicker:lang(th), .sh-gifts-k:lang(th), .shop-sub:lang(th) { letter-spacing: 0; }
