/* ==========================================================================
   TuneHaus – e-shop
   Designový systém: grafit + signální oranžová, zúžené verzálkové titulky
   (Barlow Condensed), technické štítky v monospace (kódy karoserií, SKU),
   přesné tenké linky a téměř hranaté rohy. Oranžová jen jako signál.
   ========================================================================== */

:root {
  --bg: #0C0D0F;
  --bg-2: #111215;
  --surface: #16171A;
  --surface-2: #1C1E22;
  --surface-3: #24262B;
  --line: #26282D;
  --line-2: #34373E;
  --text: #EDEDEB;
  --text-2: #A4A7AD;
  --text-3: #70747B;
  --accent: #FF6B35;
  --accent-hover: #FF7F50;
  --accent-ink: #FF8C5F;
  --accent-soft: rgba(255, 107, 53, .1);
  --accent-line: rgba(255, 107, 53, .45);
  --success: #3DBE74;
  --success-soft: rgba(61, 190, 116, .1);
  --danger: #F0524A;
  --danger-soft: rgba(240, 82, 74, .1);
  --warn: #F2A93B;
  --warn-soft: rgba(242, 169, 59, .1);
  --white: #FFFFFF;

  --font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Barlow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;
  --container: 1320px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
main { display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.accent { color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Titulková typografie */
.display, .page-title, .hero h1, .section-title h2, .catalog-title, .pd-info h1, .page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .98;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); }

/* Značkový motiv – tři šikmé pruhy */
.stripes { display: inline-flex; gap: 3px; transform: skewX(-18deg); }
.stripes i { display: block; width: 5px; height: 18px; background: var(--accent); }
.stripes i:nth-child(2) { opacity: .7; }
.stripes i:nth-child(3) { opacity: .4; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: var(--text);
  font: 700 15px/1 var(--font-display);
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn i { font-size: 13px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #0C0D0F; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { border-color: var(--line-2); background: var(--surface); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-2); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.btn-ghost-danger { color: var(--danger); border-color: var(--line-2); }
.btn-ghost-danger:hover { border-color: var(--danger); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-arrow::after { content: '→'; font-family: var(--font); font-weight: 500; font-size: 18px; letter-spacing: 0; transition: transform .15s; }
.btn-arrow:hover::after { transform: translateX(3px); }

.text-btn { background: none; border: none; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.text-btn:hover { color: var(--accent-hover); }
.icon-btn {
  position: relative;
  width: 42px; height: 42px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r); background: transparent;
  color: var(--text); font-size: 16px; cursor: pointer; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn-sm {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--text-2);
  font-size: 12px; cursor: pointer;
}
.icon-btn-sm:hover { color: var(--text); border-color: var(--line-2); }
.circle-btn { display: none; }

/* ---------- Formuláře ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"],
input[type="password"], select, textarea {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); font: 400 15px var(--font);
  transition: border-color .15s, background .15s;
  appearance: none; -webkit-appearance: none;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A4A7AD' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }

.field, .form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .form-field > label, .form-field > span, .label {
  font: 500 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
.form-field.full { grid-column: 1 / -1; }
.req { color: var(--accent-ink); }
.form-grid-2, .form-grid-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-err-msg { margin-top: 4px; font-size: 13px; color: var(--danger); }
.form-field.has-error input, input.is-invalid { border-color: var(--danger); }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check-row a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Číselný vstup – množství */
.number-input { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.number-input button { width: 42px; border: none; background: transparent; color: var(--text-2); cursor: pointer; font-size: 12px; transition: background .15s, color .15s; }
.number-input button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.number-input button:disabled { opacity: .35; cursor: not-allowed; }
.number-input input { width: 52px; height: 100%; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; padding: 0; background: transparent; font: 600 15px var(--mono); }
.number-input input:focus { background: var(--surface); }

/* Vlastní select (shared.js → UI.CustomSelect) */
.custom-select { position: relative; width: 100%; }
.custom-select > select { position: absolute; opacity: 0; pointer-events: none; height: 0; }
.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg);
  color: var(--text); font-size: 15px; text-align: left; cursor: pointer; transition: border-color .15s;
}
.custom-select-trigger:hover { border-color: var(--text-3); }
.custom-select.open .custom-select-trigger, .custom-select-trigger:focus { border-color: var(--accent); outline: none; }
.custom-select.disabled .custom-select-trigger, .custom-select-trigger:disabled { opacity: .45; cursor: not-allowed; }
.cs-label { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-arrow { font-size: 11px; color: var(--text-3); transition: transform .2s; }
.custom-select.open .cs-arrow { transform: rotate(180deg); }
.custom-select-dropdown {
  /* JS ho umisťuje podle getBoundingClientRect (souřadnice okna) */
  position: fixed; z-index: 3000; display: none;
  max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 6px;
}
.custom-select-dropdown.open { display: block; }
.cs-search { position: relative; margin-bottom: 6px; }
.cs-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); }
.cs-search input { height: 40px; padding-left: 34px; }
.cs-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; cursor: pointer; color: var(--text); }
.cs-option:hover, .cs-option.focused { background: var(--surface-2); }
.cs-option.selected { color: var(--accent-ink); font-weight: 600; }
.cs-option.disabled { opacity: .4; pointer-events: none; }
.cs-opt-label { flex: 1; }

/* ---------- Štítky a odznaky ---------- */
.tag, .subcat-tag, .compat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--text-2);
  text-transform: uppercase; white-space: nowrap;
}
.chassis { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; color: var(--accent-ink); }
.product-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  background: var(--text); color: #0C0D0F; border-radius: var(--r-sm);
  font: 700 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
