/* Crank and Canvas – Collection & product gallery
   Loaded by shop.html and product.html on top of styles.css.
   Shape system: all-sharp (radius 0), matching the existing buttons.
   Palette: monochrome ink on white; the canvases carry the colour. */

:root {
  --cc-ink: #141414;
  --cc-ink-2: #5c5c5c;
  --cc-line: #e4e4e2;
  --cc-frame: #efefed;
  --cc-surface: rgba(255, 255, 255, 0.86);
  --cc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 77px;
  --filter-h: 67px;
  --gutter: 2rem;
  --page-max: 1320px;
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }
}

.cc-intro-title,
.cc-group-title,
.cc-card-name,
.cc-commission-title,
.pd-title,
.pd-section-title {
  font-variant-numeric: lining-nums;
}

/* ===== Page transitions (Chrome / Safari 18+, ignored elsewhere) ===== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

.nav {
  view-transition-name: site-nav;
}

::view-transition-old(root) {
  animation: 180ms ease-out both cc-fade-out;
}

/* Pages crossfade in place; each page runs its own entrance on top */
::view-transition-new(root) {
  animation: 420ms ease-out 60ms both cc-fade-in;
}

::view-transition-group(canvas-hero) {
  animation-duration: 640ms;
  animation-timing-function: var(--cc-ease);
}

::view-transition-old(canvas-hero),
::view-transition-new(canvas-hero) {
  height: 100%;
  object-fit: cover;
}

@keyframes cc-fade-out {
  to { opacity: 0; }
}

@keyframes cc-fade-up {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes cc-fade-in {
  from { opacity: 0; }
}

@keyframes cc-reveal-frame {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes cc-settle {
  from { transform: scale(1.12); }
}

/* ======================================================
   SHOP
   ====================================================== */

.cc-shop {
  padding-top: calc(var(--nav-h) + 3.5rem);
}

/* ----- Intro ----- */
.cc-intro {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: end;
}

.cc-intro-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cc-ink);
}

.cc-intro-lead {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cc-ink-2);
}

.cc-intro-media {
  position: relative;
  margin-bottom: 2.5rem;
}

.cc-intro-frame {
  overflow: hidden;
  background: var(--cc-frame);
}

.cc-intro-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-intro-frame--main {
  aspect-ratio: 5 / 4;
  margin-left: 12%;
}

.cc-intro-frame--inset {
  position: absolute;
  left: 0;
  bottom: -2.5rem;
  width: 27%;
  aspect-ratio: 508 / 720;
  border: 8px solid #fff;
  box-shadow: 0 24px 60px rgba(40, 36, 32, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .cc-intro-title,
  .cc-intro-lead {
    animation: cc-fade-up 900ms var(--cc-ease) both;
  }
  .cc-intro-lead {
    animation-delay: 120ms;
  }
  .cc-intro-frame--main {
    animation: cc-reveal-frame 1100ms var(--cc-ease) 100ms both;
  }
  .cc-intro-frame--main img {
    animation: cc-settle 1800ms var(--cc-ease) 100ms both;
  }
  .cc-intro-frame--inset {
    animation: cc-fade-up 1000ms var(--cc-ease) 500ms both;
  }
}

/* ----- Filter bar ----- */
.cc-filterbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--cc-surface);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid var(--cc-line);
  border-bottom: 1px solid var(--cc-line);
  view-transition-name: cc-filterbar;
}

.cc-filterbar-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cc-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  min-width: 0;
}

.cc-filters::-webkit-scrollbar {
  display: none;
}

.cc-chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
  color: var(--cc-ink);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.3s var(--cc-ease), color 0.3s var(--cc-ease), transform 0.15s ease;
}

.cc-chip-count {
  font-size: 0.72rem;
  color: var(--cc-ink-2);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--cc-ease);
}

.cc-chip:hover {
  background: rgba(0, 0, 0, 0.08);
}

.cc-chip:active {
  transform: scale(0.97);
}

.cc-chip:focus-visible {
  outline: 2px solid var(--cc-ink);
  outline-offset: 2px;
}

.cc-chip[aria-pressed="true"] {
  background: var(--cc-ink);
  color: #fff;
}

