/* Hallmark · shop sheet of the Gallery of Light build, 2026-11-09 */
/* critique: one chapter intro per screen, a hairline row of outline chips, Paper plates on Ivory with the object held at 60 percent of the plate; the watches landing is the one Midnight room and the houses are text until logo rights are confirmed */

:root {
  --dur-crop: 600ms;
  --t-plate-price: 14px;
  --t-words: 14px;
}

/* ---------- the shop ---------- */
.shop { background: var(--paper); }

/* ---------- the chapter intro: one piece at scale, the chapter name, the words ---------- */
.intro { min-height: calc(100svh - 56px - 2 * var(--frame)); max-height: 1080px; max-width: var(--max); margin: 0 auto; padding: var(--space-2xl) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-xl); }
.intro .piece { margin: 0; width: min(70svh, 640px); max-width: 100%; justify-self: center; }
.intro .piece img { width: 100%; height: auto; }
.intro .life { margin: 0; width: min(62svh, 520px); max-width: 100%; aspect-ratio: 4 / 5; justify-self: center; border-radius: 16px; overflow: hidden; background: #1c1917; }
.intro .life img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.intro-text { display: grid; gap: var(--space-lg); max-width: 44ch; min-width: 0; }
.intro .words, .room .words { font-size: var(--t-words); line-height: 1.65; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.intro.about { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-top: var(--space-3xl); padding-bottom: var(--space-xl); }
.intro.about .intro-text { max-width: 60ch; }
.intro.about .words { max-width: 60ch; }

/* ---------- the watches room: the one Midnight room, a dial crop on a white tile ---------- */
.room { min-height: 100svh; padding: var(--space-2xl) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-xl); }
.room .tile.dial { margin: 0; padding: 0; width: min(60svh, 520px); max-width: 100%; aspect-ratio: 1; overflow: clip; justify-self: center; }
.room .tile.dial img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: 50% 46%; }
.room-text { display: grid; gap: var(--space-lg); max-width: 44ch; min-width: 0; }
.room .words { color: var(--paper); }

