/* ==========================================================
   SEGA — Konfigurátor pergoly  ·  cfg-pergoly.css
   ========================================================== */

/* ---- Layout ---- */
.cfg-section {
  padding: 100px 0 80px;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
}
.cfg-intro {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 600px;
  margin: -16px auto 56px;
  text-align: center;
  line-height: 1.6;
}
.cfg-layout {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Step card ---- */
.cfg-step {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: box-shadow 0.25s;
}
.cfg-step.open  { box-shadow: 0 4px 28px rgba(0,0,0,0.09); }
.cfg-step.done  { }

.cfg-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.cfg-step-header:hover { background: #fafafa; }
.cfg-step.done .cfg-step-header { background: #f9fdf9; }

/* Zamčené kroky — nelze kliknout dopředu */
.cfg-step:not(.done):not(.open):not(:first-child) .cfg-step-header {
  cursor: default;
  opacity: .6;
}
.cfg-step:not(.done):not(.open):not(:first-child) .cfg-step-header:hover {
  background: transparent;
}

.cfg-step-left  { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.cfg-step-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.cfg-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #e4e4e4;
  color: #777;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.cfg-step.open .cfg-num  { background: var(--red); color: #fff; }
.cfg-step.done .cfg-num  { background: #2d7a31; color: #fff; }
.cfg-step.done .cfg-num-text { display: none; }
.cfg-step.done .cfg-num::after { content: '✓'; }

.cfg-step-title {
  font-size: 14px; font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}
.cfg-step-selected {
  font-size: 12px; font-weight: 600;
  color: var(--red);
  margin-left: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cfg-help-btn {
  background: none;
  border: 1px solid #d0d0d0;
  color: #888;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.cfg-help-btn:hover { border-color: var(--red); color: var(--red); }

.cfg-chevron {
  width: 14px; height: 14px;
  color: #bbb;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.cfg-step.open .cfg-chevron { transform: rotate(180deg); }

.cfg-step-body {
  display: none;
  padding: 4px 22px 24px;
  border-top: 1px solid var(--border);
}
.cfg-step.open .cfg-step-body { display: block; }

/* ---- Type cards ---- */
.cfg-type-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }

.cfg-type-card {
  display: block;
  border: 2.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
}
.cfg-type-card:hover    { border-color: #bbb; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cfg-type-card.selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.15); }
.cfg-type-card.selected .cfg-type-info strong { color: var(--red); }

.cfg-type-thumb {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden;
  background: #ebebeb;
}
.cfg-type-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; }
.cfg-type-card:hover .cfg-type-thumb img { transform: scale(1.05); }
.cfg-type-card[data-typ="c"] .cfg-type-thumb img { transform: scale(1.18); }
.cfg-type-card[data-typ="c"]:hover .cfg-type-thumb img { transform: scale(1.23); }
.cfg-type-card[data-typ="e"] .cfg-type-thumb img { transform: scale(1.18); }
.cfg-type-card[data-typ="e"]:hover .cfg-type-thumb img { transform: scale(1.23); }
.cfg-type-card[data-typ="f"] .cfg-type-thumb img { transform: scale(1.18); }
.cfg-type-card[data-typ="f"]:hover .cfg-type-thumb img { transform: scale(1.23); }
.cfg-thumb-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px;
  background: linear-gradient(135deg,#e6e6e6,#d8d8d8);
  font-size: 11px; color: #aaa; text-align: center; line-height: 1.3;
}

.cfg-type-info { padding: 14px 16px 18px; }
.cfg-type-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.cfg-type-info span   { font-size: 13px; color: var(--text-gray); line-height: 1.4; }

/* ---- Bird's-eye screen diagram ---- */
.cfg-roof-plan { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 6px; }
.cfg-roof-plan-label { font-size: 13px; color: var(--text-gray); text-align: center; }
.cfg-roof-plan-hint  { font-size: 12px; color: #888; text-align: center; min-height: 18px; }
.cfg-roof-svg  { width: 100%; max-width: 300px; height: auto; }
.cfg-side      { fill: #e0ddd6; transition: fill 0.18s; cursor: pointer; }
.cfg-side:hover { fill: #f0a0a0; }
.cfg-side.active { fill: #CC0000; }
.cfg-side.wall-blocked,
.cfg-side.wall-blocked:hover,
.cfg-side.wall-blocked.active { fill: #b8b4ad; cursor: not-allowed; opacity: 0.7; }
.cfg-screen-confirm { display: block; width: 100%; margin-top: 14px; padding: 13px; background: var(--red); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.cfg-screen-confirm:hover { background: #a80000; }

/* ---- LED cards (step 4) ---- */
.cfg-led-card { cursor: pointer; }

/* ---- Dimension inputs ---- */
.cfg-dim-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px; margin-top: 20px;
}
.cfg-dim-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--black); margin-bottom: 4px;
}
.cfg-dim-range { display: block; font-size: 10px; color: #aaa; margin-bottom: 7px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.cfg-dim-wrap  { position: relative; }
.cfg-dim-input {
  width: 100%; padding: 11px 40px 11px 13px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--black); background: var(--light-gray);
  border: 2px solid transparent; outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none; border-radius: 0;
}
.cfg-dim-input:focus          { border-color: var(--red); background: #fff; }
.cfg-dim-input.cfg-err        { border-color: #d32f2f; background: #fff6f6; }
.cfg-dim-unit {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 600; color: #aaa; pointer-events: none;
}
.cfg-dim-error { font-size: 11px; color: #d32f2f; margin-top: 5px; display: none; }
.cfg-dim-error.show { display: block; }

.cfg-uncertain-btn {
  width: 100%; margin-top: 18px; padding: 11px 18px;
  background: none; border: 1.5px dashed #ccc; border-radius: 0;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--text-gray); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s, color .2s;
}
.cfg-uncertain-btn:hover { border-color: var(--red); color: var(--red); }
.cfg-uncertain-btn.active { background: #fff3f3; color: var(--red); border-color: var(--red); font-weight: 600; }

.cfg-step-next-btn {
  margin-top: 20px; padding: 13px 28px;
  background: var(--red); color: #fff;
  border: none; font-family: var(--font);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .15s;
}
.cfg-step-next-btn:hover    { background: #aa0000; transform: translateY(-1px); }
.cfg-step-next-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* ---- Color swatches ---- */
.cfg-color-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 14px 10px; margin-top: 20px;
}
.cfg-color-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.cfg-color-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s, border-color .2s;
}
.cfg-color-swatch:hover   .cfg-color-circle { transform: scale(1.13); }
.cfg-color-swatch.selected .cfg-color-circle { border-color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.cfg-color-name { font-size: 10px; color: var(--text-gray); text-align: center; line-height: 1.3; }
.cfg-color-ral  { font-size: 9px; color: #bbb; }
.cfg-color-note {
  margin-top: 18px; font-size: 12px;
  color: var(--text-gray) !important;
  font-style: italic; text-align: center;
}
.cfg-price-tag {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 700; color: var(--red);
  background: rgba(204,0,0,.07); padding: 2px 8px; border-radius: 20px;
}

/* ---- Option cards (osvětlení, screen) ---- */
.cfg-option-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.cfg-option-card {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .15s;
}
.cfg-option-card:hover    { border-color: #bbb; background: #fafafa; }
.cfg-option-card.selected { border-color: var(--red); background: #fff8f8; }
.cfg-opt-disabled {
  opacity: .45; pointer-events: none; cursor: not-allowed;
  background: #f5f5f5 !important; border-color: #e0e0e0 !important;
}
.cfg-opt-disabled strong { color: #999; }
.cfg-opt-disabled span   { color: #bbb; }

.cfg-opt-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cfg-opt-thumb {
  width: 72px; height: 52px; flex-shrink: 0;
  overflow: hidden; background: #ebebeb;
}
.cfg-opt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.cfg-option-card:hover .cfg-opt-thumb img { transform: scale(1.07); }
.cfg-opt-thumb-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#e6e6e6,#d8d8d8);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #aaa; text-align: center; padding: 4px;
}

.cfg-opt-body { flex: 1; }
.cfg-opt-body strong { display: block; font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.cfg-opt-body span   { font-size: 12px; color: var(--text-gray); }

.cfg-opt-price {
  font-size: 12px; font-weight: 700; color: var(--red);
  background: rgba(204,0,0,.07);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* ---- Sub-steps (inside LED, screen) ---- */
.cfg-substep { display: none; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.cfg-substep.open { display: block; }
.cfg-substep-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-gray); margin-bottom: 14px;
}

/* LED price info */
.cfg-led-price-row {
  display: none;
  align-items: center; justify-content: space-between;
  background: #fff8f0; border: 1px solid #f0d8b0;
  padding: 10px 16px; margin-bottom: 14px;
  font-size: 13px;
}
.cfg-led-price-row.show { display: flex; }
.cfg-led-price-row strong { font-weight: 800; color: var(--red); }
.cfg-led-price-row small  { font-size: 10px; color: #aaa; margin-left: 6px; }

/* ---- Fabric swatches ---- */
.cfg-fabric-tabs {
  display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.cfg-fabric-tab {
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  color: var(--text-gray); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.cfg-fabric-tab.active { color: var(--red); border-bottom-color: var(--red); }

.cfg-fabric-grid {
  display: grid; grid-template-columns: repeat(6,1fr);
  gap: 10px; margin-bottom: 6px;
}
.cfg-fabric-swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.cfg-fabric-circle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,.14);
  transition: transform .2s, border-color .2s;
}
.cfg-fabric-swatch:hover    .cfg-fabric-circle { transform: scale(1.13); }
.cfg-fabric-swatch.selected .cfg-fabric-circle { border-color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.cfg-fabric-code { font-size: 9px; color: #bbb; text-align: center; }

.cfg-fabric-panel { display: none; }
.cfg-fabric-panel.active { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }

/* ---- Right sidebar (skrytý) ---- */
.cfg-sidebar { display: none; }

/* ---- Confirm area pod kroky ---- */
.cfg-bottom-confirm {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin-top: 16px;
  text-align: center;
}
.cfg-bottom-confirm .cfg-confirm-btn {
  display: block; width: 100%;
  padding: 16px; font-size: 16px; font-weight: 800; letter-spacing: .03em;
  background: #c8c8c8; color: #888; border: none; border-radius: 10px; cursor: pointer;
  transition: background .3s, color .3s, opacity .2s;
}
.cfg-bottom-confirm .cfg-confirm-btn.ready { background: var(--red); color: #fff; }
.cfg-bottom-confirm .cfg-confirm-note { font-size: 13px; color: #aaa; margin-top: 10px; }

.cfg-preview-card { background: #fff; border: 1px solid var(--border); overflow: hidden; }

.cfg-preview-img-box {
  aspect-ratio: 4/3; background: #f0f0f0;
  overflow: hidden; position: relative;
}
.cfg-preview-img-box img {
  width: 100%; height: 100%;
  object-fit: cover; padding: 0;
  display: none; transition: opacity .4s;
}
.cfg-preview-img-box img.visible { display: block; }
.cfg-preview-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg,#f0f0f0,#e8e8e8);
}
.cfg-preview-ph svg { opacity: .18; }
.cfg-preview-ph span { font-size: 13px; font-weight: 600; color: #999; }
.cfg-preview-ph small { font-size: 11px; color: #bbb; }
.cfg-preview-ph.hidden { display: none; }

.cfg-preview-caption {
  font-size: 11px; color: #aaa;
  padding: 7px 16px; min-height: 32px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--red);
}

/* Progress */
.cfg-progress-box { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cfg-progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: var(--black); }
.cfg-progress-track { height: 5px; background: #e8e8e8; border-radius: 3px; overflow: hidden; }
.cfg-progress-fill  { height: 100%; background: var(--red); border-radius: 3px; transition: width .4s ease; width: 0; }

/* Summary */
.cfg-summary-box { padding: 14px 18px; border-bottom: 1px solid var(--border); display: none; }
.cfg-summary-box.show { display: block; }
.cfg-summary-heading { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-gray); margin-bottom: 10px; }
.cfg-summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; padding: 4px 0; border-bottom: 1px solid #f5f5f5; gap: 8px; }
.cfg-summary-row:last-child { border-bottom: none; }
.cfg-summary-row .cfg-sr-key { color: var(--text-gray); flex-shrink: 0; }
.cfg-summary-row .cfg-sr-val { font-weight: 600; color: var(--black); text-align: right; }

/* Price note */
.cfg-price-note-box { padding: 10px 18px; border-bottom: 1px solid var(--border); background: #fffcf5; font-size: 11px; color: #999; line-height: 1.55; display: none; }
.cfg-price-note-box.show { display: block; }

/* Confirm area */
.cfg-confirm-area { padding: 18px; }
.cfg-confirm-btn {
  width: 100%; padding: 15px;
  background: #c8c8c8; color: #888;
  border: none; font-family: var(--font);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: background .3s, color .3s, transform .15s, box-shadow .2s;
}
.cfg-confirm-btn.ready { background: var(--red); color: #fff; }
.cfg-confirm-btn.ready:hover { background: #aa0000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204,0,0,.28); }
.cfg-confirm-note { font-size: 11px; color: #bbb; text-align: center; margin-top: 10px; line-height: 1.5; }

/* Pulse animace po dokončení konfigurace — jemná */
@keyframes cfg-pulse-ready {
  0%   { box-shadow: 0 0 0 0 rgba(204,0,0,.5); transform: scale(1); }
  40%  { box-shadow: 0 0 0 10px rgba(204,0,0,0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(204,0,0,0); transform: scale(1); }
}
.cfg-confirm-btn.cfg-btn-pulse { animation: cfg-pulse-ready 2s ease-in-out infinite; }

/* ---- Zoom popup ---- */
.cfg-zoom-popup {
  position: fixed; z-index: 9999;
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  box-shadow: 0 8px 48px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
  pointer-events: none;
}
.cfg-zoom-popup.show { opacity: 1; visibility: visible; }
.cfg-zoom-popup img { width: 260px; height: 180px; object-fit: cover; display: block; }
.cfg-zoom-ph-inner {
  width: 260px; height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#e8e8e8,#d8d8d8);
  font-size: 12px; color: #888; text-align: center; padding: 12px; gap: 6px; line-height: 1.4;
}
.cfg-zoom-caption { padding: 7px 12px; font-size: 11px; font-weight: 700; color: var(--black); border-top: 1px solid #f0f0f0; }
.cfg-zoom-color-block { width: 260px; height: 180px; display: block; }

/* ---- Nápověda popup ---- */
.cfg-napoveda-popup {
  display: none; position: fixed; z-index: 9998;
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red);
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
  padding: 22px 24px; max-width: 340px; width: 90vw;
  font-size: 13px; line-height: 1.65; color: var(--text-gray);
}
.cfg-napoveda-popup h4 { font-size: 14px; font-weight: 800; color: var(--black); margin-bottom: 10px; }
.cfg-napoveda-popup .cfg-nap-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: #aaa; line-height: 1;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ---- MacBook Air 15" / wide laptop (≤ 1440px) ---- */
@media (max-width: 1440px) {
  .cfg-layout { max-width: 680px; }
}

/* ---- MacBook Air 13" / MacBook 12" (≤ 1280px) ---- */
@media (max-width: 1280px) {
  .cfg-layout      { max-width: 640px; }
  .cfg-step-header { padding: 16px 18px; }
  .cfg-step-body   { padding: 4px 18px 20px; }
  .cfg-color-grid  { grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
  .cfg-opt-thumb   { width: 62px; height: 46px; }
  .cfg-fabric-panel.active { grid-template-columns: repeat(6, 1fr); }
}

/* ---- Kompaktní notebook (≤ 1100px) ---- */
@media (max-width: 1100px) {
  .cfg-layout      { max-width: 100%; }
  .cfg-opt-thumb   { width: 54px; height: 40px; }
  .cfg-color-grid  { grid-template-columns: repeat(4, 1fr); }
  .cfg-dim-grid    { grid-template-columns: 1fr 1fr; }
  .cfg-fabric-panel.active { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Tablet (≤ 960px) ---- */
@media (max-width: 960px) {
  .cfg-section { padding: 80px 0 60px; }

  /* Jednosloupkový layout — preview nahoře, kroky dole */
  .cfg-layout { grid-template-columns: 1fr; gap: 24px; }
  .cfg-sidebar { display: none; }

  /* Sidebar preview — kratší */
  .cfg-preview-img { height: 200px; }

  /* Gridy */
  .cfg-dim-grid   { grid-template-columns: 1fr 1fr; }
  .cfg-color-grid { grid-template-columns: repeat(5, 1fr); }
  .cfg-fabric-panel.active { grid-template-columns: repeat(6, 1fr); }

  /* Krok header */
  .cfg-step-header { padding: 14px 18px; }
  .cfg-step-title  { font-size: 13px; }
  .cfg-step-selected { font-size: 11px; }
  .cfg-help-btn   { display: none; } /* skrýt nápovědu na tabletu */

  /* Type cards — 2 columns on tablet */
  .cfg-type-list { grid-template-columns: repeat(2, 1fr); }
  .cfg-type-info strong { font-size: 13px; }
  .cfg-type-info span   { font-size: 12px; }

  /* Option cards */
  .cfg-opt-card { padding: 12px 14px; }
  .cfg-opt-thumb { width: 52px; height: 40px; }
}

/* ---- Malý tablet / velký mobil (≤ 768px) ---- */
@media (max-width: 768px) {
  .cfg-section { padding: 70px 0 50px; }
  .cfg-intro { font-size: 14px; margin-bottom: 32px; }

  /* Kroky */
  .cfg-step-header { padding: 12px 14px; gap: 8px; }
  .cfg-step-left   { gap: 10px; }
  .cfg-step-title  { font-size: 12px; white-space: normal; }
  .cfg-num         { width: 26px; height: 26px; font-size: 11px; }
  .cfg-step-selected { display: none; } /* schovej vybranou hodnotu v headeru */

  /* Preview sidebar */
  .cfg-preview-img { height: 170px; }
  .cfg-preview-caption { font-size: 12px; }
  .cfg-progress-text { font-size: 12px; }
  .cfg-summary-row { font-size: 11px; }
  .cfg-summary-label, .cfg-summary-value { font-size: 11px; }
  .cfg-confirm-btn { font-size: 11px; padding: 13px; }

  /* Barevný grid */
  .cfg-color-grid { grid-template-columns: repeat(4, 1fr); }

  /* Dim inputs */
  .cfg-dim-grid  { grid-template-columns: 1fr; gap: 12px; }
  .cfg-dim-input { font-size: 18px; }

  /* Type cards — 2 columns */
  .cfg-type-list { gap: 10px; }

  /* Option list */
  .cfg-option-list { gap: 8px; }
  .cfg-opt-card { gap: 10px; padding: 10px 12px; }
  .cfg-opt-thumb { width: 44px; height: 34px; flex-shrink: 0; }
  .cfg-opt-name  { font-size: 13px; }
  .cfg-opt-desc  { font-size: 12px; }

  /* Látky */
  .cfg-fabric-panel.active { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .cfg-fabric-circle { width: 36px; height: 36px; }
  .cfg-fabric-code   { font-size: 9px; }

  /* Substep */
  .cfg-substep-title { font-size: 11px; }

  /* LED price / screen price */
  .cfg-price-row { font-size: 13px; }
}

/* ---- Mobil (≤ 480px) ---- */
@media (max-width: 480px) {
  .cfg-section { padding: 60px 0 40px; }
  .cfg-main    { padding: 0 12px; }

  /* Krok header */
  .cfg-step-header { padding: 11px 12px; }
  .cfg-step-body   { padding: 16px 12px; }

  /* Sidebar */
  .cfg-preview-img { height: 150px; }
  .cfg-sidebar-inner { padding: 0 12px; }

  /* Barevná paleta */
  .cfg-color-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cfg-color-swatch { width: 36px; height: 36px; }

  /* Látky */
  .cfg-fabric-panel.active { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cfg-fabric-circle { width: 32px; height: 32px; }

  /* Type karty — 1 column na mobilech */
  .cfg-type-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cfg-type-info { padding: 10px 12px 14px; }

  /* Option list */
  .cfg-opt-thumb { width: 40px; height: 30px; }
  .cfg-opt-name  { font-size: 12px; }
  .cfg-opt-price { font-size: 11px; }

  /* Navigační tlačítko */
  .cfg-step-next-btn { font-size: 11px; padding: 11px 18px; }
}
