/* =============================================================================
   The Place We Love — City Page (Configurator)
   Layout: full-viewport 2-col grid · left = map · right = steps panel
   ============================================================================= */

/* ── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #F2EFE9;
  --bg2:       #E8E4DC;
  --white:     #FFFFFF;
  --ink:       #1A1612;
  --muted:     #7A7268;
  --muted-l:   #B0A89E;
  --gold:      #B8923E;
  --border:    rgba(0, 0, 0, .10);
  --border-s:  rgba(0, 0, 0, .06);
  --radius:    5px;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 14px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── PROMO BANNER ───────────────────────────────────────────────────────────── */
.promo-bar {
  background: var(--gold); color: var(--ink);
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 400;
  letter-spacing: .10em; text-transform: uppercase;
  height: 36px; position: relative;
  overflow: hidden; display: flex; align-items: center;
}
.promo-bar-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: promo-ticker 28s linear infinite;
  will-change: transform;
}
.promo-bar:hover .promo-bar-track { animation-play-state: paused; }
.promo-bar-text {
  display: inline-block; line-height: 1;
  padding-right: 60px; /* gap between repeats */
  flex-shrink: 0;
}
@keyframes promo-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.promo-bar-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; z-index: 2;
  font-size: 1rem; line-height: 1; color: var(--ink); opacity: .6;
  transition: opacity .15s;
}
.promo-bar-close:hover { opacity: 1; }

/* ── NAV ───────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border-s);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 60px;
}
.logo {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; white-space: nowrap;
}
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 300; letter-spacing: .14em;
  color: var(--ink); line-height: 1;
}
.logo-name b { font-weight: 400; color: var(--gold); }
.logo-tag {
  font-family: 'Jost', sans-serif;
  font-size: .47rem; font-weight: 400;
  text-transform: uppercase; color: var(--muted-l); line-height: 1;
  letter-spacing: .18em; text-align: center;
}

.nav-r { display: flex; align-items: center; gap: 18px; }

.nav-back {
  display: flex; align-items: center; gap: 6px;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav-back:hover { color: var(--ink); }
.nav-back svg { transition: transform .2s; }
.nav-back:hover svg { transform: translateX(-2px); }

.currency-select, .units-select {
  border: 1px solid var(--border);
  background: var(--white); color: var(--ink);
  font-family: 'Jost', sans-serif; font-size: .75rem;
  padding: 5px 10px; border-radius: var(--radius);
  cursor: pointer; outline: none; transition: border-color .2s;
}
.currency-select:focus, .currency-select:hover,
.units-select:focus, .units-select:hover { border-color: var(--ink); }

/* Cart button — nav top-right */
.cart-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--gold); color: #1A1410;
  border: none; border-radius: var(--radius);
  cursor: pointer; transition: filter .18s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184,146,62,.30);
}
.cart-btn:hover { filter: brightness(1.10); }

/* ── CONFIGURATOR LAYOUT ───────────────────────────────────────────────────── */
.configurator {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* ── LEFT PANEL ────────────────────────────────────────────────────────────── */
.conf-left {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  background: #ECEAE5;
  border-right: 1px solid var(--border-s);
}
/* City search bar — top of map panel (the natural place to type a location) */
.stage-header {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--white);
  border-bottom: 1px solid var(--border-s);
  z-index: 20; position: relative;
}
.stage-header .city-input {
  font-size: .95rem;
  padding: 9px 34px 9px 12px;
}
.stage-header .city-clear {
  position: absolute;
  right: 16px; top: 50%; transform: translateY(-50%);
}
.stage-header .city-geo {
  flex-shrink: 0;
}
/* ── MAP PREVIEW WRAP ──────────────────────────────────────────────────────── */
.map-preview-wrap {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}

