/* =====================================================================
   Kamenné prodejny Kratomuj — Ostrava, Pardubice + blok v patičce
   Nahrát na FTP:   /user/documents/nase-prodejna/prodejny.css
   Načíst v Shoptetu (Vzhled a obsah → Editor → HTML kód → Záhlaví):
   <link rel="stylesheet" href="/user/documents/nase-prodejna/prodejny.css?v=1.0">
   Při každé změně souboru zvyšte číslo za ?v=, ať se nenačte stará verze z cache.
   ===================================================================== */

#kmStore {
  --km-green: #73a022;
  --km-purple: #4f22a0;
  --km-purple-dark: #421c87;
  --km-ink: #423f3f;
  --km-text: #5b5b5b;
  --km-muted: #8a8a8a;
  --km-line: #dae6da;
  --km-grey: #f6f6f6;
  --km-radius: 14px;
  max-width: 1146px;
  margin: 0 auto;
  text-align: left;
}

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

#kmStore p:not(.km-faq *) {
  max-width: none;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--km-text);
}
#kmStore p:not(.km-faq *):last-child { margin-bottom: 0; }
#kmStore p:not(.km-faq *) strong, #kmStore li strong { color: var(--km-ink); font-weight: 700; }
#kmStore .km-hl { color: var(--km-green) !important; font-weight: 700; }
#kmStore a:not(.km-faq *) { color: var(--km-purple); }
#kmStore p:not(.km-faq *) a, #kmStore li a { font-weight: 700; }
#kmStore img { max-width: 100%; height: auto; display: block; }

/* ---------- Sekce a nadpisy ---------- */

#kmStore .km-sec { margin: 0 0 76px; }
#kmStore .km-sec--tight { margin-bottom: 48px; }

#kmStore h2 {
  margin: 0 0 18px;
  padding: 0;
  text-align: center;
  font-size: 32px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: var(--km-ink);
}
#kmStore h3 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--km-ink);
}
#kmStore .km-sub { margin: 44px 0 14px; text-align: center; font-size: 24px !important; }
#kmStore .km-lead { max-width: 780px; margin: 0 auto 30px; text-align: center; }

/* ---------- Tlačítka (stejná jako .purple-button na webu) ---------- */

#kmStore .km-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
#kmStore .km-btn {
  display: inline-block;
  height: 62px;
  padding: 0 50px;
  border: 2px solid var(--km-purple);
  border-radius: 31px;
  background: var(--km-purple);
  color: #fff !important;
  font-size: 18px;
  font-weight: 600 !important;
  line-height: 58px;
  text-align: center;
  text-transform: none;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
#kmStore .km-btn:hover, #kmStore .km-btn:focus {
  background: var(--km-purple-dark);
  border-color: var(--km-purple-dark);
  color: #fff !important;
}
#kmStore .km-btn--ghost { background: transparent; color: var(--km-purple) !important; }
#kmStore .km-btn--ghost:hover, #kmStore .km-btn--ghost:focus {
  background: var(--km-purple);
  border-color: var(--km-purple);
  color: #fff !important;
}
#kmStore .km-btn--sm { height: 50px; padding: 0 34px; font-size: 16px; line-height: 46px; }

/* ---------- 1. Úvod — fotka s listy a práškem + šedý box s uvozovkami ---------- */

#kmStore .km-hero { position: relative; z-index: 2; }
#kmStore .km-hero__img { position: relative; width: 790px; max-width: 100%; margin: 0 auto; }
#kmStore .km-hero__img img { width: 100%; aspect-ratio: 1190 / 669; object-fit: cover; }
#kmStore .km-hero__img::before,
#kmStore .km-hero__img::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  background-repeat: no-repeat;
  background-size: contain;
}
#kmStore .km-hero__img::before {
  left: -150px;
  transform: translate(0, -50%);
  background-image: url(https://www.kratomuj.cz/user/documents/nase-prodejna/listy.png);
  background-position: right center;
}
#kmStore .km-hero__img::after {
  right: -150px;
  transform: translate(0, -30%);
  background-image: url(https://www.kratomuj.cz/user/documents/nase-prodejna/prasek.png);
  background-position: left center;
}

