/* ═══════════════════════════════════════════════════════════
   prodejna-nusle.css  –  pouze třídy s prefixem ta-
   Desktop Figma: 997:45536 (1920px canvas)
   Mobil Figma:   1243:78312 (375px canvas)
   ═══════════════════════════════════════════════════════════ */

/* ── Tokeny ───────────────────────────────────────────────── */
:root {
  --ta-blue:       #1125a9;
  --ta-biege:      #ddc9bb;
  --ta-offwhite:   #faf7f4;
  --ta-light-blue: #e6eaff;
  --ta-green:      #136724;
  --ta-gray:       #595959;
  --ta-shadow:     0 4px 14px rgba(0,0,0,.25);
  --ta-r:          5px;
  --ta-font:       'SetupGrotesk', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Content wrapper ──────────────────────────────────────── */
/* Desktop: margin 250px (z 1920px canvasu), max šířka 1420px */
.ta-wrap {
  max-width: 1420px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Vertikální mezery – .ta-section přidá top margin */
.ta-section { margin-top: 20px; }

/* ══════════════════════════════════════════════════════════
   HERO – offwhite pás: H1 + kontaktní banner
   Shoptet generuje breadcrumbs automaticky (nad tímto blokem)
   ta-hero roztáhne bg přes celou šířku viewportu
   ══════════════════════════════════════════════════════════ */
.ta-hero {
  background: var(--ta-offwhite);
  padding-top: 24px;
  padding-bottom: 40px;
  /* Roztáhnout přes celou šířku bez ohledu na container */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
/* Uvnitř hero wrappujeme contentem na max 1420px */
.ta-hero .ta-wrap {
  margin-left: auto;
  margin-right: auto;
}

/* H1 – Desktop 36px, centrovaný */
.ta-h1 {
  font-family: var(--ta-font);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
  text-align: left;
  margin: 0 0 24px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   KONTAKTNÍ BANNER
   Desktop: flex řada, bílý rect 1420×147, border biege
   Rozložení (x): text 299 | Eliška 859 | telefon 1096 | email 1359
   ══════════════════════════════════════════════════════════ */
.ta-contact-banner {
  background: #fff;
  border: 1px solid var(--ta-biege);
  border-radius: var(--ta-r);
  min-height: 147px;
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 16px 32px;
  box-sizing: border-box;
  margin-top: 24px;
}

/* Banner layout (gap nastaven výše) : text (flex-grow, zabere levou část) | person | telefon | email
   Figma x-pozice: text=63951 (w=484), Eliška≈64599, telefon=64749, email=65011
   Mezery: text→Eliška=164px, Eliška→telefon≈52px, telefon→email≈52px
   Řešení: text dostane flex:1, pravé tři bloky mají gap: 52px */
.ta-contact-banner__text {
  flex: 0 0 484px;      /* přesná šířka z Figmy */
  display: flex;
  flex-direction: column;
  margin-right: auto;   /* odtlačí Elišku+telefon+email doprava */
}
.ta-contact-banner__person {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.ta-contact-banner__col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.ta-contact-banner__title {
  font-family: var(--ta-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  margin: 0 0 2px;
}
.ta-contact-banner__sub {
  font-family: var(--ta-font);
  font-size: 16px;
  color: var(--ta-gray);
  margin: 0;
  line-height: 1.6;
}

/* Avatar + Eliška */
.ta-contact-banner__person {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.ta-avatar {
  width: 71px; height: 71px;
  border-radius: var(--ta-r);
  background: var(--ta-biege);
  overflow: hidden;
  flex-shrink: 0;
}
.ta-avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-contact-banner__name {
  font-family: var(--ta-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  margin: 0 0 2px;
}

/* Telefon + email */
.ta-contact-banner__phone {
  font-family: var(--ta-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--ta-blue);
  text-decoration: underline;
  line-height: 1.6;
  margin-bottom: 2px;
}
.ta-contact-banner__phone:hover,
.ta-contact-banner__email:hover { opacity: .8; }

/* Zelená tečka vedle hodin v kontaktním banneru */
.ta-contact-banner__hours-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ta-green);
  flex-shrink: 0;
}

.ta-contact-banner__hours {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ta-font);
  font-size: 14px;
  color: var(--ta-gray);
  line-height: 1.6;
}
.ta-contact-banner__email {
  font-family: var(--ta-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--ta-blue);
  text-decoration: underline;
  line-height: 1.6;
  margin-bottom: 2px;
}

/* ══════════════════════════════════════════════════════════
   OBECNÁ KARTA (offwhite bg, border-radius 5px)
   ══════════════════════════════════════════════════════════ */
.ta-card {
  background: #faf7f4;
  border-radius: var(--ta-r);
  padding: 28px;
  box-sizing: border-box;
  /* Šířka = 1/3 dostupného prostoru (včetně kompenzace gapů) */
  flex: 0 0 calc((100% - 40px) / 3);
  height: 368px;
  overflow: hidden;
}
.ta-card__h2 {
  font-family: var(--ta-font);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  margin: 0;
}

/* Nadpis + badge "Otevřeno" na jednom řádku */
.ta-card__h2-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════
   STATUS BADGE (zelená tečka + text)
   ══════════════════════════════════════════════════════════ */
.ta-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: var(--ta-r);
  padding: 2px 8px;
  font-family: var(--ta-font);
  font-size: 14px;
  line-height: 1.6;
}
.ta-status--open .ta-status__text  { color: var(--ta-green); }
.ta-status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ta-green);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TABULKA HODIN
   ══════════════════════════════════════════════════════════ */
.ta-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;         /* mezera mezi řádky */
  font-family: var(--ta-font);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}
.ta-hours__row {
  display: flex;
  align-items: center;
  gap: 16px;        /* mezera mezi sloupci */
}
.ta-hours__date {
  width: 40px;
  flex-shrink: 0;
  color: #000;
}
.ta-hours__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;  /* text na střed bílého bloku */
  background: #fff;
  border-radius: var(--ta-r);
  padding: 0 10px;
  height: 23px;
  min-width: 75px;
  font-size: 14px;
  color: #000;
  margin-right: 10px;
}
.ta-hours__time { color: #000; }
.ta-hours__time--closed { color: var(--ta-gray); }

/* ══════════════════════════════════════════════════════════
   ŘADA: karta 460px + 3× foto 460×368
   ══════════════════════════════════════════════════════════ */
.ta-row-photos {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow: hidden;
  max-width: 1420px;  /* karta 460 + foto 460 + foto 460 + 2×gap 20 */
}
/* Karta v řadě fotek – stejná výška jako foto */
.ta-card--hours { /* výška zděděna z .ta-card */ }

/* Foto wrapper */
.ta-photo {
  flex: 0 0 calc((100% - 40px) / 3);
  height: 368px;
  border-radius: var(--ta-r);
  overflow: hidden;
  background: var(--ta-biege);
  position: relative;
}
.ta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Badge přes foto */
.ta-photo__badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  margin-bottom: 0;
}

/* 3. foto – jen nad 1500px */
.ta-photo--desktop-only { display: none; }
@media (min-width: 1500px) { .ta-photo--desktop-only { display: block; } }

/* Mobil-specific fotky (mezi adresou a mapou) – skryté na desktopu */
.ta-mobile-photos { display: none; }

/* ══════════════════════════════════════════════════════════
   ŘADA: karta 460px + mapa 940×368
   ══════════════════════════════════════════════════════════ */
.ta-row-map {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow: hidden;
  max-width: 1420px;  /* karta 460 + mapa 940 + gap 20 */
}
.ta-card--address {
  /* Stejná šířka jako karta hodin */
  flex: 0 0 calc((100% - 40px) / 3);
  height: 368px;
  overflow: hidden;
  background: var(--ta-offwhite);
}

/* Adresa */
.ta-address {
  font-family: var(--ta-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  font-style: normal;
  margin: 0 0 20px;
}
.ta-address { font-weight: 400; }

/* Tagy */
.ta-tags { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.ta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ta-biege);
  border: 1px solid var(--ta-biege);
  border-radius: var(--ta-r);
  padding: 2px 8px;
  font-family: var(--ta-font);
  font-size: 14px;
  line-height: 1.6;
  color: #000;
  width: fit-content;
}
.ta-tag__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
}

