/* postelpolohovaci.cz – úpravy šablony Classic (v7)
   Barvy: zelená #1F4A3D (šablona 1), terakota #A6561B (konverzní).
   Cíl: větší a čitelnější písmo, velké klikací plochy, viditelný fokus.
   Pozn.: selektory začínají "body", aby měly přednost před pravidly šablony. */

/* ---------- Barevné tokeny šablony ---------- */
:root {
  --colors-foregrounds-headlines-primary: #1F4A3D;
  --colors-foregrounds-content-primary: #1C1C1A;
  --colors-foregrounds-content-secondary: #4A4741;
  --colors-foregrounds-content-tertiary: #5A5650;
  --colors-foregrounds-content-quaternary: #5A5650;
  --colors-foregrounds-icons-primary: #5A5650;
  --colors-foregrounds-borders-secondary: #D9D2C5;
  --colors-surface-secondary: #FAF7F2;
  --colors-focus-primary: #1C1C1A;
  --colors-forms-activated: #1F4A3D;
  --colors-forms-positive: #2B6E3F;
  --colors-state-success: #2B6E3F;
}

/* ---------- Základ ---------- */
body { font-size: 16px; line-height: 1.55; color: #1C1C1A; }
body h1, body h2, body h3, body h4, body .h1, body .h2, body .h3, body .h4 {
  font-family: "Source Sans 3", sans-serif; font-weight: 700; color: #1F4A3D; letter-spacing: -0.01em;
}
body h1, body .h1 { font-size: 32px; line-height: 1.2; }

body a:focus-visible, body button:focus-visible, body input:focus-visible,
body select:focus-visible, body textarea:focus-visible, body [tabindex]:focus-visible {
  outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 5px #1C1C1A;
}

/* ---------- Horní lišta: jen telefon, bez menu a přihlášení ---------- */
body .top-navigation-menu,
body .top-nav-button-login,
body .responsive-tools a[data-target=login],
body [data-testid=signin] { display: none !important; }

@media (min-width: 768px) {
  body .top-navigation-bar { height: auto; min-height: 0; }
  body .top-navigation-bar .container { display: flex; align-items: center; min-height: 44px; }
  body .top-navigation-bar .container > .top-navigation-contacts {
    display: flex; align-items: center; gap: 8px; flex: 0 0 auto; width: auto; margin-left: auto;
    font-size: 16px; color: #4A4741;
  }
  body .top-navigation-bar .container > .top-navigation-tools { flex: 0 0 auto; width: auto; }
  body .top-navigation-bar .top-navigation-contacts strong { display: inline; font-weight: 400; font-size: 16px; color: #4A4741; }
  body .top-navigation-bar a.project-phone { font-size: 20px; font-weight: 700; color: #1F4A3D; text-decoration: none; padding: 4px 0; }
  body .top-navigation-bar a.project-phone:hover { text-decoration: underline; text-underline-offset: 3px; }
}
#header .site-name a img { max-height: 64px; }

/* ---------- Hlavní menu ---------- */
body .navigation-in > ul > li > a {
  font-size: 17px; font-weight: 600; line-height: 1.2;
  padding-top: 13px; padding-bottom: 13px;
}

/* ---------- Hledání: pole a tlačítko jako jeden celek ---------- */
body .search-form input[type=search] {
  height: 44px; padding: 0 14px; font-size: 16px; color: #1C1C1A;
  border: 1px solid #8A8378; border-right: 0; border-radius: 8px 0 0 8px; /* rámeček 3,6 : 1 */
}
body .search-form input[type=search]::placeholder { color: #5A5650; opacity: 1; }
body .search-form input[type=search]:focus { border-color: #1F4A3D; }
body .search-form .btn { height: 44px; padding: 0 20px; border-radius: 0 8px 8px 0; }

/* ---------- Tlačítka ---------- */
body .btn, body a.btn {
  font-family: "Source Sans 3", sans-serif; font-size: 16px; font-weight: 700;
  text-transform: none; letter-spacing: 0; border-radius: 8px;
}
body .btn.btn-lg, body .btn.add-to-cart-button, body .btn.add-to-cart-button.btn-lg {
  font-size: 18px; min-height: 52px; padding-left: 28px; padding-right: 28px;
}

/* ---------- Detail produktu ---------- */
/* Drobečková navigace: ikona domku, šipky ›, aktuální stránka tučně */
body .breadcrumbs-wrapper { border-bottom: 0; }
body .breadcrumbs {
  height: auto; min-height: 0; border-bottom: 0; padding: 14px 0 6px;
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px;
  font-size: 15px; line-height: 1.4; color: #5A5650;
}
body .breadcrumbs::before,
body .breadcrumbs a::before, body .breadcrumbs a::after { display: none !important; }
body .breadcrumbs > span { display: inline-flex; align-items: center; width: auto; float: none; flex: 0 0 auto; }
body .breadcrumbs a, body .breadcrumbs > span > span[itemprop=name] {
  display: inline-flex; align-items: center; line-height: 1.4; top: auto; margin: 0; height: auto;
}
body .breadcrumbs a { padding: 4px 2px; color: #4A4741; text-decoration: none; border-radius: 4px; }
body .breadcrumbs a:hover { color: #1F4A3D; text-decoration: underline; text-underline-offset: 3px; }
body .breadcrumbs a.navigation-home-icon {
  width: 28px; height: 28px; padding: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4741' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E") center / 20px no-repeat;
}
body .breadcrumbs .navigation-bullet { display: inline-flex; align-items: center; align-self: center; font-size: 0; padding: 0 8px; margin: 0; top: auto; }
body .breadcrumbs .navigation-bullet::before { content: "›"; font-size: 20px; line-height: 1; color: #8A8378; }
body .breadcrumbs [data-testid=breadcrumbsLastLevel] { color: #1C1C1A; font-weight: 600; }
body .price-final, body .price-final-holder { font-family: "Source Sans 3", sans-serif; font-weight: 800; color: #1C1C1A; }
body .p-short-description, body #description p, body #description li { font-size: 17px; line-height: 1.6; }
body #description h2 { font-size: 26px; margin-top: 1.4em; }
body #description h3 { font-size: 21px; margin-top: 1.2em; }
body .shp-tab-link { font-size: 16px; font-weight: 600; }
body .p-detail-info { font-size: 15px; color: #5A5650; }
body a.link-icon { font-size: 15px; color: #5A5650; text-transform: none; }

/* ---------- Množství + Přidat do košíku jako jeden prvek ---------- */
/* Pořadí: [ − ][ 1 ][ + ][ Přidat do košíku ], tlačítka 44 × 52 px */
body .add-to-cart { display: flex; align-items: stretch; flex-wrap: nowrap; }
body .add-to-cart .quantity {
  display: flex; align-items: stretch; height: 52px; width: auto; padding: 0; margin: 0; box-sizing: border-box;
  background: #fff; border: 1px solid #8A8378; border-right: 0; border-radius: 8px 0 0 8px;
}
body .add-to-cart .quantity label { order: 2; display: flex; width: auto; height: auto; margin: 0; }
body .add-to-cart .quantity input.amount {
  width: 52px; height: 100%; padding: 0; border: 0; background: transparent;
  text-align: center; font-size: 18px; font-weight: 600; color: #1C1C1A;
  -moz-appearance: textfield; appearance: textfield;
}
body .add-to-cart .quantity input.amount::-webkit-outer-spin-button,
body .add-to-cart .quantity input.amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body .add-to-cart .quantity .increase, body .add-to-cart .quantity .decrease {
  position: static; display: flex; align-items: center; justify-content: center;
  width: 44px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #1F4A3D; cursor: pointer;
}
body .add-to-cart .quantity .decrease { order: 1; border-radius: 8px 0 0 8px; }
body .add-to-cart .quantity .increase { order: 3; }
body .add-to-cart .quantity .increase::before, body .add-to-cart .quantity .decrease::before { display: none; }
body .add-to-cart .quantity .increase__sign, body .add-to-cart .quantity .decrease__sign { display: block; font-size: 24px; font-weight: 600; line-height: 1; }
body .add-to-cart .quantity .increase:hover, body .add-to-cart .quantity .decrease:hover { background: #E7EFEA; }
body .add-to-cart .add-to-cart-button { height: 52px; margin: 0; border-radius: 0 8px 8px 0; }
@media (max-width: 767px) {
  body .add-to-cart .add-to-cart-button { flex: 1 1 auto; }
}

/* ---------- Výhody (benefit banner) ---------- */
body .benefitBanner__title { font-size: 17px; color: #1F4A3D; }
body .benefitBanner__data { font-size: 15px; color: #5A5650; }

/* ---------- Patička ---------- */
body footer#footer { background: #FAF7F2; border-top: 1px solid #D9D2C5; margin-top: 48px; font-size: 15px; }
body footer#footer .footer-rows, body footer#footer .footer-bottom { background: transparent; }
body footer#footer .footer-rows { padding-top: 40px; padding-bottom: 32px; }
body footer#footer .pageElement__heading { font-size: 17px; font-weight: 700; color: #1F4A3D; text-transform: none; letter-spacing: 0; margin-bottom: 12px; }
body footer#footer .custom-footer ul li { margin-bottom: 6px; }
body footer#footer .custom-footer a { font-size: 16px; color: #1C1C1A; text-decoration: none; }
body footer#footer .custom-footer a:hover { color: #1F4A3D; text-decoration: underline; text-underline-offset: 3px; }
body footer#footer .contact-box .tel a { font-size: 20px; font-weight: 700; color: #1F4A3D; }
body footer#footer .footer-bottom { border-top: 1px solid #D9D2C5; font-size: 14px; color: #4A4741; }
body footer#footer .footer-bottom a { color: #4A4741; }

/* ---------- Záhlaví a menu přes celou šířku (desktop) ---------- */
body .overall-wrapper { overflow-x: clip; } /* zabrání vodorovnému posuvníku u prvků 100vw */
@media (min-width: 768px) {
  #header .container.navigation-wrapper { width: 100vw; }
  #header .header-top { max-width: 1418px; margin: 0 auto; }
  #header #navigation { height: 45px; }
  /* Centrování menu: Shoptet měří, které položky se vejdou, a zbytek schová do „hamburgeru“.
     Přes justify-content: center by je vyhodnotil všechny jako přetékající – proto centrujeme
     samotný seznam (šířka podle obsahu + automatické okraje). */
  #header #navigation .navigation-in { width: 100% !important; }
  #header #navigation .navigation-in > ul.menu-level-1 {
    width: max-content; margin-left: auto; margin-right: auto;
    justify-content: flex-start; flex-wrap: nowrap;
  }
}

/* ---------- Úvodní banner přes celou šířku, širokoúhlý ---------- */
/* Podklady: 2400 × 800 px (3 : 1). Na mobilu se ořízne na 16 : 9 –
   důležitý obsah držte v prostředních ~55 % šířky. */
body .wide-carousel { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
body .wide-carousel .carousel-inner { min-height: 0 !important; }
body .wide-carousel .item img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 1; max-height: 560px; object-fit: cover; object-position: center;
}
body .wide-carousel .carousel-control { max-height: none !important; }
@media (max-width: 767px) {
  body .wide-carousel .item img { aspect-ratio: 16 / 9; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  body h1, body .h1 { font-size: 26px; }
  body #description h2 { font-size: 22px; }
  body #description h3 { font-size: 19px; }
}
