:root {
  --bg: #000000;
  --bg-elevated: #121212;
  --bg-panel: #1a1a1a;
  --fg: #f5f5f5;
  --fg-muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #ffffff;
  --wall: #e8e6e1;
  --header-h: 56px;
  --font-serif: "kalice", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "neue-haas-unica", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "neue-haas-grotesk-display", "Arial Black", Impact, sans-serif;
  --font-london: "London", "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-mono: "SF Mono", "Consolas", "Liberation Mono", monospace;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f5f5f5;
  --bg-panel: #ffffff;
  --fg: #111111;
  --fg-muted: #666666;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --accent: #111111;
  --wall: #f7f5f0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom pen-nib cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }
}

.sb-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 20px;
  height: 22px;
  /* Tip near pointer; slight writing tilt */
  margin: -1px 0 0 -4px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) rotate(-28deg);
  transform-origin: 20% 8%;
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, opacity 0.18s ease, color 0.2s ease;
  will-change: transform;
  color: #111;
  background: currentColor;
  -webkit-mask: url("../ui/cursor-nib.svg") center / contain no-repeat;
  mask: url("../ui/cursor-nib.svg") center / contain no-repeat;
}

/* Dark mode: white nib */
html:not([data-theme="light"]) .sb-cursor {
  color: #fff;
}

html[data-theme="light"] .sb-cursor {
  color: #111;
}

.sb-cursor.is-on {
  opacity: 1;
}

.sb-cursor.is-click {
  width: 17px;
  height: 19px;
}

.sb-cursor.is-hover {
  width: 24px;
  height: 26px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 320px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 34px;
  color: var(--fg);
  flex-shrink: 0;
}

.logo-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.shop-intro {
  margin: -12px 0 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 40rem;
}

@media (max-width: 860px) {
  .logo-text {
    font-size: 13px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: 48px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-links a,
.nav-links .nav-zc,
.nav-links .help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: inherit;
  opacity: 0.92;
  vertical-align: middle;
  transition: opacity 0.2s var(--ease);
}

.nav-links .nav-zc {
  height: 48px;
  width: 40px;
  min-width: 40px;
  opacity: 1;
  text-decoration: none !important;
  flex-shrink: 0;
  /* optical vertical center with text */
  transform: translateY(1px);
}

.nav-zc-logo {
  display: block;
  width: 40px;
  height: 48px;
  background: currentColor;
  color: #fff;
  -webkit-mask-image: url("../ui/logo-zc.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-source-type: luminance;
  mask-image: url("../ui/logo-zc.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-mode: luminance;
}

html[data-theme="light"] .nav-zc-logo {
  color: #111;
}

html:not([data-theme="light"]) .nav-zc-logo {
  color: #fff;
}

.nav-links a:hover,
.nav-links .help-btn:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-links .nav-zc:hover {
  text-decoration: none !important;
  opacity: 0.85;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
}

.search-wrap svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
}

.search-wrap input::placeholder {
  color: var(--fg-muted);
}

.kbd {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-links .nav-text {
  height: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.95;
  transform: translateY(5px);
}

.currency {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding-right: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%23aaa' stroke-width='1.4' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0.9;
}

.icon-btn:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.bag-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
}

.bag-btn svg {
  width: 16px;
  height: 16px;
}

/* —— Help panel —— */
.help-panel {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 16px;
  width: min(320px, calc(100vw - 32px));
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  z-index: 60;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: none;
}

.help-panel.open {
  display: block;
  animation: rise 0.25s var(--ease);
}

.help-panel h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.help-panel > p {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
}

.help-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-panel li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.help-panel li span {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* —— View toggle —— */
.view-toggle {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 16px;
  z-index: 40;
  display: flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.view-toggle button {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
}

.view-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}

/* —— Homepage: exact viewport, no scroll (gallery mode) —— */
html:has(body.zc-home:not(.zc-list-mode)),
body.zc-home:not(.zc-list-mode) {
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.zc-home:not(.zc-list-mode) {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.admin-bar.zc-home:not(.zc-list-mode) {
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.zc-home:not(.zc-list-mode) {
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
    max-height: calc(100vh - 46px);
    max-height: calc(100dvh - 46px);
  }
}

body.zc-home:not(.zc-list-mode) #main {
  height: 100%;
}

body.zc-home:not(.zc-list-mode) .site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  z-index: 25;
  padding: 10px 24px 14px;
  border-top: none;
  background: transparent;
  pointer-events: none;
  box-sizing: border-box;
}

body.zc-home:not(.zc-list-mode) .site-footer a,
body.zc-home:not(.zc-list-mode) .site-footer .social-icon {
  pointer-events: auto;
}

body.zc-home:not(.zc-list-mode) .gallery-hud {
  padding-bottom: 56px;
}

/* —— Gallery stage (orbit deck) —— */
.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--header-h);
  overflow: hidden;
}

body.zc-home:not(.zc-list-mode) .stage {
  height: 100%;
  width: 100%;
  max-width: none;
}

.gallery-scene,
#gallery-canvas {
  position: absolute;
  inset: var(--header-h) 0 0;
  width: 100%;
  height: calc(100% - var(--header-h));
  display: block;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(70, 55, 40, 0.28), transparent 62%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(30, 30, 30, 0.9), transparent 55%),
    var(--bg);
}

