/* Consolidated production asset. Generated 2026-08-03. */

/* ===== Source: phocacart-product-prices-v220.css ===== */
/* Phoca Cart prices v219
   Category and product detail: standard prices black, partner prices #376fe6,
   gross prices bold, no separator borders. */

body.com_phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box,
body.com-phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box,
body.com_phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box,
body.com-phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-rows: repeat(6, auto) !important;
    grid-auto-flow: row !important;
    column-gap: 24px !important;
    row-gap: 5px !important;
    align-items: baseline !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

body.com_phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box > *,
body.com-phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box > *,
body.com_phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > *,
body.com-phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > * {
    position: static !important;
    inset: auto !important;
    float: none !important;
    clear: none !important;
    order: initial !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    box-sizing: border-box !important;
}

body.com_phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box > *::before,
body.com_phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box > *::after,
body.com-phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box > *::before,
body.com-phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box > *::after,
body.com_phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > *::before,
body.com_phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > *::after,
body.com-phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > *::before,
body.com-phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > *::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
}

/* Standard price rows: 1–3. */
body.com_phocacart .ph-item-price-box > .ph-price-txt.ph-price-netto-txt.ph-standard-txt,
body.com-phocacart .ph-item-price-box > .ph-price-txt.ph-price-netto-txt.ph-standard-txt,
body.com_phocacart .ph-category-price-box > .ph-price-txt.ph-price-netto-txt.ph-standard-txt,
body.com-phocacart .ph-category-price-box > .ph-price-txt.ph-price-netto-txt.ph-standard-txt { grid-row: 1 !important; grid-column: 1 !important; }
body.com_phocacart .ph-item-price-box > .ph-price-netto.ph-standard,
body.com-phocacart .ph-item-price-box > .ph-price-netto.ph-standard,
body.com_phocacart .ph-category-price-box > .ph-price-netto.ph-standard,
body.com-phocacart .ph-category-price-box > .ph-price-netto.ph-standard { grid-row: 1 !important; grid-column: 2 !important; }

body.com_phocacart .ph-item-price-box > .ph-tax-txt.ph-standard-txt,
body.com-phocacart .ph-item-price-box > .ph-tax-txt.ph-standard-txt,
body.com_phocacart .ph-category-price-box > .ph-tax-txt.ph-standard-txt,
body.com-phocacart .ph-category-price-box > .ph-tax-txt.ph-standard-txt { grid-row: 2 !important; grid-column: 1 !important; }
body.com_phocacart .ph-item-price-box > .ph-tax.ph-standard,
body.com-phocacart .ph-item-price-box > .ph-tax.ph-standard,
body.com_phocacart .ph-category-price-box > .ph-tax.ph-standard,
body.com-phocacart .ph-category-price-box > .ph-tax.ph-standard { grid-row: 2 !important; grid-column: 2 !important; }

body.com_phocacart .ph-item-price-box > .ph-price-txt.ph-price-brutto-txt.ph-standard-txt,
body.com-phocacart .ph-item-price-box > .ph-price-txt.ph-price-brutto-txt.ph-standard-txt,
body.com_phocacart .ph-category-price-box > .ph-price-txt.ph-price-brutto-txt.ph-standard-txt,
body.com-phocacart .ph-category-price-box > .ph-price-txt.ph-price-brutto-txt.ph-standard-txt { grid-row: 3 !important; grid-column: 1 !important; }
body.com_phocacart .ph-item-price-box > .ph-price-brutto.ph-standard,
body.com-phocacart .ph-item-price-box > .ph-price-brutto.ph-standard,
body.com_phocacart .ph-category-price-box > .ph-price-brutto.ph-standard,
body.com-phocacart .ph-category-price-box > .ph-price-brutto.ph-standard { grid-row: 3 !important; grid-column: 2 !important; }

/* Partner price rows: 4–6. */
body.com_phocacart .ph-item-price-box > .ph-price-txt.ph-price-netto-txt.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-txt.ph-price-netto-txt.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-txt.ph-price-netto-txt.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-txt.ph-price-netto-txt.ph-price-discount { grid-row: 4 !important; grid-column: 1 !important; }
body.com_phocacart .ph-item-price-box > .ph-price-netto.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-netto.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-netto.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-netto.ph-price-discount { grid-row: 4 !important; grid-column: 2 !important; }

body.com_phocacart .ph-item-price-box > .ph-tax-txt.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-tax-txt.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-tax-txt.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-tax-txt.ph-price-discount { grid-row: 5 !important; grid-column: 1 !important; }
body.com_phocacart .ph-item-price-box > .ph-tax.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-tax.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-tax.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-tax.ph-price-discount { grid-row: 5 !important; grid-column: 2 !important; }

body.com_phocacart .ph-item-price-box > .ph-price-txt.ph-price-brutto-txt.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-txt.ph-price-brutto-txt.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-txt.ph-price-brutto-txt.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-txt.ph-price-brutto-txt.ph-price-discount { grid-row: 6 !important; grid-column: 1 !important; }
body.com_phocacart .ph-item-price-box > .ph-price-brutto.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-brutto.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-brutto.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-brutto.ph-price-discount { grid-row: 6 !important; grid-column: 2 !important; }

/* Labels left, values right. */
body.com_phocacart .ph-item-price-box > .ph-price-txt,
body.com_phocacart .ph-item-price-box > .ph-tax-txt,
body.com-phocacart .ph-item-price-box > .ph-price-txt,
body.com-phocacart .ph-item-price-box > .ph-tax-txt,
body.com_phocacart .ph-category-price-box > .ph-price-txt,
body.com_phocacart .ph-category-price-box > .ph-tax-txt,
body.com-phocacart .ph-category-price-box > .ph-price-txt,
body.com-phocacart .ph-category-price-box > .ph-tax-txt {
    justify-self: stretch !important;
    text-align: left !important;
    white-space: normal !important;
}
body.com_phocacart .ph-item-price-box > .ph-price-netto,
body.com_phocacart .ph-item-price-box > .ph-tax,
body.com_phocacart .ph-item-price-box > .ph-price-brutto,
body.com-phocacart .ph-item-price-box > .ph-price-netto,
body.com-phocacart .ph-item-price-box > .ph-tax,
body.com-phocacart .ph-item-price-box > .ph-price-brutto,
body.com_phocacart .ph-category-price-box > .ph-price-netto,
body.com_phocacart .ph-category-price-box > .ph-tax,
body.com_phocacart .ph-category-price-box > .ph-price-brutto,
body.com-phocacart .ph-category-price-box > .ph-price-netto,
body.com-phocacart .ph-category-price-box > .ph-tax,
body.com-phocacart .ph-category-price-box > .ph-price-brutto {
    justify-self: end !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums lining-nums !important;
}

/* Exact requested colours and weights. */
body.com_phocacart .ph-item-price-box > .ph-standard,
body.com-phocacart .ph-item-price-box > .ph-standard,
body.com_phocacart .ph-item-price-box > .ph-standard-txt,
body.com-phocacart .ph-item-price-box > .ph-standard-txt,
body.com_phocacart .ph-category-price-box > .ph-standard,
body.com-phocacart .ph-category-price-box > .ph-standard,
body.com_phocacart .ph-category-price-box > .ph-standard-txt,
body.com-phocacart .ph-category-price-box > .ph-standard-txt {
    color: #222 !important;
    font-weight: 400 !important;
}
body.com_phocacart .ph-item-price-box > .ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-discount {
    color: #376fe6 !important;
    font-weight: 400 !important;
}
body.com_phocacart .ph-item-price-box > .ph-price-brutto.ph-standard,
body.com_phocacart .ph-item-price-box > .ph-price-brutto.ph-standard,
body.com_phocacart .ph-item-price-box > .ph-price-brutto-txt.ph-standard-txt,
body.com-phocacart .ph-item-price-box > .ph-price-brutto-txt.ph-standard-txt,
body.com_phocacart .ph-category-price-box > .ph-price-brutto.ph-standard,
body.com-phocacart .ph-category-price-box > .ph-price-brutto.ph-standard,
body.com_phocacart .ph-category-price-box > .ph-price-brutto-txt.ph-standard-txt,
body.com-phocacart .ph-category-price-box > .ph-price-brutto-txt.ph-standard-txt,
body.com_phocacart .ph-item-price-box > .ph-price-brutto.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-brutto.ph-price-discount,
body.com_phocacart .ph-item-price-box > .ph-price-brutto-txt.ph-price-discount,
body.com-phocacart .ph-item-price-box > .ph-price-brutto-txt.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-brutto.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-brutto.ph-price-discount,
body.com_phocacart .ph-category-price-box > .ph-price-brutto-txt.ph-price-discount,
body.com-phocacart .ph-category-price-box > .ph-price-brutto-txt.ph-price-discount {
    font-weight: 700 !important;
}

body.com_phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box,
body.com-phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box {
    column-gap: 10px !important;
    row-gap: 3px !important;
    font-size: .88rem !important;
}
body.com_phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > *,
body.com-phocacart div[id^="phItemPriceBoxCategory"] > .ph-category-price-box > * {
    font-size: inherit !important;
}

@media (max-width: 600px) {
    body.com_phocacart .ph-item-price-box,
    body.com-phocacart .ph-item-price-box,
    body.com_phocacart .ph-category-price-box,
    body.com-phocacart .ph-category-price-box {
        grid-template-columns: minmax(0, 1fr) auto !important;
        column-gap: 10px !important;
    }
}

/* v220: one price panel only.
   The visible frame belongs to .ph-item-price-panel; the generated price-box wrapper stays transparent. */