/* ── LIGHT STAGE ──────────────────────────────────────────────────────────── */
.map-preview {
  flex: 1; overflow: visible; position: relative;
  background: #EEEAE2;
  background-image: radial-gradient(ellipse at 50% 30%, #F5F1EB 0%, #E3DDD5 100%);
  display: flex; align-items: center; justify-content: center;
}

/* Orient toggle — top-right inside stage */
.stage-orient {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  display: flex; gap: 4px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3px;
}
.orient-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 3px;
  background: transparent; cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.orient-btn:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.orient-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Zoom +/- — left edge of frame */
.map-zoom-ctrl {
  position: absolute; left: -34px; top: 50%; transform: translateY(-50%);
  z-index: 10; display: flex; flex-direction: column; gap: 2px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.mz-btn {
  width: 28px; height: 28px;
  background: var(--white); border: 1px solid var(--border); border-radius: 0;
  font-size: 1rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; color: var(--ink);
}
.mz-btn:hover { background: var(--bg2); }
.mz-btn + .mz-btn { border-top: none; }

/* ── POSTER SCENE ──────────────────────────────────────────────────────────── */
.poster-scene {
  display: flex; align-items: center; gap: 12px;
  overflow: visible; /* allow dimH and dimV labels to show outside */
}

.poster-dim-v {
  writing-mode: vertical-rl;
  /* No rotation — sits to the right of the frame, reads top-to-bottom */
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 400;
  letter-spacing: .10em; color: rgba(0,0,0,.42);
  user-select: none; white-space: nowrap; flex-shrink: 0;
  border-left: 1.5px solid rgba(0,0,0,.20);
  padding-left: 7px; padding-top: 8px; padding-bottom: 8px;
}

.poster-col {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  width: fit-content; /* never grow wider than posterFrame */
}

.poster-dim-h {
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 400;
  letter-spacing: .10em; color: rgba(0,0,0,.42);
  user-select: none; white-space: nowrap;
  border-top: 1.5px solid rgba(0,0,0,.28);
  padding-top: 6px; padding-left: 14px; padding-right: 14px;
  align-self: center; width: fit-content; text-align: center; margin-top: 24px;
}

/* Thick outer frame — substantial dark border for luxury print feel */
.poster-frame {
  flex-shrink: 0; position: relative;
  background: #1A1612;
  padding: 20px;
  box-shadow:
    0 28px 80px rgba(0,0,0,.32),
    0  8px 28px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.06);
  display: flex;
}
/* No-frame mode — remove dark border */
.poster-frame.no-frame {
  background: transparent;
  padding: 0;
  box-shadow: 0 16px 50px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.12);
}
/* Oak frame — warm natural wood tone with grain gradient */
.poster-frame.oak-frame {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 5px,
      rgba(100,55,10,.06) 5px,
      rgba(100,55,10,.06) 6px,
      transparent 6px,
      transparent 11px,
      rgba(160,90,20,.05) 11px,
      rgba(160,90,20,.05) 12px
    ),
    linear-gradient(
      160deg,
      #D9A055 0%,
      #C47B2E 18%,
      #D49448 32%,
      #BA6E28 48%,
      #CC8838 60%,
      #D89A50 72%,
      #C07830 85%,
      #D49040 100%
    );
  box-shadow:
    0 28px 80px rgba(130,80,10,.32),
    0  8px 28px rgba(100,60,10,.22),
    inset 0  1px 0 rgba(255,210,130,.30),
    inset 0 -1px 0 rgba(60,30,5,.18);
}

/* Size badge — bottom-right of stage */
.size-badge {
  position: absolute; bottom: 18px; right: 22px; z-index: 5;
  font-family: 'Jost', sans-serif;
  font-size: .75rem; font-weight: 400; letter-spacing: .11em;
  color: rgba(0,0,0,.44);
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px);
  padding: 5px 13px; border-radius: 20px;
  border: 1px solid rgba(0,0,0,.10);
  pointer-events: none; user-select: none;
}

/* Map area fills the frame */
.map-canvas {
  flex: 1; width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 0;
  container-type: inline-size;
}
/* White passepartout border — wide gallery-mat effect */
.map-canvas::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 30px #FAFAF7;
  transition: box-shadow .25s;
}
/* Digital download: no white border */
.map-canvas.no-passepartout::after {
  box-shadow: none;
}