[data-theme="light"] .gallery-scene,
[data-theme="light"] #gallery-canvas {
  background: var(--bg);
  box-shadow: none;
}

.gallery-scene.dragging {
  cursor: grabbing;
}

.gallery-scene.is-switching .orbit-ring {
  animation: orbit-swap 0.52s var(--ease) both;
}

@keyframes orbit-swap {
  0% {
    opacity: 0;
    transform: translateZ(-40px) rotateY(0deg) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateZ(-40px) rotateY(0deg) scale(1);
  }
}

.orbit-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbit-fog {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 180, 90, 0.08), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(120, 160, 255, 0.07), transparent 40%);
  animation: fog-drift 14s ease-in-out infinite alternate;
}

[data-theme="light"] .orbit-fog {
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.025), transparent 40%);
}

@keyframes fog-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}


.orbit-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -35%;
  height: 70%;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 64px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 64px
    );
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  opacity: 0.55;
  mask-image: linear-gradient(to top, black 20%, transparent 90%);
}

[data-theme="light"] .orbit-grid {
  display: none;
}

[data-theme="light"] .orbit-fog {
  opacity: 0.35;
}

[data-theme="light"] .orbit-card {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .orbit-piece.is-focus .orbit-card {
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.orbit-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(4deg);
  will-change: transform;
}

.orbit-ring,
.gallery-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(-40px) rotateY(0deg);
  will-change: transform;
}

.orbit-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 190px;
  padding: 0;
  border: none;
  background: none;
  transform:
    translate(-50%, -50%)
    rotateY(var(--theta))
    translateZ(var(--radius))
    translateY(var(--bob));
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  animation: piece-float 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.35s);
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.55;
  filter: brightness(0.72) saturate(0.85);
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  font: inherit;
  text-align: left;
}

.orbit-piece.is-focus {
  opacity: 1;
  filter: brightness(1.05) saturate(1.05);
  z-index: 5;
}

.orbit-piece.is-focus .orbit-card {
  transform: scale(1.12) translateZ(24px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.orbit-piece.is-focus .orbit-tag {
  opacity: 1;
  transform: translateY(0);
}

.orbit-piece.is-focus .orbit-glow {
  opacity: 0.9;
}

@keyframes piece-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.orbit-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.45), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
  opacity: 0.25;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
}

[data-theme="light"] .orbit-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), transparent 68%);
  opacity: 0.15;
}

.orbit-card {
  position: relative;
  z-index: 1;
  display: block;
  background: #0d0d0d;
  padding: 6px;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  backface-visibility: visible;
  pointer-events: auto;
}

.orbit-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #1a1a1a;
  pointer-events: none;
  border-radius: 2px;
}

.orbit-empty {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  transform:
    translate(-50%, -50%)
    rotateY(var(--theta))
    translateZ(var(--radius));
  transform-style: preserve-3d;
  pointer-events: none;
}

.orbit-placeholder {
  display: grid;
  place-items: center;
  width: 220px;
  height: 280px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}

.orbit-tag {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding: 72px 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

[data-theme="light"] .gallery-hud {
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 70%);
}

.gallery-meta-side {
  justify-self: start;
  max-width: 240px;
}