body.com_phocacart .ph-item-price-panel,
body.com-phocacart .ph-item-price-panel {
    padding: 16px 18px !important;
    background: var(--site-surface-alt, #f4f5f7) !important;
    border: 1px solid var(--site-border, rgba(31, 34, 40, .14)) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(22, 27, 38, .04) !important;
    box-sizing: border-box !important;
}

/* Prevent the nested #phItemPriceBoxItem... element from drawing a second box. */
body.com_phocacart .ph-item-price-panel > div[id^="phItemPriceBoxItem"],
body.com-phocacart .ph-item-price-panel > div[id^="phItemPriceBoxItem"],
body.com_phocacart div[id^="phItemPriceBoxItem"],
body.com-phocacart div[id^="phItemPriceBoxItem"] {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.com_phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box,
body.com-phocacart div[id^="phItemPriceBoxItem"] > .ph-item-price-box {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Standard prices follow the active light/dark theme. */
body.com_phocacart .ph-item-price-box > .ph-standard,
body.com-phocacart .ph-item-price-box > .ph-standard,
body.com_phocacart .ph-item-price-box > .ph-standard-txt,
body.com-phocacart .ph-item-price-box > .ph-standard-txt,
body.com_phocacart .ph-category-price-box > .ph-standard,
body.com-phocacart .ph-category-price-box > .ph-standard,
body.com_phocacart .ph-category-price-box > .ph-standard-txt,
body.com-phocacart .ph-category-price-box > .ph-standard-txt {
    color: var(--site-text, #25272d) !important;
}

html[data-theme="dark"] body.com_phocacart .ph-item-price-panel,
html[data-theme="dark"] body.com-phocacart .ph-item-price-panel {
    background: var(--site-surface, #24232b) !important;
    border-color: var(--site-border, rgba(255, 255, 255, .13)) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}

html[data-theme="dark"] body.com_phocacart .ph-item-price-box > .ph-standard,
html[data-theme="dark"] body.com-phocacart .ph-item-price-box > .ph-standard,
html[data-theme="dark"] body.com_phocacart .ph-item-price-box > .ph-standard-txt,
html[data-theme="dark"] body.com-phocacart .ph-item-price-box > .ph-standard-txt,
html[data-theme="dark"] body.com_phocacart .ph-category-price-box > .ph-standard,
html[data-theme="dark"] body.com-phocacart .ph-category-price-box > .ph-standard,
html[data-theme="dark"] body.com_phocacart .ph-category-price-box > .ph-standard-txt,
html[data-theme="dark"] body.com-phocacart .ph-category-price-box > .ph-standard-txt {
    color: var(--site-text, #f2f3f6) !important;
}


/* v228 category/detail partner price sizes */
.ph-category-item .ph-price-brutto.ph-price-discount,
.ph-category-item .ph-price-brutto.ph-price-discount-cart{
    font-size:15px !important;
}
.ph-item-price-panel .ph-price-brutto.ph-price-discount,
.ph-item-price-panel .ph-price-brutto.ph-price-discount-cart{
    font-size:18px !important;
}

/* ===== Source: mobile-header-v230.css ===== */
/* Mobilní a tabletová hlavička v230
   1. řádek: hamburger vlevo, účet + košík + přepínač vpravo
   2. řádek: logo
   3. řádek: vyhledávání
*/
@media (max-width: 1024px) {
  #g-navigation {
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 14px 16px !important;
  }

  #g-navigation > .g-container,
  #g-navigation > .g-container-fluid {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  /* První Gantry řádek s částicemi hlavičky. */
  #g-navigation .g-grid:has(.g-logo-1) {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  #g-navigation .g-grid:has(.g-logo-1) > .g-block {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  #g-navigation .g-grid:has(.g-logo-1) > .g-block > .g-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Telefon na mobilu a tabletu není součástí požadovaného uspořádání. */
  #g-navigation .g-grid:has(.g-logo-1) > .g-block:has(.g-phonehours3) {
    display: none !important;
  }

  /* 1. řádek: akce vpravo. Volné místo vlevo je určeno hamburgeru. */
  #g-navigation .g-grid:has(.g-logo-1) > .g-block:has(.g-accountcart4) {
    order: 1 !important;
    margin-left: auto !important;
  }

  #g-navigation .g-grid:has(.g-logo-1) > .g-block:has(.g-themeswitcher5) {
    order: 1 !important;
    margin-left: 8px !important;
  }

  #g-navigation .g-accountcart4,
  #g-navigation .g-themeswitcher5 {
    margin: 0 !important;
    padding: 0 !important;
  }

  #g-navigation .g-accountcart4--separator::before,
  #g-navigation .g-accountcart4--separator::after {
    display: none !important;
  }

  #g-navigation .g-accountcart4__inner {
    gap: 8px !important;
  }

  #g-navigation .g-accountcart4__button,
  #g-navigation .g-themeswitcher5 button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
  }

  /* 2. řádek: logo přes celou šířku a na střed. */
  #g-navigation .g-grid:has(.g-logo-1) > .g-block:has(.g-logo-1) {
    order: 2 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  #g-navigation .g-logo-1 {
    justify-content: center !important;
  }

  #g-navigation .g-logo-1__image {
    width: min(72vw, 283px) !important;
    max-height: 72px !important;
  }

  /* 3. řádek: vyhledávání přes dostupnou šířku. */
  #g-navigation .g-grid:has(.g-logo-1) > .g-block:has(.g-search2pro) {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  #g-navigation .g-search2pro {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #g-navigation .g-search2pro__form {
    width: 100% !important;
    max-width: none !important;
  }

  /* Desktopové menu v navigaci je na mobilu a tabletu nahrazeno offcanvas hamburgerem. */
  #g-navigation .g-grid:has(.menu-visualization) {
    display: none !important;
  }

  /* Gantry hamburger přesně vlevo v prvním řádku. */
  .g-offcanvas-toggle {
    position: absolute !important;
    z-index: 1002 !important;
    top: 10px !important;
    left: 14px !important;
    right: auto !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Rezerva, aby pravé akce nikdy nepřekryly hamburger. */
  #g-navigation .g-grid:has(.g-logo-1)::before {
    content: "";
    order: 1;
    flex: 0 0 48px;
    width: 48px;
    height: 40px;
  }

  /* Odstranění prázdné mobilní a tabletové výšky pod hlavičkou. */
  #g-header,
  #g-header .g-container,
  #g-header .g-grid,
  #g-header .g-block,
  #g-header .g-content {
    min-height: 0 !important;
  }
}

/* Záložní selektory pro prohlížeče bez :has(). */
@supports not selector(:has(*)) {
  @media (max-width: 1024px) {
    #g-navigation .g-grid:first-of-type {
      display: flex !important;
      flex-flow: row wrap !important;
      align-items: center !important;
    }
  }
}

/* ===== Source: phocacart-category-tablet-v239.css ===== */
/* Phoca Cart category grid — switch to two cards earlier when the
   sidebar leaves too little space for three readable product cards. */
@media (min-width: 768px) and (max-width: 1280px) {
    /* Two product cards per row instead of three narrow cards. */
    body.com_phocacart.view-category .ph-row-flex.grid > .row-item,
    body.com-phocacart.view-category .ph-row-flex.grid > [class*="col-md-"],
    body.com_phocacart.view-category .ph-row-flex.grid > .row-item,
    body.com_phocacart.view-category .ph-row-flex.grid > [class*="col-md-"] {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
    }

    /* Prevent card content and price columns from escaping their card. */
    body.com_phocacart.view-category .ph-item-box,
    body.com_phocacart.view-category .ph-category-item-box,
    body.com_phocacart.view-category .ph-category-item-body,
    body.com_phocacart.view-category .ph-item-content,
    body.com-phocacart.view-category .ph-item-box,
    body.com-phocacart.view-category .ph-category-item-box,
    body.com-phocacart.view-category .ph-category-item-body,
    body.com-phocacart.view-category .ph-item-content {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-category-price-box,
    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-category-price-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) max-content !important;
        column-gap: 10px !important;
        box-sizing: border-box !important;
    }

    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-price-text,
    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-price-text {
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-price-netto,
    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-tax,
    body.com_phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-price-brutto,
    body.com-phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-price-netto,
    body.com-phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-tax,
    body.com-phocacart.view-category [id^="phItemPriceBoxCategory"] .ph-price-brutto {
        white-space: nowrap !important;
    }

    body.com_phocacart.view-category .ph-item-action-box,
    body.com_phocacart.view-category .ph-category-action-buttons,
    body.com-phocacart.view-category .ph-item-action-box,
    body.com-phocacart.view-category .ph-category-action-buttons {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Very narrow tablet portrait: one card per row for guaranteed readability. */
@media (min-width: 768px) and (max-width: 820px) {
    body.com_phocacart.view-category .ph-row-flex.grid > .row-item,
    body.com_phocacart.view-category .ph-row-flex.grid > [class*="col-md-"],
    body.com-phocacart.view-category .ph-row-flex.grid > .row-item,
    body.com-phocacart.view-category .ph-row-flex.grid > [class*="col-md-"] {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* v232: when the final tablet row contains only one product, center it. */
@media (min-width: 821px) and (max-width: 1024px) {
    body.com_phocacart.view-category .ph-row-flex.grid > .row-item:last-child:nth-child(odd),
    body.com_phocacart.view-category .ph-row-flex.grid > [class*="col-md-"]:last-child:nth-child(odd),
    body.com-phocacart.view-category .ph-row-flex.grid > .row-item:last-child:nth-child(odd),
    body.com-phocacart.view-category .ph-row-flex.grid > [class*="col-md-"]:last-child:nth-child(odd) {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* v233: Phoca Cart inserts clearing nodes between product cards.
   In a wrapping flex layout these nodes create artificial empty columns/rows. */
@media (min-width: 768px) and (max-width: 1024px) {
    body.com_phocacart.view-category .ph-row-flex.grid > .ph-cb,
    body.com-phocacart.view-category .ph-row-flex.grid > .ph-cb {
        display: none !important;
        flex: 0 0 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove the previous odd-child centering; child indexes included clear nodes. */
    body.com_phocacart.view-category .ph-row-flex.grid > .row-item,
    body.com_phocacart.view-category .ph-row-flex.grid > [class*="col-md-"],
    body.com-phocacart.view-category .ph-row-flex.grid > .row-item,
    body.com-phocacart.view-category .ph-row-flex.grid > [class*="col-md-"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Center only a genuinely unpaired final product, without counting .ph-cb nodes. */
    body.com_phocacart.view-category .ph-row-flex.grid > .row-item:nth-last-child(1):nth-child(odd),
    body.com-phocacart.view-category .ph-row-flex.grid > .row-item:nth-last-child(2):nth-child(odd),
    body.com-phocacart.view-category .ph-row-flex.grid > .row-item:nth-last-child(1):nth-child(odd),
    body.com-phocacart.view-category .ph-row-flex.grid > .row-item:nth-last-child(2):nth-child(odd) {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===== Source: phocacart-filter-modern-v239.css ===== */
/* Phoca Cart Filter – vzhled šablony Jsem chytrý, v239 */

:root {
  --pc-filter-accent: #376fe6;
  --pc-filter-text: #25272d;
  --pc-filter-muted: #6f7782;
  --pc-filter-border: rgba(37, 39, 45, .14);
  --pc-filter-surface: #fff;
  --pc-filter-surface-soft: #f7f9fc;
  --pc-filter-shadow: 0 8px 24px rgba(24, 39, 75, .08);
}

/* Celý modul */
.platform-content .moduletable .phFilterBox,
.platform-content .moduletable #phFilterBox,
#phFilterBox.phFilterBox {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--pc-filter-text);
  background: var(--pc-filter-surface);
  border: 1px solid var(--pc-filter-border);
  border-radius: 14px;
  box-shadow: var(--pc-filter-shadow);
  overflow: hidden;
}

#phFilterBox *,
#phFilterBox *::before,
#phFilterBox *::after {
  box-sizing: border-box;
}

/* Jednotlivé sekce filtru */
#phFilterBox .panel,
#phFilterBox .panel-default {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#phFilterBox .panel + .panel {
  border-top: 1px solid var(--pc-filter-border);
}

#phFilterBox .panel-heading,
#phFilterBox .ph-filter-heading,
#phFilterBox [role="tab"] > .panel-heading {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 12px 28px 12px 14px;
  color: var(--pc-filter-text);
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

#phFilterBox .panel-heading::before,
#phFilterBox .ph-filter-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 999px;
  background: var(--pc-filter-accent);
}

#phFilterBox .panel-title,
#phFilterBox .panel-title a,
#phFilterBox .panel-heading a {
  width: 100%;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

/* Šipka rozbalení */
#phFilterBox .panel-heading .glyphicon,
#phFilterBox .panel-heading .fa,
#phFilterBox .panel-heading .fas,
#phFilterBox .panel-heading .icon-chevron-down,
#phFilterBox .panel-heading .icon-chevron-up {
  position: absolute;
  right: 8px;
  color: var(--pc-filter-accent);
}

#phFilterBox .panel-collapse,
#phFilterBox .panel-body,
#phFilterBox .ph-filter-body {
  margin: 0;
  padding: 2px 8px 14px 14px;
  background: transparent;
  border: 0;
}

/* Volby */
#phFilterBox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 5px 4px;
  color: var(--pc-filter-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

#phFilterBox label:hover {
  color: var(--pc-filter-accent);
}

#phFilterBox input[type="checkbox"],
#phFilterBox input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--pc-filter-accent);
}

#phFilterBox input[type="text"],
#phFilterBox input[type="number"],
#phFilterBox select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--pc-filter-text);
  background: var(--pc-filter-surface);
  border: 1px solid var(--pc-filter-border);
  border-radius: 9px;
  outline: 0;
}

#phFilterBox input:focus,
#phFilterBox select:focus {
  border-color: var(--pc-filter-accent);
  box-shadow: 0 0 0 3px rgba(55, 111, 230, .14);
}

/* Cenový posuvník */
#phFilterBox .ui-slider,
#phFilterBox .noUi-target,
#phFilterBox .ph-filter-price-slider {
  height: 5px;
  margin: 14px 8px 12px;
  background: #dce4f3;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

#phFilterBox .ui-slider-range,
#phFilterBox .noUi-connect {
  background: var(--pc-filter-accent);
}

