/* opravy-le-artist.css – diamant.cz, verze 3 (5. 11. 2026: + cookie lišta, + drobečková navigace; v3 oprava zalomení drobečků; verze 1 = PT-25)
   Jen vzhled, žádná změna rozměrů ani JS. Soubory project-optima se needitují. */

/* PT-25: mobilní/tabletové menu (šablona ho tmavě podbarvuje do šířky 991 px, stejný práh
   jako existující pravidlo pro bílý text 1. úrovně). Odkazy 2. úrovně (podmenu „Šperky“
   i „Zásnubní a snubní šperky“) zdědily #1f1f1f na #0e2536 = kontrast 1,05 : 1 → bílá. */
@media (max-width: 991px) {
  #navigation .navigation-in .menu-level-2 a {
    color: #fff;
  }

  /* Šipka rozbalení podmenu je ikonový font a bere barvu z odkazu (#1f1f1f na tmavém) → bílá. */
  #navigation .navigation-in .submenu-arrow {
    color: #fff;
  }
}

/* Krok 5 (5. 11. 2026): filtr Značky má jedinou hodnotu (Optima Diamant) a vede na kopii kategorie
   /…:optima-diamant/. Přepínač v adminu není, proto skryto na mobilu i počítači. */
#manufacturer-filter {
  display: none;
}


/* ===== Cookie lišta (5. 11. 2026): úzká dole, Odmítnout a Souhlasím stejně velké. Zpět = smazat tento blok. ===== */

