/* ============================================================
   SVĚTLA — hlavní styl webu
   ============================================================ */

/* ---------- 1. Proměnné ---------- */

:root {
  /* Barvy — podle obalů Elplast / Beghelli:
     tmavě červená, černá a světle šedý podklad */
  --bg:            #ebebee;
  --bg-2:          #f6f6f8;
  --surface:       #ffffff;
  --surface-2:     #f5f5f7;
  --border:        rgba(18, 18, 24, .12);
  --border-2:      rgba(18, 18, 24, .22);

  --text:          #16161c;
  --text-2:        #54545e;
  --text-3:        #82828d;

  --accent:        #9c1c28;   /* tmavě červená z krabice */
  --accent-2:      #7a141e;   /* tmavší odstín na hover */
  --accent-light:  #e35d6a;   /* pro použití na tmavém podkladu */
  --accent-dim:    rgba(156, 28, 40, .09);
  --accent-glow:   rgba(156, 28, 40, .26);

  /* Tmavé plochy — hlavička, patička, hero */
  --dark:          #17171b;
  --dark-2:        #212127;
  --on-dark:       #f3f3f5;
  --on-dark-2:     #a7a7b2;
  --border-dark:   rgba(255, 255, 255, .13);

  --green:         #147a3d;
  --red:           #c02535;

  /* Rozměry */
  --max:          1240px;
  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;

  /* Stíny */
  --shadow:       0 2px 10px rgba(18, 18, 30, .07);
  --shadow-lg:    0 14px 40px rgba(18, 18, 30, .15);

  --header-h:     72px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skrytý text pro čtečky */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Rozvržení ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section      { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- 4. Tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
  background: none;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 8px 24px var(--accent-glow); }

.btn--ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Varianta na červených plochách (hero, CTA pruh) */
.hero .btn--ghost,
.cta-band .btn--ghost {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.18); color: #fff; }

.hero .btn--primary,
.cta-band .btn--primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,.26);
}
.hero .btn--primary:hover,
.cta-band .btn--primary:hover { box-shadow: 0 8px 26px rgba(0,0,0,.32); }

.btn--sm  { padding: 9px 17px; font-size: .86rem; }
.btn--full{ width: 100%; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- 5. Hlavička ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(23, 23, 27, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--accent);
  color: var(--on-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--on-dark-2);
  transition: color .16s, background .16s;
}
.nav a:hover     { color: #fff; background: rgba(255,255,255,.09); }
.nav a.is-active { color: #fff; background: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* Ikona poptávky s počítadlem */
.basket-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--on-dark);
  transition: border-color .16s, color .16s, background .16s;
}
.basket-link:hover     { border-color: #fff; background: rgba(255,255,255,.09); }
.basket-link.has-items { border-color: var(--accent-light); color: #fff; background: var(--accent); }

.basket-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
}
.basket-count:empty, .basket-count[data-empty="1"] { display: none; }

/* Hamburger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border-dark);
  border-radius: 11px;
  background: none;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--on-dark); border-radius: 2px;
  transition: transform .22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }

body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 90% at 78% 10%, rgba(255,255,255,.13), transparent 60%),
    linear-gradient(135deg, #a81f2b 0%, #8c1822 45%, #5f0f16 100%);
}

/* Světelný oblouk jako na obalech Elplast */
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -8%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin-inline: auto; }

.hero .eyebrow { color: rgba(255,255,255,.78); }

.hero h1 { margin-bottom: 20px; color: #fff; }
.hero h1 em {
  font-style: normal;
  color: #ffd9dd;
}

.hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.86);
  max-width: 580px;
  margin: 0 auto 34px;
}

