@media (min-width: 992px) {
  .shp-tabs-holder .shp-tab:has(> a[href="#productsAlternative"]) {
    display: none !important;
  }
}

/* Audit #10b: Upsell bloky na PDP vždy až pod cenou a tlačítkem Přidat do košíku (order: 15) */
body.type-product .p-info-wrapper > .up-product-wrapper,
body.type-product .p-info-wrapper > .up-product-wrapper:has(.position-bellow_description),
body.type-product .p-info-wrapper > .up-product-wrapper:has(.position-above_add_to_cart_button) {
  order: 18 !important;
  margin-top: 16px !important;
}

@media (min-width: 768px) {
  body:not(.cart-window-visible):not(.login-window-visible):not(:has(.search-whisperer.active)) #ds-header-dim {
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 992px) {
  .type-category .sidebar .box-filters .filters-wrapper,
  .type-category .sidebar .box-filters #filters {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@media (min-width: 992px) {
  .type-post #content > .content-inner {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  /* Druhý údaj vedle expedice: Odborné poradenství. */
  .ds-topbar-usps > .ds-topbar-usp:nth-child(2),
  .top-navigation-menu li:has(> a:is([href$="/znacka/"], [href$="/obchodni-podminky/"], [href$="/podminky-ochrany-osobnich-udaju/"], [href$="/mapa-serveru/"])) {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .top-navigation-bar > .container::before,
  .top-navigation-bar > .container::after { content: none; }
  #header .navigation-wrapper > #navigation { margin-inline: -11px 0; }
  #header #navigation .menu-level-1 > li > a[href="/akce/"] { padding-left: 11px !important; }
}

@media (min-width: 992px) {
.in-index .ds-guide-tiles {
display: grid;grid-template-columns: repeat(5, minmax(0, 1fr));gap: 10px;
margin: 20px 0 32px;padding: 0;
}
.in-index .ds-guide-tiles::before, .in-index .ds-guide-tiles::after { content: none;}
.in-index .ds-guide-tiles > .footer-banner { width: auto;max-width: none;margin: 0;padding: 0;}
.in-index .ds-guide-tiles .footer-banner > a {
display: flex;flex-direction: column;align-items: center;gap: 14px;height: 100%;width: 100%;
padding: 24px 12px 20px;background: #f5f5f5;color: #262f34;text-align: center;text-decoration: none;
}
.in-index .ds-guide-tiles .footer-banner > a:is(:hover, :focus-visible) { background: #eaf3f3;color: #007783;}
.in-index .ds-guide-tiles .footer-banner img { display: block;width: 100px;height: 100px;object-fit: contain;}
.in-index .ds-guide-tiles .extended-banner-texts, .in-index .ds-guide-tiles .extended-banner-title {
position: static;display: block;width: 100%;height: auto;margin: 0;padding: 0;
border: 0;box-shadow: none;color: inherit;background: transparent;text-align: center;font-size: 16px;font-weight: 600;line-height: 1.4;
}
}

.in-index .latest-contribution-box {display:none!important}
@media (min-width: 992px) {
.in-index .before-carousel ~ .content-wrapper.container,
.in-index .before-carousel ~ .content-wrapper.container > .content-wrapper-in > main.content,
.in-index .homepage-box.welcome-wrapper,
.in-index .homepage-box.welcome-wrapper > .content-wrapper-in > .container {
padding-inline: 0 !important;
}
.in-index .before-carousel ~ .content-wrapper.container { overflow-x: clip; }
}

.in-index .ds-carousel-stage{padding-inline:0}.ds-carousel-stage .arrow{z-index:2;background:#02838f!important;color:#fff!important}
.in-index .products.ds-carousel {
--cards: 4;--gap: 20px;
display: grid !important;grid-template-columns: none !important;
grid-auto-flow: column;grid-auto-columns: calc((100% + var(--gap)) / var(--cards) - var(--gap));
gap: var(--gap) !important;width: 100%;min-width: 0;overflow-x: auto;
scroll-snap-type: x mandatory;overscroll-behavior-x: contain;scrollbar-width: none;
}
.ds-carousel::-webkit-scrollbar {display:none}
.in-index .ds-carousel > .product {width:100%;min-width:0;max-width:none;scroll-snap-align:start}
.ds-carousel-nav {display:flex;justify-content:center;align-items:center;gap:4px;margin:12px auto 28px}
.ds-carousel-nav[hidden] {display:none}
.ds-carousel-nav button {display:grid;place-items:center;padding:0;cursor:pointer;color:#263035;background:transparent;border:0;border-radius:50%}
.ds-carousel-nav .arrow {width:40px;height:40px;border:0;font:26px/1 Arial,sans-serif}
.ds-carousel-nav .arrow:disabled {opacity:.35;cursor:default}
.ds-carousel-nav .dot {width:20px;height:32px}
.ds-carousel-nav .dot::after {content:"";width:7px;height:7px;border-radius:50%;background:#bac6c7}
.ds-carousel-nav [aria-current="true"]::after {background:#007c89}
.ds-carousel-nav button:focus-visible {outline:2px solid #007c89;outline-offset:1px}
@media(max-width:1023px){.in-index .products.ds-carousel {--cards:3;--gap:12px}}
@media(max-width:767px){.in-index .products.ds-carousel {--cards:2;--gap:8px}.ds-carousel-nav {gap:0}.ds-carousel-nav .dot {width:18px}}

/* Product detail: omit the orphaned heading when the tab panel follows it. */
.p-detail > .products-related-header:has(+ .p-detail-tabs-wrapper),
.p-detail > .products-related-header:has(+ .browse-p + .p-detail-tabs-wrapper) {
  display: none !important;
}

/* Shoptet can also move this tab into the overflow menu. */
.p-detail-tabs-wrapper .shp-tab[data-testid="tabGpsr"],
.p-detail-tabs-wrapper li:has(> a[href="#otherInformation"]) {
  display: none !important;
}

/* Hide the previous/next product controls shown after browsing a product list. */
.p-detail > .browse-p > .p-prev,
.p-detail > .browse-p > .p-next {
  display: none !important;
}

/* Follow the mouse continuously, including short drags between card edges. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .in-index .products.ds-carousel {
    scroll-snap-type: none;
  }
}
.in-index .products.ds-carousel.ds-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}


/* Homepage spacing between the main banner and its adjacent benefits. */
body.in-index .homepage-box.before-carousel:has(+ .content-wrapper > .content-wrapper-in > main > .position--benefitHomepage:first-child) {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

body.in-index .homepage-box.before-carousel:has(+ .content-wrapper > .content-wrapper-in > main > .position--benefitHomepage:first-child) .banners-row {
  margin-bottom: 0 !important;
}


/* Vertical spacing between adjacent homepage sections. The dot controls
   already provide 28 px below their hit area. */
body.in-index main {
  --ds-after-carousel-controls: 12px;
  --ds-before-guide-tiles: 32px;
}

body.in-index main > .ds-guide-tiles + .homepage-group-title {
  margin-top: 32px;
}

body.in-index main > .ds-carousel-stage:has(.ds-carousel-nav:not([hidden]) .dot) + .homepage-group-title,
body.in-index main > .ds-carousel-stage:has(.ds-carousel-nav:not([hidden]) .dot) + .homepage-blog-wrapper > .homepage-group-title {
  margin-top: var(--ds-after-carousel-controls) !important;
}

body.in-index main > .ds-carousel-stage:has(.ds-carousel-nav:not([hidden]) .dot) + .homepage-blog-wrapper {
  padding-top: 0;
}

body.in-index main > .homepage-blog-wrapper:has(+ .footer-banners) {
  padding-bottom: 0;
}

body.in-index main > .homepage-blog-wrapper + .footer-banners {
  margin-top: var(--ds-before-guide-tiles);
}

@media (max-width: 767px) {
  body.in-index main {
    --ds-after-carousel-controls: 4px;
    --ds-before-guide-tiles: 24px;
  }
}


/* Apply only when the screen-reader heading is the sole content before the hero. */
body.in-index #header + #content-wrapper:has(> .content-wrapper-in:only-child > main:only-child > h1.sr-only:only-child):has(+ .homepage-box.before-carousel #carousel) {
  padding-block: 0 !important;
}

body.in-index #header + #content-wrapper:has(> .content-wrapper-in:only-child > main:only-child > h1.sr-only:only-child) + .homepage-box.before-carousel:has(#carousel) {
  border-top: 0;
  padding-top: var(--ds-home-hero-top, 20px);
}

@media (max-width: 767px) {
  body.in-index .homepage-box.before-carousel {
    --ds-home-hero-top: 12px;
  }
}


/* Classic adds a second separator to desktop breadcrumb links. */
@media (min-width: 992px) {
  body:is(.type-product, .type-category) .breadcrumbs-wrapper .breadcrumbs > [itemprop="itemListElement"] > a:not(.navigation-home-icon)::before {
    content: none;
  }

  body:is(.type-product, .type-category) .breadcrumbs-wrapper .breadcrumbs > [itemprop="itemListElement"] > a.navigation-home-icon::before {
    background-color: transparent;
  }
}


/* Keep the desktop logo and adjacent search field stable on scroll. */
@media (min-width: 992px) {
  header#header.ds-header-scrolled .site-name img {
    max-height: 27px !important;
  }
}

/* ==========================================================================
   AUDIT FÁZE 2 – Opravy zobrazení v pokladně, na mobilu, PDP a P2 UI detaily
   ========================================================================== */

/* #1 Leadhub: pojistný z-index, skrytí v košíku/pokladně/při modalech a WCAG AA kontrast tlačítka NE */
div.LEAD_GENERATION {
  z-index: 800 !important;
}

body.ordering-process div.LEAD_GENERATION,
body.in-kosik div.LEAD_GENERATION,
body.navigation-window-visible div.LEAD_GENERATION,
body.ds-drawer-open div.LEAD_GENERATION,
body.cart-window-visible div.LEAD_GENERATION {
  display: none !important;
}

div.LEAD_GENERATION .CG7HaGttvpXvfiRvVs7O.wz1pXlTCeNyjmq6VpOXi {
  opacity: 1 !important;
  color: #1f2933 !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(31, 41, 51, 0.25) !important;
}

/* #6 Mobil Homepage: odstranit ~474 px bílého místa pod hlavním bannerem a omezit výšku šipek */
@media (max-width: 991px) {
  #carousel,
  #carousel .carousel-inner {
    min-height: 0 !important;
    height: auto !important;
  }

  #carousel {
    overflow: hidden !important;
  }

  #carousel .carousel-control {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    max-height: 100% !important;
  }
}

@media (max-width: 767px) {
  #carousel .carousel-control {
    display: none !important;
  }
}

/* #7 Pokladna (Desktop i Mobil): vypnout sticky hlavičku, aby .order-summary nezajíždělo pod header */
body.ordering-process header#header {
  position: static !important;
}