/* Mobil a tablet na výšku: lišta dole, text 13 px, tlačítka vedle sebe */
@media (max-width: 767px) {
  .siteCookies.siteCookies--bottom .siteCookies__form {
    padding: 14px 16px 16px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__text {
    margin: 0 0 6px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__text h2 {
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 4px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__text p {
    font-size: 13px;
    line-height: 18px;
    margin: 0;
  }
  /* „Nastavení“ vpravo nahoře vedle nadpisu, ať nezabírá vlastní řádek */
  .siteCookies.siteCookies--bottom .siteCookies__links {
    position: absolute;
    top: 14px;
    right: 16px;
    left: auto;
    width: auto;
    margin: 0;
    text-align: right;
  }
  .siteCookies.siteCookies--bottom .siteCookies__link {
    min-height: 24px;
    display: inline-block;
    width: auto;
    padding: 2px 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
  }
  .siteCookies.siteCookies--bottom .siteCookies__content {
    margin-bottom: 10px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__buttonWrap {
    gap: 10px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__button {
    flex: 1 1 0;
    min-height: 44px;
  }
}

/* Počítač: jeden řádek dole (text vlevo, volby vpravo) místo vysokého bloku */
@media (min-width: 768px) {
  .siteCookies.siteCookies--bottom .siteCookies__form {
    width: auto;
    max-width: 1180px;
    margin: 16px auto;
    padding: 0 24px;
    align-items: center;
    gap: 32px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
  }
  .siteCookies.siteCookies--bottom .siteCookies__text {
    flex: 1 1 auto;
    margin: 0;
  }
  .siteCookies.siteCookies--bottom .siteCookies__text h2 {
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 2px;
  }
  .siteCookies.siteCookies--bottom .siteCookies__text p {
    margin: 0;
  }
  .siteCookies.siteCookies--bottom .siteCookies__links,
  .siteCookies.siteCookies--bottom .siteCookies__buttonWrap {
    position: static;
    margin: 0;
  }
  .siteCookies.siteCookies--bottom .siteCookies__links {
    width: auto;
  }
  .siteCookies.siteCookies--bottom .siteCookies__link {
    min-height: 24px;
    width: auto;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    text-decoration: underline;
    white-space: nowrap;
  }
  .siteCookies.siteCookies--bottom .siteCookies__buttonWrap {
    flex: 0 0 auto;
    width: auto;
  }
  .siteCookies.siteCookies--bottom .siteCookies__buttonWrap .siteCookies__button {
    flex: 0 0 170px;
    width: 170px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===== Drobečková navigace (5. 11. 2026). Zpět = smazat tento blok až po konec souboru. ===== */
.breadcrumbs {
  font-size: 14px;
  line-height: 20px;
  color: #4f5b66;
}
.breadcrumbs a,
.breadcrumbs span {
  font-size: inherit;
  line-height: inherit;
}
.breadcrumbs a,
.breadcrumbs a span {
  color: #0e2536;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs a:hover span {
  text-decoration: none;
}
#content .breadcrumbs .navigation-bullet,
#content .breadcrumbs [data-testid="breadcrumbsLastLevel"] span {
  color: #4f5b66;
}
#content .breadcrumbs .navigation-bullet {
  margin: 0 6px 0 4px;
}

/* Kategorie: z místa pod úvodním blokem nahoru vedle loga */
.type-category .category-top {
  position: relative;
}
.type-category .category-top > .breadcrumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  align-items: baseline;
  height: 100px;
  padding: 0 20px 6px 108px;
  pointer-events: none;
}
/* v3: položka (odkaz + šipka) se neláme, zalomí se jen mezi položkami */
.breadcrumbs > span {
  white-space: nowrap;
}
.type-category .category-top > .breadcrumbs a {
  pointer-events: auto;
}

@media (max-width: 991px) {
  .type-category .category-top > .breadcrumbs {
    height: 60px;
    align-content: center;
    padding: 0 20px 0 124px;
  }

  /* Detail na mobilu: šablona drobečky skrývá; ukázat je nad názvem vedle loga */
  .type-detail .p-detail-inner {
    position: relative;
  }
  #content .p-detail-inner > .p-data-wrapper {
    position: static;
  }
  .type-detail .p-data-wrapper > .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: baseline;
    position: absolute;
    top: 0;
    left: 104px;
    right: 0;
    z-index: 2;
    height: 60px;
    margin: 0;
    pointer-events: none;
  }
  .type-detail .p-data-wrapper > .breadcrumbs a {
    pointer-events: auto;
  }
  /* Poslední položka = název produktu, ten je hned pod drobečky */
  .type-detail .p-data-wrapper > .breadcrumbs [data-testid="breadcrumbsLastLevel"],
  .type-detail .p-data-wrapper > .breadcrumbs > span:nth-last-child(2) .navigation-bullet {
    display: none;
  }
}

/* Tablet (768–991 px): vyšší hlavička jako na počítači, logo končí o 100 px níž */
@media (min-width: 768px) and (max-width: 991px) {
  .type-detail .p-data-wrapper > .breadcrumbs {
    left: 134px;
    height: 90px;
  }
}


/* ===== Detail produktu: tlačítko „Zeptat se nebo rezervovat“ (5. 11. 2026) =====
   Šablona (detail.css) schovává celý blok .social-buttons-wrapper. Zobrazujeme jen odkaz na dotaz (a.link-icon.chat)
   hned pod „Do košíku“; Tisk a Sdílet (spouští sdílecí widgety třetích stran) zůstávají skryté. */
.type-product .p-data-wrapper > .buttons-wrapper.social-buttons-wrapper {
  display: block !important;
  margin: 12px 0 0;
}
.type-product .p-data-wrapper > .pr-action ~ .lea-na-miru { order: 5; }
.type-product .p-data-wrapper > .pr-action ~ .info-banner { order: 6; }
.type-product .social-buttons-wrapper .link-icons { display: block; }
.type-product .social-buttons-wrapper a.link-icon.print,
.type-product .social-buttons-wrapper a.link-icon.share { display: none; }
.type-product .social-buttons-wrapper a.link-icon.chat {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #0e2536;
  border-radius: 4px;
  background: #fff;
  color: #0e2536;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
}
.type-product .social-buttons-wrapper a.link-icon.chat span { font-size: 0; }
.type-product .social-buttons-wrapper a.link-icon.chat span::after {
  content: "Zeptat se nebo rezervovat";
  font-size: 16px;
}

/* ===== Cookie lišta na mobilu: bez posunu po načtení písma (5. 11. 2026, v5). Zpět = smazat tento blok. =====
   S náhradním písmem má odstavec 2 řádky, s Albert Sans 3, a lišta (fixed dole) pak v ~8 s povyroste o 18 px (CLS 0,067).
   Výška 3 řádků je proto rezervovaná od začátku. Od 430 px má odstavec 2 řádky v obou písmech. */
@media (max-width: 429px) {
  .siteCookies.siteCookies--bottom .siteCookies__text p {
    min-height: 54px;
  }
}

/* ===== Úvod: hero a pás jistot (návrh v19, 5. 11. 2026). Zpět = smazat tento blok a vrátit banner ze zálohy. =====
   Text na krémovém podkladu vedle fotky z dílny, nikdy přes fotku nebo video. Pás jistot tmavě modrý, ikony jako data-SVG. */
#hero-section-stcm.lea-hero {
  position: relative;
  min-height: 540px;
  padding: 0;
  background: #f6f3ee none;
}
.lea-hero__foto {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  overflow: hidden;
  background: #0e2536;
}
.lea-hero__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 30%;
}
.lea-hero .lea-hero__text {
  box-sizing: border-box;
  max-width: calc(50% - 48px);
  min-height: 540px;
  padding: 150px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lea-hero__nadtitul {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4f5b66;
}
.lea-hero .lea-hero__h1 {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 400;
  color: #0e2536;
  max-width: none;
}
.lea-hero__perex {
  margin: 0 0 32px;
  max-width: 30em;
  font-size: 18px;
  line-height: 1.55;
  color: #1f1f1f;
}
.lea-hero__tlacitka {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lea-hero .lea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid #0e2536;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
/* id v selektoru: šablona barví odkazy v #content přes id */
#hero-section-stcm .lea-btn--plne { background: #0e2536; color: #fff; }
#hero-section-stcm .lea-btn--obrys { background: transparent; color: #0e2536; }
#hero-section-stcm .lea-btn--plne:focus-visible { background: #1d3f59; color: #fff; text-decoration: none; }
#hero-section-stcm .lea-btn--obrys:focus-visible { background: #0e2536; color: #fff; text-decoration: none; }
.lea-hero .lea-btn:focus-visible { outline: 2px solid #0e2536; outline-offset: 3px; }
/* Hover jen u myši: na dotyku by po klepnutí zůstal */
@media (hover: hover) {
  #hero-section-stcm .lea-btn--plne:hover { background: #1d3f59; color: #fff; text-decoration: none; }
  #hero-section-stcm .lea-btn--obrys:hover { background: #0e2536; color: #fff; text-decoration: none; }
  .in-index .lea-jistota:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}

/* Pás jistot: jen úvod (.in-index), detail má vlastní styl pásu v detail-le-artist.js */
.in-index .lea-jistoty {
  background: #0e2536;
}
.in-index .lea-jistoty .lea-jistoty__seznam {
  list-style: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 24px;
}
.in-index .lea-jistoty__seznam li { margin: 0; padding: 0; }
.in-index .lea-jistoty__seznam li::before { content: none; }
.in-index .lea-jistoty .lea-jistota {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 14px;
  align-items: start;
  color: #fff;
  text-decoration: none;
}
.in-index .lea-jistota::before {
  content: "";
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  background: center / contain no-repeat;
}
.in-index .lea-jistota strong {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #fff;
}
.in-index .lea-jistota span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #d3dbe2;
}
.in-index .lea-jistota:hover, .in-index .lea-jistota:focus-visible { color: #fff; text-decoration: none; }
.in-index .lea-jistota:focus-visible { outline: 2px solid #f6f3ee; outline-offset: 4px; }
.in-index .lea-jistota--dilna::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f3ee' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4h11l4 5.5-9.5 11-9.5-11z'/%3E%3Cpath d='M2.5 9.5h19M8.5 9.5 12 20.5l3.5-11M10 4 8.5 9.5M14 4l1.5 5.5'/%3E%3C/svg%3E"); }
.in-index .lea-jistota--velikost::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f3ee' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='14.5' r='6.5'/%3E%3Cpath d='M9.8 5.2 12 2.5l2.2 2.7L12 8z'/%3E%3C/svg%3E"); }
.in-index .lea-jistota--odeslani::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f3ee' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5 12 3l9 4.5v9L12 21l-9-4.5z'/%3E%3Cpath d='M3 7.5 12 12l9-4.5M12 12v9M7.5 5.2l9 4.6'/%3E%3C/svg%3E"); }
.in-index .lea-jistota--certifikat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f3ee' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v13H6z'/%3E%3Cpath d='M14 3v4h4M9 11h6M9 14.5h4'/%3E%3C/svg%3E"); }
.in-index .lea-jistota--prodejna::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f3ee' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5 5 4h14l1.5 5.5'/%3E%3Cpath d='M3.5 9.5a2.1 2.1 0 0 0 4.25 0a2.1 2.1 0 0 0 4.25 0a2.1 2.1 0 0 0 4.25 0a2.1 2.1 0 0 0 4.25 0'/%3E%3Cpath d='M5 12v8h14v-8M10 20v-5h4v5'/%3E%3C/svg%3E"); }

/* Tablet a menší počítač */
@media (min-width: 768px) and (max-width: 1199px) {
  .lea-hero .lea-hero__h1 { font-size: 40px; }
  .lea-hero__perex { font-size: 17px; }
  .lea-hero .lea-hero__text { max-width: calc(50% - 32px); }
  .lea-hero .lea-btn { min-width: 200px; }
  .in-index .lea-jistoty .lea-jistoty__seznam { gap: 18px 24px; }
  .in-index .lea-jistoty .lea-jistoty__seznam:has(> li:nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobil: první obrazovka co nejnižší, aby byly vidět i dlaždice kategorií. Fotka 150 px nahoře, bez nadtitulu (logo je v hlavičce),
   v pásu jen ikona a tučný nadpis (celé věty jsou na počítači a v cílech odkazů); 3 body pod sebou, 4 body 2 × 2 */
@media (max-width: 767px) {
  #hero-section-stcm.lea-hero { min-height: 0; }
  .lea-hero__foto { position: relative; left: auto; height: 150px; }
  .lea-hero__foto img { object-position: 45% 38%; }
  .lea-hero .lea-hero__text { max-width: none; min-height: 0; padding: 20px 0 24px; }
  .lea-hero__nadtitul { display: none; }
  .lea-hero .lea-hero__h1 { font-size: 31px; line-height: 1.15; margin-bottom: 10px; }
  .lea-hero__perex { font-size: 16px; line-height: 1.5; margin-bottom: 18px; }
  .lea-hero__tlacitka { flex-wrap: nowrap; gap: 10px; }
  .lea-hero .lea-btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: 15px; }
  .in-index .lea-jistoty .lea-jistoty__seznam { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .in-index .lea-jistoty .lea-jistoty__seznam:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .in-index .lea-jistoty .lea-jistota { grid-template-columns: 20px 1fr; column-gap: 8px; align-items: start; }
  .in-index .lea-jistota::before { grid-row: auto; width: 20px; height: 20px; margin-top: 1px; }
  .in-index .lea-jistota strong { font-size: 15px; line-height: 20px; }
  .in-index .lea-jistota span { display: none; }
}

/* Úzké telefony (iPhone SE 320 px): kontejner šablony tu nemá okraj, text by se dotýkal kraje */
@media (max-width: 399px) {
  .lea-hero .container-stcm, .in-index .lea-jistoty .container-stcm { padding-left: 16px; padding-right: 16px; }
  .lea-hero__foto { height: 130px; }
  .lea-hero .lea-hero__h1 { font-size: 28px; }
  .lea-hero .lea-btn { font-size: 14px; padding: 0 8px; }
  .in-index .lea-jistota strong { font-size: 14px; line-height: 19px; }
}