#phFilterBox .ui-slider-handle,
#phFilterBox .noUi-handle {
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8.5px;
  background: var(--pc-filter-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(55, 111, 230, .35);
  cursor: grab;
}

#phFilterBox .noUi-handle::before,
#phFilterBox .noUi-handle::after {
  display: none;
}

#phFilterBox .ph-filter-price-value,
#phFilterBox .price-output,
#phFilterBox .phPriceFilterValue {
  color: var(--pc-filter-muted);
  font-size: 12px;
  text-align: center;
}

/* Potvrdit / resetovat */
#phFilterBox button,
#phFilterBox .btn,
#phFilterBox input[type="submit"],
#phFilterBox input[type="button"] {
  min-width: 40px;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: var(--pc-filter-accent);
  border: 1px solid var(--pc-filter-accent);
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(55, 111, 230, .22);
  font-weight: 700;
}

#phFilterBox .btn-link,
#phFilterBox .ph-filter-clear,
#phFilterBox [class*="reset"] {
  color: var(--pc-filter-muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#phFilterBox button:hover,
#phFilterBox .btn:hover {
  filter: brightness(.95);
}

/* Odstranění nechtěných bootstrapových dekorací */
#phFilterBox .panel-group {
  margin: 0;
}

#phFilterBox ul,
#phFilterBox ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tmavý režim */
html.dark-mode,
body.dark-mode,
body.theme-dark,
[data-theme="dark"] {
  --pc-filter-text: #f2f4f8;
  --pc-filter-muted: #aeb6c3;
  --pc-filter-border: rgba(255, 255, 255, .13);
  --pc-filter-surface: #1c1d24;
  --pc-filter-surface-soft: #22242d;
  --pc-filter-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

html.dark-mode #phFilterBox,
body.dark-mode #phFilterBox,
body.theme-dark #phFilterBox,
[data-theme="dark"] #phFilterBox {
  color: var(--pc-filter-text);
  background: var(--pc-filter-surface);
  border-color: var(--pc-filter-border);
}

html.dark-mode #phFilterBox input[type="text"],
html.dark-mode #phFilterBox input[type="number"],
html.dark-mode #phFilterBox select,
body.dark-mode #phFilterBox input[type="text"],
body.dark-mode #phFilterBox input[type="number"],
body.dark-mode #phFilterBox select,
body.theme-dark #phFilterBox input[type="text"],
body.theme-dark #phFilterBox input[type="number"],
body.theme-dark #phFilterBox select,
[data-theme="dark"] #phFilterBox input[type="text"],
[data-theme="dark"] #phFilterBox input[type="number"],
[data-theme="dark"] #phFilterBox select {
  color: var(--pc-filter-text);
  background: var(--pc-filter-surface-soft);
  border-color: var(--pc-filter-border);
}

/* Tablet a mobil: modul přes celou šířku a kompaktnější */
@media (max-width: 1024px) {
  #phFilterBox.phFilterBox {
    padding: 10px 14px 14px;
  }

  #phFilterBox .panel-heading,
  #phFilterBox .ph-filter-heading {
    min-height: 44px;
  }
}


/* v238: nadpis modulu je součástí jednoho společného boxu */
.platform-content .moduletable:has(> #phFilterBox),
.platform-content .moduletable:has(.phFilterBox) {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--pc-filter-text);
  background: var(--pc-filter-surface);
  border: 1px solid var(--pc-filter-border);
  border-radius: 14px;
  box-shadow: var(--pc-filter-shadow);
  overflow: hidden;
}

/* Nadpis může Joomla/Phoca Cart vykreslit jako h3, h4 nebo ph-module-header4. */
.platform-content .moduletable:has(.phFilterBox) > h3,
.platform-content .moduletable:has(.phFilterBox) > h4,
.platform-content .moduletable:has(.phFilterBox) > .module-title,
.platform-content .moduletable:has(.phFilterBox) > .ph-module-header4 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 0 !important;
  padding: 14px 18px 14px 30px !important;
  color: var(--pc-filter-text) !important;
  background: var(--pc-filter-surface) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pc-filter-border) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.platform-content .moduletable:has(.phFilterBox) > h3::before,
.platform-content .moduletable:has(.phFilterBox) > h4::before,
.platform-content .moduletable:has(.phFilterBox) > .module-title::before,
.platform-content .moduletable:has(.phFilterBox) > .ph-module-header4::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  bottom: 15px;
  width: 3px;
  border-radius: 999px;
  background: var(--pc-filter-accent);
}

/* Vnitřní filtr už nevytváří druhý card box. */
.platform-content .moduletable:has(.phFilterBox) #phFilterBox,
.platform-content .moduletable:has(.phFilterBox) .phFilterBox {
  margin: 0 !important;
  padding: 4px 16px 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

/* Pokud je nadpis obalen ještě pomocným kontejnerem. */
.platform-content .moduletable:has(.phFilterBox) > .module-title-wrap,
.platform-content .moduletable:has(.phFilterBox) > .module-header {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

html.dark-mode .platform-content .moduletable:has(.phFilterBox),
body.dark-mode .platform-content .moduletable:has(.phFilterBox),
body.theme-dark .platform-content .moduletable:has(.phFilterBox),
[data-theme="dark"] .platform-content .moduletable:has(.phFilterBox) {
  color: var(--pc-filter-text);
  background: var(--pc-filter-surface);
  border-color: var(--pc-filter-border);
}

@media (max-width: 1024px) {
  .platform-content .moduletable:has(.phFilterBox) > h3,
  .platform-content .moduletable:has(.phFilterBox) > h4,
  .platform-content .moduletable:has(.phFilterBox) > .module-title,
  .platform-content .moduletable:has(.phFilterBox) > .ph-module-header4 {
    min-height: 50px;
    padding: 12px 16px 12px 28px !important;
    font-size: 18px !important;
  }

  .platform-content .moduletable:has(.phFilterBox) #phFilterBox,
  .platform-content .moduletable:has(.phFilterBox) .phFilterBox {
    padding: 2px 14px 14px !important;
  }
}


/* v239 – přesné vystředění a sjednocení úchytů cenového posuvníku */
#phFilterBox .ui-slider-horizontal,
#phFilterBox .ph-filter-price-slider.ui-slider-horizontal {
  position: relative !important;
  height: 5px !important;
  background: #dce4f3 !important;
  border: 0 !important;
  border-radius: 999px !important;
}

#phFilterBox .ui-slider-horizontal .ui-slider-range,
#phFilterBox .ui-slider-range,
#phFilterBox .noUi-connect {
  height: 100% !important;
  background: #376fe6 !important;
  border: 0 !important;
  border-radius: 999px !important;
}

#phFilterBox .ui-slider-horizontal .ui-slider-handle,
#phFilterBox .ui-slider .ui-slider-handle {
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 0 !important;
  margin-left: -9px !important;
  padding: 0 !important;
  background: #376fe6 !important;
  background-image: none !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(55, 111, 230, .32) !important;
  transform: translateY(-50%) !important;
  cursor: grab !important;
}