/* Gradient label overlay — bottom of map canvas */
.map-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 3; pointer-events: none;
  padding: 70px 16px 50px; /* 50px bottom clears 30px passepartout + breathing room */
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--label-gradient, linear-gradient(to bottom, transparent 0%, rgba(245,240,232,.68) 32%, rgba(245,240,232,1) 58%, rgba(245,240,232,1) 100%));
}
/* Digital: no passepartout, restore tighter padding */
.map-canvas.no-passepartout .map-label { padding-bottom: 20px; }
/* coords: small, on top */
.ml-coords {
  font-family: 'Jost', sans-serif;
  font-size: clamp(.44rem, 1.8cqi, .68rem);
  letter-spacing: .13em;
  color: var(--label-ink, #1A1612);
  opacity: .46;
  margin-bottom: 4px;
  text-transform: none;
}
/* city: the hero element — large Cormorant */
.ml-city {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 8.5cqi, 3.4rem);
  font-weight: 300; letter-spacing: .14em; line-height: 1.05;
  color: var(--label-ink, #1A1612);
}
/* tagline: italic serif below city — defaults to region, user-editable */
.ml-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(.72rem, 3.2cqi, 1.3rem);
  font-style: italic; font-weight: 300;
  letter-spacing: .07em;
  margin-top: 4px;
  color: var(--label-ink, #1A1612);
  opacity: .88;
}

/* ── MAP FOOTER ────────────────────────────────────────────────────────────── */
.map-footer {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 5px 16px;
  background: var(--white); border-top: 1px solid var(--border-s);
}
.map-tip { font-size: .6rem; color: var(--muted); }

/* ── RIGHT PANEL ───────────────────────────────────────────────────────────── */
.conf-right {
  height: 100%; overflow-y: auto; background: var(--bg);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.conf-right::-webkit-scrollbar { width: 5px; }
.conf-right::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.conf-panel { padding: 0 22px 200px; }

/* ── STEPS ─────────────────────────────────────────────────────────────────── */
.step {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-s);
}

.step-hd {
  display: flex; align-items: baseline; gap: 7px;
  margin-bottom: 10px;
}
.step-n {
  font-size: .68rem; font-weight: 500; color: var(--muted);
  letter-spacing: .06em; flex-shrink: 0;
}
.step-ttl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 400; letter-spacing: .03em;
}
.step-sub { font-size: .7rem; color: var(--muted); margin-bottom: 12px; }

/* City search */
.city-wrap {
  position: relative; display: flex; align-items: center;
  gap: 7px; margin-bottom: 12px;
}
.city-geo {
  flex-shrink: 0; width: 38px; height: 38px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.city-geo:hover { border-color: var(--ink); color: var(--ink); }
.city-input {
  flex: 1; padding: 10px 34px 10px 11px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Jost', sans-serif; font-size: .9rem;
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color .2s;
}
.city-input:focus { border-color: var(--ink); }
.city-clear {
  position: absolute; right: 9px;
  background: none; border: none; cursor: pointer;
  font-size: .7rem; color: var(--muted); line-height: 1;
  padding: 2px;
}
.city-clear:hover { color: var(--ink); }

/* Size option grid */
.size-section {
  margin-top: 14px;
  border-top: 1px solid var(--border-s);
  padding-top: 12px;
}
.size-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.size-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 9px 6px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--white);
  cursor: pointer; text-align: center;
  transition: border-color .15s, box-shadow .15s;
  user-select: none;
}
.size-card:hover { border-color: var(--ink); }
.size-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.size-card-dim {
  font-size: .7rem; font-weight: 500; color: var(--ink);
  letter-spacing: .02em;
}
.size-card-dim .size-card-inch {
  display: block; font-size: .58rem; font-weight: 300;
  color: var(--muted-l); margin-top: 1px; letter-spacing: .01em;
}
.size-card-price {
  font-size: .6rem; color: var(--muted); margin-top: 2px;
}

/* Lijst / frame toggle */
.lijst-section {
  margin-top: 14px;
  border-top: 1px solid var(--border-s);
  padding-top: 12px;
}
.lijst-label {
  font-size: .68rem; color: var(--muted); letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 7px;
}
.lijst-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; margin-bottom: 5px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
  transition: border-color .2s, box-shadow .15s;
  user-select: none;
}
.lijst-row:hover { border-color: var(--ink); }
.lijst-row.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.lijst-name { font-size: .73rem; color: var(--ink); }
.lijst-badge { font-size: .62rem; color: var(--muted); font-weight: 300; }
.lijst-price { font-size: .68rem; color: var(--muted); }

