/**
 * Ortotické centrum – štýly vnútorných stránok
 *
 * Referencia: implementovaná homepage (site.css)
 * Načítavať VŽDY po site.css:  <link rel="stylesheet" href="assets/css/pages.css" />
 *
 * Homepage komponenty (header, footer, .btn, .form, .eyebrow…) ostávajú v site.css.
 * Tento súbor definuje layout a bloky pre podstránky.
 */

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page__main {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Page hero (jednoduchší ako homepage .hero)
   -------------------------------------------------------------------------- */

.pageHero {
  padding: var(--page-hero-pad-y) 0;
  background: var(--bg);
}

.pageHero--soft::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 120% at 85% 40%,
    rgba(240, 232, 246, 0.45) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  pointer-events: none;
}

.pageHero {
  position: relative;
}

.pageHero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: center;
}

.pageHero__copy {
  max-width: 36rem;
}

.pageHero__title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
}

.pageHero__lead {
  margin: 0 0 20px;
  max-width: 40ch;
}

.pageHero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pageHero__media {
  margin: 0;
  flex-shrink: 0;
}

.pageHero__img {
  width: min(320px, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(26, 47, 87, 0.12);
}

.pageHero--compact {
  padding-block: 32px;
}

.pageHero--compact .pageHero__title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.pageHero--compact .pageHero__img {
  width: min(200px, 28vw);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  padding: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: #9aa8ba;
  font-weight: 400;
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
}

.breadcrumbs__link:hover {
  color: var(--magenta);
}

.breadcrumbs__current {
  color: var(--heading);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
}

/* --------------------------------------------------------------------------
   Sekcie stránky
   -------------------------------------------------------------------------- */

.pageSection {
  padding: var(--section-pad-y) 0;
  background: var(--bg);
}

.pageSection--tight {
  padding-block: 40px;
}

.pageSection--alt {
  background: var(--header-bg);
  border-block: 1px solid var(--line);
}

.pageSection__head {
  margin-bottom: 28px;
  max-width: var(--prose-width);
}

.pageSection__head--center {
  margin-inline: auto;
  text-align: center;
  max-width: 48rem;
}

.pageSection__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.pageSection__lead {
  max-width: 52ch;
}

.pageSection__head--center .pageSection__lead {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Layout: obsah + bočný panel
   -------------------------------------------------------------------------- */

.pageLayout {
  display: grid;
  gap: 40px 48px;
}

.pageLayout--sidebar {
  grid-template-columns: minmax(0, 1fr) minmax(220px, var(--sidebar-width));
  align-items: start;
}

.pageLayout__content {
  min-width: 0;
}

.pageLayout__aside {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Prose – bežný textový obsah
   -------------------------------------------------------------------------- */

.prose {
  max-width: var(--prose-width);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.prose--wide {
  max-width: none;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 1.75em 0 0.65em;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}

.prose p {
  margin: 0 0 1em;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  filter: brightness(0.92);
}

/* --------------------------------------------------------------------------
   Karty a boxy (biely povrch, jemný okraj – ako fbBlock / formulár)
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px 28px;
}

.card--flat {
  border: none;
  padding: 0;
  background: transparent;
}

.card__eyebrow {
  margin-bottom: 8px;
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

.card__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.card__actions {
  margin-top: 18px;
}

.cardGrid {
  display: grid;
  gap: 24px;
}

.cardGrid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cardGrid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Zoznam služieb / odkazov (sidebar, index stránok)
   -------------------------------------------------------------------------- */

.sideNav {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 22px;
}

.sideNav__title {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
}

.sideNav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.sideNav__link {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #243a61;
  text-decoration: none;
  border-radius: var(--radius);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.sideNav__link:hover {
  color: var(--magenta);
  background: rgba(184, 23, 126, 0.06);
}

.sideNav__link.is-active {
  color: var(--magenta);
  background: rgba(184, 23, 126, 0.08);
}

/* --------------------------------------------------------------------------
   Ikony + text (ako hero features na homepage)
   -------------------------------------------------------------------------- */

.featureList {
  display: grid;
  gap: 20px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.featureList--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featureList--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featureList__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.featureList__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--magenta);
}

.featureList__icon svg {
  width: 24px;
  height: 24px;
}

.featureList__label {
  font-size: 11px;
  font-weight: 500;
  color: #3a4f6a;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Obrázok + text (striedavé bloky)
   -------------------------------------------------------------------------- */

.splitBlock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: center;
}

.splitBlock--reverse .splitBlock__media {
  order: -1;
}

.splitBlock__media {
  margin: 0;
  overflow: hidden;
}

.splitBlock__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.splitBlock__eyebrow {
  margin-bottom: 8px;
}

.splitBlock__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.splitBlock__text {
  margin: 0 0 18px;
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   Produkty – kategórie (produkty.php)
   -------------------------------------------------------------------------- */

.productsPage {
  padding: 36px 0 64px;
}

.productsPage__section {
  padding: 0;
}

.productsPage__head {
  margin-bottom: 28px;
}

.productsPage__head .breadcrumbs {
  padding-top: 0;
  margin-bottom: 14px;
}

.productsPage__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  text-transform: uppercase;
}

.productsPage__title--sentence {
  text-transform: none;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0;
}

/* Konzistentná šírka karty (~1/5 desktop riadku) – pri užšom viewporte sa nezväčšujú */
.categoryGrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 14px;
  justify-content: start;
}

.categoryGrid__item {
  display: flex;
  min-height: 0;
}

.categoryCard {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.categoryCard:hover {
  border-color: rgba(184, 23, 126, 0.4);
  box-shadow: 0 8px 22px rgba(20, 30, 60, 0.08);
  transform: translateY(-2px);
}

.categoryCard__media {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #fff;
}

.categoryCard__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.categoryCard__label {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border-top: 1px solid #eef0f3;
  background: #fafbfc;
  color: var(--heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  hyphens: auto;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.categoryCard:hover .categoryCard__label {
  background: #fff;
  color: var(--magenta);
}

/* --------------------------------------------------------------------------
   Katalóg produktov (rehabilitacne-pomocky.php, …)
   -------------------------------------------------------------------------- */

.catalogPage .productsPage__head {
  margin-bottom: 20px;
}

.catalogToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--muted);
}

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

.catalogToolbar__count {
  margin: 0;
}

.catalogToolbar__countHint {
  font-weight: 400;
}

.catalogToolbar__perPage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.catalogToolbar__search {
  margin: 0;
  flex: 1 1 200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.catalogToolbar__fieldLabel {
  font-weight: 500;
  color: var(--muted);
}

.catalogPerPage {
  position: relative;
}

.catalogPerPage__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 88px;
  padding: 8px 32px 8px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235c6b80' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
}

.catalogPerPage__trigger:focus {
  outline: none;
}

.catalogPerPage__trigger:focus-visible,
.catalogPerPage.is-open .catalogPerPage__trigger {
  border-color: var(--magenta);
  box-shadow: var(--focus-ring);
}

.catalogPerPage__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 47, 87, 0.12);
}

.catalogPerPage__menu[hidden] {
  display: none !important;
}

.catalogPerPage__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.catalogPerPage__option:hover,
.catalogPerPage__option:focus-visible {
  background: var(--header-bg);
  color: var(--heading);
  outline: none;
}

.catalogPerPage__option.is-selected {
  background: rgba(184, 23, 126, 0.08);
  color: var(--magenta);
  font-weight: 600;
}

.catalogToolbar__select {
  padding: 8px 32px 8px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235c6b80' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}

.catalogToolbar__select--compact {
  min-width: 88px;
}

.catalogToolbar__searchBox {
  position: relative;
  width: min(300px, 100%);
}

.catalogToolbar__searchInput {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 36px 8px 12px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.catalogToolbar__searchInput::-webkit-search-cancel-button {
  display: none;
}

.catalogToolbar__searchClearBtn {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.catalogToolbar__searchClearBtn:hover {
  color: var(--heading);
  background: var(--header-bg);
}

.catalogToolbar__searchClearBtn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.catalogToolbar__select:focus-visible,
.catalogToolbar__searchInput:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--magenta);
}

.catalogEmpty {
  margin: 0 0 28px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.catalogEmpty a,
.catalogEmpty__reset {
  font: inherit;
  font-weight: 600;
  color: var(--magenta);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.catalogEmpty__reset:hover {
  color: var(--heading);
}

.productGrid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 14px;
  justify-content: start;
}

.productGrid__item {
  display: flex;
  min-height: 0;
}

/* catalogCard – nie .productCard (koliduje s homepage v site.css) */
.catalogCard {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  margin: 0;
  aspect-ratio: auto;
  position: relative;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.catalogCard__media {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: #fff;
}

.catalogCard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalogCard__label {
  position: relative;
  z-index: 0;
  flex: 1 0 auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border-top: 1px solid #eef0f3;
  background: #fafbfc;
  color: var(--heading);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  hyphens: auto;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

a.catalogCard:hover {
  border-color: rgba(184, 23, 126, 0.4);
  box-shadow: 0 8px 22px rgba(20, 30, 60, 0.08);
  transform: translateY(-2px);
}

a.catalogCard:hover .catalogCard__label {
  background: #fff;
  color: var(--magenta);
}

.catalogCard--static {
  pointer-events: none;
  cursor: default;
}

.catalogPagination {
  margin-top: 8px;
}

.catalogPagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.catalogPagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.catalogPagination__link:hover {
  border-color: #c5d0de;
  color: var(--magenta);
}

.catalogPagination__link.is-current {
  border-color: var(--blue);
  color: var(--blue);
  cursor: default;
}

.catalogPagination__link--arrow {
  font-size: 16px;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Produktová / kategóriová mriežka (odkaz na homepage karty)
   -------------------------------------------------------------------------- */

.tileGrid {
  display: grid;
  gap: 20px;
}

.tileGrid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 24px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}

.tile--green {
  background: var(--green);
}

.tile--magenta {
  background: var(--magenta);
}

.tile--blue {
  background: var(--blue);
}

.tile__title {
  margin: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tile__text {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   CTA pás (magenta – ako tlačidlá na homepage)
   -------------------------------------------------------------------------- */

.ctaBand {
  padding: 40px 0;
  background: var(--header-bg);
  border-block: 1px solid var(--line);
}

.ctaBand__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.ctaBand__copy {
  max-width: 36rem;
}

.ctaBand__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.ctaBand__text {
  margin: 0;
  max-width: 42ch;
}

.ctaBand--magenta {
  background: var(--magenta);
  border: none;
}

.ctaBand--magenta .ctaBand__title,
.ctaBand--magenta .ctaBand__text {
  color: #fff;
}

.ctaBand--magenta .ctaBand__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.ctaBand--magenta .btn--primary {
  background: #fff;
  color: var(--magenta);
}

.ctaBand--magenta .btn--primary:hover {
  filter: brightness(0.96);
}

/* --------------------------------------------------------------------------
   Info zoznam (kontakt, ordinačné hodiny, cenník)
   -------------------------------------------------------------------------- */

.infoList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.infoList__item {
  display: grid;
  grid-template-columns: minmax(120px, 140px) minmax(0, 1fr);
  gap: 12px 20px;
  font-size: 13px;
  line-height: 1.55;
}

.infoList__label {
  font-weight: 600;
  color: var(--heading);
}

.infoList__value {
  color: var(--text);
}

.infoList__value a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: none;
}

.infoList__value a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Tabuľka (cenník, prehľad)
   -------------------------------------------------------------------------- */

.dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dataTable th,
.dataTable td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.dataTable th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  background: var(--header-bg);
}

.dataTable tbody tr:hover td {
  background: rgba(250, 251, 252, 0.8);
}

/* --------------------------------------------------------------------------
   Formulár na podstránke (rozšírenie .form zo site.css)
   -------------------------------------------------------------------------- */

.pageForm {
  max-width: 32rem;
}

.pageForm--wide {
  max-width: none;
}

.pageForm .form {
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Galéria / médiá
   -------------------------------------------------------------------------- */

.mediaGrid {
  display: grid;
  gap: 16px;
}

.mediaGrid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mediaGrid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mediaGrid__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.mediaGrid__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Zdravotné pomôcky (zdravotne-pomocky.php)
   -------------------------------------------------------------------------- */

.healthClinicPage__head {
  margin-bottom: 40px;
}

.healthClinicPage .clinicPage__title {
  margin-bottom: 16px;
}

.healthClinicPage__lead {
  max-width: var(--prose-width);
  margin-bottom: 24px;
  line-height: 1.7;
}

.healthClinicPage__cta {
  width: fit-content;
}

.healthClinicCatalog {
  margin-bottom: 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.healthClinicTopics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 48px;
}

.healthClinicTopics__item {
  display: grid;
  gap: 8px;
  color: var(--heading);
}

.healthClinicTopics__link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.healthClinicTopics__link:hover {
  color: var(--magenta);
}

.healthClinicTopics__nested {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   O nás (o-nas.php)
   -------------------------------------------------------------------------- */

.aboutPage {
  display: flex;
  flex-direction: column;
}

.aboutPage__section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0 64px;
}

.aboutPage__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.aboutCard {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.aboutCard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 28px 28px;
}

.aboutCard--intro .aboutCard__prose {
  max-width: none;
}

.aboutCard__title {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  text-transform: uppercase;
}

.aboutCard__prose {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.aboutCard__prose p {
  margin: 0 0 1em;
}

.aboutCard__prose p:last-child {
  margin-bottom: 0;
}

.aboutCard__salute {
  font-weight: 600;
  color: var(--heading);
}

.aboutCard__brand {
  font-style: italic;
  font-weight: 600;
  color: var(--heading);
}

.aboutCard__sign {
  font-weight: 600;
  color: var(--heading);
}

.aboutTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.aboutCard--intro .aboutTags {
  margin-top: auto;
  padding-top: 22px;
}

.aboutTags__item {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.aboutCard--advice .aboutCard__body {
  padding-bottom: 28px;
}

.aboutCard__subtitle {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.aboutCard__lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  max-width: none;
}

.aboutCard__list {
  margin: 0;
}

.aboutCard__list .clinicList__item {
  font-style: italic;
}

.aboutCard__cta {
  margin-top: auto;
  align-self: flex-start;
  width: fit-content;
  flex-shrink: 0;
  padding: 12px 22px;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Právne / GDPR text (ochrana osobných údajov)
   -------------------------------------------------------------------------- */

/* Stránka ochrany údajov – jedna sekcia, plná šírka */
.legalPage {
  padding: 40px 0 56px;
}

.legalPage__head {
  margin-bottom: 28px;
  max-width: none;
}

.legalPage__title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  text-transform: uppercase;
}

.legalPage__lead {
  margin: 0;
  max-width: none;
}

.legalPage__body {
  max-width: none;
}

.legalIntro {
  max-width: none;
  margin-bottom: 28px;
}

.legalIntro p {
  margin: 0 0 1em;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.legalIntro p:last-child {
  margin-bottom: 0;
}

.legalBlock {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legalBlock:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legalBlock__title {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}

.legalRow {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 6px 24px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.legalRow:last-child {
  margin-bottom: 0;
}

.legalRow__label {
  font-weight: 600;
  color: var(--heading);
}

.legalRow__value {
  color: var(--text);
}

.legalRow__value a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: none;
}

.legalRow__value a:hover {
  text-decoration: underline;
}

.legalNote {
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.prose .rightsList {
  margin: 1em 0;
  padding-left: 1.25em;
}

.prose .rightsList li {
  margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   Kontakt / pobočky (kontakt.php)
   -------------------------------------------------------------------------- */

.branchesPage {
  padding: 36px 0 64px;
}

.branchesHead {
  margin-bottom: 28px;
}

.branchesHead__title {
  margin: 6px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
}

.branchesHead__lead {
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.branchesGrid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.branchesGrid__list {
  align-self: start;
}

.branchList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branchList__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.branchList__btn:hover {
  border-color: #c5d0de;
}

.branchList__btn.is-active {
  border-color: var(--heading);
  background: var(--header-bg);
}

.branchList__label {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.branchList__chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--muted);
}

.branchList__btn.is-active .branchList__chevron {
  color: var(--heading);
}

/* Panel pobočky – mapa + detaily v jednej karte */
.branchPanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.branchPanel__map {
  position: relative;
  min-height: 320px;
  background: var(--header-bg);
}

.branchMap {
  overflow: hidden;
  height: 320px;
}

.mapConsent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(250, 251, 252, 0.92), rgba(244, 246, 249, 0.96)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(30, 45, 74, 0.03) 8px,
      rgba(30, 45, 74, 0.03) 16px
    );
  text-align: center;
}

.mapConsent.is-loaded {
  display: block;
  padding: 0;
  background: transparent;
}

.mapConsent__btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  cursor: pointer;
}

.mapConsent__btn:hover,
.mapConsent__btn:focus-visible {
  border-color: var(--magenta);
  color: var(--magenta);
}

.mapConsent__note {
  margin: 0;
  max-width: 28rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.mapConsent__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.branchMap__frame {
  display: block;
  width: 100%;
  height: 366px;
  margin-top: -46px;
  border: 0;
}

.branchPanel__body {
  padding: 26px 28px 28px;
}

.branchPanel__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.branchPanel__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--heading);
  white-space: nowrap;
}

.branchPanel__mapLink {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.branchPanel__mapLink:hover {
  text-decoration: underline;
}

.branchPanel__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 56px;
  align-items: start;
}

.branchPanel__contact {
  min-width: 0;
}

.branchPanel__hours {
  min-width: 0;
}

.branchContact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.branchContact__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.branchContact__icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 20px;
  padding-top: 2px;
  color: var(--muted);
}

.branchContact__value a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration: none;
}

.branchContact__value a:hover {
  text-decoration: underline;
}

.branchPanel__subTitle {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hoursTable {
  border-collapse: collapse;
  font-size: 13px;
}

.hoursTable th,
.hoursTable td {
  padding: 5px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.hoursTable th {
  width: 2.25rem;
  padding-right: 22px;
  color: var(--heading);
  font-weight: 600;
}

.hoursTable td {
  color: var(--text);
  white-space: nowrap;
}

.hoursTable__message,
.hoursTable__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.hoursTable__note {
  margin-top: 12px;
  color: var(--muted);
}

.branchContact__item--note {
  grid-template-columns: minmax(0, 1fr);
}

.branchContact__note {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Ambulancia (traumatologicka-ambulancia.php)
   -------------------------------------------------------------------------- */

.clinicPage {
  padding: 36px 0 64px;
}

.clinicPage__section {
  padding: 0;
}

.clinicPage__head {
  margin-bottom: 32px;
  max-width: none;
}

.clinicPage__title {
  margin: 6px 0 12px;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  text-transform: uppercase;
}

.clinicPage__lead {
  margin: 0;
  max-width: none;
  width: 100%;
}

.clinicPage__intro {
  display: grid;
  gap: 12px;
  width: 100%;
}

.clinicPage__intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.clinicPlace__note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.clinicLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 40px 48px;
  align-items: start;
}

.clinicLayout__aside {
  position: sticky;
  top: 96px;
}

.clinicBlock {
  margin-bottom: 36px;
}

.clinicBlock:last-child {
  margin-bottom: 0;
}

.clinicBlock__title {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}

.clinicBlock__lead {
  margin: -8px 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.clinicList {
  margin: 0;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.clinicList__item {
  padding-left: 0.15em;
}

.clinicBlock--contact {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.clinicInfo .infoList__item {
  grid-template-columns: minmax(88px, 110px) minmax(0, 1fr);
}

.clinicPlace {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.clinicPlace__head {
  padding: 20px 22px 0;
}

.clinicPlace__title {
  margin: 0 0 6px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--heading);
}

.clinicPlace__mapLink {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.clinicPlace__mapLink:hover {
  text-decoration: underline;
}

.clinicPlace__address {
  margin: 0;
  padding: 12px 22px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.clinicPlace__map {
  overflow: hidden;
  height: 300px;
  background: var(--header-bg);
}

.clinicPlace__frame {
  display: block;
  width: 100%;
  height: 346px;
  margin-top: -46px;
  border: 0;
}

/* Fakturačné údaje – zarovnané pod detail pobočky (pravý stĺpec) */
.branchesBilling {
  margin-top: 36px;
  padding-top: 0;
}

.branchesBilling .container {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
}

.billingCard {
  grid-column: 2;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.billingCard__title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}

.billingCard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 40px;
  max-width: 560px;
}

.billingCard__block {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

.billingCard__block strong {
  font-weight: 700;
  color: var(--heading);
}

.billingCard__label {
  display: inline-block;
  min-width: 56px;
  color: var(--muted);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Responzivita podstránok
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .pageHero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pageHero__copy {
    max-width: none;
    margin-inline: auto;
  }

  .pageHero__lead {
    margin-inline: auto;
  }

  .pageHero__actions {
    justify-content: center;
  }

  .pageHero__media {
    order: -1;
  }

  .pageHero__img {
    width: min(240px, 70vw);
    margin-inline: auto;
  }

  .pageLayout--sidebar {
    grid-template-columns: 1fr;
  }

  .cardGrid--2,
  .cardGrid--3,
  .tileGrid--3,
  .featureList--4 {
    grid-template-columns: 1fr;
  }

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

  .splitBlock--reverse .splitBlock__media {
    order: 0;
  }

  .ctaBand__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .infoList__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legalRow {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .branchesGrid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .branchesBilling .container {
    grid-template-columns: 1fr;
  }

  .billingCard {
    grid-column: 1;
  }

  .branchMap {
    height: 280px;
  }

  .branchMap__frame {
    height: 326px;
  }
}

@media (max-width: 900px) {
  .branchesHead__lead {
    white-space: normal;
  }

  .branchPanel__title {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .clinicLayout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .clinicLayout__aside {
    position: static;
    top: auto;
  }

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

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

  .aboutCard__body {
    padding: 28px 24px 24px;
  }
}

@media (max-width: 640px) {
  .categoryGrid,
  .productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin-inline: 0;
    gap: 12px;
  }

  .catalogToolbar__left,
  .catalogToolbar__search {
    width: 100%;
    justify-content: stretch;
  }

  .catalogToolbar__searchBox {
    width: 100%;
  }

  .catalogPerPage__trigger {
    width: auto;
  }

  .categoryCard__media,
  .catalogCard__media {
    padding: 8px 10px;
  }

  .categoryCard__label {
    min-height: 48px;
    padding: 8px 8px;
    font-size: 10px;
  }

  .catalogCard__label {
    min-height: 48px;
    padding: 8px 8px;
    font-size: 10px;
  }

  .clinicPlace__map {
    height: 260px;
  }

  .clinicPlace__frame {
    height: 306px;
  }

  .clinicInfo .infoList__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .branchPanel__cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .branchPanel__body {
    padding: 22px 20px 24px;
  }

  .billingCard__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .featureList--2 {
    grid-template-columns: 1fr;
  }


  .mediaGrid--2,
  .mediaGrid--3 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Detail produktu (produkt.php) – rovnaký systém ako katalóg / vnútorné stránky
   -------------------------------------------------------------------------- */

.productDetailPage .productsPage__head {
  margin-bottom: 24px;
}

.productDetail {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}

.productDetail__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.productDetail__figure {
  margin: 0;
}

.productDetail__mediaWrap {
  position: relative;
}

.productDetail__mediaWrap:focus {
  outline: none;
}

.productDetail__mediaWrap:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

.productDetail__media {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.productDetail__zoom {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  cursor: zoom-in;
}

.productDetail__zoom:focus {
  outline: none;
}

.productDetail__zoom:focus-visible {
  box-shadow: var(--focus-ring);
}

.productDetail__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  opacity: 0.55;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.productDetail__navIcon {
  display: block;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.85));
}

.productDetail__mediaWrap:hover .productDetail__nav,
.productDetail__nav:hover,
.productDetail__nav:focus-visible {
  opacity: 1;
}

.productDetail__nav:hover,
.productDetail__nav:focus-visible {
  color: var(--magenta);
}

.productDetail__nav--prev:hover,
.productDetail__nav--prev:focus-visible {
  transform: translateY(-50%) translateX(-2px);
}

.productDetail__nav--next:hover,
.productDetail__nav--next:focus-visible {
  transform: translateY(-50%) translateX(2px);
}

.productDetail__nav:focus-visible {
  outline: none;
}

.productDetail__nav:focus-visible .productDetail__navIcon {
  filter: drop-shadow(0 0 0 2px rgba(184, 23, 126, 0.25));
}

.productDetail__nav--prev {
  left: 2px;
}

.productDetail__nav--next {
  right: 2px;
}

.productDetail__media img,
.productDetail__zoom img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.productDetail__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.productDetail__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.productDetail__thumb:hover,
.productDetail__thumb.is-active {
  border-color: var(--magenta);
  box-shadow: var(--focus-ring);
}

.productDetail__thumb:focus-visible {
  outline: none;
  border-color: var(--magenta);
  box-shadow: var(--focus-ring);
}

.productDetail__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Lightbox – zväčšenie obrázka produktu */
body.lightbox-open {
  overflow: hidden;
}

.productLightbox[hidden] {
  display: none !important;
}

.productLightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.productLightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.72);
  cursor: zoom-out;
}

.productLightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 920px);
  max-height: min(90vh, 920px);
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.28);
}

.productLightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.productLightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}

.productLightbox__close:hover,
.productLightbox__close:focus-visible {
  color: var(--magenta);
  outline: none;
}

.productLightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--heading);
  cursor: pointer;
  transform: translateY(-50%);
}

.productLightbox__nav:hover,
.productLightbox__nav:focus-visible {
  color: var(--magenta);
  outline: none;
}

.productLightbox__nav--prev {
  left: 4px;
}

.productLightbox__nav--next {
  right: 4px;
}

.productDetail__title {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.productDetail__facts {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.productDetail__facts .infoList__item {
  grid-template-columns: minmax(108px, 148px) minmax(0, 1fr);
  align-items: start;
}

.productDetail__facts .infoList__value {
  line-height: 1.55;
}

.productDetail__codeRef {
  font-weight: 700;
  color: var(--heading);
}

.productDetail__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.productDetail__priceList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.productDetail__priceList li {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--heading);
}

.productDetail__priceList li:last-child {
  margin-bottom: 0;
}

.productDetail__description {
  margin-bottom: 20px;
}

.productDetail__descTitle {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.productDetail__contentNav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.productDetail__contentNavBtn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: var(--muted);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease, font-weight 0.15s ease;
}

.productDetail__contentNavBtn:hover {
  opacity: 0.65;
  color: var(--heading);
}

.productDetail__contentNavBtn.is-active {
  font-weight: 700;
  color: var(--heading);
  opacity: 1;
  cursor: default;
}

.productDetail__contentNavSep {
  margin: 0 0.35em;
  color: var(--muted);
  opacity: 0.35;
  font-weight: 600;
  user-select: none;
  pointer-events: none;
}

.productDetail__contentPanel.is-hidden {
  display: none;
}

.productDetail__description .prose {
  max-width: none;
}

.productDetail__videoEmbed {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 24px;
  box-sizing: border-box;
  background: #111827;
  overflow: hidden;
  text-align: center;
}

.productDetail__videoEmbed.is-loaded {
  display: block;
  padding: 0;
}

.productDetail__videoEmbed .mapConsent__note {
  color: rgba(255, 255, 255, 0.72);
}

.productDetail__videoEmbed iframe,
.productDetail__videoEmbed .privacyEmbed__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .productDetail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .productDetail__gallery {
    max-width: 420px;
  }

  .productDetail__thumb {
    width: 60px;
    height: 60px;
  }

  .productDetail__nav {
    width: 40px;
    height: 40px;
  }

  .productDetail__navIcon {
    width: 22px;
    height: 22px;
  }

  .productDetail__facts .infoList__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Tabuľka cookies + inline tlačidlo v texte (ochrana osobných údajov) */
.privacyTable {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.privacyTable th,
.privacyTable td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.privacyTable thead th {
  background: var(--header-bg);
  font-weight: 700;
  color: var(--heading);
}

.privacyTable tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.privacyTableWrap {
  overflow-x: auto;
}

.privacyLinkBtn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.privacyLinkBtn:hover,
.privacyLinkBtn:focus-visible {
  color: var(--magenta);
}

@media (max-width: 600px) {
  .privacyTable,
  .privacyTable thead,
  .privacyTable tbody,
  .privacyTable tr,
  .privacyTable th,
  .privacyTable td {
    display: block;
  }

  .privacyTable thead {
    display: none;
  }

  .privacyTable tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
  }

  .privacyTable th,
  .privacyTable td {
    border: 0;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .privacyTable tr > :last-child {
    border-bottom: 0;
  }
}
