/* Public catalogue: categories on the left, four product columns on desktop. */
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 28px; }
.catalog-results { min-width: 0; }
.catalog-sidebar { position: sticky; top: 145px; min-width: 0; border: 1px solid #e7ebed; border-radius: 8px; background: #fff; overflow: hidden; }
.catalog-category-menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 16px; list-style: none; background: #f6f7f8; color: #202426; font-size: 15px; font-weight: 700; cursor: pointer; }
.catalog-category-menu > summary::-webkit-details-marker { display: none; }
.catalog-category-menu > summary i { font-size: 11px; }
.catalog-category-menu[open] > summary i { transform: rotate(180deg); }
.catalog-category-menu__links { display: flex; flex-direction: column; max-height: calc(100dvh - 225px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.catalog-category-menu__links a { display: block; padding: 10px 9px; border-radius: 5px; color: #505961; text-decoration: none; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-category-menu__links a:hover, .catalog-category-menu__links a.is-active { background: #eef7f8; color: #007d94; }
.catalog-category-menu__links a.is-active { font-weight: 700; }
.catalog-category-menu__links a:focus-visible, .catalog-category-menu > summary:focus-visible { outline: 2px solid #0097b2; outline-offset: -2px; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-product-grid > .product { width: 100%; max-width: 100%; min-width: 0; margin: 0 !important; padding: 0; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .catalog-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; }
  .catalog-product-grid { gap: 12px; }
}
@media (max-width: 991.98px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog-sidebar { position: static; }
  .catalog-category-menu__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 200px; }
  .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 575.98px) {
  .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-category-menu__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Brand and size filters follow the complete category list. */
.catalog-sidebar { max-height: calc(100dvh - 165px); overflow-y: auto; overscroll-behavior: contain; }
.catalog-category-menu__links { max-height: min(300px, 32dvh); }
.catalog-filters { border-top: 1px solid #e7ebed; color: #202426; }
.catalog-filters h2 { margin: 0; padding: 16px; background: #f6f7f8; font-size: 15px; font-weight: 700; }
.catalog-filters h2 i { margin-right: 7px; font-size: 13px; }
.catalog-filters__section { min-width: 0; margin: 0; padding: 16px; border: 0; border-top: 1px solid #e7ebed; }
.catalog-filters__section legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: #202426; font-size: 13px; font-weight: 700; }
.catalog-filters__options { clear: both; max-height: 210px; overflow-y: auto; }
.catalog-filters__option { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 5px 0; color: #505961; font-size: 13px; line-height: 1.4; cursor: pointer; }
.catalog-filters__option input { flex: 0 0 16px; width: 16px; height: 16px; accent-color: #0097b2; }
.catalog-filters__option span { min-width: 0; overflow-wrap: anywhere; }
.catalog-filters__muted { margin: 0; color: #777f86; font-size: 12px; }
.catalog-filters__actions { display: grid; gap: 12px; padding: 0 16px 18px; text-align: center; }
.catalog-filters__actions button { padding: 10px; border: 1px solid #0097b2; border-radius: 5px; background: #0097b2; color: #fff; font: inherit; font-size: 13px; font-weight: 600; }
.catalog-filters__actions button:hover { background: #007d94; border-color: #007d94; }
.catalog-filters__actions a { color: #59636c; font-size: 12px; }
.catalog-results__count { margin: 0 0 18px; color: #727b83; font-size: 13px; }
@media (max-width: 991.98px) {
  .catalog-sidebar { max-height: none; }
  .catalog-category-menu__links { max-height: 200px; }
  .catalog-filters form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters__options { max-height: 160px; }
  .catalog-filters__actions { grid-column: 1 / -1; }
}

/* Category banners sit immediately below the smaller listing title. */
.catalog-results .product-listing-section__title { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
.category-banner-slider { position: relative; margin-top: 20px; overflow: hidden; border-radius: 8px; background: #f6f7f8; }
.category-banner-slider[hidden] { display: none; }
.category-banner-slider .carousel-item > a { display: block; }
.category-banner-slider .carousel-item img { display: block; width: 100%; height: auto; }
.category-banner-slider .carousel-control-prev, .category-banner-slider .carousel-control-next { top: 50%; bottom: auto; width: 34px; height: 34px; padding: 8px; border: 0; border-radius: 50%; background: #20242699; opacity: 1; transform: translateY(-50%); }
.category-banner-slider .carousel-control-prev { left: 12px; }
.category-banner-slider .carousel-control-next { right: 12px; }
.category-banner-slider [data-bs-slide][hidden] { display: none; }
.category-banner-slider .carousel-control-prev:hover, .category-banner-slider .carousel-control-next:hover { background: #007d94; }
.category-banner-slider .carousel-control-prev:focus-visible, .category-banner-slider .carousel-control-next:focus-visible { outline: 3px solid #0097b2; outline-offset: 3px; }
@media (max-width: 575.98px) {
  .category-banner-slider { margin-top: 16px; }
  .category-banner-slider .carousel-control-prev, .category-banner-slider .carousel-control-next { width: 28px; height: 28px; padding: 7px; }
  .category-banner-slider .carousel-control-prev { left: 8px; }
  .category-banner-slider .carousel-control-next { right: 8px; }
}