/* Label toggles */
.label-toggles {
  display: flex; flex-direction: column; gap: 5px;
  margin-top: 10px; margin-bottom: 14px;
}
.lt-row {
  display: flex; align-items: center; gap: 7px;
  font-size: .72rem; color: var(--muted); cursor: pointer;
  user-select: none;
}
.lt-row input[type="checkbox"] {
  width: 13px; height: 13px; accent-color: var(--ink);
  cursor: pointer; flex-shrink: 0;
}

/* City label row */
.city-label-row {
  margin-top: 10px; margin-bottom: 2px;
}
.city-label-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 5px;
}
.city-label-hd .pf-label { margin-bottom: 0; }
.city-coords-toggle {
  display: flex; align-items: center; gap: 5px;
  font-size: .62rem; color: var(--muted); cursor: pointer;
  user-select: none;
}
.city-coords-toggle input[type="checkbox"] {
  width: 12px; height: 12px; accent-color: var(--ink); cursor: pointer;
}

/* Personal line / tagline */
.personal-row { margin-top: 10px; }

/* Tagline header — inline checkbox + label */
.tagline-header {
  display: flex; align-items: center; gap: 6px;
  cursor: default;
}
.tagline-header input[type="checkbox"] {
  width: 13px; height: 13px; accent-color: var(--ink);
  cursor: pointer; flex-shrink: 0;
}
.pf-label {
  display: block; font-size: .68rem; color: var(--muted);
  margin-bottom: 5px; letter-spacing: .04em;
}
.pf-hint {
  font-weight: 300; font-style: italic; opacity: .7;
}
.pf-input {
  width: 100%; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Jost', sans-serif; font-size: .8rem;
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color .2s;
}
.pf-input:focus { border-color: var(--ink); }
.pf-sugs {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px;
}
.pf-sugs span {
  font-size: .62rem; padding: 3px 8px;
  border: 1px solid var(--border); border-radius: 99px;
  cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.pf-sugs span:hover { border-color: var(--ink); color: var(--ink); }

/* Format cards */
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.fmt-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 11px 6px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--white);
  cursor: pointer; text-align: center; gap: 2px;
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.fmt-card:hover { border-color: var(--ink); }
.fmt-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.fmt-ico  { font-size: .95rem; margin-bottom: 3px; }
.fmt-name { font-size: .66rem; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.fmt-sub  { font-size: .57rem; color: var(--muted); }

/* Style grid */
.style-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.sg-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; gap: 4px; padding: 4px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s, border-color .2s;
  user-select: none;
}
.sg-card:hover { background: var(--bg2); }
.sg-card.active { border-color: var(--gold); background: var(--white); }

.sg-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 3px;
  position: relative; overflow: hidden;
  transition: box-shadow .2s;
}
.sg-card.active .sg-thumb { box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.sg-check {
  display: none;
  position: absolute; top: 5px; right: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: #1A1410;
  font-size: .48rem; font-weight: 700;
  align-items: center; justify-content: center; line-height: 1;
}
.sg-card.active .sg-check { display: flex; }
.sg-name {
  font-size: .6rem; color: var(--muted);
  text-align: center; letter-spacing: .03em;
}
.sg-card.active .sg-name { color: var(--gold); font-weight: 500; }

/* Zoom controls */
.zoom-row { display: none; } /* removed — zoom via +/- on frame */
.zoom-val  { display: none; }
.zoom-lbl  { display: none; }
.center-btn { display: none; }
.zoom-slider { display: none; }

/* ── CHECKOUT BAR ──────────────────────────────────────────────────────────── */
.checkout-bar {
  position: fixed; bottom: 0; right: 0; width: 400px;
  background: var(--bg);
  padding: 12px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-s);
  z-index: 400;
}
.checkout-btn-row {
  display: flex; gap: 8px; align-items: stretch;
}
.checkout-btn {
  flex: 1; padding: 15px;
  background: var(--gold);
  color: #1A1410;
  border: none;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: .88rem; font-weight: 500; letter-spacing: .10em; text-transform: uppercase;
  cursor: pointer; transition: filter .2s, opacity .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-shadow: none;
  box-shadow: 0 2px 12px rgba(184,146,62,.38);
}
.checkout-btn:hover { filter: brightness(1.08); opacity: 1; }
.checkout-btn:active { filter: brightness(.96); }
.checkout-btn:disabled { opacity: .5; cursor: not-allowed; }
.share-btn {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 42px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: color .2s, border-color .2s;
}
.share-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ── AR trigger button ───────────────────────────────────────────── */
.ar-row { margin-top: 6px; }
.ar-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Jost', sans-serif; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.ar-trigger:hover { color: var(--ink); border-color: var(--ink); }
.ar-trigger:disabled { opacity: .5; cursor: not-allowed; }