/* ---------- the controls: the houses, the chip row, the sort, the count ---------- */
.controls { max-width: var(--max); margin: 0 auto; padding: var(--space-xl) var(--gutter) 0; }
.brands { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--hair); font-size: var(--t-small); font-weight: 500; }
.brands a, .sort a { display: inline-flex; align-items: center; min-height: 32px; background-image: linear-gradient(var(--rose-blue), var(--rose-blue)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; transition: background-size var(--dur-short) var(--ease-out); }
.brands a:hover, .brands a.on, .sort a:hover, .sort a.on { background-size: 100% 1px; }
.brands a.on, .sort a.on { background-image: linear-gradient(var(--noir), var(--noir)); }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg); padding: var(--space-sm) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.chip-row { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chips { flex-wrap: nowrap; flex-shrink: 0; }
.chip-row .chips + .chips { margin-left: var(--space-xs); padding-left: var(--space-md); border-left: 1px solid var(--hair); }
.chip-row .chip { white-space: nowrap; flex-shrink: 0; }
.sort { display: flex; align-items: center; gap: var(--space-md); font-size: var(--t-label); font-weight: 500; white-space: nowrap; }
.count { font-size: var(--t-label); color: var(--muted); padding: var(--space-sm) 0; }

/* ---------- the grid: Paper plates, a hairline between them ---------- */
.grid-wrap { padding: var(--space-xl) var(--gutter) var(--space-2xl); }
.grid-wrap.ivory { background: var(--paper); }
.grid-wrap.on-paper { background: var(--paper); }
.shop ul.products { max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.grid-wrap.on-paper ul.products { background: var(--hair); }
.shop ul.products li { margin: 0; min-width: 0; display: flex; }
.shop ul.products li::before { content: none; }
.plate { width: 100%; padding: var(--space-lg); background: var(--paper); transition: transform var(--dur-short) var(--ease-out); }
.plate:hover { transform: translateY(-2px); }
.plate:active { transform: translateY(0); }
.plate:focus-visible { outline: 2px solid var(--rose-blue); outline-offset: -2px; }
.plate .plate-img img { inset: 16%; width: 68%; height: 68%; }
.plate .plate-img img { transition: transform var(--dur-crop) var(--ease-out); }
.plate:hover .plate-img img { transform: scale(1.06); }
.plate-text { display: grid; gap: var(--space-2xs); padding-top: var(--space-md); }
.plate .name { font-size: var(--t-label); font-weight: 500; color: var(--noir); line-height: 1.4; }
.plate .mat { font-size: var(--t-label); color: var(--muted); }
.plate .price { font-size: var(--t-plate-price); font-weight: 500; color: var(--noir); margin-top: var(--space-2xs); }
.plate .price del { color: var(--muted); font-weight: 400; margin-right: var(--space-xs); }
.plate .ask { font-size: var(--t-label); color: var(--ink-2); }
.plate .ref { margin-top: var(--space-2xs); }

/* ---------- pagination and the empty state ---------- */
.shop .woocommerce-pagination { max-width: var(--max); margin: var(--space-xl) auto 0; }
.shop .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: 0; padding: 0; list-style: none; font-size: var(--t-label); font-weight: 500; }
.shop .woocommerce-pagination li { margin: 0; }
.shop .woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-2xs); color: var(--noir); }
.shop .woocommerce-pagination a.page-numbers:hover { color: var(--rose-blue); }
.shop .woocommerce-pagination .page-numbers.current { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.shop .empty { max-width: var(--max); margin: 0 auto; padding: var(--space-xl) 0; font-size: var(--t-body); color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .intro { grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--space-lg); padding: var(--space-xl) var(--gutter); }
  .intro .piece { width: min(100%, 50svh); }
  .intro .life { width: min(100%, 56svh); }
  .intro-text, .room-text { max-width: none; }
  .intro.about { padding-top: var(--space-2xl); }
  .room { grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--space-lg); padding: var(--space-xl) var(--gutter); }
  .room .tile.dial { width: min(100%, 50svh); }
  .brands { gap: var(--space-2xs) var(--space-lg); }
  .brands a, .sort a { min-height: 44px; }
  .bar { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .sort { white-space: normal; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
  .shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate { padding: var(--space-md); }
}
@media (pointer: coarse) {
  .chip-row .chip { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .plate, .plate .plate-img img, .brands a, .sort a { transition: none; }
  .plate:hover, .plate:active, .plate:hover .plate-img img { transform: none; }
}

/* Desktop: the chip row wraps instead of scrolling, so no band is cut at the edge. */
@media (min-width: 1024px) {
  .chip-row { flex-wrap: wrap; overflow-x: visible; row-gap: var(--space-xs); }
  .chip-row .chips { flex-wrap: wrap; flex-shrink: 1; }
  .chip-row .chip { flex-shrink: 1; }
}

/* Phones: the piece fills more of its plate; hover lift and zoom only where there is a pointer. */
@media (max-width: 900px) {
  .plate .plate-img img { inset: 8%; width: 84%; height: 84%; }
}
@media (hover: none) {
  .plate:hover .plate-img img { transform: none; }
}

/* ---------- the watches hero: the Seiko SSB481P1 at case height, hands on scroll ---------- */
/* Four layers on one canvas (1320 by 1840): the watch with its hour and minute hands painted out, each hand, and the chronograph hand with the centre cap on top. The pivot sits at 45.455 percent by 47.989 percent of the canvas. */
.watch-room { position: relative; overflow: clip; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-2xl); min-height: calc(100svh - 56px - 2 * var(--frame)); padding-top: 0; padding-bottom: 0; }
.watch-stage { position: relative; align-self: stretch; min-height: 100%; }
.watch { position: absolute; left: 44%; top: 50%; height: 146%; aspect-ratio: 1320 / 1840; translate: -45.455% -47.989%; display: block; }
.w-layer { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; }
.w-hand { transform-origin: 45.455% 47.989%; will-change: transform; }
.watch-room .room-text { position: relative; z-index: 2; padding-block: var(--space-2xl); }
@media (max-width: 900px) {
  .watch-room { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; min-height: 0; padding: 0; }
  .watch-stage { height: 68svh; min-height: 380px; overflow: clip; }
  .watch { left: 50%; height: 124%; }
  .watch-room .room-text { padding: var(--space-xl) var(--gutter) var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .w-hand { will-change: auto; }
}

/* Review pass: sort links on one scrolling line on phones; item codes live on the product page, not the grid. */
@media (max-width: 900px) {
  .sort { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; overscroll-behavior-x: contain; }
  .sort::-webkit-scrollbar { display: none; }
}
ul.products .plate .ref { display: none; }