#phFilterBox .ui-slider-horizontal .ui-slider-handle:hover,
#phFilterBox .ui-slider-horizontal .ui-slider-handle:focus,
#phFilterBox .ui-slider-horizontal .ui-slider-handle.ui-state-active {
  background: #376fe6 !important;
  border-color: #fff !important;
  outline: 0 !important;
  transform: translateY(-50%) scale(1.06) !important;
}

#phFilterBox .noUi-target {
  position: relative !important;
  height: 5px !important;
  background: #dce4f3 !important;
  border: 0 !important;
  border-radius: 999px !important;
}

#phFilterBox .noUi-horizontal .noUi-handle,
#phFilterBox .noUi-handle {
  top: 50% !important;
  right: -9px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #376fe6 !important;
  background-image: none !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(55, 111, 230, .32) !important;
  transform: translateY(-50%) !important;
}

html.dark-mode #phFilterBox .ui-slider-horizontal,
body.dark-mode #phFilterBox .ui-slider-horizontal,
body.theme-dark #phFilterBox .ui-slider-horizontal,
[data-theme="dark"] #phFilterBox .ui-slider-horizontal,
html.dark-mode #phFilterBox .noUi-target,
body.dark-mode #phFilterBox .noUi-target,
body.theme-dark #phFilterBox .noUi-target,
[data-theme="dark"] #phFilterBox .noUi-target {
  background: #343847 !important;
}



/* v244 – stabilní dostupnost bez překrývání
   Skutečný DOM má vnější .ph-item-stock-box a uvnitř další
   .ph-category-stock-box. Grid proto řídí pouze vnější box. */
#ph-pc-category-box .ph-item-stock-box.pc-stock-box-v240 {
  position: static !important;
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  column-gap: 12px !important;
  box-sizing: border-box !important;
}

/* Popisek Dostupnost: patří pouze vnějšímu boxu. */
#ph-pc-category-box .ph-item-stock-box.pc-stock-box-v240::before {
  grid-column: 1 !important;
  display: block !important;
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  text-align: left !important;
  transform: none !important;
}

/* Vnitřní wrapper nesmí vytvářet druhý grid ani druhý popisek. */
#ph-pc-category-box
.ph-item-stock-box.pc-stock-box-v240
> .ph-category-stock-box.pc-stock-box-v240 {
  display: contents !important;
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

#ph-pc-category-box
.ph-item-stock-box.pc-stock-box-v240
> .ph-category-stock-box.pc-stock-box-v240::before {
  content: none !important;
  display: none !important;
}

/* Hodnota stavu je ve druhém sloupci a skutečně na pravém okraji. */
#ph-pc-category-box
.ph-item-stock-box.pc-stock-box-v240
.pc-stock-value-v240,
#ph-pc-category-box
.ph-item-stock-box.pc-stock-box-v240
.ph-stock {
  grid-column: 2 !important;
  position: static !important;
  justify-self: end !important;
  align-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  transform: none !important;
}

/* Pomocný clear nesmí zabírat místo. */
#ph-pc-category-box
.ph-item-stock-box.pc-stock-box-v240
.ph-cb {
  display: none !important;
}


/* v245 – produktový štítek bez zaoblení, stínu a rámečku */
body.com_phocacart.view-item .ph-label-box,
body.com_phocacart.view-item .ph-item-image-full-box .ph-label-box,
body.com_phocacart.view-item .ph-image-full-box .ph-label-box,
body.com_phocacart.view-category .pc-item-box .ph-label-box,
body.com_phocacart.view-category .ph-item-box .ph-label-box,
body.com_phocacart.view-category .ph-category-item-box .ph-label-box {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Samotný obsah štítku nesmí znovu přidávat zaoblení ani stín. */
body.com_phocacart .ph-label-box > *,
body.com_phocacart .ph-label-box img,
body.com_phocacart .ph-label-box span,
body.com_phocacart .ph-label-box a {
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* ===== JCHD category controls + stock layout v249 ===== */

/* Nová čistá lišta řazení – původní rozpadlý wrapper se nepoužívá. */
#ph-pc-category-box .pc-list-controls-v249 {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) max-content !important;
  align-items: end !important;
  gap: 18px 28px !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 26px 0 14px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(31, 45, 68, .10) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(20, 35, 65, .055) !important;
  box-sizing: border-box !important;
}

#ph-pc-category-box .pc-control-group-v249 {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

#ph-pc-category-box .pc-control-order-v249 {
  grid-column: 1 !important;
}

#ph-pc-category-box .pc-control-limit-v249 {
  grid-column: 2 !important;
  grid-template-columns: max-content 88px !important;
  justify-self: end !important;
}

#ph-pc-category-box .pc-control-label-v249 {
  margin: 0 !important;
  color: #3e4652 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

#ph-pc-category-box .pc-control-select-v249 {
  height: 44px !important;
  margin: 0 !important;
}

#ph-pc-category-box .pc-control-order-v249 .pc-control-select-v249 {
  width: 100% !important;
  min-width: 220px !important;
}

#ph-pc-category-box .pc-control-limit-v249 .pc-control-select-v249 {
  width: 88px !important;
  min-width: 88px !important;
}

/* Dostupnost: pouze jeden skutečný grid na vnějším boxu. */
#ph-pc-category-box .ph-item-stock-box.pc-stock-layout-v249 {
  position: static !important;
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#ph-pc-category-box .ph-item-stock-box.pc-stock-layout-v249::before {
  content: "Dostupnost:" !important;
  grid-column: 1 !important;
  display: block !important;
  position: static !important;
  justify-self: start !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--site-text, #25272d) !important;
  text-align: left !important;
  white-space: nowrap !important;
  transform: none !important;
}

#ph-pc-category-box
.ph-item-stock-box.pc-stock-layout-v249
> .pc-stock-inner-v249 {
  display: contents !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ph-pc-category-box
.ph-item-stock-box.pc-stock-layout-v249
> .pc-stock-inner-v249::before {
  content: none !important;
  display: none !important;
}

#ph-pc-category-box
.ph-item-stock-box.pc-stock-layout-v249
.pc-stock-value-v249 {
  grid-column: 2 !important;
  position: static !important;
  justify-self: end !important;
  align-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  transform: none !important;
}

#ph-pc-category-box
.ph-item-stock-box.pc-stock-layout-v249
.ph-cb {
  display: none !important;
}

html[data-theme="dark"] #ph-pc-category-box .pc-list-controls-v249,
body.dark-mode #ph-pc-category-box .pc-list-controls-v249 {
  background: #171b22 !important;
  border-color: #343b47 !important;
}

html[data-theme="dark"] #ph-pc-category-box .pc-control-label-v249,
body.dark-mode #ph-pc-category-box .pc-control-label-v249,
html[data-theme="dark"] #ph-pc-category-box .ph-item-stock-box.pc-stock-layout-v249::before,
body.dark-mode #ph-pc-category-box .ph-item-stock-box.pc-stock-layout-v249::before {
  color: #d8dee8 !important;
}

@media (max-width: 767.98px) {
  #ph-pc-category-box .pc-list-controls-v249 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  #ph-pc-category-box .pc-control-order-v249,
  #ph-pc-category-box .pc-control-limit-v249 {
    grid-column: 1 !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  #ph-pc-category-box .pc-control-order-v249 .pc-control-select-v249,
  #ph-pc-category-box .pc-control-limit-v249 .pc-control-select-v249 {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* ===== JCHD dostupnost – finální DOM řádek v250 ===== */
#ph-pc-category-box .ph-item-stock-box.pc-stock-row-v250::before,
#ph-pc-category-box .ph-item-stock-box.pc-stock-row-v250::after {
  content: none !important;
  display: none !important;
}

#ph-pc-category-box .ph-item-stock-box.pc-stock-row-v250 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  column-gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  box-sizing: border-box !important;
}

#ph-pc-category-box .pc-stock-label-v250 {
  grid-column: 1 !important;
  justify-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--site-text, #25272d) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#ph-pc-category-box .pc-stock-value-v250 {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  position: static !important;
  text-align: right !important;
  white-space: nowrap !important;
  transform: none !important;
}

html[data-theme="dark"] #ph-pc-category-box .pc-stock-label-v250,
body.dark-mode #ph-pc-category-box .pc-stock-label-v250 {
  color: #d8dee8 !important;
}

/* ===== JCHD Joomla Blog cards v254 ===== */
body.com_content.view-category .blog,
body.com_content.view-category .com-content-category-blog {
  --jchd-blog-primary: #3478e5;
  --jchd-blog-text: var(--site-text, #25272d);
  --jchd-blog-muted: var(--site-text-muted, #667181);
  --jchd-blog-surface: var(--site-surface, #fff);
}

body.com_content.view-category .blog-items,
body.com_content.view-category .com-content-category-blog__items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 28px 0 24px !important;
}

body.com_content.view-category .blog-item,
body.com_content.view-category .com-content-category-blog__item {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_content.view-category .jchd-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--jchd-blog-surface);
  border: 1px solid rgba(31, 45, 68, .11);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(24, 39, 75, .065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.com_content.view-category .jchd-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 120, 229, .28);
  box-shadow: 0 14px 32px rgba(24, 39, 75, .11);
}

body.com_content.view-category .jchd-blog-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef2f7;
}

body.com_content.view-category .jchd-blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

body.com_content.view-category .jchd-blog-card:hover .jchd-blog-card__image img {
  transform: scale(1.035);
}

body.com_content.view-category .jchd-blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px 18px 20px;
}

body.com_content.view-category .jchd-blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  color: #758092;
  font-size: 12px;
}

body.com_content.view-category .jchd-blog-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--jchd-blog-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

body.com_content.view-category .jchd-blog-card__title {
  margin: 0 0 14px !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
}

body.com_content.view-category .jchd-blog-card__title a {
  color: var(--jchd-blog-text) !important;
  text-decoration: none !important;
}

body.com_content.view-category .jchd-blog-card__title a:hover {
  color: var(--jchd-blog-primary) !important;
}