#kmStore .km-quote-box { position: relative; z-index: 1; margin-top: -100px; }
#kmStore .km-quote-box__in {
  position: relative;
  margin: 0 60px;
  padding: 150px 35px 50px;
  background: var(--km-grey);
  text-align: center;
}
#kmStore .km-quote-box__in::before,
#kmStore .km-quote-box__in::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 60px;
  height: 44px;
  background-repeat: no-repeat;
  background-size: contain;
}
#kmStore .km-quote-box__in::before {
  left: -45px;
  bottom: 30px;
  background-image: url(https://www.kratomuj.cz/user/documents/nase-prodejna/uvozovky_vlevo.svg);
  background-position: right center;
}
#kmStore .km-quote-box__in::after {
  right: -45px;
  top: 130px;
  background-image: url(https://www.kratomuj.cz/user/documents/nase-prodejna/uvozovky_vpravo.svg);
  background-position: left center;
}
#kmStore .km-quote-box h2 { color: var(--km-green); font-size: 28px !important; margin-bottom: 20px; }
#kmStore .km-quote-box p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--km-ink);
}

/* ---------- 2. V kostce ----------
   Stejný vzor jako řádky na webu (.id-1108 .icons / .contact-icons):
   vycentrované sloupce se svislými oddělovači #dae6db, bez ikon. */

#kmStore .km-facts { padding: 40px 20px 38px; background: var(--km-grey); border-radius: var(--km-radius); }
#kmStore .km-facts__grid { display: flex; flex-wrap: wrap; row-gap: 30px; justify-content: center; }
#kmStore .km-fact { width: 20%; padding: 0 18px; border-right: 1px solid #dae6db; text-align: center; }
#kmStore .km-fact:last-child { border-right: 0; }
#kmStore .km-fact h3 { margin: 0 0 8px; font-size: 16px !important; }
#kmStore .km-fact p { margin: 0; font-size: 15px; line-height: 1.6; }
#kmStore .km-fact p + p { margin-top: 6px; }
#kmStore .km-fact a { font-weight: 600; }
#kmStore .km-small { font-size: 13.5px !important; color: var(--km-muted) !important; }

/* ---------- 3. Proč navštívit (jako .id-1108 .icons) ---------- */

#kmStore .km-why { display: flex; flex-wrap: wrap; row-gap: 30px; justify-content: center; text-align: center; }
#kmStore .km-why > div { width: 20%; padding: 0 16px; border-right: 1px solid #dae6db; }
#kmStore .km-why > div:last-child { border-right: 0; }
#kmStore .km-why__icon { height: 60px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
#kmStore .km-why__icon img { max-height: 60px; width: auto; }
#kmStore .km-why p { margin: 0; font-size: 15px; line-height: 1.55; }

/* ---------- 4. Druhy kratomu ---------- */

#kmStore .km-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
#kmStore .km-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0 22px 26px;
  border: 1px solid var(--km-line);
  border-radius: var(--km-radius);
  background: #fff;
  text-align: center;
}
#kmStore .km-type__img {
  display: block;
  width: calc(100% + 44px);
  margin: 0 -22px 18px;
  aspect-ratio: 423 / 318;
  overflow: hidden;
  background: #f3efe9;
}
#kmStore .km-type__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
#kmStore .km-type__img:hover img { transform: scale(1.03); }
#kmStore .km-type h3 { margin-bottom: 4px; }
#kmStore .km-type h3 a { color: var(--km-ink); text-decoration: none; }
#kmStore .km-type p { font-size: 15px; margin: 0 0 10px; }
#kmStore .km-type .km-type__more { margin: auto 0 0; padding-top: 8px; }
#kmStore .km-type .km-type__more a { font-size: 15px; }

#kmStore .km-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 34px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
#kmStore .km-rules li {
  position: relative;
  margin: 0;
  padding: 0 0 0 36px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--km-text);
}
#kmStore .km-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: url(https://www.kratomuj.cz/user/documents/nase-prodejna/kratomuj-symbol.svg) center / contain no-repeat;
}
#kmStore .km-rules li strong { display: block; }

/* ---------- 5. Kroky ---------- */

#kmStore .km-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kmstep;
  text-align: center;
}
#kmStore .km-steps li { margin: 0; padding: 0; counter-increment: kmstep; }
#kmStore .km-steps li::before {
  content: counter(kmstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--km-green);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
#kmStore .km-steps p { font-size: 15px; line-height: 1.6; }

/* ---------- 6. Doprava k nám ---------- */