.hero__cta {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__stat b {
  display: block;
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: -.02em;
}
.hero__stat span { font-size: .87rem; color: rgba(255,255,255,.72); }

/* ---------- 7. Mřížky ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- 8. Karta kategorie ---------- */

.cat-card {
  display: block;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .22s var(--ease), border-color .22s, background .22s;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.cat-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.cat-card h3 { margin-bottom: 6px; font-size: 1.08rem; }
.cat-card p  { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.cat-card__count {
  display: inline-block;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 9. Průvodce podle místnosti ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.room-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.room-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--accent);
}
.room-card__icon { font-size: 1.9rem; line-height: 1; }

/* ---------- 10. Karta produktu ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f0f0f2, #e2e2e6);
  overflow: hidden;
  display: block;
}
/* Obrázky leží nad náhradní grafikou */
.product-card__media img,
.gallery__main img,
.gallery__thumb img,
.inquiry-item__img img,
.split__media img {
  position: relative;
  z-index: 1;
}

.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

/* Náhrada, když fotka chybí — leží pod obrázkem */
.img-fallback {
  position: absolute; inset: 0;
  z-index: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(156,28,40,.12), transparent 62%),
    linear-gradient(160deg, #f0f0f2, #e2e2e6);
  font-size: 2.6rem;
  opacity: .55;
}

.badges {
  position: absolute;
  top: 11px; left: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.badge--new   { background: #e8f5ec; color: var(--green);  border: 1px solid rgba(20,122,61,.28); }
.badge--sale  { background: var(--accent); color: #fff;     border: 1px solid var(--accent-2); }
.badge--top   { background: #17171b;     color: #fff;       border: 1px solid #17171b; }
.badge--out   { background: rgba(255,255,255,.92); color: var(--text-2); border: 1px solid var(--border-2); }

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.product-card__type {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}
.product-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.product-card__title a:hover { color: var(--accent); }

.product-card__desc {
  font-size: .87rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .74rem;
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__now {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.price__old {
  font-size: .87rem;
  color: var(--text-3);
  text-decoration: line-through;
}
.price__ask { font-size: .95rem; font-weight: 600; color: var(--accent); }

.stock-note {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 3px;
}

/* Tlačítko "přidat do poptávky" */
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.add-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.add-btn.is-added {
  border-color: var(--green);
  color: var(--green);
  background: #e8f5ec;
}

/* ---------- 11. Katalog — rozvržení ---------- */

.catalog {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.filters__head h2 { font-size: 1.05rem; margin: 0; }

.filter-reset {
  border: none;
  background: none;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.filter-reset:hover { text-decoration: underline; }

.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-group__title {
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 11px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: .91rem;
  color: var(--text-2);
  transition: color .15s;
  user-select: none;
}
.check:hover { color: var(--text); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check__box {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-2);
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: all .16s;
}
.check__box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.4);
  opacity: 0;
  transition: all .16s;
  margin-top: -2px;
}
.check input:checked + .check__box {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked + .check__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:checked ~ .check__label { color: var(--text); font-weight: 500; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }

.check__count { margin-left: auto; font-size: .78rem; color: var(--text-3); }

/* Cenový rozsah */
.range-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.range-row input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  min-width: 0;
}
.range-row input:focus { border-color: var(--accent); outline: none; }
.range-row span { color: var(--text-3); font-size: .85rem; }

input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-2);
  border-radius: 999px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  cursor: pointer;
}

/* ---------- 12. Katalog — lišta nad výsledky ---------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 210px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .93rem;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { border-color: var(--accent); outline: none; }
.search-box__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  font-size: .95rem;
}

.select {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
}
.select:focus { border-color: var(--accent); outline: none; }
.select option { background: var(--surface); }

.results-count {
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 18px;
}
.results-count b { color: var(--text); }

.filter-toggle { display: none; }

/* Aktivní filtry */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.active-filters:empty { display: none; }

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(156,28,40,.28);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--accent);
}
.filter-tag button {
  border: none; background: none;
  color: inherit; cursor: pointer;
  font-size: 1rem; line-height: 1;
  padding: 0 2px; opacity: .7;
}
.filter-tag button:hover { opacity: 1; }

/* Prázdný stav */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.empty-state__icon { font-size: 2.8rem; margin-bottom: 14px; opacity: .5; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p  { color: var(--text-2); margin-bottom: 20px; }

/* ---------- 13. Detail produktu ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--text-3);
  padding: 22px 0;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

.detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 30px;
}

.gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #f0f0f2, #e2e2e6);
  border: 1px solid var(--border);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gallery__thumb {
  width: 78px; height: 62px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  background: var(--surface);
  position: relative;
  transition: border-color .18s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }

.detail__title { margin-bottom: 12px; font-size: clamp(1.7rem, 3.4vw, 2.35rem); }

.detail__type {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.detail__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.detail__price .price__now { font-size: 1.9rem; }

.stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .87rem;
  font-weight: 600;
  margin-left: auto;
}
.stock::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}
.stock--in  { color: var(--green); }
.stock--out { color: var(--text-3); }

.detail__desc { color: var(--text-2); line-height: 1.75; }

.detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}

/* Tabulka parametrů */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table tr:nth-child(odd) { background: var(--surface-2); }
.spec-table th {
  text-align: left;
  padding: 12px 18px;
  font-weight: 500;
  color: var(--text-2);
  width: 45%;
  vertical-align: top;
}
.spec-table td { padding: 12px 18px; font-weight: 600; }

/* Info box */
.info-box {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(156,28,40,.22);
  border-radius: var(--radius);
  margin: 24px 0;
}
.info-box__icon { font-size: 1.35rem; flex-shrink: 0; line-height: 1.3; }
.info-box p { margin: 0; font-size: .91rem; color: var(--text-2); line-height: 1.6; }
.info-box strong { color: var(--text); }

/* ---------- 14. Poptávka ---------- */

.inquiry {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 34px;
  align-items: start;
}

.inquiry-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.inquiry-item__img {
  position: relative;
  width: 92px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}
.inquiry-item__img img { width: 100%; height: 100%; object-fit: cover; }
.inquiry-item__img .img-fallback { font-size: 1.5rem; }

.inquiry-item h3 { font-size: .98rem; margin-bottom: 4px; }
.inquiry-item__meta { font-size: .83rem; color: var(--text-3); margin: 0; }

.inquiry-item__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 32px; height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s, color .15s;
}
.qty button:hover { background: var(--surface-2); color: var(--accent); }
.qty input {
  width: 40px;
  border: none;
  background: none;
  text-align: center;
  font-size: .92rem;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.remove-btn {
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.remove-btn:hover { color: var(--red); background: #fdecee; }

.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.summary h2 { font-size: 1.15rem; margin-bottom: 18px; }

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: .92rem;
  color: var(--text-2);
}
.summary__row--total {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}
.summary__note {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.55;
  margin: 14px 0 0;
}

/* ---------- 15. Formuláře ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-2);
}
.field label .req { color: var(--accent); }

.field input,
.field textarea,
.field select {
  padding: 12px 15px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .94rem;
  transition: border-color .16s, background .16s;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

.field-error {
  font-size: .81rem;
  color: var(--red);
  display: none;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--red); }
.field.has-error .field-error { display: block; }

.form-note {
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 14px;
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 16px;
}
.form-status.is-ok {
  display: block;
  background: #e8f5ec;
  border: 1px solid rgba(20,122,61,.3);
  color: var(--green);
}
.form-status.is-err {
  display: block;
  background: #fdecee;
  border: 1px solid rgba(192,37,53,.3);
  color: var(--red);
}

/* ---------- 16. Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-dim);
  font-size: 1.1rem;
}
.contact-list__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-3);
  margin-bottom: 2px;
}
.contact-list__value { font-weight: 600; }
.contact-list__value a:hover { color: var(--accent); }

.hours { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.hours li:last-child { border-bottom: none; }
.hours span:first-child { color: var(--text-2); }
.hours span:last-child  { font-weight: 600; }

/* ---------- 16b. Karta služby (montáž) ---------- */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 34px;
  align-items: start;
  padding-top: 6px;
}

.service-card {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(140deg, #a81f2b 0%, #8c1822 50%, #66101a 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -90px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.service-card > * { position: relative; }

.service-card__tag {
  display: inline-block;
  padding: 4px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.service-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}
.service-card p {
  font-size: .93rem;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin-bottom: 14px;
}
.service-card strong { color: #fff; }

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.service-card__list li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: .9rem;
  color: rgba(255,255,255,.92);
  line-height: 1.5;
}
.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 5px;
  font-weight: 800;
  color: #fff;
}

.service-card__note {
  font-size: .84rem !important;
  color: rgba(255,255,255,.72) !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.service-card__note:empty { display: none; }

/* ---------- 16c. Volba nákup / nákup + montáž ---------- */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.choice__body {
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), background .18s, box-shadow .18s;
}
.choice:hover .choice__body { border-color: var(--border-2); }

.choice input:checked + .choice__body {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(156,28,40,.10);
}
.choice input:focus-visible + .choice__body { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: .98rem;
  margin-bottom: 5px;
}
.choice__title::before {
  content: "";
  width: 17px; height: 17px;
  flex-shrink: 0;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  transition: all .18s;
}
.choice input:checked + .choice__body .choice__title::before {
  border-color: var(--accent);
  border-width: 5px;
}

.choice__desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* Doplňující pole, která se objeví po zvolení montáže */
.montaz-pole {
  display: none;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(156,28,40,.22);
  border-radius: var(--radius);
}
.montaz-pole.is-open { display: block; }
.montaz-pole h3 {
  font-size: .98rem;
  margin-bottom: 4px;
}
.montaz-pole > p {
  font-size: .86rem;
  color: var(--text-2);
  margin-bottom: 14px;
}

/* ---------- 17. Prokládané bloky (O nás) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #f0f0f2, #e2e2e6);
  border: 1px solid var(--border);
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
}
.feature-list__icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: .95rem;
}
.feature-list h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-list p  { margin: 0; color: var(--text-2); font-size: .91rem; line-height: 1.6; }

/* ---------- 18. CTA pruh ---------- */

.cta-band {
  position: relative;
  text-align: center;
  padding: 60px 34px;
  color: #fff;
  background: linear-gradient(135deg, #a81f2b 0%, #8c1822 48%, #5f0f16 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  width: 620px; height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 12px; color: #fff; }
.cta-band p  { color: rgba(255,255,255,.84); max-width: 480px; margin: 0 auto 26px; }

/* ---------- 19. Patička ---------- */

.footer {
  border-top: 4px solid var(--accent);
  background: var(--dark);
  color: var(--on-dark);
  padding: 52px 0 26px;
  margin-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--on-dark-2);
  margin-bottom: 15px;
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { padding: 5px 0; }
.footer__links a { color: var(--on-dark-2); font-size: .92rem; transition: color .15s; }
.footer__links a:hover { color: #fff; }

.footer__about p { color: var(--on-dark-2); font-size: .92rem; margin-top: 14px; max-width: 300px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
  font-size: .85rem;
  color: var(--on-dark-2);
}

/* ---------- 20. Toast ---------- */

.toast-zone {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 19px;
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--dark);
  border-left: 3px solid var(--accent-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .91rem;
  font-weight: 500;
  animation: toast-in .3s var(--ease);
  max-width: 340px;
}
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }

@keyframes toast-in  { from { opacity: 0; transform: translateX(28px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(28px); } }

/* ---------- 21. Animace při scrollu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. Responzivita ---------- */

@media (max-width: 1024px) {
  .catalog { grid-template-columns: 1fr; }

  .filters {
    position: fixed;
    inset: 0;
    z-index: 200;
    max-height: none;
    border-radius: 0;
    border: none;
    padding: 20px;
    padding-top: 16px;
    overflow-y: auto;
    display: none;
    background: var(--bg);
  }
  body.filters-open { overflow: hidden; }
  body.filters-open .filters { display: block; }

  .filters__close {
    display: inline-flex !important;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .inquiry, .contact-grid, .intro-split { grid-template-columns: 1fr; }
  .summary { position: static; }

  .detail { grid-template-columns: 1fr; gap: 30px; }
  .split  { grid-template-columns: 1fr; gap: 30px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 780px) {
  :root { --header-h: 64px; }

  .burger { display: grid; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .22s var(--ease);
    margin: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 16px; font-size: 1rem; border-radius: var(--radius-sm); }

  .header__actions { margin-left: auto; }
  .basket-link span.basket-text { display: none; }
  .basket-link { padding: 9px 13px; }

  .hero { padding: 62px 0 56px; }
  .hero__stats { gap: 28px; margin-top: 40px; }
  .hero__stat b { font-size: 1.45rem; }

  .section { padding: 52px 0; }

  .choice-grid { grid-template-columns: 1fr; }

  .inquiry-item {
    grid-template-columns: 72px 1fr;
    gap: 13px;
  }
  .inquiry-item__img { width: 72px; height: 60px; }
  .inquiry-item__right { grid-column: 1 / -1; justify-content: space-between; }

  .footer__grid { grid-template-columns: 1fr; }

  .toast-zone { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }

  .cta-band { padding: 44px 22px; }
}

@media (max-width: 460px) {
  .product-card__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .add-btn { justify-content: center; }
  .hero__cta .btn { width: 100%; }
}

/* Zavírací tlačítko mobilního filtru — skryté na desktopu */
.filters__close { display: none; }

/* ---------- 23. Tisk ---------- */

@media print {
  .header, .footer, .filters, .toolbar, .add-btn, .btn, .toast-zone { display: none !important; }
  body { background: #fff; color: #000; }
}