/* ── AR full-screen overlay ──────────────────────────────────────── */
.ar-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: #EAE6DE;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ar-overlay-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.14); border: none; border-radius: 50%;
  color: #fff; cursor: pointer; transition: background .2s;
}
.ar-overlay-close:hover { background: rgba(255,255,255,.26); }
.ar-overlay model-viewer { width: 100%; height: 100%; }
.ar-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-family: 'Jost', sans-serif; font-size: .7rem;
  text-align: center; white-space: nowrap; margin: 0;
}
.ar-hint strong { color: rgba(255,255,255,.8); font-weight: 500; }
.ar-hint-close {
  background: none; border: none;
  color: rgba(255,255,255,.55); text-decoration: underline;
  font-size: inherit; cursor: pointer;
}
/* Button injected into model-viewer's AR slot */
.ar-btn-native {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: #fff; color: #1A1612;
  border: none; border-radius: 28px;
  font-family: 'Jost', sans-serif; font-size: .9rem; font-weight: 500;
  cursor: pointer; box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: opacity .15s;
}
.ar-btn-native:hover { opacity: .88; }

.checkout-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-size: .61rem; color: var(--muted); gap: 8px;
}
.checkout-meta-left {
  display: flex; align-items: center; gap: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.co-price { font-weight: 500; color: var(--ink); flex-shrink: 0; }
.social-stars { color: #C9A84C; letter-spacing: .02em; }

.checkout-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; gap: 8px;
}
.checkout-trust-text {
  font-size: .6rem; color: var(--muted-l); white-space: nowrap; flex-shrink: 0;
}

/* Payment logos — checkout bar + cart drawer */
.pay-logos {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
}
.pay-logo {
  font-size: .5rem; font-weight: 700; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 3px;
  border: 1px solid var(--border); background: var(--white);
  color: var(--ink); white-space: nowrap; line-height: 1.9;
  display: inline-block;
}
.pay-ideal  { background: #CC0066; color: #fff; border-color: #CC0066; }
.pay-paypal { background: #003087; color: #fff; border-color: #003087; }
.pay-visa   { background: #1A1F71; color: #fff; border-color: #1A1F71; font-style: italic; font-size: .58rem; }
.pay-klarna { background: #FFB3C7; color: #17120E; border-color: #FFB3C7; }
.pay-amex   { background: #2E77BC; color: #fff; border-color: #2E77BC; }
.pay-mc {
  position: relative; width: 26px; height: 18px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 3px; background: #fff;
  vertical-align: middle; flex-shrink: 0;
}
.mc-l, .mc-r {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
}
.mc-l { background: #EB001B; left: 2px; }
.mc-r { background: #F79E1B; right: 2px; opacity: .9; }

/* Cart badge on nav cart button */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 15px; height: 15px; padding: 0 3px;
  background: #C9A84C; color: #fff;
  border-radius: 99px; font-size: .48rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
  border: 1.5px solid var(--white);
}

/* ── CART DRAWER ─────────────────────────────────────────────────────────────────── */
.cart-drawer {
  position: fixed; inset: 0; z-index: 600;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: all; }
.cart-overlay {
  position: absolute; inset: 0;
  background: rgba(26,22,18,.4); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .28s;
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100%;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
  overflow: hidden;
}
.cart-drawer.open .cart-panel { transform: none; }
.cart-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-s);
  flex-shrink: 0;
}
.cart-hd-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 300; letter-spacing: .12em;
}
.cart-close-btn {
  width: 28px; height: 28px; border: none; background: none;
  cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: color .15s, background .15s;
}
.cart-close-btn:hover { color: var(--ink); background: var(--bg2); }
.cart-body {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.cart-empty {
  font-size: .8rem; color: var(--muted);
  text-align: center; padding: 40px 0;
}
.cart-item-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border-s);
}
.cart-thumb {
  width: 60px; height: 80px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 5px 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.cart-thumb-city {
  font-family: 'Cormorant Garamond', serif;
  font-size: .52rem; letter-spacing: .08em;
  text-align: center; line-height: 1.2;
  word-break: break-all;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: .82rem; font-weight: 400; color: var(--ink); margin-bottom: 3px;
}
.cart-item-meta { font-size: .68rem; color: var(--muted); }
.cart-item-tagline {
  font-size: .65rem; color: var(--muted-l); font-style: italic; margin-top: 3px;
}
.cart-remove-btn {
  width: 26px; height: 26px; flex-shrink: 0;
  border: none; background: none; cursor: pointer;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; transition: color .15s;
}
.cart-remove-btn:hover { color: var(--ink); }

.cart-item-actions {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0; align-items: center;
}
.cart-edit-btn {
  width: 26px; height: 26px; flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--white); cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; transition: color .15s, border-color .15s;
}
.cart-edit-btn:hover { color: var(--ink); border-color: var(--ink); }
.cart-panel-footer {
  flex-shrink: 0;
  padding: 14px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-s);
}
.cart-panel-footer .pay-logos { margin-top: 10px; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: .78rem; color: var(--ink);
}
.cart-total-price { font-size: .94rem; font-weight: 500; }
.cart-note {
  font-size: .6rem; color: var(--muted-l);
  text-align: center; margin-top: 8px; line-height: 1.7;
}

/* Cart item (rendered by updateCartView) */
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border-s);
}
.cart-thumb {
  width: 60px; flex-shrink: 0;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  aspect-ratio: 5 / 7;
  background: #1E2D4A;           /* blueprint fallback */
}
.cart-thumb-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .94rem; font-weight: 400; color: var(--ink); margin-bottom: 4px;
}
.cart-item-meta { font-size: .68rem; color: var(--muted); margin-top: 2px; }
.cart-item-line { font-style: italic; }
.cart-item-price { font-size: .82rem; font-weight: 500; color: var(--ink); margin-top: 8px; }