.cc-chip[aria-pressed="true"] .cc-chip-count {
  color: rgba(255, 255, 255, 0.72);
}

.cc-status {
  flex: none;
  font-size: 0.8rem;
  color: var(--cc-ink-2);
  font-variant-numeric: tabular-nums;
}

/* ----- Catalog groups ----- */
.cc-catalog {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  scroll-margin-top: calc(var(--nav-h) + var(--filter-h));
}

.cc-group {
  padding-top: 5rem;
  scroll-margin-top: calc(var(--nav-h) + var(--filter-h));
}

.cc-group[hidden] {
  display: none;
}

.cc-group-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cc-group-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  color: var(--cc-ink);
}

.cc-group-count {
  font-size: 0.8rem;
  color: var(--cc-ink-2);
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.5rem 2.5rem;
}

/* Gallery-wall stagger: the middle column hangs lower */
@media (min-width: 1024px) {
  .cc-grid {
    padding-bottom: 3.5rem;
  }
  .cc-grid > .cc-card:nth-child(3n + 2) {
    translate: 0 3.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .cc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 2rem;
    padding-bottom: 2.5rem;
  }
  .cc-grid > .cc-card:nth-child(2n) {
    translate: 0 2.5rem;
  }
}

@media (max-width: 640px) {
  .cc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1rem;
  }
}

/* ----- Product card (shared by shop + related) ----- */
.cc-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Cards show the canvas itself (card.webp, cropped to the print's A-series proportions),
   with a soft shadow so the white print still reads as an object on the white page */
.cc-card-frame {
  position: relative;
  aspect-ratio: 733 / 1037;
  overflow: hidden;
  background: var(--cc-frame);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.05), 0 18px 32px -20px rgba(20, 20, 20, 0.35);
}

.cc-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--cc-ease), transform 1.4s var(--cc-ease);
}

.cc-card-img.is-loaded {
  opacity: 1;
}

.cc-card-img--alt.is-loaded {
  opacity: 0;
}

@media (hover: hover) {
  .cc-card:hover .cc-card-img {
    transform: scale(1.035);
  }
  .cc-card:hover .cc-card-img--alt.is-loaded {
    opacity: 1;
  }
  .cc-card:hover .cc-card-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
}

.cc-card:focus-visible {
  outline: none;
}

.cc-card:focus-visible .cc-card-frame {
  outline: 2px solid var(--cc-ink);
  outline-offset: 4px;
}

.cc-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.cc-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--cc-ink);
}

.cc-card-price {
  flex: none;
  font-size: 0.82rem;
  color: var(--cc-ink);
  font-variant-numeric: tabular-nums;
}

.cc-card-year {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--cc-ink-2);
}

@media (max-width: 640px) {
  .cc-card-meta {
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.75rem;
  }
  .cc-card-name {
    font-size: 1.15rem;
  }
}

/* Filter swaps are animated from JS; keep the reveal transition out of the way meanwhile */
.cc-catalog.is-swapping .cc-card {
  transition: none;
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .cc-card {
    transition: opacity 0.9s var(--cc-ease) var(--stagger, 0ms), transform 0.9s var(--cc-ease) var(--stagger, 0ms);
  }
  .cc-card:not(.is-in) {
    opacity: 0;
    transform: translateY(32px);
  }
}

.cc-noscript {
  padding: 4rem 0;
  color: var(--cc-ink-2);
}

.cc-noscript a {
  color: var(--cc-ink);
}

/* ----- Commission band ----- */
.cc-commission {
  max-width: var(--page-max);
  margin: 9rem auto 7rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4.5rem;
  align-items: center;
}

.cc-commission-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cc-frame);
}

.cc-commission-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-commission-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.1;
  padding-bottom: 0.1em;
  color: var(--cc-ink);
}

.cc-commission-copy p {
  margin-top: 1.25rem;
  max-width: 40ch;
  line-height: 1.75;
  color: var(--cc-ink-2);
}

.cc-commission-copy .btn {
  margin-top: 2.25rem;
}

