/* Uvodni stranka: bannery a posuvne pasy produktu (vzor poporostem.cz).
   Selektory pod .hp-home (.hp je honeypot ve vyloha.css), aby prebily pravidla vyloha.css nactena az po tomto
   souboru (link je v bloku meta sablony home.html). */

/* ---------- bannery ---------- */
.hp-home .hp-hero { position: relative; margin: 0 calc(50% - 50vw); }
.hp-home .hp-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; position: relative; }
.hp-home .hp-hero__track::-webkit-scrollbar { display: none; }
.hp-home .hp-hero__slide { position: relative; display: block; flex: 0 0 100%; aspect-ratio: 2030 / 772;
  scroll-snap-align: start; background: #fff; color: var(--heading); text-decoration: none; overflow: hidden; }
.hp-home .hp-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* banner s textem v HTML: fotka vlevo (sikma hrana je soucasti obrazku),
   text na bilem poli vpravo; pomer 1190 / 2030 = sirka fotky ve vzoru */
.hp-home .hp-hero__slide--text img { width: 58.62%; object-position: left center; }
.hp-home .hp-hero__txt { position: absolute; top: 0; right: 0; bottom: 0; width: 41.38%; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 3%;
  text-align: center; }
.hp-home .hp-hero__title { font-size: clamp(22px, 2.75vw, 40px); line-height: 1.2; font-weight: 600; color: #111; }
.hp-home .hp-hero__text { font-size: clamp(13px, 1.1vw, 16px); line-height: 1.4; color: var(--text); }
.hp-home .hp-hero__cta { margin-top: clamp(12px, 2.6vw, 48px); padding: 11px 30px; background: var(--green);
  color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.hp-home .hp-hero__slide:hover .hp-hero__cta { background: var(--accent); }
.hp-home .hp-hero__dots { display: none; }

/* sipky banneru i pasu: bily kruh se stinem (vzor pasu .cz) */
.hp-home .hp-arrow { display: none; }
.js .hp-home .hp-arrow { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--heading); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer; }
.js .hp-home .hp-arrow svg { width: 20px; height: 20px; }
.js .hp-home .hp-arrow--prev svg { transform: scaleX(-1); }
.js .hp-home .hp-arrow:disabled { display: none; }
.js .hp-home .hp-hero .hp-arrow { top: 50%; transform: translateY(-50%); }
.js .hp-home .hp-hero .hp-arrow--prev { left: 20px; }
.js .hp-home .hp-hero .hp-arrow--next { right: 20px; }

/* ---------- pasy produktu: desktop posuvny pas (4 karty, sipky) ---------- */
.hp-home .hp-strip { position: relative; }
@media (min-width: 641px) {
  .hp-home .hp-block--strip .grid { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; }
  .hp-home .hp-block--strip .grid::-webkit-scrollbar { display: none; }
  .hp-home .hp-block--strip .card { flex: 0 0 calc((100% - 78px) / 4); scroll-snap-align: start; }
  .js .hp-home .hp-strip .hp-arrow { top: 160px; transform: translateY(-50%); }
  .js .hp-home .hp-strip .hp-arrow--prev { left: -16px; }
  .js .hp-home .hp-strip .hp-arrow--next { right: -16px; }
}
@media (min-width: 641px) and (max-width: 999px) {
  .hp-home .hp-block--strip .card { flex-basis: calc((100% - 52px) / 3); }
  .js .hp-home .hp-strip .hp-arrow { top: 120px; }
  .js .hp-home .hp-strip .hp-arrow--prev { left: -6px; }
  .js .hp-home .hp-strip .hp-arrow--next { right: -6px; }
}

/* ---------- mobil: ctvercove bannery posuvne prstem, tecky ---------- */
@media (max-width: 640px) {
  /* main ma na mobilu odsazeni 20 px (jako pasy: .hp-block .grid) */
  .hp-home .hp-hero { --gutter: 20px; margin: 12px calc(-1 * var(--gutter)) 0; }
  .hp-home .hp-hero__track { gap: 8px; padding: 0 20px; scroll-padding: 0 20px; }
  .hp-home .hp-hero__slide { flex: 0 0 calc(100vw - 60px); aspect-ratio: 1 / 1; border-radius: 8px; }
  .hp-home .hp-hero__slide--text img { width: 100%; }
  .hp-home .hp-hero__txt { top: auto; left: 0; width: auto; align-items: flex-start; justify-content: flex-end;
    gap: 6px; padding: 48px 16px 16px; text-align: left;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); }
  .hp-home .hp-hero__title { font-size: 22px; line-height: 1.25; color: #fff; }
  .hp-home .hp-hero__text { font-size: 14px; color: #fff; }
  .hp-home .hp-hero__cta { margin-top: 10px; padding: 12px 20px; border-radius: 6px; font-weight: 600;
    text-transform: none; letter-spacing: 0; }
  .js .hp-home .hp-hero .hp-arrow { display: none; }
  .hp-home .hp-hero__dots { display: flex; justify-content: center; gap: 10px; margin: 14px 0 0; }
  .hp-home .hp-hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px;
    background: #d0d0d0; cursor: pointer; }
  .hp-home .hp-hero__dots button[aria-current] { width: 22px; background: var(--accent); }
  .js .hp-home .hp-strip .hp-arrow { display: none; }
}
