.nav { position: sticky; top: 0; z-index: 40; background: hsl(var(--background) / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid hsl(var(--border)); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.back-link { font-size: 0.85rem; font-weight: 500; color: hsl(var(--muted-foreground)); display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.back-link:hover { color: hsl(var(--primary)); }
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-spacer { width: 120px; flex-shrink: 0; }
@media (max-width: 480px) {
  .back-link span { display: none; }
  .nav-spacer { width: 24px; }
}

.product-page { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 5rem; display: grid; grid-template-columns: 90px 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .product-page { grid-template-columns: 1fr; padding: 1.5rem 1.2rem 3rem; } }

.thumb-rail { display: flex; flex-direction: column; gap: 0.7rem; }
@media (max-width: 860px) { .thumb-rail { flex-direction: row; overflow-x: auto; order: 2; } }
.thumb-rail img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; border-radius: 2px; cursor: pointer;
  border: 1.5px solid transparent; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease;
}
@media (max-width: 860px) { .thumb-rail img { width: 64px; flex-shrink: 0; } }
.thumb-rail img.active { opacity: 1; border-color: hsl(var(--primary)); }
.thumb-rail img.thumb-video { position: relative; }
.thumb-rail img.thumb-video::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 999px;
}

.main-media { position: relative; order: 0; }
@media (max-width: 860px) { .main-media { order: 1; } }
.main-media-frame { aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; background: hsl(var(--muted)); position: relative; }
.main-media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; cursor: zoom-in; }
.main-media-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.zoom-btn {
  position: absolute; bottom: 0.9rem; right: 0.9rem; padding: 0.55rem 1rem; border-radius: 999px;
  background: hsl(var(--background) / 0.95); border: 1px solid hsl(var(--border)); display: flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); font-size: 0.8rem; font-weight: 600; color: hsl(var(--foreground));
}
.zoom-btn:hover { background: hsl(var(--background)); border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.zoom-btn svg { width: 18px; height: 18px; }
.photo-index { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.72rem; padding: 0.2rem 0.6rem; border-radius: 999px; }
.main-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px;
  background: hsl(var(--background) / 0.85); border: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); color: hsl(var(--foreground)); transition: background 0.2s ease, border-color 0.2s ease;
}
.main-nav:hover { background: hsl(var(--background)); border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.main-nav:disabled { opacity: 0.35; cursor: default; }
.main-nav.prev { left: 0.7rem; } .main-nav.next { right: 0.7rem; }
.main-nav svg { width: 20px; height: 20px; }

.info-col { display: flex; flex-direction: column; gap: 1.2rem; padding-top: 0.5rem; }
.info-col .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.info-col h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.price-row { font-size: 1.05rem; color: hsl(var(--primary)); font-weight: 500; }
.made-to-order-note { font-size: 0.85rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.made-to-order-note strong { color: hsl(var(--foreground)); font-weight: 600; }
.story { font-size: 1rem; line-height: 1.75; font-weight: 300; color: hsl(var(--foreground) / 0.85); }
.specs { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.85rem; color: hsl(var(--muted-foreground)); border-top: 1px solid hsl(var(--border)); padding-top: 1.1rem; }
.specs strong { color: hsl(var(--foreground)); font-weight: 600; }

.customize-note {
  font-size: 0.85rem; color: hsl(var(--muted-foreground)); line-height: 1.5;
}
.policies { display: flex; flex-direction: column; gap: 0.9rem; border-top: 1px solid hsl(var(--border)); padding-top: 1.1rem; }
.policies h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-weight: 600; margin-bottom: 0.3rem; }
.policies p { font-size: 0.85rem; color: hsl(var(--foreground) / 0.8); line-height: 1.6; margin: 0; }

.size-block { display: flex; flex-direction: column; gap: 0.6rem; }
.size-row-top { display: flex; align-items: center; justify-content: space-between; }
.size-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.size-chart-btn { background: none; border: none; padding: 0; font-size: 0.78rem; font-weight: 600; color: hsl(var(--primary)); text-decoration: underline; }
.size-options { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.size-options button {
  width: 44px; height: 40px; border-radius: 4px; border: 1px solid hsl(var(--border)); background: transparent;
  font-size: 0.85rem; font-weight: 600; color: hsl(var(--foreground)); transition: all 0.15s ease;
}
.size-options button:hover { border-color: hsl(var(--primary)); }
.size-options button.selected { border-color: hsl(var(--primary)); background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.free-size-note { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

.size-chart-overlay {
  position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.size-chart-overlay[hidden] { display: none; }
.size-chart-panel { background: hsl(var(--background)); border-radius: 6px; max-width: 480px; width: 100%; padding: 1.6rem; position: relative; }
.size-chart-panel h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.size-chart-panel table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.size-chart-panel th, .size-chart-panel td {
  border: 1px solid hsl(var(--border)); padding: 0.5rem 0.6rem; text-align: center; font-variant-numeric: tabular-nums;
}
.size-chart-panel th { background: hsl(var(--card)); font-weight: 600; }
.size-chart-panel p { font-size: 0.76rem; color: hsl(var(--muted-foreground)); margin-top: 0.8rem; }
.size-chart-close {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: transparent; display: flex; align-items: center; justify-content: center;
}

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,8,6,0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: grab; }
.lightbox-stage.zoomed { cursor: grab; }
.lightbox-stage.dragging { cursor: grabbing; }
.lightbox-stage img {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain;
  transition: transform 0.15s ease; user-select: none; -webkit-user-drag: none;
}
.lightbox-controls {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.08);
  padding: 0.5rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.lightbox-controls button {
  width: 40px; height: 40px; border-radius: 999px; border: none; background: rgba(255,255,255,0.1);
  color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lightbox-controls button:hover { background: rgba(255,255,255,0.2); }
.lightbox-controls button:disabled { opacity: 0.35; cursor: default; }
.lightbox-controls button svg { width: 18px; height: 18px; }
.lightbox-zoom-pct { color: #fff; font-size: 0.8rem; font-variant-numeric: tabular-nums; width: 3.2rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: none; color: #fff; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: none; color: #fff; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 1.2rem; } .lightbox-nav.next { right: 1.2rem; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-count { position: absolute; top: 1.3rem; left: 1.3rem; color: rgba(255,255,255,0.8); font-size: 0.8rem; }