/* ----- Shop responsive ----- */
@media (max-width: 1023px) {
  .cc-intro {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cc-commission {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .cc-shop {
    padding-top: calc(var(--nav-h) + 2rem);
  }
  .cc-intro {
    padding-bottom: 3.5rem;
  }
  .cc-intro-lead {
    font-size: 1rem;
  }
  .cc-intro-frame--main {
    margin-left: 18%;
  }
  .cc-intro-frame--inset {
    width: 32%;
    border-width: 5px;
    bottom: -1.75rem;
  }
  .cc-filterbar-inner {
    padding: 0.7rem 0;
  }
  .cc-filters {
    padding: 0 var(--gutter);
    scroll-padding-inline: var(--gutter);
    mask-image: linear-gradient(to right, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .cc-status {
    display: none;
  }
  .cc-group {
    padding-top: 3.5rem;
  }
  .cc-group-head {
    margin-bottom: 1.5rem;
  }
  .cc-commission {
    margin: 6rem auto 4rem;
  }
  .cc-commission-copy .btn {
    width: 100%;
  }
}

/* ======================================================
   PRODUCT
   ====================================================== */

.pd-page {
  padding-top: calc(var(--nav-h) + 2.5rem);
}

.pd {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 5rem;
  align-items: start;
}

/* ----- Gallery ----- */
.pd-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: calc(100dvh - var(--nav-h) - 9.5rem);
  min-height: 320px;
  overflow: hidden;
  background: var(--cc-frame);
  cursor: zoom-in;
  touch-action: pan-y;
  outline: none;
}

.pd-stage:focus-visible {
  outline: 2px solid var(--cc-ink);
  outline-offset: 4px;
}

.pd-stage-track {
  position: absolute;
  inset: 0;
}

.pd-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s var(--cc-ease), transform 1.6s var(--cc-ease);
  user-select: none;
  -webkit-user-drag: none;
}

.pd-stage-img.is-active {
  opacity: 1;
  transform: none;
  view-transition-name: canvas-hero;
}

.pd-stage.vt-off .pd-stage-img {
  view-transition-name: none;
}

/* Portrait room shots: keep the canvas, not the floor, in frame */
.pd-stage-img[data-view="2"] {
  object-position: 50% 32%;
}

.pd-zoom,
.pd-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--cc-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cc-ink);
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.35s var(--cc-ease), transform 0.15s ease;
}

.pd-zoom svg,
.pd-nav svg {
  width: 20px;
  height: 20px;
}

.pd-zoom:hover,
.pd-nav:hover {
  background: #fff;
}

.pd-zoom:active,
.pd-nav:active {
  transform: scale(0.96);
}

.pd-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.pd-navs {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 1px;
}

.pd-nav[hidden] {
  display: none;
}

@media (hover: hover) {
  .pd-zoom,
  .pd-navs {
    opacity: 0;
  }
  .pd-stage:hover .pd-zoom,
  .pd-stage:hover .pd-navs,
  .pd-stage:focus-within .pd-zoom,
  .pd-stage:focus-within .pd-navs {
    opacity: 1;
  }
}

.pd-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pd-thumb {
  position: relative;
  width: 84px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--cc-frame);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s var(--cc-ease), outline-color 0.3s ease;
  outline: 1px solid transparent;
  outline-offset: 3px;
}

.pd-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumb:hover {
  opacity: 0.85;
}

.pd-thumb[aria-current="true"] {
  opacity: 1;
  outline-color: var(--cc-ink);
}

.pd-thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--cc-ink);
}

/* ----- Info column ----- */
.pd-info {
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
}

.pd-crumbs {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--cc-ink-2);
  margin-bottom: 1.75rem;
}

.pd-crumbs a {
  color: var(--cc-ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pd-crumbs a:hover {
  color: var(--cc-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pd-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  padding-bottom: 0.08em;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
}

.pd-year {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--cc-ink-2);
}

.pd-price {
  margin-top: 1.75rem;
  font-size: 1.35rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--cc-ink);
}

.pd-description {
  margin-top: 1.1rem;
  max-width: 46ch;
  line-height: 1.75;
  color: var(--cc-ink-2);
}

.pd-sizes {
  margin-top: 2rem;
  border: 0;
  padding: 0;
}

.pd-sizes legend {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--cc-ink-2);
}