/* Tlačítko outline */
.ta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--ta-blue);
  border-radius: var(--ta-r);
  color: var(--ta-blue);
  background: transparent;
  font-family: var(--ta-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: opacity .2s;
  cursor: pointer;
}
.ta-btn-outline:hover { opacity: .8; }

/* Tlačítko v kartě adresa – mezera pod tlačítkem před tagy */
.ta-card--address .ta-btn-outline { margin-bottom: 20px; }

/* Mapa */
.ta-map {
  flex: 2;
  height: 368px;
  border-radius: var(--ta-r);
  overflow: hidden;
  min-width: 0;
}

/* Link */
.ta-link { color: var(--ta-blue); text-decoration: underline; }
.ta-link:hover { opacity: .75; }

/* ══════════════════════════════════════════════════════════
   NADPISY SEKCÍ
   Desktop: 32px, Mobil: 26px
   ══════════════════════════════════════════════════════════ */
.ta-section-h2 {
  font-family: var(--ta-font);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  margin: 0 0 32px;
}
.ta-section-h2--center { text-align: center; }

/* ══════════════════════════════════════════════════════════
   KUDY K NÁM – 3 karty 460×305
   ══════════════════════════════════════════════════════════ */
.ta-row-three {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.ta-dir-card {
  background: var(--ta-offwhite);
  border-radius: var(--ta-r);
  width: 460px;
  min-height: 305px;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ta-dir-card__icon { margin-bottom: 16px; height: 32px; display: flex; align-items: center; }
.ta-dir-card__h3 {
  font-family: var(--ta-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  margin: 0 0 16px;
}
.ta-dir-card__text {
  font-family: var(--ta-font);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   GALERIE fotek + šipky + tečky
   Desktop: 3 slidy najednou, šipky skryté
   Mobil: 1 slide, šipky viditelné
   ══════════════════════════════════════════════════════════ */
.ta-gallery {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ta-gallery__track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 460px);
  gap: 20px;
  overflow: hidden;
}
/* Na desktopu – všechny 3 slidy viditelné */
.ta-gallery__slide {
  width: 460px;
  height: 368px;
  border-radius: var(--ta-r);
  overflow: hidden;
  background: var(--ta-biege);
}
.ta-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Šipky (31×31, light-blue) */
.ta-gallery__arrow {
  flex-shrink: 0;
  width: 31px; height: 31px;
  background: var(--ta-light-blue);
  border: none;
  border-radius: var(--ta-r);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s;
  padding: 0;
}
.ta-gallery__arrow:hover { opacity: .75; }

/* Galerie: šipky vždy viditelné; na velkém desktopu (1500px+)
   kde se vejdou všechny 3 slidy najednou, šipky schováme */
@media (min-width: 1500px) {
  .ta-gallery__arrow { display: none; }
  .ta-gallery { gap: 0; }
  .ta-gallery__track {
    overflow: visible;
    grid-template-columns: repeat(3, 460px);
  }
  .ta-gallery__slide { display: block !important; }
  .ta-gallery__dots  { display: none; }
}

/* Tečky (10px, gap 5px) */
.ta-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
}
.ta-gallery__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ta-biege);
  transition: background .2s;
}
.ta-gallery__dot--active { background: var(--ta-blue); }
/* Na desktopu tečky schováme */
@media (min-width: 1500px) { .ta-gallery__dots { display: none; } }

