@media (min-width: 768px) and (max-width: 991px) {

  :root {
    --nx-tab-fs: 15px;
    --nx-title-fs: 16px;
  }

  /* Header tablet: logo viditelné, klasické ps_searchbar v nav schovat
     (vyhledávání řeší rn_* / spodní lišta) */
  #_desktop_logo {
    display: block !important;
    position: absolute;
    top: -90px;
    left: 15px;
    z-index: 5;
    width: auto;
    max-width: 160px;
    padding: 0;
    margin: 0;
  }

  #_desktop_logo .logo,
  #header #_desktop_logo img {
    width: auto;
    max-width: 140px;
    min-width: 0;
    height: auto;
    max-height: 40px;
    margin-left: 0;
  }

  /* místo pro logo vlevo — nav bez full-width search */
  .right-nav-top {
    width: auto !important;
    max-width: calc(100% - 170px);
    margin-left: auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .header-nav .right-nav-top #search_widget,
  .header-nav #search_widget {
    display: none !important;
  }

  /* top menu (Nexus / Radiant / …) na střed */
  #header .header-top-right {
    justify-content: center;
  }

  #header #_desktop_top_menu > ul.top-menu > li {
    margin-left: 20px;
  }

  #header #_desktop_top_menu > ul.top-menu > li:first-child {
    margin-left: 0;
  }

  .top-menu a[data-depth="0"] {
    font-size: 12px;
  }

  /* komentáře na tabletu = desktop mřížka (bez scrollu / teček) */
  #product-comments-list,
  .nx-comments-rail #product-comments-list {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
    scroll-snap-type: none !important;
  }

  .nx-comments-rail .product-comment-list-item,
  #product-comments-list .product-comment-list-item {
    flex: 0 0 24%;
    width: 24% !important;
    max-width: 24% !important;
    margin: 0 0 1rem !important;
    white-space: normal;
  }

  .nx-comments-dots {
    display: none !important;
  }

  /* mimo rail — rail: nx-product-miniature.css */
  #product .products > .resp-js-product:not(.nx-hp-slot) {
    width: 33.333%;
  }

  #product .nx-product-rail .products {
    justify-content: flex-start !important;
  }

  .accessories-js {
    width: 100% !important;
    position: relative;
  }

  .box-accessories {
    max-width: 100%;
    width: 100%;
  }

  #product .js-product-miniature {
    min-width: 100%;
  }

  .product-miniature .product-price-and-shipping {
    min-width: 100%;
  }

  /* výpis produktů */
  .products-selection .sort-by {
    margin-right: unset;
    margin-left: unset;
    text-align: unset;
  }

  /* subkategorie: chipy — layout řeší .nx-subcats v custom.css */
  #subcategories.nx-subcats ul li,
  #subcategories.nx-subcats .nx-subcats__item {
    min-width: 0;
    width: auto;
    margin: 0;
  }

  #subcategories.nx-subcats ul {
    margin: 0;
    gap: var(--nx-space-xs);
    justify-content: flex-start;
  }

  .active_filters {
    background: #f0653a;
    float: left;
    min-width: 100%;
    border-radius: 4px;
    padding-left: 14px;
  }

  /* MENU */
  .fix_menumobile.fixed {
    position: fixed;
    top: -1px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    min-width: 100%;
    background: white;
    padding: 6px 0 2px 0px;
    border-bottom: 2px solid #f3f3f3;
  }

  #wecmsbanner p,
  #wecmsbanner a,
  #wecmsbanner span {
    font-size: 11px;
  }

  #checkout .payment-options {
    border-bottom: 1px solid #adabae;
    height: auto;
    margin-top: 18px;
  }

  #checkout .custom-radio input[type=radio]:checked + span {
    background-color: #03c7c2;
    top: 2px;
    left: 2px;
  }

  .a-link-cate.tlacitko {
    right: 0;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 190px !important;
    position: relative !important;
    font-size: 0 !important;
    height: 34px !important;
    width: 47px;
    right: 12px;
    background: transparent;
  }

  .a-link-cate.tlacitko::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('/obrazky/icon/next.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* detail produktu: stack jako mobil (Bootstrap col-md-6 by jinak dal 2 sloupce) */
  #product .center-prod {
    display: block;
  }

  #product .center-prod .left-prod,
  #product .center-prod .right-prod {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  #product .left-prod {
    position: static;
    top: auto;
    margin-bottom: 1rem;
  }

  #product .product-cover .layer {
    display: none !important;
  }

  /* buy box (cena + košík) musí zůstat viditelný — dřív display:none kvůli legacy sticky .bm */
  .right-prod .container-detail {
    display: block !important;
  }

  .product-flags li.product-flag.discount,
  .product-flags li.product-flag.discount-amount,
  .product-flags li.product-flag.discount-percentage,
  .product-flag .new {
    border-radius: 0 !important;
  }

  .product-cover .product-flags li.product-flag {
    border-radius: 0 !important;
  }

  .container-detail.mobile-add-fix .product-discount {
    display: none;
  }

  .right-prod .product-actions .add-to-cart {
    padding-top: 0rem;
    line-height: inherit;
    padding: 12px;
    font-size: 14px;
    min-width: 150px;
  }

  .price-theme {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .flag-price {
    background: #f0653a;
    color: white;
    font-weight: bold;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 8px;
  }

  /* rn_usp_hp: šířka na tabletu → front.css @media ≤991 (--rn-usp-width: 50)
  .rn-usp-hp-blok .rn-usp-hp-grid {
    --rn-usp-width: 50 !important;
  }
  */
}