.pd .size-options {
  max-width: none;
}

.pd .size-card {
  border-radius: 0;
  border-color: var(--cc-line);
}

.pd .size-option input:focus-visible + .size-card {
  outline: 2px solid var(--cc-ink);
  outline-offset: 3px;
}

.pd .size-dims {
  color: var(--cc-ink-2);
}

.pd-add {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.1rem 1.5rem;
  font-size: 0.8rem;
}

.pd-special {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  color: var(--cc-ink-2);
}

.pd-assurances {
  list-style: none;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cc-line);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cc-ink-2);
}

.pd-assurances li + li {
  margin-top: 0.45rem;
}

/* Product entrance. JS adds .is-ready once the first photo and the web fonts are in
   (revealProductPage), so nothing animates half-painted or reflows as Cormorant/Geist swap in.
   .pd-vt marks an arrival by view transition: the photo is already morphing, so it skips its own fade. */
@keyframes cc-rise {
  from { opacity: 0; transform: translateY(10px); }
}

@media (prefers-reduced-motion: no-preference) {
  .pd:not(.is-ready):not(.pd-vt) .pd-stage-img.is-active {
    opacity: 0;
    transform: scale(1.03);
  }
  .pd:not(.is-ready) .pd-info > *,
  .pd:not(.is-ready) .pd-thumb {
    opacity: 0;
  }

  .pd.is-ready .pd-info > * {
    animation: cc-rise 900ms var(--cc-ease) backwards;
    animation-delay: calc(120ms + var(--i, 7) * 60ms);
  }
  .pd-info > :nth-child(1) { --i: 0; }
  .pd-info > :nth-child(2) { --i: 1; }
  .pd-info > :nth-child(3) { --i: 2; }
  .pd-info > :nth-child(4) { --i: 3; }
  .pd-info > :nth-child(5) { --i: 4; }
  .pd-info > :nth-child(6) { --i: 5; }
  .pd-info > :nth-child(7) { --i: 6; }

  .pd.is-ready .pd-thumb {
    animation: cc-fade-in 700ms ease-out backwards;
  }
  .pd.is-ready .pd-thumb:nth-child(1) { animation-delay: 300ms; }
  .pd.is-ready .pd-thumb:nth-child(2) { animation-delay: 360ms; }
  .pd.is-ready .pd-thumb:nth-child(3) { animation-delay: 420ms; }
  .pd.is-ready .pd-thumb:nth-child(4) { animation-delay: 480ms; }
}

/* ----- Numbers ----- */
.pd-numbers,
.pd-more {
  max-width: var(--page-max);
  margin: 8rem auto 0;
  padding: 0 var(--gutter);
}

.pd-after[hidden] {
  display: none;
}

.pd-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--cc-ink);
}

.pd-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 2.75rem;
}

.pd-figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-top: 1px solid var(--cc-ink);
  padding-top: 1.25rem;
}

.pd-figure dt {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--cc-ink-2);
}

.pd-figure dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pd-figure-value {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--cc-ink);
}

.pd-figure-unit {
  font-size: 0.95rem;
  color: var(--cc-ink-2);
}

.pd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3.5rem;
}

.pd-spec dt {
  font-size: 0.8rem;
  color: var(--cc-ink-2);
}

.pd-spec dd {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: var(--cc-ink);
}

/* ----- Related ----- */
.pd-more {
  margin-bottom: 7rem;
}

.pd-more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pd-more-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cc-ink);
  text-decoration: none;
}

.pd-more-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--cc-ease);
}

.pd-more-link:hover svg {
  transform: translateX(4px);
}

.pd-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.pd-related .cc-card-name {
  font-size: 1.25rem;
}

/* ----- Empty state ----- */
.pd.pd-missing {
  display: block;
}

.pd-empty {
  max-width: 34rem;
  padding: 6rem 0 8rem;
}

.pd-empty p {
  margin: 1rem 0 2rem;
  color: var(--cc-ink-2);
}

/* ----- Lightbox ----- */
.pd-lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 14, 14, 0.96);
  color: #fff;
  overflow: hidden;
}