#kmStore .km-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
#kmStore .km-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#kmStore .km-card { padding: 24px 22px; border: 1px solid var(--km-line); border-radius: var(--km-radius); background: #fff; }
#kmStore .km-card--grey { background: var(--km-grey); border-color: transparent; }
#kmStore .km-card--center { text-align: center; }
#kmStore .km-card__icon { height: 48px; margin: 0 auto 14px; display: flex; justify-content: center; align-items: center; }
#kmStore .km-card__icon img { max-height: 46px; width: auto; }
#kmStore .km-card h3 { font-size: 17px !important; }
#kmStore .km-card p { font-size: 15px; line-height: 1.6; }

#kmStore .km-map { margin-top: 34px; overflow: hidden; border: 1px solid var(--km-line); border-radius: var(--km-radius); background: var(--km-grey); }
#kmStore .km-map iframe { display: block; width: 100%; height: 420px; border: 0; }
#kmStore .km-map__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 22px;
  background: #fff;
}
#kmStore .km-map__bar p { margin: 0; font-size: 15px; }

/* ---------- 7. Galerie ---------- */

#kmStore .km-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#kmStore .km-gallery__item { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--km-radius); background: var(--km-grey); }
#kmStore .km-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Online ---------- */

#kmStore .km-online {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 34px 38px;
  border-radius: var(--km-radius);
  background: var(--km-grey);
}
#kmStore .km-online__icon { flex: 0 0 64px; }
#kmStore .km-online__icon img { width: 64px; height: 64px; }
#kmStore .km-online h2 { text-align: left; font-size: 26px !important; margin-bottom: 12px; }

/* ---------- 9. Recenze ---------- */

#kmStore .km-rating { margin: -4px 0 26px; text-align: center; font-size: 15px; color: var(--km-muted); }
#kmStore .km-rating strong { color: var(--km-green); font-size: 22px; }
#kmStore .km-stars { color: #f4b400; letter-spacing: 2px; font-size: 16px; }
#kmStore .km-review { display: flex; flex-direction: column; }
#kmStore .km-review .km-review__text { margin: 10px 0 14px; font-size: 15.5px; color: var(--km-ink); }
#kmStore .km-review .km-review__who { margin-top: auto; font-size: 13.5px; color: var(--km-muted); }

/* ---------- 10. Tradice ---------- */

#kmStore .km-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
#kmStore .km-split h2 { text-align: left; }
#kmStore .km-photos { display: grid; gap: 14px; }
#kmStore .km-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--km-radius); }

#kmStore .km-license {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--km-radius);
  background: var(--km-grey);
}
#kmStore .km-license h3 { font-size: 17px !important; margin-bottom: 4px; }
#kmStore .km-license p { font-size: 15px; margin-bottom: 4px; }

/* ---------- 11. Rodina ---------- */

#kmStore .km-family { max-width: 820px; margin: 0 auto; text-align: center; }
#kmStore .km-family p { font-size: 16.5px; }
#kmStore .km-sign { margin-top: 22px; }
#kmStore .km-sign strong { display: block; font-size: 20px; color: var(--km-ink); }
#kmStore .km-sign span { font-size: 15px; color: var(--km-muted); }

/* ---------- 12. FAQ ----------
   Vzhled i chování přebírá z webu (stejně jako FAQ na /o-nas/):
   .custom-page .faq (main.css), .faq-d / .faq-text (SMupravy/code.min.css),
   rozbalování main.js. Obecná pravidla #kmStore se FAQ nedotýkají (:not(.km-faq *)).
   Jediná výjimka: na stránce Ostravy platí .id-1108 .content p (šířka 750 px,
   odsazení 40 px, 17 px), které by odpovědi zúžilo — tady ho rušíme a velikost
   necháváme zdědit z .faq-text. */

#kmStore .km-faq { margin-top: 30px; }
#kmStore .km-faq .faq-text p {
  max-width: none;
  margin: 0 0 19px;
  font-size: inherit;
  line-height: inherit;
}

/* ---------- 13. Potřebujete poradit? (původní blok) ---------- */

#kmStore .km-keep { margin-bottom: 76px; text-align: center; }
#kmStore .km-keep .potrebujete-poradit > div { max-width: 680px; margin: 0 auto; }
#kmStore .km-keep .potrebujete-poradit img { display: inline-block; }
#kmStore .km-keep h3 { font-size: 32px !important; text-align: center; margin: 12px 0 14px; }
#kmStore .km-keep p { font-size: 17px; text-align: center; }
#kmStore .km-keep p strong { color: var(--km-green); }
#kmStore .km-keep .contact-icons { display: flex; justify-content: center; margin: 30px 0 0; }
#kmStore .km-keep .contact-icons > div { padding: 24px 30px; }
#kmStore .km-keep .contact-icons p { margin: 0; }
#kmStore .km-keep .contact-icons .phone { border-right: 1px solid #dae6db; }
#kmStore .km-keep .contact-icons .icon { height: 35px; margin-bottom: 10px; }
#kmStore .km-keep .contact-icons .icon img { max-height: 35px; width: auto; margin: 0 auto; }