/* ══════════════════════════════════════════════════════════
   FAQ – border top/bottom, 2 sloupce 700px desktop
   ══════════════════════════════════════════════════════════ */
.ta-faq-zone {
  border-top: 1px solid var(--ta-biege);
  border-bottom: 1px solid var(--ta-biege);
  padding-top: 67px;
  padding-bottom: 70px;
}
.ta-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 700px);
  gap: 16px 20px;
  justify-content: center;
}
.ta-faq__item {
  border: 1px solid var(--ta-biege);
  border-radius: var(--ta-r);
  overflow: hidden;
}
.ta-faq__item[open] {
  background: var(--ta-offwhite);
  box-shadow: var(--ta-shadow);
}
.ta-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 25px;
  cursor: pointer;
  list-style: none;
  font-family: var(--ta-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #000;
  min-height: 70px;
  user-select: none;
  margin: 0;
}
.ta-faq__q::-webkit-details-marker { display: none; }
.ta-faq__item[open] .ta-faq__q { color: var(--ta-blue); }
.ta-faq__chevron {
  flex-shrink: 0;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%23DDC9BB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s;
}
.ta-faq__item[open] .ta-faq__chevron {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%231125a9' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ta-faq__a {
  padding: 0 25px 24px;
  font-family: var(--ta-font);
  font-size: 14px;
  line-height: 1.6;
  color: #000;
}
.ta-faq__a p { margin: 0 0 10px; }
.ta-faq__a p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   RESPONZIVITA – Figma mobil: 375px canvas, padding 10px
   ══════════════════════════════════════════════════════════ */