.gallery-meta-side .eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.piece-now {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
  margin-bottom: 4px;
}

.piece-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.gallery-hint {
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  line-height: 1.5;
  text-transform: uppercase;
}

.gallery-center {
  pointer-events: auto;
  text-align: center;
  max-width: 520px;
}

.gallery-center .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.gallery-center h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.gallery-nav {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  justify-self: end;
  margin-bottom: 36px;
}

.gallery-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-nav button:hover {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.06);
}

.gallery-nav svg {
  width: 16px;
  height: 16px;
}

/* —— List view —— */
.list-view {
  display: none;
  min-height: 100vh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px calc(80px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.list-view.active {
  display: block;
}

.stage.list-mode #gallery-canvas,
.stage.list-mode .gallery-scene,
.stage.list-mode .gallery-hud {
  display: none;
}

.stage.list-mode .list-view {
  display: block;
}

body.zc-home.zc-list-mode {
  height: auto;
  max-height: none;
  overflow: auto;
}

body.zc-home.zc-list-mode .site-footer {
  position: static;
  background: transparent;
}

.list-section {
  margin-bottom: 48px;
}

.list-section-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.list-section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
}

.list-section-head .meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.list-section-head .all {
  display: none;
}

.list-empty {
  margin: 24px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
}

.work-card,
a.work-card.product {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.work-card .frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--border);
}

.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.work-card:hover img {
  transform: scale(1.03);
}

.work-card .caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.35;
  order: 2;
}

.work-card .caption strong {
  display: block;
  order: 1;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  color: var(--fg);
}

