/* ============================================================
   PRODUCT PAGE — Light theme, editor-consistent style
   ============================================================ */

body { background: #f2f1ef; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e8e5e0;
  margin-top: 78px;
}
.breadcrumb-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
}
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #333; }
.breadcrumb span { color: #ddd; }
.breadcrumb-current { color: #555; }

/* ── NAV OVERRIDE for light body ────────────────────────── */
.nav {
  background: #fff !important;
  border-bottom: 1px solid #e8e5e0;
}
.nav .brand img { mix-blend-mode: multiply !important; filter: contrast(1.8) brightness(0.6) !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.nav .brand-name { color: #111 !important; }
.nav .brand-sub { color: #888 !important; }
.nav .navlinks a { color: #555 !important; }
.nav .navlinks a:hover,
.nav .navlinks a.active { color: #000 !important; }
.nav .hamburger span { background: #111 !important; }
.nav .nav-cta {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

/* ── PRODUCT LAYOUT ──────────────────────────────────────── */
.product-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: stretch;
  height: calc(100vh - 78px - 38px - 40px);
  min-height: 520px;
}

/* ── 3D PLATE VIEWER ─────────────────────────────────────── */
.product-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 16px;
  background: #f4f3f1;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.plate-hint {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0;
  user-select: none;
}

/* Stage = perspective container */
.plate-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  cursor: grab;
  min-height: 0;
}
.plate-stage:active,
.plate-stage.dragging { cursor: grabbing; }

/* The plate itself */
.live-plate {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  cursor: grab;
  /* Size set by JS to fill stage; aspect ratio 32:45 (portrait display) */
  width: 272px;
  height: 384px;
}

/* Faces */
.plate-face {
  position: absolute; inset: 0;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.1), 0 20px 60px rgba(0,0,0,.18);
}
.plate-front {
  background: #1a1a1a;
}
.plate-back {
  background:
    repeating-linear-gradient(88deg, transparent 0px, rgba(255,255,255,.04) 1px, transparent 2px, transparent 5px),
    linear-gradient(165deg, #dcdcdc 0%, #c4c4c4 12%, #dadadb 30%, #bfbfbf 50%, #d6d6d6 68%, #c9c9c9 85%, #d3d3d3 100%);
  transform: rotateY(180deg);
  border-color: rgba(0,0,0,.1);
}

/* Front: car photo */
.plate-photo { position: absolute; inset: 0; overflow: hidden; }
.plate-photo-img {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Front: bottom brand strip */
.plate-front-brand-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 20px 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.plate-front-cf {
  font-size: 10px;
  letter-spacing: .25em;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
.plate-front-series-label {
  font-size: 9px;
  letter-spacing: .15em;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
}

/* Controls below plate */
.plate-viewer-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 8px;
}
.plate-flip-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #333;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.plate-flip-btn:hover { background: #f5f5f5; border-color: #bbb; }
.plate-size-info {
  font-size: 11px;
  color: #aaa;
  letter-spacing: .06em;
}

/* ── PRODUCT INFO PANEL ──────────────────────────────────── */
.product-info {
  background: #fff;
  border-radius: 10px;
  padding: 28px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

/* Collection badge */
.product-info-collection {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f0ede8;
}
.product-info-collection-logo {
  width: 40px;
  height: 40px;
  background: #f5f3f0;
  border: 1px solid #e0ddd8;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #9a7d3a;
}
.product-info-collection-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}
.product-info-collection-count {
  font-size: 11px;
  color: #aaa;
}

.product-info-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.2;
}
.product-info-tagline {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 14px;
  letter-spacing: .05em;
}
.product-info-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.75;
  margin: 0 0 28px;
  font-weight: 400;
}

/* ── OPTION GROUPS ───────────────────────────────────────── */
.product-option-group {
  margin-bottom: 22px;
}
.product-option-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-option-hint {
  width: 16px;
  height: 16px;
  background: #f0ede8;
  border-radius: 50%;
  font-size: 10px;
  color: #bbb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* Finish buttons */
.product-option-btns { display: flex; gap: 8px; }
.product-opt-btn {
  flex: 1;
  padding: 10px;
  background: #fff;
  border: 1.5px solid #e0ddd8;
  border-radius: 5px;
  color: #aaa;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.product-opt-btn:hover { border-color: #999; color: #333; }
.product-opt-btn.active { border-color: #111; color: #111; }

/* Size buttons */
.product-size-btns { display: flex; gap: 8px; }
.product-size-btn {
  flex: 1;
  padding: 12px 8px;
  background: #fff;
  border: 1.5px solid #e0ddd8;
  border-radius: 5px;
  color: #aaa;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.product-size-btn:hover { border-color: #999; }
.product-size-btn.active { border-color: #111; }
.product-size-btn.active .psb-label { color: #111; }
.product-size-btn.active .psb-dim { color: #666; }
.psb-label {
  font-size: 15px;
  font-weight: 600;
  color: #ccc;
  transition: color .2s;
}
.psb-dim {
  font-size: 10px;
  color: #ccc;
  transition: color .2s;
}

/* ── PRICE ───────────────────────────────────────────────── */
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid #f0ede8;
  border-bottom: 1px solid #f0ede8;
}
.product-price {
  font-size: 34px;
  font-weight: 300;
  color: #111;
  letter-spacing: .02em;
}
.product-price-note {
  font-size: 11px;
  color: #bbb;
}

/* ── CTAs ────────────────────────────────────────────────── */
.product-cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.product-btn-order {
  flex: 1;
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.product-btn-order:hover { background: #333; }

.product-btn-wishlist {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 1.5px solid #e0ddd8;
  border-radius: 5px;
  color: #bbb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.product-btn-wishlist:hover { border-color: #999; color: #555; }

.product-divider {
  border: none;
  border-top: 1px solid #f0ede8;
  margin: 0 0 20px;
}

/* Meta bullets */
.product-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #999;
  font-weight: 400;
}
.product-meta li svg { color: #9a7d3a; flex-shrink: 0; }

/* ── ZOOM MODAL ──────────────────────────────────────────── */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.zoom-modal.open { opacity: 1; pointer-events: auto; }
.zoom-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.9);
  border: none;
  color: #333;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoom-modal-close:hover { background: #fff; }
.zoom-modal-img {
  width: min(80vh, 90vw);
  height: min(80vh, 90vw);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

/* ── CUSTOM PROMPT LINK ──────────────────────────────────── */
.product-custom-prompt {
  font-size: 12px;
  color: #bbb;
  margin: 0 0 20px;
  text-align: center;
}
.product-custom-prompt a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-custom-prompt a:hover { color: #111; }

/* ── RELATED PLATES SECTION ──────────────────────────────── */
.related-section {
  background: #f7f6f4;
  border-top: 1px solid #e8e5e0;
  padding: 64px 24px 80px;
}
.related-header {
  max-width: 1280px;
  margin: 0 auto 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.related-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 6px;
}
.related-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}
.related-view-all {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid #ccc;
  transition: color .2s, border-color .2s;
}
.related-view-all:hover { color: #111; border-color: #111; }

.related-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  overflow-x: auto;
}

/* Cards */
.related-card {
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  min-width: 160px;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.related-card-img {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  transition: transform .35s;
}
.related-card:hover .related-card-img {
  transform: scale(1.04);
}
.related-card-info {
  padding: 10px 12px 12px;
}
.related-card-brand {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 2px;
}
.related-card-model {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-card-price {
  font-size: 12px;
  font-weight: 600;
  color: #9a7d3a;
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}
@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* ── PLATE BACK (rb) STYLES — ported from editor ────────────── */
.rb {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-size: 5.5px;
  color: #1a1a1a;
  overflow: hidden;
}
.rb-frame {
  position: absolute; inset: 1.6em;
  border: .18em solid rgba(0,0,0,.2);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.rb-frame::before {
  content: '';
  position: absolute; inset: .55em;
  border: .07em solid rgba(0,0,0,.1);
  pointer-events: none; z-index: 0;
}
.rb-header, .rb-story, .rb-footer { position: relative; z-index: 1; }
.rb-header {
  flex-shrink: 0;
  text-align: center;
  padding: .9em 1em .6em;
  border-bottom: .08em solid rgba(0,0,0,.1);
}
.rb-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.15em; letter-spacing: .25em;
  color: rgba(0,0,0,.3); margin-bottom: .45em;
}
.rb-car-name {
  font-family: 'Cinzel', serif;
  font-size: 2.1em; font-weight: 600;
  letter-spacing: .07em; color: #111;
  line-height: 1.1; margin-bottom: .35em;
}
.rb-car-spec { display: flex; align-items: center; gap: .6em; }
.rb-spec-line { flex: 1; height: .07em; background: rgba(0,0,0,.18); }
.rb-spec-text {
  font-size: .95em; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(0,0,0,.4);
  white-space: nowrap;
}
.rb-story {
  flex: 1;
  padding: .55em .8em;
  border-bottom: .08em solid rgba(0,0,0,.1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.rb-sec-head { display: flex; align-items: center; gap: .55em; margin-bottom: .5em; }
.rb-sec-line { flex: 1; height: .07em; background: rgba(0,0,0,.18); }
.rb-sec-label {
  font-size: .95em; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(0,0,0,.38);
  white-space: nowrap;
}
.rb-story-box {
  position: relative; flex: 1;
  border: .1em solid rgba(0,0,0,.12);
  border-radius: .2em;
  padding: .55em .7em;
  display: flex; align-items: flex-start;
  overflow: hidden;
}
.rb-story-text {
  margin: 0;
  font-size: 1.4em; line-height: 1.6;
  color: #1c1c1c;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.rb-footer {
  flex-shrink: 0;
  text-align: center;
  padding: .5em .8em .85em;
  border-top: .08em solid rgba(0,0,0,.1);
}
.rb-footer-rule { display: flex; align-items: center; gap: .6em; margin-bottom: .2em; }
.rb-footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.2em; letter-spacing: .2em;
  color: rgba(0,0,0,.32); white-space: nowrap;
}
.rb-footer-tagline {
  font-size: .88em; letter-spacing: .15em;
  color: rgba(0,0,0,.18); text-transform: uppercase;
}
.rb-footer-cf-num {
  font-family: 'Courier New', monospace;
  font-size: .9em; letter-spacing: .06em;
  color: rgba(0,0,0,.28); margin-top: .3em;
}