/* ── EXIT POPUP ────────────────────────────────────────────────────────────── */
.popup-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26,22,18,.55); backdrop-filter: blur(3px);
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s, visibility .25s;
  pointer-events: none;
}
.popup-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}
.popup {
  background: var(--white); border-radius: 8px;
  padding: 36px 32px; max-width: 400px; width: 90%;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.popup-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 1rem;
  cursor: pointer; color: var(--muted);
}
.popup-close:hover { color: var(--ink); }
.popup-lbl {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.popup-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 300; margin-bottom: 8px;
}
.popup-sub { font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-email {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Jost', sans-serif; font-size: .82rem; outline: none;
}
.popup-email:focus { border-color: var(--ink); }
.popup-submit {
  padding: 11px; background: var(--gold); color: #1A1410; border: none;
  border-radius: var(--radius); font-family: 'Jost', sans-serif;
  font-size: .78rem; font-weight: 500; cursor: pointer; letter-spacing: .10em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(184,146,62,.30);
  transition: filter .2s;
}
.popup-submit:hover { filter: brightness(1.08); }
.popup-skip {
  margin-top: 12px; font-size: .65rem; color: var(--muted);
  text-align: center; cursor: pointer; text-decoration: underline;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .configurator {
    grid-template-columns: 1fr;
    height: auto; overflow: visible;
  }
  .conf-left { height: auto; }
  .map-preview-wrap { height: auto; }
  .map-preview { height: 90vw; min-height: 420px; }
  .conf-right { height: auto; max-height: none; }
  .checkout-bar { width: 100%; }
  .checkout-meta-left { white-space: normal; }
}

@media (max-width: 580px) {
  nav { padding: 0 10px; }
  .logo-tag { display: none; }
  .nav-r { gap: 8px; }
  .nav-back { display: none; }
  .currency-select, .units-select { font-size: .65rem; padding: 4px 6px; }
  .conf-panel { padding: 0 14px 80px; }
  .style-strip-wrap { padding: 12px 14px 10px; }
  .fmt-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .fmt-card { padding: 9px 4px; }
  .fmt-name { font-size: .6rem; }
}