body.ordering-process .order-summary {
  top: 20px !important;
}

/* #8 Pokladna Krok 1: odstranit zdvojenou nativní šipku u <select> (včetně ::picker-icon) */
body.ordering-process select.form-control,
body.ordering-process select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 44px !important;
  height: 44px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body.ordering-process select::picker-icon {
  display: none !important;
}

/* #10a Mobil Detail produktu: zamezit horizontálnímu přetečení .shp-tabs přes viewport */
@media (max-width: 991px) {
  body.type-product .shp-tabs-wrapper.p-detail-tabs-wrapper,
  body.type-product .shp-tabs-wrapper .shp-tabs-row {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.type-product .shp-tabs-wrapper .shp-tabs-holder {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.type-product ul#p-detail-tabs.shp-tabs {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* #11 Mobil Košík: chybová hláška kupónu nesmí překrývat hlavičku */
@media (max-width: 991px) {
  body.ordering-process .messages,
  body.ordering-process .messages-container,
  body.ordering-process .msg {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
  }
}

/* #12 Mobil Tap targets >= 44x44 px (WCAG / Apple HIG) */
@media (max-width: 991px) {
  .ds-mob-menu-btn,
  #header .header-top .top-nav-button-login,
  #header .navigation-buttons a[data-testid="headerCart"] {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .products .product .add-to-cart-button,
  .products .product button.btn-cart {
    min-height: 44px !important;
  }

  .cart-table .increase,
  .cart-table .decrease,
  .cart-table .remove-item,
  .cart-table button.remove-item {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .p-image-wrapper .carousel-control,
  .p-thumbnails-wrapper .carousel-control {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  #navigation .menu-level-2 a,
  #navigation .menu-level-3 a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  body.ordering-process input.form-control,
  body.ordering-process select.form-control {
    min-height: 44px !important;
  }
}

/* P2 UI: zabránit dvojitému scrollbaru při otevřeném mobilním menu / draweru */
body.navigation-window-visible,
body.ds-drawer-open {
  overflow: hidden !important;
}

/* P2 UI: mezera kolem oddělovače v horní liště (Kontakty · Věrnostní program) */
@media (min-width: 992px) {
  .top-navigation-bar .top-navigation-menu {
    gap: 10px !important;
  }
  .top-navigation-bar .top-navigation-menu li + li::before {
    margin-inline: 8px !important;
  }
}

/* P2 UI: zarovnání řádku dostupnosti u produktových karet bez hodnocení */
.products .product .ratings-wrapper,
.products .product .stars-wrapper {
  min-height: 22px;
}

/* P2 UI: mezera mezi inputem kupónu a tlačítkem Přidat v košíku */
.discount-coupon form,
.discount-coupon .input-group {
  display: flex;
  gap: 8px;
}

/* P2 UI: nezalamovat label "Celkem za zboží:" v pokladně na 2 řádky */
body.ordering-process .recapitulation-single > span:first-child,
body.ordering-process .order-summary .price-wrapper .price-label,
body.ordering-process .order-summary td:first-child {
  white-space: nowrap;
}

/* P2 UI: skrýt neaktivní 0-count filtry v kategoriích */
.filter-section label.disabled,
.filter-section .filter-label.disabled,
.filter-section div:has(> input:disabled) {
  display: none !important;
}
