/* Feed · the pages after the feed: product, sell, cart, checkout. Loaded after feed.css. */

/* ---------- shared: page top bar, white sheets, ink buttons, cards, footer ---------- */
.top--page { position: absolute; z-index: 10; top: 0; inset-inline: 0; padding: var(--sat) 12px 0; }
.pg-flat { display: flex; flex-direction: column; }
.pg-flat > main { flex: 1; }
.pg-flat .top--page { position: relative; padding-inline: max(12px, calc((100% - 1120px) / 2)); }
.sheet { --on: #17121c; --field: #ffffff; background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.tlink { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.footmin { --on: #ffffff; --field: #17121c; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 24px 16px calc(28px + var(--sab)); background: var(--ink); color: #fff; font-size: 14px; }
.footmin .mark__t { font-size: 20px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-m);
  background: var(--field); color: var(--on); text-decoration: none; scroll-snap-align: start;
}
.card__art { position: relative; aspect-ratio: 5 / 6; }
.card__art img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.card__art img.is-on { opacity: 1; }
.card__t { display: flex; flex-direction: column; gap: 2px; }
.card__n { font: 800 18px/1.1 var(--f-d); letter-spacing: -.02em; }
.card__by { font-size: 14px; }
.card:hover .card__n { text-decoration: underline; }
.badge-off, .badge-studio { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 9px; border-radius: 999px; background: var(--on); color: var(--field); font: 700 12.5px/1.1 var(--f-b); }

/* ---------- product ---------- */
.pp__stage { position: relative; height: 62svh; min-height: 340px; padding-top: calc(64px + var(--sat)); display: flex; flex-direction: column; }
.stagebox { flex: 1; border-radius: var(--r-m); }
.stagebox:focus-visible { outline: 3px solid var(--on); outline-offset: -3px; }
.pp__tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 12px 36px; }
.pp__hint { margin-inline-end: auto; font-size: 14px; font-weight: 600; }
.pp__sheet {
  --on: #17121c; --field: #ffffff; position: relative; z-index: 2; margin-top: -24px; padding: 24px 16px 28px;
  border-radius: 28px 28px 0 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 14px;
}
.pp__sheet::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #d5d0db; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ink); }
.pp__name { font: 800 clamp(32px, 9vw, 46px)/1.05 var(--f-d); letter-spacing: -.04em; text-wrap: balance; }
.pp__by { font-size: 16px; font-weight: 600; color: var(--muted); }
.pp__sheet .tag--studio, .pp__sheet .tag--off { background: var(--ink); color: #fff; border-color: var(--ink); }
.pr--big .pr__now { font-size: 32px; letter-spacing: -.02em; }
.pr--big .pr__was { font-size: 18px; color: var(--muted); }
.matinfo { border-radius: var(--r-s); background: #f3f1f6; }
.matinfo summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer; font-weight: 600; }
.matinfo p, .matinfo a { margin: 0 14px; }
.matinfo a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.swatches legend { font-size: 15px; margin-bottom: 8px; }
.swatches__row { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; padding: 8px 6px; border-radius: var(--r-s); border: 2px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; }
.sw input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sw__c { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(23, 18, 28, .25); }
.sw:has(input:checked) { border-color: var(--ink); }
.sw:has(input:focus-visible) { outline: 3px solid #2448d8; outline-offset: 2px; }
.pod { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.buy { display: flex; gap: 10px; }
.buy .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; }
.stepper button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output, .stepper .num { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; }
.rv { display: flex; flex-direction: column; gap: 6px; }
.rv .btn { width: 100%; }
.rv__note { font-size: 14px; color: var(--muted); text-align: center; }
.pp__h { font: 800 22px/1.1 var(--f-d); letter-spacing: -.02em; margin-top: 8px; }
.pp__desc { max-width: 60ch; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: end; }
.pp__more { padding: 28px 0 32px; }
.pp__mh { padding: 0 16px; font: 800 30px/1 var(--f-d); letter-spacing: -.035em; }
.pp__ms { padding: 4px 16px 14px; font-weight: 500; }
.minifeed {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 52%); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 16px 10px; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
}
.pp__more .card { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 18%, transparent); }
.buybar {
  --on: #17121c; --field: #ffffff; position: fixed; z-index: 30; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px calc(10px + var(--sab)); background: var(--paper); color: var(--ink); box-shadow: 0 -8px 24px rgba(23, 18, 28, .18);
  transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s;
}
.bar-on .buybar { transform: none; visibility: visible; transition: transform .25s var(--ease); }
.bar-on { --toast-lift: 76px; }
.buybar__sw { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(23, 18, 28, .25); }
.buybar__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.buybar__t .pr { gap: 0 8px; }
.buybar__c { font-size: 13px; color: var(--muted); }
.buybar .btn { flex: none; min-height: 50px; padding: 0 18px; }
.pg-product .footmin { padding-bottom: calc(96px + var(--sab)); }

@media (min-width: 1024px) {
  .pp { display: grid; grid-template-columns: minmax(0, 1fr) min(500px, 40vw); align-items: start; }
  .pp__stage { position: sticky; top: 0; height: 100vh; padding: 84px 24px 0; }
  .pp__tools { padding-bottom: 24px; }
  .pp__sheet { margin: 0; min-height: 100vh; border-radius: 0; padding: 40px 40px 40px; }
  .pg-product .top--page { inset-inline-end: min(500px, 40vw); }
  .pp__sheet::before { display: none; }
  .pp__more { grid-column: 1 / -1; padding: 48px 0 56px; }
  .pp__mh, .pp__ms { padding-inline: 40px; }
  .minifeed { grid-auto-columns: 240px; padding-inline: 40px; }
  .buybar { display: none; }
  .bar-on { --toast-lift: 0px; }
  .pg-product .footmin { padding-bottom: 28px; }
  .top--page { padding-inline: 24px; }
  .top--page .mark__t { font-size: 22px; }
}
