:root {
  --ink: #F5F0EB;
  --muted: #A8A8A8;
  --line: rgba(245, 240, 235, 0.12);
  --glass: rgba(36, 36, 36, 0.88);
  --glass-strong: rgba(36, 36, 36, 0.96);
  --accent: #C9A96E;
  --accent-soft: rgba(201, 169, 110, 0.16);
  --accent-hover: #E8C98A;
  --bg: #1A1A1A;
  --bg-secondary: #242424;
  --ok: #7aab8a;
  --err: #d98989;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --frame: #1a1a1a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
[x-cloak] { display: none !important; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(201, 169, 110, 0.08), transparent 60%),
    linear-gradient(165deg, #1A1A1A 0%, #1E1E1E 50%, #1A1A1A 100%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.hero { margin-bottom: 1.35rem; }
.brand {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.55;
  font-weight: 300;
}

.steps {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.steps li {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(245, 240, 235, 0.1);
}
.steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.steps li.done, .steps li.current { background: var(--accent); }

/* ===== STUDIO LAYOUT ===== */
.studio {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .studio {
    grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
  .preview { position: sticky; top: 1rem; }
}

.preview {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-stage {
  padding: 1.25rem 1.25rem 0.5rem;
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  min-height: 360px;
  display: grid;
  place-items: end center;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.preview-stage.has-photo {
  padding: 0;
  place-items: stretch;
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.photo-frame {
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(245, 240, 235, 0.9);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.18);
  cursor: move;
  display: flex;
  padding: 5px;
}
.photo-frame .door-set {
  flex: 1;
  padding: 0;
  min-height: 0;
}
.frame-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  z-index: 3;
}
.frame-handle.tl { left: -7px; top: -7px; cursor: nwse-resize; }
.frame-handle.tr { right: -7px; top: -7px; cursor: nesw-resize; }
.frame-handle.bl { left: -7px; bottom: -7px; cursor: nesw-resize; }
.frame-handle.br { right: -7px; bottom: -7px; cursor: nwse-resize; }
.frame-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(26, 26, 26, 0.88);
  border: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}

.sample-rooms {
  margin-top: 0.85rem;
}
.sample-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sample-lead {
  margin: 0.3rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.sample-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(26, 26, 26, 0.55);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sample-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #2a2a2a;
}
.sample-thumb span {
  display: block;
  padding: 0 0.4rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sample-thumb:hover {
  border-color: rgba(201, 169, 110, 0.45);
  color: var(--ink);
  transform: translateY(-1px);
}
.sample-thumb.on {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.35);
}
@media (max-width: 520px) {
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.photo-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.75rem;
}
.btn-file {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #C9A96E;
  background: transparent;
  color: #C9A96E;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-file:hover {
  background: #C9A96E;
  color: #1A1A1A;
}
.btn-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.linkish {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.linkish:hover { color: var(--accent-hover); }
.photo-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.room {
  width: min(100%, 320px);
  position: relative;
}
.wall {
  height: 28px;
  background: linear-gradient(180deg, #3a3a3a, #2e2e2e);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-bottom: 0;
}
.opening {
  --door-ratio: 0.55;
  position: relative;
  height: 260px;
  width: calc(260px * var(--door-ratio));
  max-width: 100%;
  margin: 0 auto;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 10px #333;
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: width 0.35s ease;
}
.floor {
  height: 36px;
  margin-top: -2px;
  background:
    repeating-linear-gradient(90deg, #3d3428 0 18px, #322a20 18px 20px);
  border-radius: 0 0 6px 6px;
}

.door-set {
  position: relative;
  flex: 1;
  display: flex;
  gap: 3px;
  padding: 8px;
  transition: transform 0.35s ease;
}
.door-set.sliding .leaf { transform: translateX(12%); }
.door-set.pocket .leaf { transform: translateX(-28%); opacity: 0.85; }
.door-set.double { gap: 4px; }

.leaf {
  position: relative;
  flex: 1;
  border: 3px solid var(--frame, #1a1a1a);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(180, 200, 210, 0.2);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: border-color 0.25s ease, filter 0.25s ease;
}
.glass-face {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.45), transparent 42%, rgba(255,255,255,0.12)),
    linear-gradient(180deg, rgba(180,210,220,0.28), rgba(120,150,165,0.2));
}
.pattern { position: absolute; inset: 0; pointer-events: none; }
.p-cire .glass-face, .p-cire { opacity: 1; }
.p-matne .glass-face,
.leaf.p-matne .glass-face {
  background: linear-gradient(180deg, rgba(230,235,238,0.85), rgba(200,208,214,0.75));
  filter: saturate(0.7);
}
.p-matne {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.08) 2px, rgba(255,255,255,0.08) 3px);
}
.p-pruhy {
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,0.45) 14px 22px);
}
.p-kanafas {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 3px, rgba(0,0,0,0.08) 3px 5px);
}
.p-ornament {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.4) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 70%, rgba(255,255,255,0.3) 0 14%, transparent 15%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.1) 10px 12px);
}
.p-nevim {
  background:
    linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.22) 40% 60%, transparent 60%);
  opacity: 0.7;
}
.p-dekor { /* legacy alias */
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,0.45) 14px 22px);
}