/* ---------- 14. Navštivte nás ---------- */

#kmStore .km-visit { padding: 46px 34px; border-radius: var(--km-radius); background: var(--km-grey); text-align: center; }
#kmStore .km-visit p { max-width: 760px; margin: 0 auto; font-size: 17px; }

/* ---------- Responzivita ---------- */

@media (max-width: 1199px) {
  #kmStore .km-fact, #kmStore .km-why > div { width: 33.33%; }
  #kmStore .km-fact:nth-child(3n), #kmStore .km-why > div:nth-child(3n) { border-right: 0; }
  #kmStore .km-hero__img::before, #kmStore .km-hero__img::after { display: none; }
}

@media (max-width: 991px) {
  #kmStore .km-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  #kmStore .km-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #kmStore .km-split { grid-template-columns: 1fr; gap: 30px; }
  #kmStore .km-photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  #kmStore .km-fact, #kmStore .km-why > div,
  #kmStore .km-fact:nth-child(3n), #kmStore .km-why > div:nth-child(3n) { width: 50%; border-right: 1px solid #dae6db; }
  #kmStore .km-fact:nth-child(even), #kmStore .km-why > div:nth-child(even), #kmStore .km-fact:last-child, #kmStore .km-why > div:last-child { border-right: 0; }
  #kmStore .km-facts { padding: 30px 12px; }
  #kmStore .km-sec { margin-bottom: 56px; }
  #kmStore h2 { font-size: 25px !important; }
  #kmStore .km-sub { font-size: 21px !important; margin-top: 34px; }
  #kmStore .km-quote-box__in { margin: 0 30px; padding: 130px 22px 24px; }
  #kmStore .km-quote-box h2 { font-size: 21px !important; }
  #kmStore .km-quote-box p { font-size: 15.5px; }
  #kmStore .km-types, #kmStore .km-cards, #kmStore .km-cards--4, 
  #kmStore .km-rules { grid-template-columns: 1fr; }
  #kmStore .km-gallery { grid-template-columns: 1fr; }
  #kmStore .km-online { flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 16px; }
  #kmStore .km-online h2 { font-size: 22px !important; }
  #kmStore .km-map iframe { height: 320px; }
  #kmStore .km-visit { padding: 34px 20px; }
  #kmStore .km-btn { height: 50px; padding: 0 22px; font-size: 14px; line-height: 46px; }
  #kmStore .km-btns { flex-direction: column; align-items: stretch; }
  #kmStore .km-keep .contact-icons > div { padding: 20px 14px; }
}

@media (max-width: 420px) {
  #kmStore .km-steps { grid-template-columns: 1fr; }
}

/* =====================================================================
   Patička — banner „Kamenné prodejny" (obsah banneru je v paticka-prodejny.html)
   ===================================================================== */

.km-stores { padding-top: 6px; text-align: left; }
.km-stores *, .km-stores *::before, .km-stores *::after { box-sizing: border-box; }
.km-stores__item + .km-stores__item { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e4e4e4; }
.km-stores p { margin: 0; font-style: normal; }
.km-stores .km-stores__name { margin-bottom: 12px; font-size: 16px; font-weight: 700; color: #423f3f; }
.km-stores__row { display: flex; gap: 16px; align-items: center; }
.km-stores__photo {
  flex: 0 0 84px;
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #dae6da;
}
.km-stores__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.km-stores__info { min-width: 0; font-size: 14px; line-height: 1.5; color: #666; }
.km-stores .km-stores__adr { color: #423f3f; font-weight: 600; }
.km-stores__adr span { display: block; font-size: 12.5px; font-weight: 400; color: #8a8a8a; }
.km-stores .km-stores__tel { margin-top: 4px; }
.km-stores__tel a { color: #423f3f !important; font-weight: 600; text-decoration: none !important; }
.km-stores .km-stores__hours { font-size: 12.5px; color: #8a8a8a; }
.km-stores__more { display: inline-block; margin-top: 4px; color: #4f22a0 !important; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