.work-card .caption span {
  order: 2;
  color: var(--fg-muted);
  font-size: 11px;
}

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .work-card .caption strong {
    font-size: 17px;
  }

  .work-card .caption span {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  .list-view {
    padding: calc(var(--header-h) + 24px) 14px calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .list-section-head {
    margin-bottom: 16px;
  }

  .list-section-head h2 {
    font-size: 22px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
}

/* —— Newsletter —— */
.newsletter {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  width: min(300px, calc(100vw - 32px));
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.newsletter.hidden {
  display: none;
}

.newsletter .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.newsletter .label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.newsletter h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.newsletter p {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.newsletter-form input {
  flex: 1;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
}

.newsletter-form button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.newsletter .fine {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--fg-muted);
}

/* —— Page shells (main.page — avoid matching body.page from WP) —— */
main.page {
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

main.page.page-wide {
  max-width: 1280px;
}

main.page h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-list li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: clamp(20px, 3vw, 32px);
  transition: padding 0.25s var(--ease);
}

.shop-list li:last-child a {
  border-bottom: 1px solid var(--border);
}

.shop-list li a:hover {
  padding-left: 8px;
}

.shop-list .count {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* —— Info / ZC (static, no scroll) —— */
html:has(body.zc-info),
body.zc-info {
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

body.zc-info {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.admin-bar.zc-info {
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.zc-info {
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
    max-height: calc(100vh - 46px);
    max-height: calc(100dvh - 46px);
  }
}

body.zc-info .site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 25;
  border-top: none;
  background: transparent;
  padding: 10px 24px 14px;
  box-sizing: border-box;
}

main.page.page-info {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 1100px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: var(--header-h) 40px 72px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-info .info-hero,
.page-info .info-block {
  max-width: none;
  width: 100%;
  text-align: center;
}

.page-info .info-hero {
  margin: 0 auto 24px;
  flex-shrink: 0;
}

.page-info .info-feature {
  margin: 0 auto 24px;
  padding: 0;
  width: min(220px, 42vw);
  flex-shrink: 0;
}

.page-info .info-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.page.page-info h1,
.page-info .info-hero h1 {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.page-info .info-hero p,
.page-info .info-hero p.info-ayah,
.page-info .info-ayah {
  margin: 0 auto;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  text-align: center;
}

.page-info .info-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  flex-shrink: 0;
}

.page-info .info-grid > .info-block {
  flex: 0 1 auto;
  width: 100%;
  max-width: 640px;
  min-width: 0;
}

.page-info .info-grid > .info-block p {
  white-space: nowrap;
}

@media (max-width: 900px) {
  /* Unlock locked viewport so info content + footer never overlap */
  html:has(body.zc-info),
  body.zc-info {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.zc-info,
  body.admin-bar.zc-info {
    height: auto;
    max-height: none;
    min-height: 100dvh;
  }

  body.zc-info .site-footer {
    position: static;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--bg);
    z-index: auto;
    text-align: center;
  }

  body.zc-info .site-footer > div:first-child,
  body.zc-info .site-footer .footer-policies {
    width: 100%;
    max-width: 28rem;
    line-height: 1.45;
  }

  body.zc-info .site-footer .footer-social {
    justify-content: center;
    gap: 10px;
  }

  main.page.page-info {
    height: auto;
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 20px) 18px 28px;
  }

  .page-info .info-hero {
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .page-info .info-hero p,
  .page-info .info-hero p.info-ayah,
  .page-info .info-ayah,
  .page-info .info-ayah p {
    max-width: 36rem;
    font-size: 14px;
    line-height: 1.7;
    padding: 0 2px;
  }

  .page-info .info-feature {
    width: min(200px, 56vw);
    margin: 8px auto 28px;
  }

  .page-info .info-grid {
    gap: 28px;
    padding: 0 2px;
  }

  .page-info .info-grid > .info-block p {
    white-space: normal;
    max-width: 22rem;
    line-height: 1.55;
  }

  .page-info .info-contact {
    align-items: center;
    width: 100%;
    max-width: 22rem;
  }

  .page-info .info-contact li {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.info-hero {
  max-width: 720px;
}

.info-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
}

.info-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--fg) 88%, transparent);
}

.info-block {
  margin-top: 48px;
  max-width: 640px;
}

.page-info .info-block {
  margin-top: 0;
}

.page-info .info-grid + .info-block,
.page-info .info-hero + .info-block {
  margin-top: 28px;
}

.info-block h2 {
  font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

.page-info .info-block h2 {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-align: center;
}

.info-block ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.page-info .info-block ul {
  margin-top: 8px;
}

.info-block li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
}

.page-info .info-block li {
  padding: 8px 0;
  font-size: 13px;
  text-align: center;
}

.page-info .info-block p {
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  text-align: center;
}

.page-info .info-block a {
  font-size: 13px;
}

.page-info .info-contact {
  list-style: none;
  margin: 8px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.page-info .info-contact li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-top: none;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: left;
}

.page-info .info-contact li + li {
  border-top: 1px solid var(--border);
}

.page-info .info-contact svg {
  flex-shrink: 0;
  color: var(--fg);
}

.page-info .info-contact a {
  color: inherit;
}

.page-info .info-contact a:hover {
  color: var(--fg);
}

.info-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Product —— */
.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.product-media {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.product-media img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.sold-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-meta .collection {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.product-meta h1 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 44px);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.price {
  font-family: var(--font-sans);
  font-size: 22px;
}

.edition {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-muted);
}

.option-group {
  margin-bottom: 16px;
}

.option-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--fg-muted);
}

.option-group select {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  padding: 0 12px;
  font-family: var(--font-sans);
}

.add-bag {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.add-bag:hover {
  opacity: 0.9;
}

.add-bag.sold-out,
.add-bag:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-note {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.product-details {
  color: color-mix(in srgb, var(--fg) 88%, transparent);
  font-size: 14px;
  line-height: 1.65;
}

.accordion {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.accordion details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.accordion summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion details p {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* —— Collection page —— */
.collection-intro {
  max-width: 640px;
  margin-bottom: 32px;
}

.collection-intro p {
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
}

/* —— Auctions —— */
.auctions-empty {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-sans);
  color: var(--fg-muted);
}

/* —— Policy pages —— */
.page-policy {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 720px;
}

.page-policy .policy h1 {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.policy-updated {
  margin: 0 0 24px;
  font-size: 12px;
  color: var(--fg-muted);
}

.policy h2 {
  margin: 28px 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.policy p,
.policy li {
  font-size: 14px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--fg) 88%, transparent);
}

.policy ul {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.policy li {
  margin-bottom: 6px;
}

.policy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Footer —— */
.site-footer {
  padding: 28px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

.site-footer nav,
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--fg-muted);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-footer .social-icon:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.site-footer a:hover {
  color: var(--fg);
}

/* —— Bag drawer —— */
.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100%;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.bag-drawer.open {
  transform: translateX(0);
}

.bag-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.bag-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bag-drawer h2 {
  margin: 0;
  font-size: 22px;
}

.bag-drawer .close-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bag-items {
  flex: 1;
  overflow: auto;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-muted);
}

.bag-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.bag-line img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: var(--bg);
}

.bag-checkout {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  margin-top: 12px;
  text-align: center;
}

.bag-checkout.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* —— Checkout —— */
.page-checkout h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.checkout-form,
.checkout-summary {
  font-family: Arial, Helvetica, sans-serif;
}

.checkout-form section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.checkout-form h2,
.checkout-summary h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.checkout-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--fg-muted);
}

.checkout-form input,
.checkout-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--fg) 25%, transparent);
  outline-offset: 1px;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-email-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-panel);
}