body.com_content.view-category .jchd-blog-card__intro {
  display: -webkit-box;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--jchd-blog-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.com_content.view-category .jchd-blog-card__intro > :first-child { margin-top: 0 !important; }
body.com_content.view-category .jchd-blog-card__intro > :last-child { margin-bottom: 0 !important; }

body.com_content.view-category .jchd-blog-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: auto;
  color: var(--jchd-blog-primary) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

body.com_content.view-category .jchd-blog-card__readmore span:last-child {
  transition: transform .18s ease;
}

body.com_content.view-category .jchd-blog-card__readmore:hover span:last-child {
  transform: translateX(4px);
}

body.com_content.view-category .pagination__wrapper,
body.com_content.view-category .com-content-category-blog__navigation {
  margin-top: 28px;
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-card,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-card,
body.dark-mode.com_content.view-category .jchd-blog-card {
  background: #171b22;
  border-color: #343b47;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-card__title a,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-card__title a,
body.dark-mode.com_content.view-category .jchd-blog-card__title a {
  color: #f2f5f9 !important;
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-card__intro,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-card__intro,
body.dark-mode.com_content.view-category .jchd-blog-card__intro {
  color: #b8c0cc;
}

@media (max-width: 1199.98px) {
  body.com_content.view-category .blog-items,
  body.com_content.view-category .com-content-category-blog__items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 699.98px) {
  body.com_content.view-category .blog-items,
  body.com_content.view-category .com-content-category-blog__items {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.com_content.view-category .jchd-blog-card__body {
    padding: 16px;
  }
}


/* ===== JCHD Blog – sjednocené nadpisy a webové tlačítko v256 ===== */
body.com_content.view-category .jchd-blog-card__title {
  display: -webkit-box !important;
  min-height: 2.8em !important;
  margin: 0 0 14px !important;
  overflow: hidden !important;
  color: var(--jchd-blog-text) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.com_content.view-category .jchd-blog-card__title a {
  display: block !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

/* Nadpisy vložené do perexu nesmí soutěžit s titulkem karty. */
body.com_content.view-category .jchd-blog-card__intro h1,
body.com_content.view-category .jchd-blog-card__intro h2,
body.com_content.view-category .jchd-blog-card__intro h3,
body.com_content.view-category .jchd-blog-card__intro h4,
body.com_content.view-category .jchd-blog-card__intro h5,
body.com_content.view-category .jchd-blog-card__intro h6 {
  margin: 0 0 10px !important;
  color: var(--jchd-blog-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

/* Stejné tlačítko „Číst dále“ jako v ostatních částech webu. */
body.com_content.view-category .jchd-blog-card__readmore {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: max-content !important;
  min-height: 38px !important;
  margin-top: auto !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(52, 120, 229, .34) !important;
  border-radius: 6px !important;
  background: rgba(52, 120, 229, .055) !important;
  color: #3478e5 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

body.com_content.view-category .jchd-blog-card__readmore-icon {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  transition: transform .18s ease !important;
}

body.com_content.view-category .jchd-blog-card__readmore:hover,
body.com_content.view-category .jchd-blog-card__readmore:focus-visible {
  border-color: #3478e5 !important;
  background: #3478e5 !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(52, 120, 229, .20) !important;
  transform: translateY(-1px) !important;
}

body.com_content.view-category .jchd-blog-card__readmore:hover .jchd-blog-card__readmore-icon,
body.com_content.view-category .jchd-blog-card__readmore:focus-visible .jchd-blog-card__readmore-icon {
  transform: translateY(2px) !important;
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-card__readmore,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-card__readmore,
body.dark-mode.com_content.view-category .jchd-blog-card__readmore {
  border-color: rgba(92, 149, 245, .48) !important;
  background: rgba(52, 120, 229, .12) !important;
  color: #78a9ff !important;
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-card__readmore:hover,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-card__readmore:hover,
body.dark-mode.com_content.view-category .jchd-blog-card__readmore:hover {
  background: #3478e5 !important;
  color: #fff !important;
}


/* ===== JCHD Blog title accent + search/tag filter v257 ===== */
body.com_content.view-category .jchd-blog-card__title {
  position: relative !important;
  padding-left: 13px !important;
}

body.com_content.view-category .jchd-blog-card__title::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: .2em !important;
  width: 3px !important;
  height: 1.25em !important;
  border-radius: 999px !important;
  background: var(--jchd-blog-primary, #3478e5) !important;
}

body.com_content.view-category .jchd-blog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 26px;
  padding: 14px;
  border: 1px solid rgba(31, 45, 68, .10);
  border-radius: 12px;
  background: var(--jchd-blog-surface, #fff);
  box-shadow: 0 6px 20px rgba(24, 39, 75, .055);
}

body.com_content.view-category .jchd-blog-tools__search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

body.com_content.view-category .jchd-blog-tools__search svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6f7b8d;
  stroke-width: 1.8;
  pointer-events: none;
}

body.com_content.view-category .jchd-blog-tools__search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 42px 0 40px;
  border: 1px solid rgba(31, 45, 68, .16);
  border-radius: 8px;
  background: var(--jchd-blog-surface, #fff);
  color: var(--jchd-blog-text, #25272d);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.com_content.view-category .jchd-blog-tools__search input:focus {
  border-color: var(--jchd-blog-primary, #3478e5);
  box-shadow: 0 0 0 3px rgba(52, 120, 229, .13);
}

body.com_content.view-category .jchd-blog-tools__search button {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #687486;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.com_content.view-category .jchd-blog-tools__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.com_content.view-category .jchd-blog-tools__tag {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(52, 120, 229, .25);
  border-radius: 7px;
  background: rgba(52, 120, 229, .055);
  color: var(--jchd-blog-primary, #3478e5);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color .17s ease, background .17s ease, border-color .17s ease;
}

body.com_content.view-category .jchd-blog-tools__tag:hover,
body.com_content.view-category .jchd-blog-tools__tag.is-active {
  border-color: var(--jchd-blog-primary, #3478e5);
  background: var(--jchd-blog-primary, #3478e5);
  color: #fff;
}

body.com_content.view-category .jchd-blog-tools__status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--jchd-blog-muted, #667181);
  font-size: 12px;
}

body.com_content.view-category .jchd-blog-tools__status:empty {
  display: none;
}

body.com_content.view-category .jchd-blog-item--hidden {
  display: none !important;
}

body.com_content.view-category .jchd-blog-empty {
  margin: 18px 0 28px;
  padding: 34px 20px;
  border: 1px dashed rgba(31, 45, 68, .18);
  border-radius: 12px;
  color: var(--jchd-blog-muted, #667181);
  text-align: center;
}

body.com_content.view-category .jchd-blog-empty strong,
body.com_content.view-category .jchd-blog-empty span {
  display: block;
}

body.com_content.view-category .jchd-blog-empty strong {
  margin-bottom: 5px;
  color: var(--jchd-blog-text, #25272d);
  font-size: 17px;
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-tools,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-tools,
body.dark-mode.com_content.view-category .jchd-blog-tools {
  background: #171b22;
  border-color: #343b47;
}

html[data-theme="dark"] body.com_content.view-category .jchd-blog-tools__search input,
html[data-theme-preference="dark"] body.com_content.view-category .jchd-blog-tools__search input,
body.dark-mode.com_content.view-category .jchd-blog-tools__search input {
  background: #11151b;
  border-color: #3a4350;
  color: #f2f5f9;
}

@media (max-width: 899.98px) {
  body.com_content.view-category .jchd-blog-tools {
    grid-template-columns: 1fr;
  }

  body.com_content.view-category .jchd-blog-tools__tags {
    justify-content: flex-start;
  }
}

@media (max-width: 599.98px) {
  body.com_content.view-category .jchd-blog-tools {
    margin-bottom: 20px;
    padding: 12px;
  }

  body.com_content.view-category .jchd-blog-tools__tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  body.com_content.view-category .jchd-blog-tools__tags::-webkit-scrollbar {
    display: none;
  }

  body.com_content.view-category .jchd-blog-tools__tag {
    flex: 0 0 auto;
  }
}


/* ===== JCHD detail článku v258 ===== */
body.com_content.view-article .jchd-article {
  --jchd-article-blue: #3478e5;
  --jchd-article-text: #25272d;
  --jchd-article-muted: #667181;
  --jchd-article-surface: #fff;
  --jchd-article-line: rgba(31, 45, 68, .11);
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

body.com_content.view-article .jchd-article__header {
  max-width: 930px;
  margin: 0 auto 28px;
}

body.com_content.view-article .jchd-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 15px;
  color: var(--jchd-article-muted);
  font-size: 13px;
}

body.com_content.view-article .jchd-article__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--jchd-article-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

body.com_content.view-article .jchd-article__title {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--jchd-article-text);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
}

body.com_content.view-article .jchd-article__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .14em;
  width: 4px;
  height: 1.18em;
  border-radius: 999px;
  background: var(--jchd-article-blue);
}

body.com_content.view-article .jchd-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

body.com_content.view-article .jchd-article__tags span {
  padding: 6px 10px;
  border: 1px solid rgba(52, 120, 229, .22);
  border-radius: 999px;
  background: rgba(52, 120, 229, .06);
  color: var(--jchd-article-blue);
  font-size: 12px;
  font-weight: 700;
}

body.com_content.view-article .jchd-article__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin: 0 auto 38px;
  overflow: hidden;
  border: 1px solid var(--jchd-article-line);
  border-radius: 14px;
  background: var(--jchd-article-surface);
  box-shadow: 0 10px 30px rgba(24, 39, 75, .07);
}

body.com_content.view-article .jchd-article__lead--text-only {
  display: block;
  max-width: 930px;
}

body.com_content.view-article .jchd-article__lead-image {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #eef2f7;
}

body.com_content.view-article .jchd-article__lead-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

body.com_content.view-article .jchd-article__lead-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 52px);
  color: var(--jchd-article-text);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.75;
}

body.com_content.view-article .jchd-article__lead-text > :first-child {
  margin-top: 0;
}

body.com_content.view-article .jchd-article__lead-text > :last-child {
  margin-bottom: 0;
}

body.com_content.view-article .jchd-article__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: 34px;
}

body.com_content.view-article .jchd-article__toc {
  position: sticky;
  top: 110px;
  padding: 18px;
  border: 1px solid var(--jchd-article-line);
  border-radius: 12px;
  background: var(--jchd-article-surface);
  box-shadow: 0 6px 20px rgba(24, 39, 75, .05);
}

body.com_content.view-article .jchd-article__toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--jchd-article-text);
  font-size: 15px;
}

body.com_content.view-article .jchd-article__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.com_content.view-article .jchd-article__toc li + li {
  margin-top: 7px;
}

body.com_content.view-article .jchd-article__toc li.is-sublevel {
  padding-left: 13px;
}

body.com_content.view-article .jchd-article__toc a {
  color: var(--jchd-article-muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

body.com_content.view-article .jchd-article__toc a:hover {
  color: var(--jchd-article-blue);
}

body.com_content.view-article .jchd-article__content {
  min-width: 0;
  color: var(--jchd-article-text);
  font-size: 17px;
  line-height: 1.82;
}

body.com_content.view-article .jchd-article__content p {
  margin: 0 0 22px;
}

body.com_content.view-article .jchd-article__content h2,
body.com_content.view-article .jchd-article__content h3 {
  position: relative;
  scroll-margin-top: 120px;
  color: var(--jchd-article-text);
  font-weight: 800;
  line-height: 1.25;
}

body.com_content.view-article .jchd-article__content h2 {
  margin: 54px 0 22px;
  padding-left: 15px;
  font-size: clamp(25px, 3vw, 34px);
}

body.com_content.view-article .jchd-article__content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 4px;
  height: 1.16em;
  border-radius: 999px;
  background: var(--jchd-article-blue);
}

body.com_content.view-article .jchd-article__content h3 {
  margin: 38px 0 17px;
  font-size: clamp(21px, 2.3vw, 27px);
}

body.com_content.view-article .jchd-article__content ul,
body.com_content.view-article .jchd-article__content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

body.com_content.view-article .jchd-article__content li {
  margin-bottom: 7px;
}

body.com_content.view-article .jchd-article__content blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--jchd-article-blue);
  border-radius: 0 10px 10px 0;
  background: rgba(52, 120, 229, .065);
  color: var(--jchd-article-text);
  font-size: 18px;
}

body.com_content.view-article .jchd-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

body.com_content.view-article .jchd-article__content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

body.com_content.view-article .jchd-article__content th,
body.com_content.view-article .jchd-article__content td {
  padding: 11px 13px;
  border: 1px solid var(--jchd-article-line);
}

body.com_content.view-article .jchd-article__content a {
  color: var(--jchd-article-blue);
  text-underline-offset: 3px;
}

html[data-theme="dark"] body.com_content.view-article .jchd-article,
html[data-theme-preference="dark"] body.com_content.view-article .jchd-article,
body.dark-mode.com_content.view-article .jchd-article {
  --jchd-article-text: #f2f5f9;
  --jchd-article-muted: #aeb7c4;
  --jchd-article-surface: #171b22;
  --jchd-article-line: #343b47;
}

@media (max-width: 999.98px) {
  body.com_content.view-article .jchd-article__layout {
    grid-template-columns: minmax(0, 820px);
  }

  body.com_content.view-article .jchd-article__toc {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  body.com_content.view-article .jchd-article__header {
    margin-bottom: 22px;
  }

  body.com_content.view-article .jchd-article__title {
    padding-left: 14px;
    font-size: 30px;
  }

  body.com_content.view-article .jchd-article__lead {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  body.com_content.view-article .jchd-article__lead-image,
  body.com_content.view-article .jchd-article__lead-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.com_content.view-article .jchd-article__lead-text {
    padding: 23px 20px;
    font-size: 17px;
  }

  body.com_content.view-article .jchd-article__content {
    font-size: 16px;
    line-height: 1.75;
  }

  body.com_content.view-article .jchd-article__content h2 {
    margin-top: 42px;
  }
}


/* ===== JCHD detail článku – full width + lightbox v259 ===== */

/* Nadpis přes celou šířku obsahové části webu */
body.com_content.view-article .jchd-article__header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 30px !important;
}

/* Úvodní blok zůstává 50 / 50 přes celou obsahovou šířku */
body.com_content.view-article .jchd-article__lead {
  width: 100% !important;
  max-width: none !important;
}

/* Obsah pod úvodem je přes celou šířku webu */
body.com_content.view-article .jchd-article__layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

body.com_content.view-article .jchd-article__content {
  width: 100% !important;
  max-width: none !important;
}

/* Obsah článku jako kompaktní karta přes celou šířku */
body.com_content.view-article .jchd-article__content {
  padding: clamp(24px, 3vw, 42px) !important;
  border: 1px solid var(--jchd-article-line) !important;
  border-radius: 14px !important;
  background: var(--jchd-article-surface) !important;
  box-shadow: 0 8px 26px rgba(24, 39, 75, .055) !important;
  box-sizing: border-box !important;
}

/* Automatický obsah nad hlavním textem, ne jako úzký sidebar */
body.com_content.view-article .jchd-article__toc {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 24px !important;
  padding: 20px 22px !important;
  box-sizing: border-box !important;
}

body.com_content.view-article .jchd-article__toc ol {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 22px !important;
}

body.com_content.view-article .jchd-article__toc li + li {
  margin-top: 0 !important;
}

/* Klikatelné zvětšení úvodního obrázku */
body.com_content.view-article .jchd-article__image-link {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  cursor: zoom-in !important;
  overflow: hidden !important;
}

body.com_content.view-article .jchd-article__image-link img {
  transition: transform .3s ease, filter .3s ease !important;
}

body.com_content.view-article .jchd-article__image-link:hover img {
  transform: scale(1.025) !important;
  filter: brightness(.96) !important;
}

body.com_content.view-article .jchd-article__image-zoom {
  position: absolute !important;
  right: 14px !important;
  bottom: 14px !important;
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  border-radius: 50% !important;
  background: rgba(17, 28, 45, .72) !important;
  color: #fff !important;
  font-size: 22px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.2) !important;
  backdrop-filter: blur(6px) !important;
}

/* Lightbox */
html.jchd-lightbox-open,
html.jchd-lightbox-open body {
  overflow: hidden !important;
}

.jchd-article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  transition: opacity .18s ease;
}

.jchd-article-lightbox.is-open {
  opacity: 1;
}

.jchd-article-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, .9);
  backdrop-filter: blur(8px);
}

.jchd-article-lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  margin: 0;
}

.jchd-article-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}

.jchd-article-lightbox__close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(15, 24, 38, .78);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  body.com_content.view-article .jchd-article__toc ol {
    grid-template-columns: 1fr !important;
  }

  body.com_content.view-article .jchd-article__content {
    padding: 22px 18px !important;
  }

  .jchd-article-lightbox {
    padding: 14px;
  }

  .jchd-article-lightbox__close {
    top: 10px;
    right: 10px;
  }
}


/* ===== JCHD detail článku – seznamy a informační boxy v260 ===== */

body.com_content.view-article .jchd-icon-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_content.view-article .jchd-icon-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 24px !important;
}

body.com_content.view-article .jchd-icon-list li {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_content.view-article .jchd-icon-list li::marker {
  content: "" !important;
}

body.com_content.view-article .jchd-icon-list li > i {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: 2px !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .1) !important;
  color: #3478e5 !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

body.com_content.view-article .jchd-number-list {
  counter-reset: jchd-list;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 24px !important;
  margin: 0 0 30px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_content.view-article .jchd-number-list li {
  counter-increment: jchd-list;
  display: grid !important;
  grid-template-columns: 31px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_content.view-article .jchd-number-list li::before {
  content: counter(jchd-list) !important;
  display: grid !important;
  place-items: center !important;
  width: 31px !important;
  height: 31px !important;
  border-radius: 8px !important;
  background: #3478e5 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body.com_content.view-article .jchd-info-box {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 15px !important;
  margin: 28px 0 !important;
  padding: 20px 22px !important;
  border: 1px solid rgba(52, 120, 229, .16) !important;
  border-radius: 11px !important;
  background: rgba(52, 120, 229, .06) !important;
}

body.com_content.view-article .jchd-info-box > i {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .13) !important;
  color: #3478e5 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

body.com_content.view-article .jchd-info-box strong {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--jchd-article-text, #25272d) !important;
  font-size: 17px !important;
}

body.com_content.view-article .jchd-info-box p {
  margin: 0 !important;
}

body.com_content.view-article .jchd-info-box--example {
  border-color: rgba(35, 155, 86, .18) !important;
  background: rgba(35, 155, 86, .06) !important;
}

body.com_content.view-article .jchd-info-box--example > i {
  background: rgba(35, 155, 86, .13) !important;
  color: #239b56 !important;
}

body.com_content.view-article .jchd-technology-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 18px 0 28px !important;
}

body.com_content.view-article .jchd-technology-tags span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 35px !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(31, 45, 68, .13) !important;
  border-radius: 999px !important;
  background: var(--jchd-article-surface, #fff) !important;
  color: var(--jchd-article-text, #25272d) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body.com_content.view-article .jchd-technology-tags i {
  color: #3478e5 !important;
}

body.com_content.view-article .jchd-article-lead {
  color: #3478e5 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] body.com_content.view-article .jchd-technology-tags span,
html[data-theme-preference="dark"] body.com_content.view-article .jchd-technology-tags span,
body.dark-mode.com_content.view-article .jchd-technology-tags span {
  border-color: #3a4350 !important;
  background: #171b22 !important;
}

@media (max-width: 699.98px) {
  body.com_content.view-article .jchd-icon-list--columns,
  body.com_content.view-article .jchd-number-list {
    grid-template-columns: 1fr !important;
  }

  body.com_content.view-article .jchd-info-box {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    padding: 17px !important;
  }

  body.com_content.view-article .jchd-info-box > i {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
  }
}


/* ===== JCHD detail článku – oprava layoutu seznamů a boxů v261 ===== */

/* Zrušení dědění úzkých grid sloupců a nežádoucího lámání slov */
body.com_content.view-article .jchd-article__content *,
body.com_content.view-article .jchd-article__content *::before,
body.com_content.view-article .jchd-article__content *::after {
  min-width: 0;
}

body.com_content.view-article .jchd-article__content p,
body.com_content.view-article .jchd-article__content li,
body.com_content.view-article .jchd-article__content strong,
body.com_content.view-article .jchd-article__content span {
  overflow-wrap: anywhere;
  word-break: normal !important;
  hyphens: auto;
}

/* Hlavní obsah bez nechtěného více-sloupcového dělení */
body.com_content.view-article .jchd-article__content {
  columns: auto !important;
  column-count: 1 !important;
  display: block !important;
}

body.com_content.view-article .jchd-article__content > * {
  width: 100% !important;
  max-width: 100% !important;
}

/* Běžné seznamy zůstávají čitelné i bez speciálních tříd */
body.com_content.view-article .jchd-article__content ul:not(.jchd-icon-list),
body.com_content.view-article .jchd-article__content ol:not(.jchd-number-list) {
  display: block !important;
  width: 100% !important;
  margin: 0 0 26px !important;
  padding-left: 1.5rem !important;
  columns: auto !important;
  column-count: 1 !important;
}

body.com_content.view-article .jchd-article__content ul:not(.jchd-icon-list) li,
body.com_content.view-article .jchd-article__content ol:not(.jchd-number-list) li {
  display: list-item !important;
  width: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

/* Opravené ikonové seznamy */
body.com_content.view-article .jchd-icon-list {
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
}

body.com_content.view-article .jchd-icon-list--columns {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
}

body.com_content.view-article .jchd-icon-list li {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  min-height: 30px !important;
  line-height: 1.55 !important;
  break-inside: avoid !important;
}

body.com_content.view-article .jchd-icon-list li > i {
  width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
}

/* Hotové aplikace jako přehledné karty */
body.com_content.view-article .jchd-article__content > p + .jchd-icon-list:first-of-type,
body.com_content.view-article .jchd-article__lead-text .jchd-icon-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.com_content.view-article .jchd-article__content > p + .jchd-icon-list:first-of-type li,
body.com_content.view-article .jchd-article__lead-text .jchd-icon-list li {
  padding: 14px 16px !important;
  border: 1px solid rgba(52, 120, 229, .14) !important;
  border-radius: 10px !important;
  background: rgba(52, 120, 229, .045) !important;
}

/* Číslovaný přehled bez rozbití textu */
body.com_content.view-article .jchd-number-list {
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

body.com_content.view-article .jchd-number-list li {
  min-height: 38px !important;
  line-height: 1.45 !important;
}

/* Informační boxy - kompaktní, bez extrémní výšky */
body.com_content.view-article .jchd-info-box {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

body.com_content.view-article .jchd-info-box > div {
  min-width: 0 !important;
  width: 100% !important;
}

body.com_content.view-article .jchd-info-box p,
body.com_content.view-article .jchd-info-box strong {
  width: auto !important;
  max-width: none !important;
  white-space: normal !important;
}

/* Technologické štítky drží v jednom řádku podle potřeby */
body.com_content.view-article .jchd-technology-tags {
  width: 100% !important;
  max-width: none !important;
}

body.com_content.view-article .jchd-technology-tags span {
  width: auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

/* Větší rozestupy mezi kapitolami */
body.com_content.view-article .jchd-article__content h2 {
  margin-top: 66px !important;
  margin-bottom: 24px !important;
}

body.com_content.view-article .jchd-article__content h3 {
  margin-top: 36px !important;
  margin-bottom: 18px !important;
}

/* Přirozenější šířka odstavců uvnitř full-width karty */
body.com_content.view-article .jchd-article__content > p,
body.com_content.view-article .jchd-article__content > ul,
body.com_content.view-article .jchd-article__content > ol,
body.com_content.view-article .jchd-article__content > blockquote,
body.com_content.view-article .jchd-article__content > .jchd-info-box,
body.com_content.view-article .jchd-article__content > .jchd-technology-tags {
  max-width: 1050px !important;
}

/* Dark mode */
html[data-theme="dark"] body.com_content.view-article .jchd-article__content > p + .jchd-icon-list:first-of-type li,
html[data-theme-preference="dark"] body.com_content.view-article .jchd-article__content > p + .jchd-icon-list:first-of-type li,
body.dark-mode.com_content.view-article .jchd-article__content > p + .jchd-icon-list:first-of-type li {
  border-color: #3a4350 !important;
  background: rgba(52, 120, 229, .08) !important;
}

@media (max-width: 899.98px) {
  body.com_content.view-article .jchd-icon-list--columns,
  body.com_content.view-article .jchd-number-list,
  body.com_content.view-article .jchd-article__content > p + .jchd-icon-list:first-of-type,
  body.com_content.view-article .jchd-article__lead-text .jchd-icon-list {
    grid-template-columns: 1fr !important;
  }

  body.com_content.view-article .jchd-article__content h2 {
    margin-top: 48px !important;
  }
}

@media (max-width: 599.98px) {
  body.com_content.view-article .jchd-info-box {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  body.com_content.view-article .jchd-technology-tags span {
    white-space: normal !important;
  }
}


/* ===== JCHD detail článku – stabilizace obsahu v262 ===== */

/* Jediný obsah článku: ruční seznam je současně funkční navigace */
body.com_content.view-article .jchd-manual-toc-title {
  margin: 42px 0 18px !important;
}

body.com_content.view-article .jchd-number-list--linked {
  padding: 20px !important;
  border: 1px solid rgba(52, 120, 229, .14) !important;
  border-radius: 12px !important;
  background: rgba(52, 120, 229, .045) !important;
}

body.com_content.view-article .jchd-number-list--linked li {
  align-items: stretch !important;
}

body.com_content.view-article .jchd-number-list--linked a {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  color: var(--jchd-article-text, #25272d) !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

body.com_content.view-article .jchd-number-list--linked a:hover {
  color: #3478e5 !important;
}

/* Informační boxy mají vždy ikonový a textový sloupec */
body.com_content.view-article .jchd-info-box {
  grid-template-columns: 44px minmax(0, 1fr) !important;
}

body.com_content.view-article .jchd-info-box > div {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.com_content.view-article .jchd-info-box > i {
  grid-column: 1 !important;
}

/* Ikonové seznamy – text musí být v širokém druhém sloupci */
body.com_content.view-article .jchd-icon-list li > i + * {
  min-width: 0 !important;
}

body.com_content.view-article .jchd-icon-list li {
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Technologie jako samostatné štítky */
body.com_content.view-article .jchd-technology-tags {
  align-items: center !important;
}

body.com_content.view-article .jchd-technology-tags span {
  flex: 0 0 auto !important;
}

/* Zruší starý automatický obsah, pokud zůstal skrytý/prázdný */
body.com_content.view-article [data-jchd-article-toc]:empty,
body.com_content.view-article [data-jchd-article-toc][hidden] {
  display: none !important;
}

/* Bez extrémního lámání textu */
body.com_content.view-article .jchd-article__content p,
body.com_content.view-article .jchd-article__content li,
body.com_content.view-article .jchd-article__content div,
body.com_content.view-article .jchd-article__content span,
body.com_content.view-article .jchd-article__content strong {
  overflow-wrap: normal !important;
  word-break: normal !important;
}

@media (max-width: 899.98px) {
  body.com_content.view-article .jchd-number-list--linked {
    grid-template-columns: 1fr !important;
  }
}


/* ===== JCHD sdílení článku Novinky v263 ===== */
body.com_content.view-article .jchd-article__tag-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px 22px !important;
  margin-top: 18px !important;
}

body.com_content.view-article .jchd-article__tag-row .jchd-article__tags {
  margin-top: 0 !important;
}

body.com_content.view-article .jchd-article__share {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-left: auto !important;
}

body.com_content.view-article .jchd-article__share-label {
  margin-right: 3px !important;
  color: var(--jchd-article-muted, #667181) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

body.com_content.view-article .jchd-article__share a,
body.com_content.view-article .jchd-article__share button {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(52, 120, 229, .22) !important;
  border-radius: 7px !important;
  background: rgba(52, 120, 229, .055) !important;
  color: #3478e5 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease !important;
}

body.com_content.view-article .jchd-article__share a:hover,
body.com_content.view-article .jchd-article__share button:hover,
body.com_content.view-article .jchd-article__share button.is-copied {
  border-color: #3478e5 !important;
  background: #3478e5 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

body.com_content.view-article .jchd-article__share-copy-status {
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  display: none !important;
  width: max-content !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  background: #1c2838 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18) !important;
  pointer-events: none !important;
}

body.com_content.view-article .jchd-article__share-copy-status:not(:empty) {
  display: block !important;
}

html[data-theme="dark"] body.com_content.view-article .jchd-article__share a,
html[data-theme="dark"] body.com_content.view-article .jchd-article__share button,
html[data-theme-preference="dark"] body.com_content.view-article .jchd-article__share a,
html[data-theme-preference="dark"] body.com_content.view-article .jchd-article__share button,
body.dark-mode.com_content.view-article .jchd-article__share a,
body.dark-mode.com_content.view-article .jchd-article__share button {
  border-color: #3a67ad !important;
  background: rgba(52, 120, 229, .12) !important;
}

@media (max-width: 699.98px) {
  body.com_content.view-article .jchd-article__tag-row {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.com_content.view-article .jchd-article__share {
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }
}


/* ===== JCHD detail článku – oprava obrázku a seznamů v264 ===== */

/* Úvodní obrázek se celý vejde do levé poloviny a neořezává se */
body.com_content.view-article .jchd-article__lead {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

body.com_content.view-article .jchd-article__lead-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 340px !important;
  padding: clamp(18px, 2.5vw, 34px) !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

body.com_content.view-article .jchd-article__image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.com_content.view-article .jchd-article__lead-image img,
body.com_content.view-article .jchd-article__image-link img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 430px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 8px !important;
}

/* Seznamy: ikona a text mají vždy samostatný stabilní sloupec */
body.com_content.view-article .jchd-icon-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 11px !important;
  width: 100% !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_content.view-article .jchd-icon-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 28px !important;
}

body.com_content.view-article .jchd-icon-list > li {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.com_content.view-article .jchd-icon-list > li > i {
  grid-column: 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 26px !important;
  height: 26px !important;
  margin: 1px 0 0 !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .1) !important;
  color: #3478e5 !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

body.com_content.view-article .jchd-icon-list > li > .jchd-list-text {
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Fallback i v případě, že JavaScript není načtený */
body.com_content.view-article .jchd-icon-list > li:not(.jchd-list-item-ready) {
  position: relative !important;
  display: block !important;
  padding-left: 38px !important;
}

body.com_content.view-article .jchd-icon-list > li:not(.jchd-list-item-ready)::before {
  content: "\f00c" !important;
  position: absolute !important;
  left: 0 !important;
  top: 1px !important;
  display: grid !important;
  place-items: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .1) !important;
  color: #3478e5 !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* Číslovaný obsah článku se nerozpadá */
body.com_content.view-article .jchd-number-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.com_content.view-article .jchd-number-list > li {
  grid-template-columns: 32px minmax(0, 1fr) !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Informační boxy bez úzkého textového sloupce */
body.com_content.view-article .jchd-info-box {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
}

body.com_content.view-article .jchd-info-box > div {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.com_content.view-article .jchd-info-box p,
body.com_content.view-article .jchd-info-box strong {
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Technologické štítky */
body.com_content.view-article .jchd-technology-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 9px !important;
}

body.com_content.view-article .jchd-technology-tags > span {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
}

/* Editorové <br> uvnitř karet zůstává přirozené */
body.com_content.view-article .jchd-list-text br {
  display: block !important;
}

@media (max-width: 899.98px) {
  body.com_content.view-article .jchd-icon-list--columns,
  body.com_content.view-article .jchd-number-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  body.com_content.view-article .jchd-article__lead-image {
    min-height: 0 !important;
    padding: 16px !important;
  }

  body.com_content.view-article .jchd-article__lead-image img,
  body.com_content.view-article .jchd-article__image-link img {
    aspect-ratio: auto !important;
    max-height: none !important;
  }
}


/* ===== JCHD detail článku – oprava zdvojených odrážek v266 ===== */

/* Úplné vypnutí nativních a starších pseudo-odrážek */
body.com_content.view-article .jchd-icon-list,
body.com_content.view-article .jchd-number-list {
  list-style: none !important;
}

body.com_content.view-article .jchd-icon-list > li::marker,
body.com_content.view-article .jchd-number-list > li::marker {
  content: "" !important;
  font-size: 0 !important;
}

body.com_content.view-article .jchd-icon-list > li::before {
  content: none !important;
  display: none !important;
}

/* V každém řádku je právě jedna ikona */
body.com_content.view-article .jchd-icon-list > li {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body.com_content.view-article .jchd-icon-list > li > i {
  grid-column: 1 !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 1px 0 0 !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .10) !important;
  color: #3478e5 !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

body.com_content.view-article .jchd-icon-list > li > i ~ i {
  display: none !important;
}

body.com_content.view-article .jchd-icon-list > li > .jchd-list-text {
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  line-height: 1.55 !important;
}

/* Když se JS nenačte, zobrazí se čistá FA7 ikona bez druhé odrážky */
body.com_content.view-article .jchd-icon-list > li:not(.jchd-list-item-ready) {
  position: relative !important;
  display: block !important;
  padding-left: 36px !important;
}

body.com_content.view-article .jchd-icon-list > li:not(.jchd-list-item-ready)::after {
  content: "\f00c" !important;
  position: absolute !important;
  left: 0 !important;
  top: 1px !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .10) !important;
  color: #3478e5 !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", sans-serif !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.com_content.view-article .jchd-icon-list > li.jchd-list-item-ready::after {
  content: none !important;
  display: none !important;
}

/* Číslovaný seznam používá jen vlastní modré číslo */
body.com_content.view-article .jchd-number-list > li::before {
  content: counter(jchd-list) !important;
  display: grid !important;
}

@media (max-width: 899.98px) {
  body.com_content.view-article .jchd-icon-list--columns {
    grid-template-columns: 1fr !important;
  }
}


/* ===== JCHD detail článku – definitivní reset odrážek v267 =====
   Vypne všechny dřívější JS/FA ikony a používá jedinou CSS odrážku. */

body.com_content.view-article .jchd-icon-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_content.view-article .jchd-icon-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 28px !important;
}

body.com_content.view-article .jchd-icon-list > li {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 0 34px !important;
  line-height: 1.55 !important;
  list-style: none !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Skryje všechny ikony vložené předchozími JavaScripty. */
body.com_content.view-article .jchd-icon-list > li > i,
body.com_content.view-article .jchd-icon-list > li > i ~ i {
  display: none !important;
}

/* Zruší všechny staré pseudo-odrážky. */
body.com_content.view-article .jchd-icon-list > li::after {
  content: none !important;
  display: none !important;
}

/* Jediná výsledná odrážka. */
body.com_content.view-article .jchd-icon-list > li::before {
  content: "\f00c" !important;
  position: absolute !important;
  left: 0 !important;
  top: .12em !important;
  display: grid !important;
  place-items: center !important;
  width: 23px !important;
  height: 23px !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 229, .10) !important;
  color: #3478e5 !important;
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", sans-serif !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Wrapper vložený staršími skripty se chová jako běžný text. */
body.com_content.view-article .jchd-icon-list > li > .jchd-list-text {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* Odstranění prázdných vložených elementů. */
body.com_content.view-article .jchd-icon-list > li > .jchd-list-text:empty,
body.com_content.view-article .jchd-icon-list > li > i:empty {
  display: none !important;
}

/* Nativní marker nesmí být vidět. */
body.com_content.view-article .jchd-icon-list > li::marker {
  content: "" !important;
  font-size: 0 !important;
}

/* =========================================================
   JCHD — jednotná šířka obsahu na desktopu (2026-08-20)
   Referenční kontejner Novinek a e-shopu: 1520 px.
   Hero a celoplošná pozadí zůstávají beze změny.
   ========================================================= */
@media (min-width: 1200px) {
  body.site #g-container-main .g-content > .platform-content.container,
  body.site #g-container-main .g-content > .platform-content.container-fluid {
    width: 100% !important;
    max-width: 1520px !important;
    margin-inline: auto !important;
  }

  body.site.com_content.view-article #g-container-main .platform-content.container,
  body.site.com_content.view-category #g-container-main .platform-content.container,
  body.site.com_tags #g-container-main .platform-content.container,
  body.site.com_contact #g-container-main .platform-content.container {
    width: 100% !important;
    max-width: 1520px !important;
  }
}

/* Čisté obrázkové bloky pro články Home Assistant. */
body.com_content.view-article .jchd-article-figure {
  margin: 2rem 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  text-align: center;
}

body.com_content.view-article .jchd-article-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 760px;
  margin-inline: auto;
  border: 0;
  border-radius: 10px;
  object-fit: contain;
}

body.com_content.view-article .jchd-article-figure figcaption {
  margin-top: .9rem;
  color: #5e6b7c;
  font-size: .92rem;
  line-height: 1.45;
}

html[data-theme="dark"] body.com_content.view-article .jchd-article-figure,
body.dark-mode.com_content.view-article .jchd-article-figure {
  border-color: rgba(148, 163, 184, .2);
  background: rgba(23, 28, 37, .82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

html[data-theme="dark"] body.com_content.view-article .jchd-article-figure figcaption,
body.dark-mode.com_content.view-article .jchd-article-figure figcaption {
  color: #aab4c3;
}

/* Menší náhledy s využitím stávajícího JCHD lightboxu. */
body.com_content.view-article .jchd-article-figure--thumb {
  width: min(100%, 540px);
  margin: 1.6rem auto;
  padding: 12px;
}

body.com_content.view-article .jchd-article-figure--thumb .jchd-article__image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 190px;
  padding: 8px;
  border-radius: 10px;
  cursor: zoom-in;
}

body.com_content.view-article .jchd-article-figure--thumb .jchd-article__image-link img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 300px !important;
  object-fit: contain !important;
}

@media (max-width: 767.98px) {
  body.com_content.view-article .jchd-article-figure--thumb {
    width: min(100%, 420px);
    margin-block: 1.25rem;
  }

  body.com_content.view-article .jchd-article-figure--thumb .jchd-article__image-link {
    min-height: 150px;
  }

  body.com_content.view-article .jchd-article-figure--thumb .jchd-article__image-link img {
    max-height: 240px !important;
  }
}

@media (max-width: 899.98px) {
  body.com_content.view-article .jchd-icon-list--columns {
    grid-template-columns: 1fr !important;
  }
}
/* Kompaktní celoplošné hero stránky Novinky. */
.jchd-news-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100vw;
  min-height: clamp(300px, 29vw, 360px);
  margin: 0 0 clamp(38px, 5vw, 68px) calc(50% - 50vw);
  overflow: hidden;
  background: #0b2341;
  color: #fff;
}

.jchd-news-hero__image,
.jchd-news-hero__overlay {
  position: absolute;
  inset: 0;
}

.jchd-news-hero__image {
  z-index: 0;
  background-image: url('/templates/g5_helium/custom/images/hero-smart-home-bg.png');
  background-position: center 53%;
  background-size: cover;
  transform: scale(1.015);
}

.jchd-news-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 25, 50, 0.94) 0%, rgba(8, 37, 72, 0.82) 46%, rgba(8, 31, 58, 0.35) 100%),
    linear-gradient(0deg, rgba(3, 18, 35, 0.24), rgba(3, 18, 35, 0.08));
}

.jchd-news-hero__content {
  position: relative;
  z-index: 2;
  width: min(95rem, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(46px, 6vw, 78px);
}

.jchd-news-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #9dbbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.jchd-news-hero__eyebrow::before {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: #4775ff;
}

.jchd-news-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.3vw, 66px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.jchd-news-hero__lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

@media (max-width: 767.98px) {
  .jchd-news-hero {
    min-height: 250px;
    margin-bottom: 32px;
  }

  .jchd-news-hero__image {
    background-position: 62% center;
  }

  .jchd-news-hero__overlay {
    background: linear-gradient(90deg, rgba(5, 25, 50, 0.96) 0%, rgba(8, 37, 72, 0.79) 72%, rgba(8, 31, 58, 0.48) 100%);
  }

  .jchd-news-hero__content {
    width: calc(100% - 40px);
    padding-block: 40px;
  }

  .jchd-news-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .jchd-news-hero h1 {
    max-width: 11ch;
    font-size: clamp(34px, 10.2vw, 46px);
  }

  .jchd-news-hero__lead {
    max-width: 34rem;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jchd-news-hero__image { transform: none; }
}

/* AJAX přihlášení musí vytvořit nejvyšší vrstvu celé hlavičky.
   Samotný overlay má vysoký z-index, ale bez zvýšení rodičovského bloku
   jej samostatný stacking context vyhledávání dokázal překrýt. */
body.g-accountcart4-modal-open #g-navigation .g-block:has(.g-accountcart4) {
  position: relative !important;
  z-index: 100001 !important;
}

body.g-accountcart4-modal-open #g-navigation .g-block:has(.g-search2pro),
body.g-accountcart4-modal-open #g-navigation .g-search2pro {
  z-index: 0 !important;
}

body.g-accountcart4-modal-open .g-accountcart4__overlay {
  z-index: 100000 !important;
}