/* Střední viewporty 768–1499px */
@media (max-width: 1499px) {
  /* ta-wrap padding je již 20px globálně */
  /* Galerie: 2 slidy najednou, šipky pro 3. */
  .ta-gallery__track {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
  .ta-gallery__slide { width: auto; display: block; }
  .ta-gallery__slide:nth-child(3) { display: none; }
  /* Šipky viditelné na středním desktopu */
  .ta-gallery__arrow { display: flex !important; }
  .ta-gallery__dots  { display: flex; }
}

/* Tablet 992px – přeskládat na sloupce */
@media (max-width: 1200px) {
  .ta-row-photos,
  .ta-row-map {
    flex-wrap: wrap;
  }
  .ta-card,
  .ta-card--hours,
  .ta-card--address,
  .ta-photo,
  .ta-map {
    width: 100% !important;
    flex: none !important;
  }
  .ta-card--hours { height: auto !important; }
  .ta-map { height: 300px !important; }
  .ta-row-three { flex-wrap: wrap; }
  .ta-dir-card { width: 100% !important; min-height: auto; }
  .ta-faq-grid { grid-template-columns: 1fr 1fr; }
  .ta-gallery__track { grid-template-columns: 1fr 1fr; }
}

/* Mobil – Figma 375px canvas: padding 10px, fonty menší */
@media (max-width: 767px) {
  .ta-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
  .ta-h1 {
    font-size: 30px;
    white-space: normal;
    text-align: left;
  }
  .ta-hero {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .ta-contact-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: auto;
    padding: 20px 20px;
    margin-top: 16px;
  }
  .ta-contact-banner__text,
  .ta-contact-banner__person,
  .ta-contact-banner__col { flex: none; width: 100%; }
  .ta-contact-banner__title { font-size: 22px; }  /* H3 Mobil */
  .ta-contact-banner__phone { font-size: 20px; }
  .ta-contact-banner__email { font-size: 18px; }

  .ta-section-h2 { font-size: 26px; }  /* H2 Mobil */

  /* Karta hodin – full width, bez fixed výšky */
  .ta-card--hours { height: auto !important; }

  /* Fotky v sekci "hodiny" – na mobilu zobrazit jen 2 (Figma y=1110 a y=1404) */
  .ta-row-photos .ta-photo { display: none !important; }

  /* Adresní sekce – mobil: karty 355px, pak 2 fotos, pak mapa */
  .ta-mobile-photos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    order: 2;
  }
  .ta-photo--mobile-med {
    width: 100% !important;
    height: 284px !important;
    display: block !important;
  }
  .ta-row-map {
    flex-direction: column;
    gap: 10px;
  }
  .ta-map {
    width: 100% !important;
    height: 368px !important;
    order: 3;
  }
  .ta-card--address { order: 1; }

  /* Galerie – 1 slide, šipky vždy viditelné */
  .ta-gallery__track {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .ta-gallery__slide {
    width: 100%;
    height: 260px;
    display: none;
  }
  .ta-gallery__slide--active { display: block; }
  .ta-gallery { gap: 8px; }
  .ta-gallery__arrow { display: flex !important; }
  .ta-gallery__dots { display: flex !important; }

  /* FAQ – 1 sloupec */
  .ta-faq-grid { grid-template-columns: 1fr; }
  .ta-faq-zone { padding-top: 40px; padding-bottom: 40px; }

  /* Kudy k nám – 3 pod sebou */
  .ta-row-three {
    flex-direction: column;
    gap: 10px;
  }
  .ta-dir-card { text-align: center; padding: 24px 20px; }
}