.crumbs { font-size: 13px; color: var(--ink-3); padding: 18px 0 14px; display: flex; gap: 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }

.pd {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px; align-items: start; padding-bottom: 20px;
  /* The shell is wide for product rows; a single product's text should not
     stretch across all of it. */
  max-width: 1200px;
}
.pd-media {
  position: relative; aspect-ratio: 1/1; border-radius: 18px; overflow: hidden;
  /* A little off the full width of its column, centred. The photograph used
     to be the whole of the top of the page; the films under it are now worth
     as much of the screen, and a square at full width pushed them off the
     bottom of a phone. A share rather than a fixed size, so it gives up the
     same proportion on a phone as on a monitor. */
  max-width: 82%; margin-inline: auto;
  /* White behind the cover, not grey — a product shot on a white background
     used to sit in a visible box. */
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
/* The chosen phone's film plays over the photograph here (.card-clip, from
   styles.css, z-index 1). The discount flag belongs on top of it, not under:
   it is the one thing on the picture that is not the cover. */
.pd-media .card-flag { z-index: 2; }

/* The model picker, sitting with the films rather than in the buy form. The
   gap under it is the films' own top margin, so it gives back the 14px a
   .field normally carries and lets them set the distance. */
.pd-model-field { margin-top: 22px; margin-bottom: 2px; }
/* "Picked iPhone 14 Pro Max because that looks like your phone." `.pd-guess`
   pulls itself up by 4px, which suited sitting under a field that carried a
   14px gap below it. This one gives back all but 2, so the line ended up
   against the select. */
.pd-gallery .pd-guess { margin-top: 10px; }
/* The line under the films. `.demo-hint` pulls itself up by 2px, which was
   right when it sat under a row of buttons and wrong under tiles — it ended
   up against their bottom edge. */
.pd-gallery .demo-hint { margin-top: 6px; }

.pd-info h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.03em; line-height: 1.15; }
.pd-desc { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-now { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.pd-was { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.pd-save {
  font-size: 13px; font-weight: 700; color: var(--good);
  background: color-mix(in srgb, var(--good) 13%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.pd-stock { padding: 10px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.pd-stock.is-low { color: #b4700d; background: color-mix(in srgb, #d98b16 15%, transparent); }
.pd-stock.is-gone { color: var(--sale); background: color-mix(in srgb, var(--sale) 13%, transparent); }
/* On the pale tint the readable accent, never --accent-ink: that is the
   colour for text sitting ON the accent fill, so for a shop with a dark
   accent (Ki Kinben's purple) it is white, and white on a near-white tint
   is invisible. */
.pd-stock.is-preorder { color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent); }

.pd-add { font-size: 16px; padding: 14px 20px; margin-top: 4px; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-actions .pd-add { width: 100%; font-weight: 700; }
.pd-actions .pd-add:not(.btn-primary) { border-color: var(--ink); }
.pd-actions.is-gone { grid-template-columns: 1fr; }
.pd-added { margin-top: 10px; }
.pd-added a { color: inherit; font-weight: 700; }
.pd-perks { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.similar { padding: 26px 0 60px; border-top: 1px solid var(--line); margin-top: 20px; }
.similar-title { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 4px; }

@media (max-width: 820px) {
  .pd { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- phones: the buy buttons follow you down the page ----
   "Add to basket" sat below the picture, the description, the price, the
   model picker and the demos — about two screens down. Sticking the pair to
   the bottom of the viewport keeps the decision one thumb-reach away the
   whole time, which is what every large shop does on a phone now. */
@media (max-width: 760px) {
  .pd-info h1 { font-size: 22px; }
  .pd-desc { font-size: 14.5px; margin-bottom: 14px; }
  .pd-now { font-size: 26px; }
  .pd-price { gap: 9px; margin-bottom: 12px; }
  .pd-stock { padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
  /* The cover code is for messaging the shop, not for choosing — it drops
     below the price instead of sitting between the name and it. */
  .pd-code { order: 2; font-size: 12.5px; }

  .pd-actions {
    position: sticky; bottom: 0; z-index: 30;
    margin: 14px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);   /* Safari */
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .pd-add { font-size: 15.5px; padding: 13px 16px; margin-top: 0; }
  .pd-perks { margin-top: 16px; padding-top: 14px; }
  .similar { padding: 20px 0 40px; }

  /* The chat button is fixed at z-index 90 and would land on top of "Buy
     now". This file only loads on the product page, so lifting it here does
     not move the button anywhere else in the shop. `body` prefix because
     chat.css is linked after this file and sets bottom on the bare class. */
  body .chat-launcher { bottom: 88px; }
}

.pd-video { margin-bottom: 10px; }
.video-sheet { width: min(860px, 100%); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-foot { padding: 12px 20px; font-size: 13px; }
.video-foot a { color: var(--accent-text); text-decoration: none; }
.video-foot a:hover { text-decoration: underline; }
/* A play marker on cards whose product has a clip. */
.card-play {
  position: absolute; bottom: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(12,12,16,.72); color: #fff;
  display: grid; place-items: center; font-size: 12px;
}

/* ---- contact us ---- */
.contact-page { max-width: 720px; margin: 10px auto 60px; }
.contact-title { font-size: 30px; margin: 10px 0 6px; }
.contact-lede { color: var(--muted); margin: 0 0 22px; line-height: 1.55; }
.contact-rows {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.contact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-key { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.contact-val { font-size: 15px; line-height: 1.5; word-break: break-word; }
.contact-val a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }
.contact-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}
.contact-foot { margin-top: 26px; }

/* Stacked rather than squeezed: a 150px label column leaves nothing for an
   address on a narrow phone. */
@media (max-width: 560px) {
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .contact-title { font-size: 25px; }
}

/* ---- reviews ---- */
.reviews { margin-top: 48px; }
.rv-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rv-summary { display: flex; align-items: center; gap: 8px; }
.rv-summary-text { color: var(--muted); font-size: 14px; }
.rv-stars-static { color: #e0a800; letter-spacing: 1px; font-size: 15px; line-height: 1; }

.rv-list { display: grid; gap: 12px; margin-top: 16px; }
.rv-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
}
.rv-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-author { font-weight: 650; font-size: 14.5px; }
.rv-when { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.rv-verified {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.rv-body { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.rv-none { color: var(--muted); margin-top: 14px; }

.rv-write { margin-top: 20px; }
.rv-write-toggle {
  cursor: pointer;
  display: inline-block;
  font-weight: 650;
  font-size: 14.5px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  list-style: none;
}
.rv-write-toggle::-webkit-details-marker { display: none; }
.rv-write-toggle:hover { border-color: var(--accent); }
.rv-write[open] .rv-write-toggle { margin-bottom: 14px; }
.rv-form {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}
.rv-moderated { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

.rv-stars { display: flex; gap: 4px; }
.rv-star {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 0 2px;
  color: var(--muted);
}
.rv-star.is-on { color: #e0a800; }
.rv-star:hover { color: #e0a800; }

/* On a card, under the price. */
.card-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.card-rating-text { color: var(--muted); font-size: 12.5px; }

/* ---- contact form ---- */
.contact-form-title { font-size: 20px; margin: 30px 0 14px; }
.contact-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}
.contact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-hint { display: block; margin: -4px 0 12px; font-size: 12.5px; }
/* Off-screen rather than display:none — some bots skip hidden fields but
   fill ones they can "see" in the DOM. */
.contact-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}
@media (max-width: 560px) {
  .contact-two { grid-template-columns: 1fr; gap: 0; }
}

.pd-guess {
  margin: -4px 0 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5;
}
.pd-guess-fix {
  border: 0; background: none; cursor: pointer; font: inherit;
  color: var(--accent-text); font-weight: 700; text-decoration: underline; padding: 0;
}

/* What the case does, ticked in the admin. */
/* The cover's own points, and the shop's promises below them, as chips that
   wrap rather than a column of ticked lines.

   `minmax(190px, 1fr)` is one column on a phone, so six points were six full
   lines, and the three promises three more — nine rows of a 375px screen
   spent on short phrases, pushing the buy button further down with every one
   a cover happens to have. As chips they take two or three rows between them.

   Both lists are tick-and-phrase, so they share the shape. The tick becomes
   part of the chip rather than something positioned beside it — `.pd-perks`
   also carries `.side-perks` from styles.css, whose tick is absolutely
   placed and whose direction is a column; product.css is linked after it, so
   these win at equal specificity. */
.pd-features, .pd-perks {
  list-style: none; padding: 0;
  /* `row` said outright: .side-perks sets `flex-direction: column`, and
     leaving it unmentioned here left the chips in a column, wrapping. */
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px;
}
.pd-features { margin: 0 0 14px; }
.pd-features li, .pd-perks li {
  position: static; padding: 5px 11px;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px; line-height: 1.35; color: var(--ink-2);
}
.pd-features li::before, .pd-perks li::before {
  content: "✓"; position: static;
  width: auto; height: auto; background: none; border-radius: 0;
  color: var(--good); font-size: 10.5px; font-weight: 800;
  display: inline; place-items: initial;
}

/* One tile per film this cover has — all of them, whatever phone each was
   shot on, each playing itself. A cover is often filmed once per size of
   phone, so this is six tiles as readily as one.

   These were buttons reading "▶ In hand" until the films were put in them.
   The tiles are the same ones the shop's wall uses: clips.js finds them by
   their data-clip and puts a player in the .card-clip inside. Upright,
   because the films are Shorts, filmed on a phone held the way a phone is
   held. */
.pd-demos {
  /* Room around the films rather than a solid block of them: air above and
     below, and a gap between.

     The floor is 92px, not the 104 it was: three tiles, two 10px gaps and
     the padding come to 325 of a 375px phone's 328, and at 104 the third
     would not fit — the row dropped to two, which made each tile half the
     width of the screen. Spacing them should not enlarge them. */
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 14px 0 12px;
  padding: 2px;
}
.pd-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9/16; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--brand-dark); cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  transition: transform .18s ease, border-color .18s ease;
}
.pd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-tile:hover { transform: translateY(-2px); }
@media (hover: none) { .pd-tile:hover { transform: none; } }
.pd-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The tiles carry no writing. The phones each film was shot on were named
   along the foot of every one, which on a cover filmed six times was six
   captions over six playing films; the ring below says the only thing a
   shopper needs to read off them. The names live in each tile's aria-label.

   The film of the phone the shopper actually picked. A gradient ring drawn
   as a mask rather than a border, so it sits over the playing film instead
   of being covered by it — the player fills the tile edge to edge. */
.pd-tile.is-mine { border-color: transparent; }
.pd-tile.is-mine::after {
  content: ''; position: absolute; inset: 0; z-index: 4;
  border-radius: inherit; padding: 2.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), #8b5cf6 45%, #ec4899 75%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* The demo of the phone just picked, when it could not start by itself.
   Two pulses and it settles: enough to be noticed, not a button that throbs
   at the shopper for as long as they are reading the page. */
.pd-demo.is-nudge {
  border-color: var(--accent);
  animation: demo-nudge 1.1s ease-out 2;
}
@keyframes demo-nudge {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  40% { box-shadow: 0 0 0 4px var(--accent-soft); }
}
/* Whoever asked for less movement is among the most likely to see this, as
   reduced motion is itself one of the things that stops the video playing. */
@media (prefers-reduced-motion: reduce) {
  .pd-demo.is-nudge { animation: none; background: var(--accent-soft); }
}

.demo-hint {
  margin: -2px 0 14px; padding: 9px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--surface-2);
}

.rv-invited { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--good); }

/* The cover's code, for quoting it in Messenger. */
.pd-code { margin: -4px 0 10px; font-size: 13px; color: var(--ink-2); }
.pd-code strong { font-family: ui-monospace, Menlo, monospace; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---- "find it for me" request page ---- */
.rq-steps { list-style: none; counter-reset: rq; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.rq-steps li {
  counter-increment: rq; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.rq-steps li::before {
  content: counter(rq); grid-row: span 2; width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--accent-ink);
}
.rq-steps strong { font-size: 15px; }
.rq-steps li > span { font-size: 13.5px; color: var(--ink-2); }
.rq-h { font-size: 17px; margin: 8px 0 14px; letter-spacing: -0.01em; }
.rq-form .rq-h:not(:first-child) { margin-top: 26px; }
.rq-two { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.rq-qty { margin-top: 0; height: 49px; }
.rq-qty button { height: 47px; width: 42px; }
.rq-photo {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2);
  font-weight: 650; font-size: 14.5px; color: var(--ink);
}
.rq-photo:hover { border-color: var(--accent-text); }
.rq-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; }
.rq-terms { margin: 18px 0 14px; }
.rq-form .note.is-error { margin-bottom: 12px; }
.rq-page .done { padding-top: 10px; }
.pd-more { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.pd-share { gap: 8px; padding-left: 18px; padding-right: 18px; }

/* A cover's other photos, under the big one. */
.pd-gallery { min-width: 0; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.pd-thumb { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.is-on { border-color: var(--accent, var(--ink)); }

.pd-stock.is-soon { color: #1d5fb8; background: color-mix(in srgb, #2b7de9 13%, transparent); }
.pd-stock.is-ready { color: #1f7a3a; background: color-mix(in srgb, #2e9e50 13%, transparent); }
