/* Category-only hierarchy. Loaded after legacy theme modules: one spacing system,
   real variant links and native JTL filtering, no card-height JavaScript. */
body #result-wrapper #product-list.layout-gallery { row-gap: 28px !important; }
body #result-wrapper #product-list .product-wrapper { margin-bottom: 0 !important; }
body #result-wrapper #product-list .productbox-inner { padding-bottom: 0 !important; }
body #result-wrapper #product-list .productbox-inner > .row > .col-12:last-child {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 5px; padding-top: 12px !important;
}
body #result-wrapper #product-list .productbox-title {
  order: 1; height: auto !important; min-height: 42px !important; margin: 0 !important; padding: 0 !important;
}
body #result-wrapper #product-list .productbox-title a {
  font-size: 15px !important; line-height: 1.4 !important; font-weight: 650;
  -webkit-line-clamp: 3; color: #102335; overflow-wrap: anywhere;
}
body #result-wrapper #product-list .productlist-variation-rating {
  order: 2; flex-direction: row !important; flex-wrap: wrap; align-items: center;
  justify-content: flex-start !important; gap: 4px 8px; min-height: 19px !important;
  margin: 0 !important; padding: 0 !important;
}
body #result-wrapper #product-list .rothler-rating-wrap { order: 0; gap: 4px; line-height: 19px; }
body #result-wrapper #product-list .rating { font-size: 13px !important; line-height: 19px; }
body #result-wrapper #product-list .rothler-rating-count { font-size: 12px !important; }
body #result-wrapper #product-list .rt-productlist-variation { order: 1; font-size: 11px; }
body #result-wrapper #product-list .rh-listing-colors {
  order: 3; margin: 0 -6px !important; min-height: 40px; gap: 0;
}
body #result-wrapper #product-list a.rh-listing-color { min-width: 40px; min-height: 40px; }
/* The dots already show the available choices. Keep the count for assistive tech,
   without a redundant line between options and price. */
body #result-wrapper #product-list .rh-listing-colors__count {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body #result-wrapper #product-list .productbox-offer { order: 4; margin: 2px 0 0 !important; }
body #result-wrapper #product-list .price_wrapper {
  display: flex !important; flex-wrap: wrap; align-items: baseline; justify-content: flex-start;
  gap: 2px 8px; margin: 0 !important;
}
body #result-wrapper #product-list .productbox-price {
  order: 0; margin: 0 !important; color: #0a192b !important;
  font-size: 22px !important; line-height: 1.2 !important; font-weight: 750;
}
body #result-wrapper #product-list .productbox-price > span { white-space: normal; }
body #result-wrapper #product-list .productbox-price .first-range-price,
body #result-wrapper #product-list .productbox-price .second-range-price { white-space: nowrap; }
body #result-wrapper #product-list .rh-listing-price-from { font-size: 13px; font-weight: 500; color: #526577; }
body #result-wrapper #product-list .rt-productlist-uvp {
  order: 1; color: #697785 !important; font-size: 12px !important; font-weight: 400;
  line-height: 1.4; margin: 0 !important; white-space: nowrap;
}
body #result-wrapper #product-list .rt-productlist-uvp s { color: inherit !important; }
body #result-wrapper #product-list .rt-productlist-delivery {
  order: 5; margin: 0 !important; font-size: 12px !important; line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px;
}
body #result-wrapper #product-list .rt-productlist-delivery__dot { width: 6px; height: 6px; box-shadow: none; }
body #result-wrapper #product-list .productbox-image { border-radius: 12px; }
body #result-wrapper #product-list .productbox a:focus-visible { outline: 2px solid #116bb0; outline-offset: 3px; }

/* A short introduction, useful assistance, then the products. */
body #result-wrapper .rh-desc { margin-bottom: 20px !important; }
body #result-wrapper .rh-desc h1 { font-size: clamp(26px,2.3vw,36px); line-height: 1.18; margin-bottom: 10px; }
body #result-wrapper .rh-desc__text { font-size: 15px; line-height: 1.6; color: #526577; }
body #result-wrapper .rh-desc__text p:last-child { margin-bottom: 0; }
body #result-wrapper .rh-config-category { margin: 16px 0 20px; padding: 16px 20px; gap: 16px; border-radius: 12px; }
body #result-wrapper .rh-config-category__eyebrow { display: none; }
body #result-wrapper .rh-config-category h2 { font-size: 19px; line-height: 1.3; margin: 0 0 4px; }
body #result-wrapper .rh-config-category p { font-size: 14px; line-height: 1.5; margin: 0; }
body #result-wrapper hr.productlist-page-nav-top { margin: 16px 0; }
body #result-wrapper .productlist-page-nav-header-m {
  align-items: center; gap: 12px; padding: 0 0 16px !important; margin: 0 !important;
}
body #result-wrapper .productlist-page-nav-header-m .productlist-item-info { font-size: 13px !important; color: #526577; }
body #result-wrapper .productlist-page-nav-header-m .filter-type-FilterItemSort > .btn {
  min-height: 44px; border-radius: 8px; font-size: 14px; padding: 10px 16px;
}
body #result-wrapper .active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
body #result-wrapper .active-filters .snippets-filter-item {
  margin: 0; padding: 9px 12px; min-height: 40px; background: #eef5fa; border: 1px solid #cddfeb;
  border-radius: 8px; font-size: 13px; color: #17486b; white-space: normal; text-align: left;
}
body #result-wrapper .active-filters .snippets-filter-item-all { align-self: center; font-size: 13px; padding: 10px 4px; }
@media (max-width: 991.98px) {
  body #result-wrapper .rh-config-category { padding: 14px; gap: 10px; margin: 12px 0 16px; }
  body #result-wrapper .rh-config-category h2 { font-size: 17px; }
  body #result-wrapper .productlist-page-nav-header-m .productlist-item-info { flex: 1 0 100%; font-weight: 500; }
  body #result-wrapper .productlist-page-nav-header-m #js-filters,
  body #result-wrapper .productlist-page-nav-header-m .filter-type-FilterItemSort {
    flex: 1 1 0; min-width: 0; width: auto !important;
  }
  body #result-wrapper .productlist-page-nav-header-m #js-filters,
  body #result-wrapper .productlist-page-nav-header-m .filter-type-FilterItemSort > .btn {
    display: flex !important; justify-content: center; align-items: center; height: 44px !important;
    border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important; margin: 0 !important;
  }
  body #result-wrapper .productlist-page-nav-header-m .filter-type-FilterItemSort > .btn { width: 100%; }
}
@media (max-width: 767.98px) {
  body #result-wrapper #product-list.layout-gallery { row-gap: 24px !important; }
  body #result-wrapper #product-list .productbox-inner > .row > .col-12:last-child { padding-top: 10px !important; gap: 4px; }
  body #result-wrapper #product-list .productbox-title { min-height: 38px !important; }
  body #result-wrapper #product-list .productbox-title a { font-size: 14px !important; line-height: 1.36 !important; }
  body #result-wrapper #product-list .rh-listing-colors { min-height: 44px; }
  body #result-wrapper #product-list a.rh-listing-color { min-height: 44px; }
  body #result-wrapper #product-list .productbox-price { font-size: 20px !important; }
  body #result-wrapper #product-list .rt-productlist-uvp { font-size: 11px !important; }
  body #result-wrapper #product-list .rt-productlist-delivery { font-size: 11px !important; }
  body #result-wrapper .rh-desc { margin-bottom: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body #result-wrapper #product-list .productbox * { transition: none !important; }
}
