/*
 * ============================================================
 *  06 – HOMEPAGE
 *  Styly specifické pro titulní stránku primakoupelny.cz
 *  Pořadí načítání: za 05-obsahove-komponenty.css
 *  Poslední revize: 2026-04
 * ============================================================
 */


/* =============================================================
   PK BANNER CAROUSEL – multi-card portrait
   HTML třída: .pk-carousel
   Zobrazení: 4 bannery najednou (desktop), posun o 1
   Rozměr banneru: 665 × 1000 px (aspect-ratio 665/1000)
   Responzivní: 4 → 3 → 2 → 1
   ============================================================= */

:root {
  --pk-carousel-gap:    8px;   /* mezera mezi bannery; stejnou hodnotu má GAP v JS */
  --pk-carousel-radius: 10px;  /* zaoblení rohů každého banneru */
}

/* Hlavní wrapper – overflow: visible → šipky přesahují přes okraj */
.pk-carousel {
  position: relative;
  margin:   0 0 20px;
}

/* Viewport – ořezává přetékající snímky */
.pk-carousel__viewport {
  overflow:      hidden;
  border-radius: var(--pk-carousel-radius);
}

/* Posuvná lišta */
.pk-carousel__track {
  display:     flex;
  gap:         var(--pk-carousel-gap);
  transition:  transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Jeden snímek – šířka = (100% – 3 × gap) / 4 */
.pk-carousel__slide {
  flex:          0 0 calc((100% - 3 * var(--pk-carousel-gap)) / 4);
  border-radius: var(--pk-carousel-radius);
  overflow:      hidden;
  position:      relative;
}

.pk-carousel__slide a {
  display: block;
  width:   100%;
  height:  100%;
}

/* Banner obrázek – poměr 665:1000 (portrait), hover zoom */
.pk-carousel__slide img {
  display:      block;
  width:        100%;
  aspect-ratio: 665 / 1000;
  object-fit:   cover;
  transition:   transform .4s cubic-bezier(.4, 0, .2, 1);
}

.pk-carousel:not(.is-dragging) .pk-carousel__slide:hover img {
  transform: scale(1.03);
}


/* =============================================================
   ŠIPKY
   ============================================================= */

.pk-carousel__arrow {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  z-index:         10;
  width:           46px;
  height:          46px;
  border-radius:   50%;
  background:      rgba(255, 255, 255, .93);
  border:          none;
  cursor:          pointer;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         0;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity .2s ease, background .2s ease, transform .15s ease;
  box-shadow:      0 2px 8px rgba(0, 0, 0, .12);
}

.pk-carousel:hover .pk-carousel__arrow {
  opacity:        1;
  pointer-events: auto;
}

.pk-carousel__arrow:hover {
  background: #fff;
  transform:  translateY(-50%) scale(1.1);
}

.pk-carousel__arrow.is-hidden {
  opacity:        0 !important;
  pointer-events: none !important;
}

.pk-carousel__arrow:focus-visible {
  outline:        2px solid var(--color-primary, #00a8ee);
  outline-offset: 2px;
}

/* Šipky přesahují přes okraj viewportu */
.pk-carousel__arrow--prev { left:  -22px; }
.pk-carousel__arrow--next { right: -22px; }

.pk-carousel__arrow svg {
  width:            18px;
  height:           18px;
  stroke:           var(--color-text, #24242E);
  stroke-width:     2.2;
  fill:             none;
  stroke-linecap:   round;
  stroke-linejoin:  round;
  pointer-events:   none;
}

/* Kurzor při přetahování */
.pk-carousel.is-dragging              { cursor: grabbing; }
.pk-carousel:not(.is-dragging)
  .pk-carousel__slide                  { cursor: grab; }
.pk-carousel__slide a                 { cursor: pointer; }


/* =============================================================
   TEČKY (DOTS)
   ============================================================= */

.pk-carousel__dots {
  display:         flex;
  justify-content: center;
  gap:             8px;
  margin-top:      12px;
}

.pk-carousel__dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    #ccc;
  border:        none;
  cursor:        pointer;
  padding:       0;
  transition:    background .2s ease, transform .2s ease;
}

.pk-carousel__dot.is-active {
  background: var(--color-primary, #00a8ee);
  transform:  scale(1.5);
}

.pk-carousel__dot:focus-visible {
  outline:        2px solid var(--color-primary, #00a8ee);
  outline-offset: 2px;
}


/* =============================================================
   RESPONZIVITA
   ============================================================= */

/* Tablet (992px a méně) – 3 vedle sebe */
@media (max-width: 992px) {
  .pk-carousel__slide {
    flex: 0 0 calc((100% - 2 * var(--pk-carousel-gap)) / 3);
  }

  .pk-carousel__arrow--prev { left:  -18px; }
  .pk-carousel__arrow--next { right: -18px; }
}

/* Malý tablet (767px a méně) – 2 vedle sebe, šipky vždy viditelné */
@media (max-width: 767px) {
  .pk-carousel__slide {
    flex: 0 0 calc((100% - var(--pk-carousel-gap)) / 2);
  }

  .pk-carousel__arrow {
    opacity:        1;
    pointer-events: auto;
    width:          38px;
    height:         38px;
  }

  .pk-carousel__arrow--prev { left:  8px; }
  .pk-carousel__arrow--next { right: 8px; }

  .pk-carousel__arrow svg {
    width:  15px;
    height: 15px;
  }
}

/* Mobil (480px a méně) – 1 banner přes celou šířku */
@media (max-width: 480px) {
  .pk-carousel__slide {
    flex: 0 0 100%;
  }
}


/* =============================================================
   ÚVODNÍ KATEGORIE – vzdušný layout (3 bannery v řadě)
   HTML třída: .pk-cat-grid  /  .pk-cat-card
   Nahrazuje původní .uvodni-kategorie s Bootstrap .row/.col-sm-4
   ============================================================= */

.pk-cat-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 16px !important;
  margin: 0 0 16px !important;
  list-style: none !important;
}

.pk-cat-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  padding: 36px 40px 32px !important;
  min-height: 340px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.pk-cat-card__content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 60% !important;
}

.pk-cat-card__img {
  position: absolute !important;
  right: -5% !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  z-index: 0 !important;
  height: 175% !important;
  width: auto !important;
  max-width: 75% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center right !important;
  pointer-events: none !important;
  display: block !important;
}

.pk-cat-card__tag {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #666 !important;
  margin-bottom: 8px !important;
}

.pk-cat-card h3 {
  margin: 0 0 4px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
  text-transform: uppercase !important;
  letter-spacing: .01em !important;
  line-height: 1.2 !important;
}

.pk-cat-card__desc {
  font-size: 12px !important;
  color: #555 !important;
  margin: 0 0 14px !important;
}

.pk-cat-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
}

.pk-cat-card ul li {
  margin: 4px 0 !important;
}

.pk-cat-card ul li a {
  font-size: 13px !important;
  color: #222 !important;
  text-decoration: none !important;
}

.pk-cat-card ul li a:hover {
  color: var(--color-primary, #00a8ee) !important;
  text-decoration: underline !important;
}

.pk-cat-card__all {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  text-decoration: none !important;
  border-bottom: 2px solid #1a1a2e !important;
  padding-bottom: 1px !important;
  border-radius: 0 !important;
}

.pk-cat-card__all:hover {
  color: var(--color-primary, #00a8ee) !important;
  border-color: var(--color-primary, #00a8ee) !important;
}


/* =============================================================
   BARVY POZADÍ – jednotlivé kategorie
   ============================================================= */

.pk-cat-card.c-baterie { background: #f4f0ec !important; }
.pk-cat-card.c-sprchy  { background: #ede8f8 !important; }
.pk-cat-card.c-vany    { background: #eaf3e2 !important; }
.pk-cat-card.c-zebriky { background: #faeaea !important; }
.pk-cat-card.c-nabytek { background: #ddf0e2 !important; }
.pk-cat-card.c-program { background: #ede8f8 !important; }


/* =============================================================
   RESPONZIVITA (.pk-cat-grid)
   ============================================================= */

@media (max-width: 991px) {
  .pk-cat-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .pk-cat-card {
    padding: 28px 28px 26px !important;
    min-height: 280px !important;
  }
}

@media (max-width: 767px) {
  .pk-cat-grid {
    grid-template-columns: 1fr !important;
  }

  .pk-cat-card {
    min-height: auto !important;
    padding: 28px 24px 28px !important;
  }

  .pk-cat-card__content {
    max-width: 100% !important;
  }

  .pk-cat-card__img {
    display: none !important;
  }
}