.pd-lightbox::backdrop {
  background: transparent;
}

.pd-lightbox[open] {
  animation: cc-fade-in 320ms ease both;
}

.pd-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4.5rem 6rem;
  object-fit: contain;
}

.pd-lightbox[open] img {
  animation: cc-fade-up 520ms var(--cc-ease) both;
}

.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.lb-btn svg {
  width: 22px;
  height: 22px;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lb-btn[hidden] {
  display: none;
}

.lb-close {
  top: 1.25rem;
  right: 1.25rem;
}

.lb-prev,
.lb-next {
  top: 50%;
  translate: 0 -50%;
}

.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

/* ----- Product responsive ----- */
@media (max-width: 1023px) {
  .pd {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pd-stage {
    max-height: none;
  }
  .pd-info {
    position: static;
  }
  .pd-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pd-page {
    padding-top: var(--nav-h);
  }
  .pd {
    padding: 0;
  }
  .pd-stage:focus-visible {
    outline-offset: -2px;
  }
  .pd-thumbs {
    padding: 0 var(--gutter);
    gap: 0.5rem;
  }
  .pd-thumb {
    width: 64px;
  }
  .pd-info {
    padding: 0 var(--gutter);
  }
  .pd-numbers,
  .pd-more {
    margin-top: 5rem;
  }
  .pd-figures {
    gap: 1rem;
  }
  .pd-figure-unit {
    font-size: 0.8rem;
  }
  .pd-specs {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .pd-more {
    margin-bottom: 4rem;
  }
  .pd-more-head {
    margin-bottom: 1.5rem;
  }
  .pd-related {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .pd-related::-webkit-scrollbar {
    display: none;
  }
  .pd-related .cc-card {
    scroll-snap-align: start;
  }
  .pd-lightbox img {
    padding: 4rem 0;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 1.25rem;
    translate: none;
  }
  .pd-empty {
    padding: 4rem var(--gutter) 6rem;
  }
  body:has(#product-sticky) {
    padding-bottom: 5.5rem;
  }
}

/* ======================================================
   SHOP ON THE WALL (body.cc-wall, shop.html)
   The collection hangs on the same slate grey as the homepage gallery wall,
   so the white canvases stand out. Light ink; the nav and footer keep their
   own light backgrounds. The wall is lit from the upper left, as in the photo.
   ====================================================== */
body.cc-wall {
  --cc-ink: #f5f5f3;
  --cc-ink-2: rgb(245 245 243 / 0.82);
  --cc-line: rgb(245 245 243 / 0.14);
  --cc-frame: #5f6368;
  --cc-surface: rgb(70 74 79 / 0.82);
  background:
    radial-gradient(120% 70% at 20% 0%, #686c71 0%, rgb(104 108 113 / 0) 60%),
    #50545a;
  background-attachment: fixed;
  color: var(--cc-ink);
}

/* White canvases on grey: a shadow that reads as hung, not floating */
.cc-wall .cc-card-frame {
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.12),
    2px 3px 4px rgb(0 0 0 / 0.18),
    8px 16px 30px -8px rgb(0 0 0 / 0.45);
}

.cc-wall .cc-chip {
  background: rgb(255 255 255 / 0.08);
  color: var(--cc-ink);
}

.cc-wall .cc-chip:hover {
  background: rgb(255 255 255 / 0.16);
}

.cc-wall .cc-chip[aria-pressed="true"] {
  background: var(--cc-ink);
  color: #1a1a1a;
}

.cc-wall .cc-chip[aria-pressed="true"] .cc-chip-count {
  color: rgb(26 26 26 / 0.6);
}

.cc-wall .cc-intro-frame--inset {
  border-color: #ffffff;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}

.cc-wall .cc-commission .btn {
  color: var(--cc-ink);
  border-color: rgb(245 245 243 / 0.7);
}

.cc-wall .cc-commission .btn-filled {
  background: var(--cc-ink);
  border-color: var(--cc-ink);
  color: #1a1a1a;
}

.cc-wall .cc-commission .btn-filled:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.cc-wall .cc-noscript a {
  color: var(--cc-ink);
}