.rail {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background: var(--frame, #1a1a1a) !important;
}
.rail.top { top: 0; }
.rail.bottom { bottom: 0; }

.handle {
  position: absolute;
  top: 48%;
  width: 7px;
  height: 42px;
  border-radius: 3px;
  background: var(--frame, #1a1a1a);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.handle:not(.leftish):not(.rightish) { right: 14px; }
.handle.rightish { right: 10px; }
.handle.leftish { left: 10px; }

.track {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 5px;
  background: var(--frame, #1a1a1a) !important;
  opacity: 0.9;
  border-radius: 2px;
}
.pocket {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -18px;
  width: 22px;
  background: repeating-linear-gradient(90deg, #3a3a3a 0 4px, #2a2a2a 4px 8px);
  opacity: 0.85;
}

.preview-meta { padding: 0.9rem 1.1rem 1.1rem; }
.preview-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.preview-sub { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.86rem; }

.panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  margin-bottom: 0.85rem;
}
.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.hint { margin: -0.2rem 0 0.9rem; color: var(--muted); font-size: 0.92rem; }

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.visual-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-secondary);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.visual-card:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 169, 110, 0.4);
}
.visual-card.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 10px 22px rgba(0, 0, 0, 0.25);
  background: rgba(201, 169, 110, 0.08);
}
.thumb {
  display: block;
  height: 78px;
  border-radius: 10px;
  background: #2e2e2e;
  position: relative;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-label { font-weight: 400; font-size: 0.9rem; padding: 0 0.2rem 0.15rem; }

/* procedural thumbs for door types */
.thumb-otocne::before,
.thumb-posuvne_stena::before,
.thumb-posuvne_pouzdro::before,
.thumb-dvoukridle::before {
  content: "";
  position: absolute;
  inset: 12px 28px;
  border: 2px solid #C9A96E;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(160,190,205,0.2));
}
.thumb-dvoukridle::before { inset: 12px 18px; box-shadow: inset 22px 0 0 -20px #C9A96E; }
.thumb-posuvne_stena::after,
.thumb-posuvne_pouzdro::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #C9A96E;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg-secondary);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chip:hover { border-color: rgba(201, 169, 110, 0.4); }
.chip.wide {
  flex: 1 1 100%;
  border-radius: 14px;
  display: grid;
  gap: 0.2rem;
  text-align: left;
}
.chip.wide span { font-weight: 300; color: var(--muted); font-size: 0.88rem; }
.chip.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 520px) {
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
}
.swatch {
  border: 1px solid var(--line);
  background: var(--bg-secondary);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.45rem;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.2s ease;
}
.swatch.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.swatch-glass {
  display: block;
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(245, 240, 235, 0.08);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(150,180,195,0.25));
}
.swatch-glass img { width: 100%; height: 100%; object-fit: cover; }
.swatch-glass.p-matne { background: #8a9094; }
.swatch-glass.p-pruhy { background: repeating-linear-gradient(90deg, #5a6a72 0 10px, #8a9aa2 10px 18px); }
.swatch-glass.p-kanafas { background: repeating-linear-gradient(90deg, #4a5860 0 3px, #6a7880 3px 6px); }
.swatch-glass.p-ornament {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.35) 0 16%, transparent 17%),
    #5a6a72;
}
.swatch-glass.p-nevim { background: repeating-linear-gradient(45deg, #4a5258 0 8px, #6a7278 8px 16px); }
.swatch-name { display: block; margin-top: 0.4rem; font-size: 0.8rem; font-weight: 400; }

.finish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.finish {
  width: 88px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
  padding: 0;
}
.finish-ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 1px rgba(245, 240, 235, 0.15), 0 8px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.finish-ring img { width: 100%; height: 100%; object-fit: cover; }
.finish.on .finish-ring {
  box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(0, 0, 0, 0.4);
}
.finish-name { display: block; margin-top: 0.4rem; font-size: 0.75rem; font-weight: 400; line-height: 1.2; }

.measure-visual { margin-bottom: 0.75rem; color: var(--muted); }
.measure-svg { width: min(100%, 280px); height: auto; display: block; }
.measure {
  margin-bottom: 0.85rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(36, 36, 36, 0.7);
  border: 1px solid var(--line);
}
.measure h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.measure h3 span, .single span em, .form-grid span em {
  font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.78rem;
}
.triple { display: grid; gap: 0.55rem; }
@media (min-width: 560px) { .triple { grid-template-columns: repeat(3, 1fr); } }
label { display: grid; gap: 0.3rem; font-size: 0.84rem; color: var(--muted); }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-secondary);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(168, 168, 168, 0.7); }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  min-height: 120px;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1.5px dashed rgba(201, 169, 110, 0.4);
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.9), rgba(26, 26, 26, 0.95));
  cursor: pointer;
  text-align: center;
}
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font-weight: 400; color: var(--ink); }
.drop-sub { font-size: 0.84rem; color: var(--muted); }
.form-grid { display: grid; gap: 0.75rem; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.form-grid label.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}
.form-grid label.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-grid label.consent span {
  color: var(--muted);
}
.form-grid label.consent a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
.form-grid label.consent a:hover {
  color: var(--accent-hover);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: transparent;
  color: #C9A96E;
  border-color: #C9A96E;
  box-shadow: none;
}
.btn.primary:hover:not(:disabled) {
  background: #C9A96E;
  color: #1A1A1A;
  border-color: #C9A96E;
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover:not(:disabled) {
  background: rgba(245, 240, 235, 0.06);
  border-color: rgba(245, 240, 235, 0.22);
}
.flash {
  margin: 0.35rem 0 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
}
.flash.error { color: var(--err); background: rgba(217, 137, 137, 0.1); border: 1px solid rgba(217, 137, 137, 0.25); }
.flash.ok { color: var(--ok); background: rgba(122, 171, 138, 0.1); border: 1px solid rgba(122, 171, 138, 0.25); }

/* ===== Product catalog (SklS) ===== */
.visual-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.visual-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.search-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.6rem 0 0.85rem;
}
.search-row input {
  flex: 1;
  font: inherit;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.btn.compact { padding: 0.65rem 1rem; font-size: 0.88rem; }
.advice-skip {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font: inherit;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px dashed rgba(201, 169, 110, 0.45);
  border-radius: 12px;
  cursor: pointer;
}
.advice-skip:hover { background: rgba(201, 169, 110, 0.24); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: rgba(201, 169, 110, 0.45); transform: translateY(-1px); }
.product-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.35); }
.product-img {
  display: block;
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem 0.8rem;
}
.product-code {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-name {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink);
}
.product-price {
  font-size: 0.8rem;
  color: var(--muted);
}
.product-picked {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.product-picked strong { color: var(--accent); font-weight: 500; }
.price-live {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.option-stack { display: grid; gap: 0.75rem; }
.option-group {
  display: grid;
  gap: 0.35rem;
}
.option-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.option-group select {
  font: inherit;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.subhead {
  margin: 1rem 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.summary {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}
.summary p {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
}
.summary span { color: var(--muted); }
.summary strong { font-weight: 500; color: var(--ink); }
.muted { color: var(--muted); font-size: 0.9rem; }
.preview-stage.has-product {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #101010;
}
.product-hero { position: absolute; inset: 0; }
.thumb-otevirane::before,
.thumb-nevim::before {
  content: "";
  position: absolute;
  inset: 14px 22px;
  border: 1.5px solid rgba(201, 169, 110, 0.7);
  border-radius: 2px;
}
.thumb-nevim::before {
  inset: 18px;
  border-style: dashed;
  opacity: 0.7;
}