.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-lines li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-lines img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}

.checkout-lines strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.checkout-lines span {
  font-size: 13px;
  color: var(--fg-muted);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 15px;
}

.checkout-fine {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.checkout-edit {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}

.checkout-btn.full {
  width: 100%;
  margin-top: 8px;
}

.checkout-btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.checkout-error {
  margin: 0 0 10px;
  font-size: 13px;
  color: #b42318;
}

.checkout-empty,
.checkout-success {
  max-width: 560px;
  font-family: Arial, Helvetica, sans-serif;
}

.checkout-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.checkout-success-card {
  margin: 20px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel);
  font-size: 14px;
  line-height: 1.6;
}

.checkout-success-card p {
  margin: 0 0 8px;
}

.checkout-success-card p:last-child {
  margin-bottom: 0;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }

  .checkout-row {
    grid-template-columns: 1fr;
  }
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  padding: 40px 20px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 80vh;
  object-fit: contain;
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
}

.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 108px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    min-height: var(--header-h);
    padding: 10px 14px;
    gap: 10px;
  }

  .nav-left {
    grid-column: 1;
  }

  .nav-right {
    grid-column: 2;
  }

  .search-wrap {
    grid-column: 1 / -1;
    order: 3;
  }

  .nav-links {
    gap: 10px;
    font-size: 13px;
  }

  .kbd {
    display: none;
  }

  .product {
    grid-template-columns: 1fr;
  }

  .view-toggle {
    top: calc(var(--header-h) + 8px);
    right: 10px;
    font-size: 10px;
  }

  .gallery-scene,
  #gallery-canvas {
    perspective: 820px;
    perspective-origin: 50% 44%;
  }

  .orbit-world {
    transform: rotateX(2deg);
  }

  .orbit-ring,
  .gallery-ring {
    top: 42%;
  }

  /* Compact HUD: Collection title under orbit, then piece + nav */
  .gallery-hud {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "center center"
      "meta nav";
    align-items: end;
    justify-items: stretch;
    text-align: left;
    gap: 8px 12px;
    padding: 40px 14px 14px;
  }

  body.zc-home:not(.zc-list-mode) .gallery-hud {
    z-index: 28;
    padding: 36px 14px calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .gallery-center {
    display: block !important;
    grid-area: center;
    justify-self: center;
    align-self: end;
    text-align: center;
    max-width: min(100%, 92vw);
    pointer-events: none;
    margin: 0 0 4px;
  }

  .gallery-center .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
  }

  .gallery-center h2 {
    font-size: clamp(20px, 6.2vw, 28px);
    letter-spacing: -0.01em;
  }

  .gallery-meta-side {
    grid-area: meta;
    justify-self: start;
    align-self: end;
    max-width: min(100%, 58vw);
    text-align: left;
    pointer-events: auto;
    position: relative;
    z-index: 2;
  }

  .gallery-meta-side .eyebrow {
    margin-bottom: 4px;
  }

  .piece-now {
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--fg);
    text-shadow: 0 1px 10px color-mix(in srgb, var(--bg) 70%, transparent);
  }

  .gallery-hint {
    display: none;
  }

  .gallery-hud > div:last-child {
    grid-area: nav;
    justify-self: end;
    align-self: end;
  }

  .gallery-nav {
    justify-self: end;
    margin-bottom: 6px;
  }

  body.zc-home:not(.zc-list-mode) .site-footer {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    min-height: 48px;
    z-index: 32;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px 14px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    pointer-events: none;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }

  [data-theme="light"] body.zc-home:not(.zc-list-mode) .site-footer {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }

  body.zc-home:not(.zc-list-mode) .site-footer > div:first-child {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }

  body.zc-home:not(.zc-list-mode) .site-footer .footer-social {
    flex: 0 0 auto;
    gap: 6px;
    pointer-events: auto;
  }

  body.zc-home:not(.zc-list-mode) .site-footer .footer-policies {
    display: none;
  }

  body.zc-home:not(.zc-list-mode) .site-footer .social-icon {
    width: 28px;
    height: 28px;
  }

  .orbit-piece {
    width: 118px;
  }

  .orbit-card {
    padding: 4px;
  }

  .orbit-card img {
    height: 152px;
  }

  .orbit-piece.is-focus .orbit-card {
    transform: scale(1.06) translateZ(12px);
  }

  .orbit-glow {
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
  }

  .orbit-tag {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    max-width: 110px;
  }

  .orbit-piece:not(.is-focus) .orbit-tag {
    display: none;
  }

  .orbit-piece.is-focus .orbit-tag {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .newsletter {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 102px;
  }

  .gallery-scene,
  #gallery-canvas {
    perspective: 720px;
    perspective-origin: 50% 40%;
  }

  .orbit-ring,
  .gallery-ring {
    top: 38%;
  }

  .orbit-piece {
    width: 100px;
  }

  .orbit-card img {
    height: 132px;
  }

  .orbit-glow {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
  }

  /* Keep product title under focused slide (desktop-like) */
  .orbit-tag {
    display: none;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 108px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fg);
    text-shadow:
      0 1px 2px color-mix(in srgb, var(--bg) 80%, transparent),
      0 2px 10px color-mix(in srgb, var(--bg) 55%, transparent);
  }

  .orbit-piece.is-focus .orbit-tag {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-hud {
    gap: 10px;
    padding: 28px 12px 12px;
  }

  body.zc-home:not(.zc-list-mode) .gallery-hud {
    padding: 28px 12px calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .gallery-meta-side {
    max-width: min(100%, 62vw);
  }

  .piece-now {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
  }

  .piece-counter {
    font-size: 10px;
  }

  .gallery-nav button {
    width: 36px;
    height: 36px;
  }

  body.zc-home:not(.zc-list-mode) .site-footer {
    min-height: 40px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    font-size: 11px;
  }

  body.zc-home:not(.zc-list-mode) .gallery-nav {
    margin-bottom: 0;
  }
}

/* Very small phones + admin bar: keep orbit clear of HUD/footer */
@media (max-width: 430px) {
  .orbit-ring,
  .gallery-ring {
    top: 38%;
  }

  .orbit-piece {
    width: 88px;
  }

  .orbit-card img {
    height: 116px;
  }

  body.zc-home:not(.zc-list-mode) .gallery-hud {
    padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px));
  }
}

/* �� WooCommerce pages �� */
.zc-woocommerce .woocommerce,
.zc-woocommerce .woocommerce-cart,
.zc-woocommerce .woocommerce-checkout {
  font-family: var(--font-sans);
}

.zc-woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.zc-woocommerce table.shop_table th,
.zc-woocommerce table.shop_table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.zc-woocommerce .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.zc-woocommerce .cart_totals,
.zc-woocommerce .woocommerce-checkout-review-order {
  margin-top: 32px;
  max-width: 420px;
  margin-left: auto;
}

.zc-woocommerce .button,
.zc-woocommerce button.button,
.zc-woocommerce #place_order,
.zc-woocommerce .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.zc-woocommerce .input-text,
.zc-woocommerce input[type="text"],
.zc-woocommerce input[type="email"],
.zc-woocommerce input[type="tel"],
.zc-woocommerce select,
.zc-woocommerce textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
}

.zc-woocommerce .form-row {
  margin-bottom: 14px;
}

.zc-woocommerce .woocommerce-message,
.zc-woocommerce .woocommerce-info,
.zc-woocommerce .woocommerce-error {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 12px 14px;
  margin: 0 0 20px;
  list-style: none;
}

.woocommerce-page .page-wide {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 64px;
}