.product-badge.sale { background: var(--accent); }
.product-badge.new { background: var(--text); }
.product-badge.hot { background: var(--warn); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-sm); background: var(--surface-3); font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.status-pill.active { background: var(--accent-soft); color: var(--accent-ink); }
.mini-badge, .cart-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0C0D0F; font: 700 11px/1 var(--mono);
}
.cart-badge { position: absolute; top: 3px; right: 2px; }
.compat { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.compat.yes { color: var(--success); }
.compat.no { color: var(--warn); }
.stars-inline { display: inline-flex; gap: 2px; color: #F2B33D; font-size: 12px; }
.low-stock { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--warn); }

/* ---------- Notifikace a potvrzení – jednotný systém ----------
   Tóny: success (zelená), error (červená), warning (jantarová), info (neutrální).
   Stejné barvy a stavba platí pro toasty, inline hlášky i potvrzovací dialogy. */
.toast-success, .form-msg.ok, .vin-result.ok, .tone-success { --tone: var(--success); --tone-soft: var(--success-soft); }
.toast-error, .form-msg.err, .vin-result.error, .tone-error { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.toast-warning, .vin-result.warn, .tone-warning { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.toast-info, .tone-info { --tone: var(--text-2); --tone-soft: rgba(237, 237, 235, .06); }

/* Toast */
#toast-container { position: fixed; z-index: 99999; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; align-items: center; gap: 12px;
  width: 380px; max-width: calc(100vw - 40px); padding: 13px 10px 15px 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow); color: var(--text);
  font-size: 14.5px; line-height: 1.45; pointer-events: auto;
  animation: toastIn .3s var(--ease);
  transition: opacity .22s, transform .22s var(--ease);
}
.toast-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--tone-soft); color: var(--tone); font-size: 14px; }
.toast-text { overflow-wrap: anywhere; }
.toast-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-3); cursor: pointer; transition: color .15s, background .15s; }
.toast-close:hover { color: var(--text); background: var(--surface-2); }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--tone); transform-origin: left; animation: toastProgress linear forwards; }
.toast.is-paused .toast-progress { animation-play-state: paused; }
.toast.is-leaving { opacity: 0; transform: translateX(16px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Inline hlášky (formuláře, VIN, kupon, vyprodáno) */
.form-msg, .vin-result, .out-of-stock-notice, .coupon-applied {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--tone, var(--text-2)); border-radius: var(--r);
  background: var(--tone-soft, var(--surface-2)); color: var(--text-2); font-size: 14.5px; line-height: 1.5;
}
.out-of-stock-notice { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.coupon-applied { --tone: var(--success); --tone-soft: var(--success-soft); }
.form-msg { color: var(--text); }
.form-msg::before { content: '\f05a'; flex: none; margin-top: 1px; font: 900 15px/1.4 'Font Awesome 6 Free'; color: var(--tone); }
.form-msg.ok::before { content: '\f058'; }
.form-msg.err::before { content: '\f057'; }
.vin-result > i { flex: none; margin-top: 3px; color: var(--tone); }

/* Potvrzovací dialog */
.confirm-modal { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 20px; background: rgba(6, 7, 8, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.confirm-modal.open { opacity: 1; }
.confirm-card { width: min(420px, 100%); padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; transform: translateY(12px) scale(.98); transition: transform .25s var(--ease); }
.confirm-modal.open .confirm-card { transform: none; }
.confirm-card.danger { border-top-color: var(--danger); }
.confirm-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; background: rgba(255, 107, 53, .12); color: var(--accent); font-size: 19px; }
.confirm-card.danger .confirm-ico { background: var(--danger-soft); color: var(--danger); }
.confirm-card h3 { font: 700 26px/1.05 var(--font-display); text-transform: uppercase; }
.confirm-card p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.confirm-actions { display: flex; gap: 10px; margin-top: 24px; }
.confirm-actions .btn { flex: 1; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #d9443d; border-color: #d9443d; }
@media (max-width: 720px) {
  #toast-container { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { width: auto; max-width: none; }
  .confirm-actions { flex-direction: column-reverse; }
}

/* ---------- Hlavička ---------- */
.site-header { position: relative; z-index: 1000; background: rgba(12, 13, 15, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-top { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-top-inner { display: flex; align-items: center; gap: 28px; height: 36px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.header-top-inner .ht-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.header-top-inner .ht-item b { color: var(--text); font-weight: 600; }
.header-top-links { margin-left: auto; display: flex; gap: 20px; }
.header-top-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.header-top-links a:hover { color: var(--text); }
.header-main-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-text { font: 800 26px/1 var(--font-display); font-style: italic; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.logo-accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; height: var(--header-h); padding: 0 14px; font: 700 15px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); }
.main-nav a i, .main-nav .nav-handle, .main-nav .nav-head, .main-nav .nav-foot { display: none; }

.car-selector { margin-left: auto; }
.car-selector-display {
  display: flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 14px 0 12px; min-width: 230px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
  cursor: pointer; transition: border-color .15s;
}
.car-selector-display:hover { border-color: var(--accent-line); }
.car-selector-display > i:first-child { color: var(--accent); font-size: 15px; }
.car-selector-display > i:last-child { margin-left: auto; font-size: 10px; color: var(--text-3); }
.car-selector-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.1; }
.car-selector-text small { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.car-selector-text strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.car-years { color: var(--text-3); font-weight: 500; font-size: 12.5px; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.menu-toggle { display: none; }

.search-overlay { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.search-overlay.open { transform: none; opacity: 1; visibility: visible; }
.search-box { display: flex; align-items: center; gap: 14px; height: 76px; }
.search-box > i { color: var(--accent); font-size: 18px; }
.search-box input { flex: 1; height: 56px; border: none; background: transparent; font: 600 26px var(--font-display); letter-spacing: .02em; text-transform: uppercase; padding: 0; }
.search-box input:focus { background: transparent; }
.search-box kbd { font: 500 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 3px 6px; }

.nav-backdrop { position: fixed; inset: 0; z-index: 1090; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Výběr vozu (modal) ---------- */
.car-selector-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; background: rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.car-selector-modal.open { opacity: 1; visibility: visible; }
.car-selector-panel { width: 100%; max-width: 640px; max-height: 82vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); transform: translateY(10px); transition: transform .25s var(--ease); }
.car-selector-modal.open .car-selector-panel { transform: none; }
.car-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.car-panel-header h3 { font: 700 26px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.car-panel-header h3 i { display: none; }
.car-panel-header p { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.car-search-wrap { position: relative; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.car-search-wrap i { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; }
.car-search-wrap input { padding-left: 42px; }
.car-groups { overflow-y: auto; padding: 8px 12px 16px; }
.car-group h4 { padding: 16px 12px 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.car-group h4 i { display: none; }
.car-list { display: flex; flex-direction: column; }
.car-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: var(--r); cursor: pointer; transition: background .12s; }
.car-item:hover { background: var(--surface-2); }
.car-item.selected { background: var(--accent-soft); }
.car-item > i { display: none; }
.car-item .chassis-code { width: 58px; flex-shrink: 0; font: 600 13px/1 var(--mono); color: var(--accent-ink); text-transform: uppercase; }
.car-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.car-item-text strong { font-weight: 600; font-size: 15px; }
.car-item-text small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-item-actions { display: flex; align-items: center; gap: 8px; }
.empty-state-small { display: flex; align-items: center; gap: 10px; padding: 14px 12px; color: var(--text-3); font-size: 14px; }
.empty-state-small p { margin: 0; }

/* ---------- Patička ---------- */
.site-footer { margin-top: 120px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 64px 0 48px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.footer-hero .footer-wordmark { font: 800 clamp(56px, 10vw, 148px)/.8 var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: .01em; color: var(--text); user-select: none; }
.footer-hero .footer-wordmark span { color: var(--accent); }
.footer-hero p { max-width: 360px; color: var(--text-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; padding: 48px 0; }
.footer-col h5 { margin-bottom: 18px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-tagline { color: var(--text-2); font-size: 15px; max-width: 300px; }
.footer-socials { display: flex; gap: 8px; margin-top: 22px; }
.footer-socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text-2); transition: color .15s, border-color .15s; }
.footer-socials a:hover { color: var(--text); border-color: var(--text-2); }
.contact-list li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.contact-list li i { display: none; }
.pay-methods { display: flex; gap: 12px; font-size: 26px; color: var(--text-3); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font: 500 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--text-3); }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--text); }

/* ---------- Drobečková navigace ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 28px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.breadcrumbs a { transition: color .15s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs a i { display: none; }
.breadcrumbs .sep { color: var(--line-2); }
.breadcrumbs .current, .breadcrumbs > span:last-child:not(.sep) { color: var(--text-2); }

/* ---------- Sekce ---------- */
.section { padding: 96px 0 0; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-title h2 { font-size: clamp(36px, 4.6vw, 58px); }
.section-title h2 span { color: var(--accent); }
.section-title p { margin-top: 12px; max-width: 520px; color: var(--text-2); font-size: 16.5px; }
.section-title .eyebrow { margin-bottom: 14px; }
.see-all { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); transition: border-color .15s, color .15s; }
.see-all:hover { border-color: var(--accent); color: var(--accent-ink); }
.see-all i { font-size: 11px; }

/* ---------- Úvod (hero) ----------
   Fotka přes celou šířku, nadpis dole vlevo, krátký text vpravo
   a pod tím rejstřík karoserií – rychlá cesta k dílům pro konkrétní generaci. */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: min(calc(100svh - var(--header-h) - 38px), 860px); border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-media { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 72%; background: var(--surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media img[src=""], .hero-media img:not([src]) { display: none; }
.hero-media::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(12,13,15,.86) 18%, rgba(12,13,15,.2) 52%, rgba(12,13,15,0) 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(12,13,15,.78) 26%, rgba(12,13,15,0) 58%); }

.hero-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding-top: 56px; padding-bottom: 88px; }
.hero h1 { font-size: clamp(60px, 9.2vw, 148px); line-height: .86; font-style: italic; font-weight: 800; letter-spacing: -.005em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-side { display: grid; grid-template-columns: minmax(0, 400px) auto; align-items: start; gap: 12px 44px; max-width: 760px; }
.hero-side .hero-meta { grid-column: 1 / -1; }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.hero-link i { font-size: 12px; transition: transform .2s var(--ease); }
.hero-link:hover { color: var(--accent-ink); border-color: var(--accent); }
.hero-link:hover i { transform: translateX(3px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.hero-meta > span::before { content: ''; display: inline-block; vertical-align: 2px; width: 5px; height: 5px; margin-right: 9px; background: var(--accent); transform: skewX(-18deg); }
.hero-meta b { color: var(--text); font-weight: 600; }


/* ---------- Vyhledávání dílů podle vozu ---------- */
.fitment { position: relative; margin-top: 72px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.fitment-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 32px 0; flex-wrap: wrap; }
.fitment-head h2 { font: 700 34px/1 var(--font-display); text-transform: uppercase; }
.fitment-head p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; max-width: 520px; }
.fitment-grid, .quick-select-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 26px 32px 32px; }
.fitment-grid .field label .step, .quick-select-grid .field label .step { color: var(--accent-ink); margin-right: 6px; }
.quick-select { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.quick-select-header { display: flex; gap: 16px; align-items: flex-start; padding: 26px 28px 0; }
.quick-select-header h3 { font: 700 26px/1 var(--font-display); text-transform: uppercase; }
.quick-select-header p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.quick-select-header .icon-lg { display: none; }
.quick-select-grid-garage { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Kategorie ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cat-panel { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.cat-panel:hover { border-color: var(--line-2); }
.cat-shots { display: grid; gap: 2px; height: 340px; background: var(--line); }
.cat-shots.shots-2 { grid-template-columns: 1fr 1fr; }
.cat-shots.shots-3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.cat-shots.shots-3 .cat-shot:first-child { grid-row: 1 / 3; }
.cat-shot { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.cat-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-shot img[src=""] { display: none; }
.cat-shots:hover .cat-shot img { transform: scale(1.04); }
.cat-foot { display: flex; flex-direction: column; gap: 18px; padding: 24px 26px 26px; }
.cat-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cat-title h3 { font: 800 clamp(38px, 3.8vw, 54px)/.9 var(--font-display); font-style: italic; text-transform: uppercase; transition: color .2s; }
.cat-title p { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.cat-title p span { display: block; margin-top: 4px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cat-go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.cat-go i { font-size: 14px; transition: transform .2s var(--ease); }
.cat-title:hover h3 { color: var(--accent); }
.cat-panel:hover .cat-go { background: var(--accent); border-color: var(--accent); color: #111; }
.cat-panel:hover .cat-go i { transform: translateX(2px); }
.cat-links { display: flex; flex-wrap: wrap; gap: 4px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.cat-links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.cat-links a:not(:last-child)::after { content: '/'; margin: 0 10px; color: var(--line-2); }
.cat-links a:hover { color: var(--accent-ink); }

/* ---------- Pruh výhod ---------- */
.features-band { margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.features-band-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { padding: 36px 28px 38px 0; border-right: 1px solid var(--line); }
.feature + .feature { padding-left: 28px; }
.feature:last-child { border-right: none; }
.feature-num { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--accent-ink); }
.feature h4 { margin-top: 18px; font: 700 24px/1.05 var(--font-display); text-transform: uppercase; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.feature-icon { display: none; }

/* ---------- Produktové karty ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.products-grid.catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.product-card:hover { border-color: var(--line-2); }
.product-card::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.product-card:hover::after { transform: scaleX(1); }
.product-image-link { display: block; }
.product-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-image-wrap img { transform: scale(1.035); }
.product-image-wrap .product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.product-image-wrap .low-stock { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 6px 8px; background: rgba(12, 13, 15, .85); }
.product-image-wrap .low-stock.out-of-stock { color: var(--text-2); }
.product-image-actions { display: none; }
.product-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 18px 18px; }
.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-cat { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.product-cat:hover { color: var(--text-2); }
.product-cat i { display: none; }
.product-rating { display: inline-flex; align-items: center; gap: 5px; font: 500 12px/1 var(--mono); color: var(--text-2); }
.product-rating i { color: #F2B33D; font-size: 11px; }
.product-rating small { color: var(--text-3); font-size: 11px; }
.product-title { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.product-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.product-title a:hover { color: var(--accent-ink); }
.product-card .compat { font-size: 12.5px; }
.product-price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 6px; }
.prices { display: flex; flex-direction: column; gap: 2px; }
.price { font: 700 24px/1 var(--font-display); letter-spacing: .01em; }
.old-price { font: 500 13px/1 var(--mono); color: var(--text-3); text-decoration: line-through; }
.add-to-cart-btn { height: 40px; padding: 0 14px; }
.add-to-cart-btn i { font-size: 12px; }
.product-card.out-of-stock .product-image-wrap img { opacity: .5; filter: grayscale(.6); }
.product-card.incompatible { opacity: .55; }
.product-card.incompatible:hover { opacity: 1; }

/* ---------- Nabídka newsletteru a CTA ---------- */
.cta-banner { margin-top: 96px; }
.cta-banner-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 64px; overflow: hidden; background: var(--accent); color: #0C0D0F; }
.cta-banner-inner::after { content: 'BMW'; position: absolute; right: -20px; bottom: -40px; font: 800 260px/.8 var(--font-display); font-style: italic; color: rgba(12, 13, 15, .08); pointer-events: none; }
.cta-banner h2 { font: 700 clamp(40px, 5vw, 68px)/.95 var(--font-display); text-transform: uppercase; }
.cta-banner p { font-size: 17px; line-height: 1.55; max-width: 460px; color: rgba(12, 13, 15, .8); }
.cta-banner-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-banner .btn-primary { background: #0C0D0F; color: var(--text); }
.cta-banner .btn-primary:hover { background: #1F2024; }
.cta-banner .btn-secondary { background: transparent; border-color: rgba(12, 13, 15, .4); color: #0C0D0F; }
.cta-banner .btn-secondary:hover { border-color: #0C0D0F; }

.newsletter { margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px var(--gutter); }
.newsletter h3 { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--font-display); text-transform: uppercase; }
.newsletter h3 span { color: var(--accent); }
.newsletter p { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input { height: 54px; border-right: none; border-radius: var(--r) 0 0 var(--r); }
.newsletter-form .btn { height: 54px; border-radius: 0 var(--r) var(--r) 0; }
.newsletter-note { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }

/* ---------- Animace odhalení ---------- */
/* Čistě CSS – obsah se nikdy neschová, i když JS/IntersectionObserver neproběhne. */
[data-reveal] { animation: revealIn .7s var(--ease) both; }
[data-reveal][data-delay="1"] { animation-delay: .07s; }
[data-reveal][data-delay="2"] { animation-delay: .14s; }
[data-reveal][data-delay="3"] { animation-delay: .21s; }
@keyframes revealIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Prázdné stavy ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 72px 24px; border: 1px dashed var(--line-2); }
.empty-state > i { font-size: 28px; color: var(--text-3); margin-bottom: 6px; }
.empty-state h3 { font: 700 28px/1 var(--font-display); text-transform: uppercase; }
.empty-state p { color: var(--text-2); max-width: 420px; }
.empty-state .btn, .empty-state .empty-actions { margin-top: 12px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Obsahové stránky ---------- */
.page-head, .page-hero, .page-header { padding: 18px 0 48px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.page-head .eyebrow, .page-hero .eyebrow { margin-bottom: 18px; }
.page-title, .page-title-main, .page-header h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(46px, 6.4vw, 88px); line-height: .95; }
.page-title span, .page-header h1 span { color: var(--accent); }
.page-lead, .page-lead-text, .page-header p { margin-top: 18px; max-width: 640px; font-size: 18px; color: var(--text-2); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.content-aside { position: sticky; top: calc(var(--header-h) + 60px); display: flex; flex-direction: column; gap: 20px; }

.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: none; padding-top: 0; }
.block-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; margin-bottom: 24px; }
.block-num { font: 500 13px/1 var(--mono); color: var(--accent-ink); padding-top: 8px; }
.block-head h2 { font: 700 34px/1 var(--font-display); text-transform: uppercase; }
.block-head p { grid-column: 2; margin-top: 10px; color: var(--text-2); font-size: 16px; }
.block-body { padding-left: 72px; }

.prose { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-ink); }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.steps li:first-child { border-top: none; padding-top: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 13px/1.6 var(--mono); color: var(--accent-ink); }
.steps li strong { color: var(--text); font-weight: 600; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: var(--accent); }
.checklist li strong { color: var(--text); font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 0 16px 12px 0; text-align: left; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.data-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.data-table td strong { color: var(--text); font-weight: 600; }
.data-table td small { display: block; margin-top: 4px; color: var(--text-3); font-size: 13px; }
.data-table .num { text-align: right; white-space: nowrap; font-family: var(--mono); color: var(--text); }
.data-table .free { color: var(--success); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.side-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.side-card.accent { border-top: 3px solid var(--accent); }
.side-card h3 { font: 700 22px/1.05 var(--font-display); text-transform: uppercase; }
.side-card p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.side-card .btn { margin-top: 18px; }
.side-card .checklist { margin-top: 16px; }
.contact-lines { margin-top: 16px; display: flex; flex-direction: column; }
.contact-lines a, .contact-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-lines span { color: var(--text-3); font: 500 11.5px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.contact-lines a:hover strong { color: var(--accent-ink); }

/* FAQ akordeon */
.faq-list { border-top: 1px solid var(--line); }
.faq-group-title { margin: 48px 0 6px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.faq-group-title:first-child { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); font: 400 20px/1 var(--font); color: var(--text-2); transition: transform .2s, border-color .2s, color .2s; }
.faq-item[open] summary::after { content: '−'; border-color: var(--accent); color: var(--accent); }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item .prose { padding: 0 52px 24px 0; }

/* Kontakt */
.contact-form { padding: 36px; background: var(--surface); border: 1px solid var(--line); }
.contact-form h2 { font: 700 34px/1 var(--font-display); text-transform: uppercase; }
.contact-form > p { margin-top: 10px; color: var(--text-2); }
.contact-form .form-grid-2col { margin-top: 28px; }
.contact-form .form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Katalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 60px); display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); }
.sidebar-head { display: none; }
.sidebar-block { padding: 22px 0; border-top: 1px solid var(--line); }
.sidebar-block:first-of-type { border-top: none; padding-top: 4px; }
.sidebar-block h4 { margin-bottom: 14px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sidebar-block h4 i { display: none; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: var(--r); font-size: 15px; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s; }
.filter-list label:hover { background: var(--surface); color: var(--text); }
.filter-list label.active { color: var(--text); font-weight: 600; }
.filter-list label.active::after { content: ''; margin-left: auto; width: 6px; height: 6px; background: var(--accent); }
.filter-list label input[type="radio"] { display: none; }
.filter-list label i { display: none; }
.price-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range-inputs input { height: 42px; }
.car-status-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.car-status-card.active { border-left: 3px solid var(--accent); }
.car-status-card p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.car-status-card .main-icon { display: none; }
.car-status-info { display: flex; gap: 12px; align-items: center; }
.car-status-info > i { display: none; }
.car-status-details .name { font-weight: 600; }
.car-status-details .meta { font: 500 12px/1.4 var(--mono); color: var(--text-3); margin-top: 3px; }
.car-status-badge { margin: 12px 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.car-status-badge i { margin-right: 6px; }

.catalog-main-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 14px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.catalog-title { font-size: clamp(40px, 5vw, 64px); }
.results-count { margin-top: 10px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.catalog-controls { display: flex; gap: 10px; align-items: center; }
.sort-select { width: 230px; height: 44px; }
.filter-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters:empty { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; cursor: pointer; transition: border-color .15s; }
.filter-chip:hover { border-color: var(--accent); }
.filter-chip i { font-size: 11px; color: var(--text-3); }

/* ---------- Detail produktu ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 28px; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 50px); }
.pd-gallery-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-main .product-badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.pd-gallery-main img.gallery-pop { animation: galleryPop .3s var(--ease) both; }
@keyframes galleryPop { from { opacity: .3; } }
.pd-gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.pd-gallery-thumbs:has(> :only-child) { display: none; }
.pd-gallery-thumbs button { aspect-ratio: 1 / 1; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s; }
.pd-gallery-thumbs button:hover { opacity: 1; }
.pd-gallery-thumbs button.active { opacity: 1; border-color: var(--accent); }
.pd-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-category { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.pd-category a:hover { color: var(--text); }
.pd-info h1 { margin-top: 16px; font-size: clamp(38px, 4.2vw, 58px); }
.pd-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 20px; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--text-2); }
.pd-rating { display: inline-flex; align-items: center; gap: 8px; }
.pd-rating small { color: var(--text-3); font-size: 12px; }
.pd-sku { color: var(--text-3); }
.pd-stock { display: inline-flex; align-items: center; gap: 7px; color: var(--success); }
.pd-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pd-stock.low { color: var(--warn); }
.pd-stock.out { color: var(--danger); }
.pd-stock i { display: none; }
.pd-fit { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.pd-fit.yes { border-left: 3px solid var(--success); }
.pd-fit.no { border-left: 3px solid var(--warn); }
.pd-fit.none { border-left: 3px solid var(--line-2); }
.pd-fit i { font-size: 15px; }
.pd-fit.yes i { color: var(--success); }
.pd-fit.no i { color: var(--warn); }
.pd-fit .text-btn { margin-left: auto; }
.pd-price-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-prices { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pd-prices .price { font-size: 48px; }
.pd-prices .old-price { font-size: 16px; }
.pd-prices .save { font: 600 12px/1 var(--mono); color: #0C0D0F; background: var(--accent); padding: 5px 7px; }
.pd-price-note { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }
.pd-variants-section { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.pd-variant-group .label { display: block; margin-bottom: 10px; }
.pd-variant-group .label b { color: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 14px; margin-left: 6px; }
.pd-color-swatches, .pd-size-buttons, .pd-variant-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-swatch { position: relative; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; transition: box-shadow .15s; }
.pd-swatch.is-selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.swatch-ring { display: none; }
.pd-size-btn, .pd-variant-btn { min-width: 52px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--text); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.pd-size-btn:hover:not(:disabled), .pd-variant-btn:hover:not(:disabled) { border-color: var(--text-2); }
.pd-size-btn.is-selected, .pd-variant-btn.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pd-size-btn:disabled, .pd-variant-btn:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.variant-hint { font-size: 13px; color: var(--accent-ink); }
.out-of-stock-notice { margin-top: 24px; font-size: 15px; color: var(--text); }
.pd-buy-row { display: flex; gap: 10px; margin-top: 24px; }
.pd-buy-row .number-input { height: 54px; }
.pd-buy-row .btn { flex: 1; }
.pd-assurances { margin-top: 28px; border-top: 1px solid var(--line); }
.pd-assurances div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.pd-assurances span { font: 500 11.5px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pd-assurances a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pd-assurances a:hover { text-decoration-color: var(--accent); }

.pd-tabs { margin-top: 96px; }
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav button { position: relative; flex-shrink: 0; height: 56px; padding: 0 22px; border: none; background: none; color: var(--text-3); font: 700 16px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: color .15s; }
.tab-nav button i { display: none; }
.tab-nav button:first-child { padding-left: 0; }
.tab-nav button:hover { color: var(--text-2); }
.tab-nav button.active { color: var(--text); }
.tab-nav button.active::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--accent); }
.tab-nav button:first-child.active::after { left: 0; }
.tab-nav .count { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-left: 6px; }
.tab-panel { padding: 40px 0 0; max-width: 860px; }
.tab-panel h3 { font: 700 30px/1 var(--font-display); text-transform: uppercase; margin-bottom: 18px; }
.features-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.feature-item { padding: 14px 0 14px 26px; position: relative; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.feature-item::before { content: ''; position: absolute; left: 0; top: 24px; width: 12px; height: 2px; background: var(--accent); }
.feature-item i { display: none; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs-table th { width: 40%; padding: 14px 16px 14px 0; text-align: left; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-table td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.compat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.compat-chip { height: 36px; padding: 0 14px; font-size: 13px; color: var(--text); }
.compat-chip small { color: var(--text-3); font-size: 11px; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.compat-chip.is-mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.compat-chip i { display: none; }
.rating-summary { display: flex; align-items: center; gap: 28px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.rating-summary .big { font: 700 72px/.9 var(--font-display); color: var(--text); }
.rating-summary .stars-inline { font-size: 16px; }
.rating-summary p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.related-section { margin-top: 96px; }

/* ---------- Košík ---------- */
.cart-page, .checkout-page, .garage-page { padding-bottom: 20px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.checkout-layout > aside { align-self: stretch; }
.cart-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.cart-header h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.cart-header h3 i { display: none; }
.clear-cart-btn { background: none; border: none; padding: 0; color: var(--text-3); font-size: 14px; cursor: pointer; }
.clear-cart-btn:hover { color: var(--danger); }
.clear-cart-btn i { margin-right: 6px; }
.cart-items-list { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto 36px; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { width: 112px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cart-item-info h4 a:hover { color: var(--accent-ink); }
.cart-item-info .ci-variant { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.cart-item-info small { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font: 500 12px/1.4 var(--mono); color: var(--text-3); }
.cart-item-info small .ok { color: var(--success); }
.cart-item-price { min-width: 110px; text-align: right; font: 700 22px/1 var(--font-display); }
.cart-item-price .per { margin-top: 6px; font: 500 12px/1 var(--mono); color: var(--text-3); }
.remove-item-btn { width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--text-3); cursor: pointer; transition: color .15s, border-color .15s; }
.remove-item-btn:hover { color: var(--danger); border-color: var(--line-2); }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 80px 20px; }
.cart-empty > i { display: none; }
.cart-empty h3 { font: 700 40px/1 var(--font-display); text-transform: uppercase; }
.cart-empty p { color: var(--text-2); }
.cart-empty .empty-actions { margin-top: 14px; }

.summary-card { position: sticky; top: calc(var(--header-h) + 60px); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.summary-card h3 { margin-bottom: 20px; font: 700 26px/1 var(--font-display); text-transform: uppercase; }
.summary-card h3 i { display: none; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; color: var(--text-2); }
.summary-row span:last-child { color: var(--text); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.summary-row .free, .summary-row.discount span:last-child { color: var(--success); }
.summary-row.total { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); align-items: baseline; }
.summary-row.total span:first-child { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.summary-row.total span:last-child { font: 700 34px/1 var(--font-display); letter-spacing: .01em; }
.summary-vat { text-align: right; font: 500 11.5px/1 var(--mono); color: var(--text-3); margin-top: -2px; }
.summary-note { display: flex; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.summary-note i { margin-top: 3px; }
.free-ship { margin-bottom: 20px; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.free-ship-text { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-2); }
.free-ship-text strong { color: var(--text); }
.free-ship-bar { height: 4px; margin-top: 12px; background: var(--surface-3); overflow: hidden; }
.free-ship-bar > div { height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.summary-promises { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.summary-promises div { display: flex; gap: 12px; font-size: 14px; color: var(--text-2); }
.summary-promises div::before { content: ''; flex-shrink: 0; width: 10px; height: 2px; margin-top: 10px; background: var(--accent); }
.summary-items { margin: 0 -4px 16px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.summary-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.summary-item:first-child { border-top: none; padding-top: 0; }
.summary-item img { width: 56px; height: 56px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.summary-item .si-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.summary-item .si-meta { margin-top: 4px; font: 500 12px/1 var(--mono); color: var(--text-3); }
.summary-item .si-price { font: 600 14px/1 var(--mono); white-space: nowrap; }

/* ---------- Pokladna ---------- */
.checkout-section { padding: 36px 0; border-top: 1px solid var(--line); }
.checkout-section:first-child { border-top: none; padding-top: 0; }
.checkout-section h3 { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font: 700 30px/1 var(--font-display); text-transform: uppercase; }
.step-num { font: 500 13px/1 var(--mono); color: var(--accent-ink); letter-spacing: .04em; }
.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-option { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-option:hover { border-color: var(--text-3); }
.pay-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input[type="radio"] { width: 18px; height: 18px; }
.pay-option > i { width: 24px; text-align: center; font-size: 18px; color: var(--text-2); }
.pay-option.selected > i { color: var(--accent-ink); }
/* Ikony plateb: všechny ve stejném čtverci 24 × 24, čárové SVG přebírají barvu textu */
.pay-option > .pay-ico { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; color: var(--text-2); }
.pay-option > .pay-ico svg { display: block; width: 24px; height: 24px; }
.pay-option > .pay-ico i { font-size: 19px; }
.pay-option.selected > .pay-ico { color: var(--accent-ink); }
.pay-option-text { flex: 1; min-width: 0; }
.pay-option-text strong { display: block; font-size: 16px; font-weight: 600; }
.pay-option-text small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text-3); }
.pay-option .fee { font: 600 14px/1 var(--mono); white-space: nowrap; }
.pay-option .fee.free { color: var(--success); }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-input-row input { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.coupon-input-row .btn { height: 48px; }
.coupon-message { font-size: 14px; }
.coupon-msg-ok { color: var(--success); }
.coupon-msg-err { color: var(--danger); }
.coupon-applied { margin-top: 12px; display: block; }
.coupon-applied-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#couponAppliedCode { font: 600 15px/1 var(--mono); letter-spacing: .06em; }
#couponAppliedDesc { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; }
.terms-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.terms-row a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
#stripeCardContainer { margin-top: 14px; padding: 14px; border: 1px solid var(--line-2); background: #fff; color: #111; }
.stripe-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #E5E5E5; font-size: 13.5px; font-weight: 600; }
.stripe-note { margin-top: 8px; font-size: 12px; color: #555; line-height: 1.45; }
#mainSubmitBtnWrap { margin-top: 20px; }
.submit-order-main { height: 58px; font-size: 17px; }

.checkout-success { max-width: 760px; margin: 0 auto; padding: 48px 0 0; }
.checkout-success .success-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #0C0D0F; font-size: 22px; margin-bottom: 26px; }
.checkout-success h1 { font: 700 clamp(46px, 6vw, 80px)/.95 var(--font-display); text-transform: uppercase; }
.checkout-success h1 span { color: var(--accent); }
.checkout-success > p { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 560px; }
.order-card { margin-top: 40px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.order-card-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.order-card-row span:last-child { color: var(--text); text-align: right; }
.order-card-row.total { border-bottom: none; padding-top: 18px; align-items: baseline; }
.order-card-row.total span:first-child { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.order-card-row.total span:last-child { font: 700 34px/1 var(--font-display); }
.order-num { font-family: var(--mono); font-weight: 600; color: var(--accent-ink) !important; }
.success-items { margin-top: 16px; }
.success-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.success-next { margin-top: 48px; }
.success-next h4 { margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }

/* Wallet tlačítka (Apple/Google Pay) */
.wallet-buttons-wrapper { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: var(--r); font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.gpay-btn { background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.applepay-btn { background: #000; color: #fff; border-color: #333; }
.wallet-blocked-note { margin-top: 8px; font-size: 13px; color: var(--text-3); }

/* ---------- Garáž ---------- */
.garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-top: 40px; }
.garage-card { position: relative; display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line); }
.garage-card.active { border-top: 3px solid var(--accent); }
.garage-car-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.garage-car-icon { display: none; }
.garage-code { font: 800 64px/.85 var(--font-display); font-style: italic; text-transform: uppercase; color: var(--surface-3); }
.garage-card.active .garage-code { color: var(--accent); }
.garage-car-info h3 { margin-top: 18px; font: 700 26px/1.05 var(--font-display); text-transform: uppercase; }
.garage-car-info small { display: block; margin-top: 8px; font: 500 12.5px/1.5 var(--mono); color: var(--text-3); }
.garage-active-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; background: var(--accent-soft); color: var(--accent-ink); font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.garage-meta { margin-top: 22px; border-top: 1px solid var(--line); }
.garage-meta-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.garage-meta-item span i { display: none; }
.garage-meta-item strong { color: var(--text); font-weight: 600; text-align: right; }
.garage-actions { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 22px; }
.garage-actions .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garage-actions .remove-btn { flex: 0 0 44px; padding: 0; }

/* ---------- Odhlášení z newsletteru (stránka ze serveru) ---------- */
.standalone { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.standalone-card { width: 100%; max-width: 520px; padding: 40px 36px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }

/* ---------- Responzivita ---------- */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-grid.catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fitment-grid, .quick-select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fitment-grid > .btn, .quick-select-grid > .btn { grid-column: span 3; }
  .quick-select-grid-garage > .btn { grid-column: auto; }
  .car-selector-display { min-width: 0; }
  .car-selector-text strong { max-width: 140px; }
  .main-nav a { padding: 0 10px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .hero-body { gap: 28px; padding-top: 72px; }
  .hero-side { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 22px; }
  .hero-side .hero-meta { margin-top: 0; }
  .hero-media { width: 100%; }
  .hero-media::after { background: linear-gradient(90deg, rgba(12,13,15,.7) 0%, rgba(12,13,15,.1) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(12,13,15,.55) 45%, rgba(12,13,15,0) 100%); }
  .content-grid, .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .content-aside, .summary-card { position: static; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pd-gallery { position: static; }
  .features-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(2) { border-right: none; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature:nth-child(3) { padding-left: 0; }
  .cta-banner-inner, .newsletter-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-banner-inner { padding: 48px 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Katalog: filtry jako vysouvací panel */
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1500; width: min(360px, 88vw); max-height: none; padding: 0 22px 32px; background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .sidebar-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 64px; margin: 0 -22px 8px; padding: 0 12px 0 22px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .sidebar-head strong { font: 700 22px/1 var(--font-display); text-transform: uppercase; }
  .filter-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .header-top-inner .ht-hide { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
    width: min(380px, 88vw); flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 0 32px; background: var(--bg); border-left: 1px solid var(--line);
    transform: translateX(102%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  .main-nav.open { transform: none; visibility: visible; box-shadow: var(--shadow); }
  .main-nav .nav-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
  .main-nav a { height: auto; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 24px; letter-spacing: .03em; color: var(--text); }
  .main-nav a.active { color: var(--accent); }
  .main-nav a.active::after { display: none; }
  .main-nav a.sub-link { padding: 14px 24px 14px 40px; font-size: 18px; color: var(--text-2); }
  .main-nav .nav-foot { display: flex; flex-direction: column; gap: 8px; padding: 24px; font: 500 12px/1.6 var(--mono); color: var(--text-3); }
  .main-nav .nav-foot a { padding: 0; border: none; font: 600 16px/1.4 var(--mono); letter-spacing: .02em; color: var(--text); }
  .menu-toggle { display: inline-flex; }
  .header-main-inner { gap: 12px; }
  .car-selector { margin-left: auto; }
  .car-selector-display { height: 42px; padding: 0 10px; gap: 8px; }
  .car-selector-display > i:first-child, .car-selector-display > i:last-child { display: none; }
  .car-selector-text small { display: none; }
  .car-selector-text strong { font-size: 13.5px; max-width: 120px; }
  .car-years { display: none; }
  .categories-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cat-shots { height: 300px; }
  .block-body { padding-left: 0; }
  .block-head { grid-template-columns: 44px minmax(0, 1fr); }
  .block-head p { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .header-top { display: none; }
  .logo-text { font-size: 22px; }
  .products-grid, .products-grid.catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-body { padding: 12px; gap: 8px; }
  .product-title { font-size: 14.5px; }
  .product-meta-row .product-rating { display: none; }
  .price { font-size: 20px; }
  .product-price-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .add-to-cart-btn { width: 100%; height: 38px; }
  .product-card .compat { display: none; }
  .section { padding-top: 72px; }
  .cat-shots { height: 240px; }
  .cat-foot { padding: 20px 18px 22px; }
  .cat-go { width: 42px; height: 42px; }
  .hero { min-height: 0; }
  .hero-media { bottom: auto; height: 340px; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(12,13,15,.55) 40%, rgba(12,13,15,.15) 100%); }
  .hero-body { padding-top: 200px; padding-bottom: 36px; gap: 22px; }
  .hero h1 { font-size: clamp(50px, 15vw, 76px); }
  .hero-lead { font-size: 16px; }
  .hero-cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .fitment { margin-top: 44px; }
  .fitment-head, .quick-select-header { padding: 22px 18px 0; }
  .fitment-grid, .quick-select-grid, .quick-select-grid-garage { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 22px; }
  .fitment-grid > .btn, .quick-select-grid > .btn { grid-column: auto; }
  .features-band-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature + .feature { padding: 26px 0; border-right: none; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: none; }
  .cta-banner-inner { padding: 36px 22px; }
  .cta-banner-inner::after { font-size: 160px; }
  .newsletter-form { flex-direction: column; gap: 8px; }
  .newsletter-form input, .newsletter-form .btn { border-radius: var(--r); border-right: 1px solid var(--line-2); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-footer { margin-top: 80px; }
  .form-grid-2, .form-grid-2col { grid-template-columns: minmax(0, 1fr); }
  .cart-item { grid-template-columns: 84px auto minmax(0, 1fr) 36px; grid-template-areas: "img info info rm" "img qty price price"; gap: 10px 14px; }
  .cart-item-image { grid-area: img; width: 84px; align-self: start; }
  .cart-item-info { grid-area: info; }
  .cart-item .number-input { grid-area: qty; height: 40px; justify-self: start; }
  .cart-item-price { grid-area: price; min-width: 0; font-size: 20px; align-self: center; }
  .remove-item-btn { grid-area: rm; align-self: start; }
  .summary-card, .contact-form, .side-card { padding: 22px 18px; }
  .pay-option { padding: 14px; gap: 12px; }
  .pay-option > i, .pay-option > .pay-ico { display: none; }
  .pd-prices .price { font-size: 40px; }
  .pd-buy-row { flex-wrap: wrap; }
  .pd-assurances div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .features-list { grid-template-columns: minmax(0, 1fr); }
  .rating-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tab-nav button { padding: 0 14px; font-size: 15px; }
  .tab-nav button.active::after { left: 14px; right: 14px; }
  .garage-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item summary { font-size: 16.5px; }
  .faq-item .prose { padding-right: 0; }
  .car-selector-modal { padding: 0; align-items: flex-end; }
  .car-selector-panel { max-height: 90vh; border-radius: 0; }
}
@media (max-width: 480px) {
  .header-main-inner { gap: 6px; }
  .logo { gap: 8px; }
  .logo .stripes i { width: 4px; height: 16px; }
  .logo-text { font-size: 21px; }
  .icon-btn { width: 38px; }
  /* Výběr vozu jako ikonka (+ kód karoserie, pokud je vůz zvolený) */
  .car-selector-display { min-width: 0; width: auto; padding: 0 10px; gap: 6px; }
  .car-selector-display > i:first-child { display: inline-block; }
  .car-selector-text strong { font-size: 0; max-width: none; }
  .car-selector-text small { display: block; font-size: 0; }
  .car-selector-text small .chassis { font-size: 12px; letter-spacing: .04em; }
  /* Bez zvoleného vozu je text prázdný – skrýt ho, jinak by mezera posunula ikonku mimo střed */
  .car-selector-text:not(:has(.chassis)) { display: none; }
  .car-selector-display:not(:has(.chassis)) { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Posuvník ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2E3137; border: 3px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports (-moz-appearance: none) {
  html { scrollbar-color: #2E3137 var(--bg); }
}

/* ---------- Telefon: bez zoomu ---------- */
html { touch-action: manipulation; }
@media (max-width: 900px) {
  /* iOS jinak při focusu přibližuje pole s písmem pod 16 px */
  input, select, textarea { font-size: 16px !important; }
}

/* ---------- Plovoucí hlavička ----------
   Nahoře stránky je hlavička normálně v toku a odjede s obsahem. Po určité
   vzdálenosti (JS, třída .is-floating) sjede shora jako kompaktní fixní lišta,
   při návratu nahoru se zase zasune (.is-leaving). */
.site-header.is-floating { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .38); animation: headerIn .5s var(--ease) both; }
.site-header.is-floating .header-top { display: none; }
.site-header.is-leaving { animation: headerOut .28s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes headerOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-floating, .site-header.is-leaving { animation-duration: .01ms; } }
/* Postranní panely: bez plovoucí hlavičky u horního okraje, s ní pod ní */
.content-aside, .summary-card, .sidebar, .pd-gallery { top: 24px; transition: top .4s var(--ease); }
.sidebar { max-height: calc(100vh - 48px); }
body.header-floating .content-aside, body.header-floating .summary-card, body.header-floating .sidebar, body.header-floating .pd-gallery { top: calc(var(--header-h) + 24px); }
body.header-floating .sidebar { max-height: calc(100vh - var(--header-h) - 48px); }
/* Souhrn vyšší než okno: polohu při posouvání řídí shared.js (dolů se přichytí spodkem, nahoru vyjede až pod hlavičku) */
.summary-card.is-tall { transition: none; }
.summary-card.is-tall.is-easing { transition: top .5s var(--ease); }

/* ---------- Výsledek VIN v garáži ---------- */
.vin-result { margin-top: 12px; }
.vin-result strong { display: block; color: var(--text); font-weight: 600; }
.vin-result dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 24px; margin: 12px 0 0; }
.vin-result dt { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.vin-result dd { margin: 4px 0 0; color: var(--text); font-weight: 500; }

/* Kontakt – poznámka k telefonu: popisek vlevo, číslo vpravo vcelku, poznámka pod nimi vpravo */
.contact-lines a:has(small) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
.contact-lines a:has(small) strong { text-align: right; white-space: nowrap; }
.contact-lines a small { grid-column: 1 / -1; justify-self: end; text-align: right; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }

/* ---------- AI postřehy na detailu produktu ---------- */
.ai-notes { margin-top: 8px; }
.rating-summary + .ai-notes { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.ai-notes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.ai-notes-head h3 { font: 700 26px/1 var(--font-display); text-transform: uppercase; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ai-badge i { color: var(--accent); }
.ai-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-note { padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ai-note-num { font: 500 12px/1 var(--mono); color: var(--accent-ink); }
.ai-note h4 { margin-top: 14px; font-size: 16.5px; font-weight: 600; }
.ai-note p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.ai-note.is-loading { min-height: 132px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.ai-note.is-loading span { display: block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: aiPulse 1.4s ease-in-out infinite; }
.ai-note.is-loading span:first-child { width: 45%; }
@keyframes aiPulse { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 900px) { .ai-notes-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Recenze ---------- */
.review-page .page-head { margin-bottom: 36px; }
.review-page .rv-form { max-width: 860px; }
.rv-items { display: flex; flex-direction: column; gap: 14px; }
.rv-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.rv-item.is-invalid { border-color: var(--danger); }
.rv-item.is-done { opacity: .7; }
.rv-thumb { width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-body h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.rv-variant { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.rv-done-note { margin-top: 8px; color: var(--success); font-size: 14.5px; }
.rv-stars { display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 14px; }
.rv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars label { cursor: pointer; font-size: 26px; line-height: 1; color: var(--surface-3); transition: color .12s, transform .12s; }
.rv-stars label:hover, .rv-stars label:hover ~ label, .rv-stars input:checked ~ label { color: #F2B33D; }
.rv-stars label:active { transform: scale(.9); }
.rv-stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.rv-star-label { order: -1; margin-left: 14px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.rv-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.rv-fields small, .rv-car small { color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.rv-foot { display: grid; gap: 16px; margin-top: 22px; max-width: 520px; }
.rv-foot .btn { justify-self: start; }
.rv-done, .rv-state .rv-done { max-width: 520px; margin: 0 auto; padding: 48px 28px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); }
.rv-done .confirm-ico { margin-bottom: 16px; }
.rv-done h2 { font: 700 34px/1 var(--font-display); text-transform: uppercase; }
.rv-done p { margin: 12px auto 24px; max-width: 380px; color: var(--text-2); }
.rv-state .ai-note.is-loading { max-width: 520px; }

.rv-summary { margin-bottom: 24px; }
.rv-summary-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 260px); align-items: center; gap: 24px; }
.rv-bars { display: grid; gap: 6px; }
.rv-bar { display: grid; grid-template-columns: 14px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); color: var(--text-3); }
.rv-bar > div { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: #F2B33D; }
.rv-bar span:last-child { text-align: right; }
.rv-list { display: grid; gap: 14px; }
.rv-card { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.rv-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rv-card h4 { margin-top: 8px; font-size: 16.5px; font-weight: 600; }
.rv-card time { flex: none; font: 500 12px/1.4 var(--mono); color: var(--text-3); }
.rv-card > p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.rv-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 13.5px; color: var(--text-3); }
.rv-card footer strong { color: var(--text); font-weight: 600; }
.rv-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 500; }
.rv-reply { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: var(--r-sm); }
.rv-reply strong { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.rv-reply p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.rv-empty { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.rv-empty > i { margin-top: 3px; color: var(--accent); font-size: 18px; }
.rv-empty strong { color: var(--text); }
.rv-empty p { margin-top: 4px; font-size: 14.5px; }
@media (max-width: 720px) {
  .rv-item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .rv-thumb { width: 64px; }
  .rv-summary-grid { grid-template-columns: auto minmax(0, 1fr); }
  .rv-bars { grid-column: 1 / -1; }
  .rv-card { padding: 18px; }
}

/* ---------- 3D kresba vozu (garáž) ---------- */
.car-sketch {
  display: block; width: 100%; height: auto; overflow: visible;
  --sk-hi: #6b717b; --sk-paint: #3a3f47; --sk-dk: #22262c; --sk-deep: #121418;
  --sk-glass: #0d0f12; --sk-glass-hi: #3c4450; --sk-rim: #6d737c; --sk-rim-hi: #dfe3e8;
}
.car-sketch path { stroke-linejoin: round; stroke-linecap: round; }
.car-sketch .sk-shadow { fill: #000; opacity: .55; }
.car-sketch .sk-contact { fill: #000; opacity: .75; }
.car-sketch .sk-tail { fill: #4a1012; stroke: #c4363a; stroke-width: .5; }
.car-sketch .sk-tire { fill: #0a0b0d; stroke: #000; stroke-width: .4; }
.car-sketch .sk-side, .car-sketch .sk-top, .car-sketch .sk-roof, .car-sketch .sk-face { stroke: rgba(255,255,255,.14); stroke-width: .5; }
.car-sketch .sk-dome { fill: none; stroke: rgba(255,255,255,.16); stroke-width: .6; }
.car-sketch .sk-glass { stroke: #07080a; stroke-width: .6; }
.car-sketch .sk-trim, .car-sketch .sk-cabin, .car-sketch .sk-intake { fill: #08090b; }
.car-sketch .sk-belt { fill: none; stroke: #9aa1ab; stroke-width: .5; opacity: .7; }
.car-sketch .sk-frame { fill: none; stroke: #0a0b0d; stroke-width: 1.4; }
.car-sketch .sk-seat { fill: #2b2f36; stroke: #121418; stroke-width: .4; }
.car-sketch .sk-crease { fill: none; stroke: rgba(0,0,0,.55); stroke-width: .7; }
.car-sketch .sk-hl { fill: none; stroke: rgba(255,255,255,.3); stroke-width: .6; }
.car-sketch .sk-cut { fill: none; stroke: rgba(0,0,0,.65); stroke-width: .5; }
.car-sketch .sk-handle { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1; }
.car-sketch .sk-kidney { fill: #07080a; stroke: #c3c8cf; stroke-width: .6; }
.car-sketch .sk-slat { fill: none; stroke: #3a3f47; stroke-width: .4; }
.car-sketch .sk-lamp { fill: #15181c; stroke: rgba(255,255,255,.3); stroke-width: .5; }
.car-sketch .sk-eye { fill: none; stroke: #eef2f7; stroke-width: .8; }
.car-sketch .sk-fog { fill: #1b1e23; stroke: rgba(255,255,255,.2); stroke-width: .4; }
.car-sketch .sk-plate { fill: #e7e9ec; opacity: .85; }
.car-sketch .sk-rim { stroke: #2b2f36; stroke-width: .5; }
.car-sketch .sk-disc { fill: #2a2d33; }
.car-sketch .sk-spoke { fill: none; stroke: #b9bec6; stroke-width: 1.1; }
.car-sketch .sk-hub { fill: #23262c; }
.car-sketch.is-active .sk-eye { stroke: var(--accent); filter: drop-shadow(0 0 1.5px var(--accent)); }
.garage-car-id { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.garage-car-visual { flex: none; width: min(220px, 58%); margin: -6px -6px 0 0; }
/* Fotorealistický render vozu z 3D modelu */
.car-visual { position: relative; }
.car-visual .car-render { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.garage-card:not(.active) .car-visual .car-render { filter: saturate(.9) brightness(.92); }
.garage-credits { margin-top: 28px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.garage-credits a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); }
.garage-credits a:hover { color: var(--text); }

/* ---------- Telefon: doladění responzivity ---------- */
@media (max-width: 720px) {
  /* Katalog: filtry a řazení přes celou šířku, nic nepřetéká */
  .catalog-controls { width: 100%; }
  .catalog-controls .filter-toggle { flex: 0 0 auto; }
  .sort-select { flex: 1 1 auto; width: auto; min-width: 0; }

  /* Detail produktu: záložky ve dvou řádcích místo skrytého vodorovného posuvu */
  .tab-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; border-bottom: none; }
  .tab-nav button { border-bottom: 1px solid var(--line) !important; }
  .tab-nav button, .tab-nav button:first-child { height: 48px; padding: 0 4px; font-size: 14px; letter-spacing: .04em; text-align: center; }
  .tab-nav button.active::after, .tab-nav button:first-child.active::after { left: 8px; right: 8px; }

  /* Garáž: hlavní akce přes celou šířku, pod ní deaktivace a smazání */
  .garage-actions { flex-wrap: wrap; }
  .garage-actions .view-catalog-btn { flex: 1 1 100%; }
  .garage-actions .deactivate-btn, .garage-actions .activate-btn { flex: 1 1 0; }

  /* Výběr vozu: kratší kód, stav aktivního vozu jen zvýrazněním řádku */
  .car-item { gap: 10px; padding: 11px 10px; }
  .car-item .chassis-code { width: 40px; font-size: 12.5px; }
  .car-item-actions { gap: 6px; flex-shrink: 0; }
  .car-item-actions .status-pill { display: none; }
  .car-item-text strong { font-size: 14.5px; }
}
@media (max-width: 480px) {
  /* Dlouhé texty na tlačítkách přes celou šířku se raději zalomí, než aby se ořízly */
  .btn-block, #submitOrderBtn { white-space: normal; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; line-height: 1.25; text-align: center; }
}
@media (max-width: 380px) {
  /* Nejmenší telefony (iPhone SE 1. gen., starší Androidy – 320 px) */
  .garage-code { font-size: 54px; }
  .cart-item { grid-template-areas: "img info info rm" "qty qty price price"; }
  .header-main-inner { gap: 4px; }
  .logo { gap: 6px; }
  .logo-text { font-size: 18px; }
  .logo .stripes i { width: 3px; height: 14px; }
  .icon-btn { width: 34px; }
  .header-actions { gap: 0; }
  .car-selector-display { padding: 0 8px; }
  .data-table { font-size: 14px; }
  .data-table th, .data-table td { padding-right: 8px; }
  .data-table td small { word-break: break-word; }
}

/* ---------- 404 ---------- */
.nf-page { padding-top: 24px; }
.nf-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 32px 0 56px; border-bottom: 1px solid var(--line); }
.nf-code { display: flex; gap: .04em; font: 800 clamp(120px, 22vw, 260px)/.82 var(--font-display); font-style: italic; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px var(--line-2); user-select: none; }
.nf-code .nf-zero { color: var(--accent); -webkit-text-stroke: 0; }
.nf-body { max-width: 680px; }
.nf-body .eyebrow { margin: 18px 0 18px; }
.nf-search { position: relative; display: flex; gap: 8px; margin-top: 32px; max-width: 560px; }
.nf-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; pointer-events: none; }
.nf-search input { flex: 1; min-width: 0; height: 52px; padding-left: 44px; }
.nf-search .btn { height: 52px; flex: none; background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.nf-search .btn:hover { background: var(--accent); color: var(--accent-contrast, #0C0D0F); border-color: var(--accent); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nf-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 40px 0 0; }
.nf-link { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; }
.nf-link:hover { border-color: var(--accent); background: var(--surface-2); }
.nf-link-k { font: 600 12px/1 var(--mono); color: var(--accent-ink); letter-spacing: .06em; margin-bottom: 10px; }
.nf-link strong { font: 700 22px/1 var(--font-display); text-transform: uppercase; color: var(--text); }
.nf-link small { font-size: 14px; color: var(--text-3); }
.nf-link > i { position: absolute; top: 22px; right: 22px; color: var(--text-3); font-size: 14px; transition: color .15s, transform .15s; }
.nf-link:hover > i { color: var(--accent); transform: translateX(3px); }
@media (min-width: 1000px) {
  .nf-hero { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 56px; }
  .nf-body .eyebrow { margin-top: 0; }
}
@media (max-width: 900px) {
  .nf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .nf-hero { padding: 12px 0 40px; }
  .nf-code { -webkit-text-stroke-width: 1.5px; }
  .nf-search .btn { padding: 0 16px; }
  .nf-actions .btn { flex: 1 1 0; justify-content: center; padding-left: 10px; padding-right: 10px; }
  .nf-actions .btn:first-child { flex-basis: 100%; }
  .nf-links { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 32px; }
  .nf-link { padding: 18px 18px 20px; }
  .nf-link > i { top: 18px; right: 18px; }
}
