:root {
  --hb-catalog-navy: #081b38;
  --hb-catalog-blue: #0861d9;
  --hb-catalog-line: #dce3ec;
  --hb-catalog-muted: #667085;
  --hb-catalog-soft: #f8fafc;
}

.hb-catalog-ui-enabled { margin: 0; background: #fff; }
.hb-catalog-ui-enabled #header,
.hb-catalog-ui-enabled #footer { display: none !important; }
.hb-catalog, .hb-catalog * { box-sizing: border-box; }
.hb-catalog {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
  color: var(--hb-catalog-navy);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hb-catalog a { color: inherit; }
.hb-catalog__breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  overflow: hidden;
  color: var(--hb-catalog-muted);
  font-size: 12px;
  white-space: nowrap;
}
.hb-catalog__breadcrumb a { text-decoration: none; }
.hb-catalog__breadcrumb [aria-current=page] { overflow: hidden; text-overflow: ellipsis; }
.hb-catalog-hero {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  overflow: hidden;
  padding: 30px 46px;
  border-radius: 12px;
  background: linear-gradient(110deg, #061b3a 0%, #0a386f 66%, #f6f9fc 66%);
  color: #fff;
}
.hb-catalog-hero > div { max-width: 720px; }
.hb-catalog-hero p { margin: 0 0 6px; color: #8ebdf7; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hb-catalog-hero h1 { margin: 0 0 10px; color: #fff !important; font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.12; }
.hb-catalog-hero div div { max-width: 650px; color: #e2e8f0; font-size: 14px; line-height: 1.6; }
.hb-catalog-hero img { width: 100%; height: 190px; object-fit: contain; }
.hb-catalog-children {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 26px;
}
.hb-catalog-children a {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--hb-catalog-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hb-catalog-navy);
  text-decoration: none;
}
.hb-catalog-children a:hover { border-color: #8abaf5; }
.hb-catalog-children a > span { width: 82px; height: 92px; display: grid; place-items: center; border-radius: 7px; background: var(--hb-catalog-soft); }
.hb-catalog-children img { width: 100%; height: 100%; object-fit: contain; }
.hb-catalog-children strong { font-size: 13px; font-weight: 700; line-height: 1.3; }
.hb-catalog-results { margin-top: 8px; }
.hb-catalog-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid var(--hb-catalog-line);
  border-radius: 10px;
  background: #fff;
}
.hb-catalog-toolbar h2 { margin: 0 auto 0 0; font-size: 18px; font-weight: 800; }
.hb-catalog-filter-open {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--hb-catalog-blue);
  border-radius: 7px;
  background: #fff;
  color: var(--hb-catalog-blue);
  font-weight: 700;
}
.hb-catalog-filter-open svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hb-catalog-sort { display: flex; align-items: center; gap: 8px; }
.hb-catalog-sort label { color: var(--hb-catalog-muted); font-size: 12px; }
.hb-catalog-sort select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--hb-catalog-line);
  border-radius: 7px;
  background: #fff;
  color: var(--hb-catalog-navy);
  font: inherit;
  font-size: 13px;
}
.hb-catalog-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); align-items: start; gap: 22px; }
.hb-catalog-filters {
  overflow: hidden;
  border: 1px solid var(--hb-catalog-line);
  border-radius: 10px;
  background: #fff;
}
.hb-catalog-filters__head { min-height: 58px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--hb-catalog-line); }
.hb-catalog-filters__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.hb-catalog-filters__head b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e8f2ff; color: var(--hb-catalog-blue); font-size: 12px; }
.hb-catalog-filters__head button { display: none; margin-left: auto; border: 0; background: transparent; color: var(--hb-catalog-navy); font-size: 32px; cursor: pointer; }
.hb-catalog-filters details { border-bottom: 1px solid var(--hb-catalog-line); }
.hb-catalog-filters summary { min-height: 50px; display: flex; align-items: center; padding: 0 16px; font-size: 14px; font-weight: 800; cursor: pointer; }
.hb-catalog-filter-options { display: grid; gap: 3px; padding: 0 12px 14px; }
.hb-catalog-filter-options--scroll { max-height: 290px; overflow: auto; }
.hb-catalog-filter-options label {
  min-height: 40px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}
.hb-catalog-filter-options label:has(input:checked) { background: #edf5ff; color: #0754bb; }
.hb-catalog-filter-options input { width: 17px; height: 17px; accent-color: var(--hb-catalog-blue); }
.hb-catalog-filter-options small { color: #8993a4; }
.hb-catalog-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 16px; }
.hb-catalog-price label span { display: block; margin-bottom: 5px; color: var(--hb-catalog-muted); font-size: 11px; }
.hb-catalog-price input { width: 100%; min-height: 42px; padding: 0 9px; border: 1px solid var(--hb-catalog-line); border-radius: 7px; }
.hb-catalog-filters__actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px; padding: 14px 12px; }
.hb-catalog-filters__actions a, .hb-catalog-filters__actions button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hb-catalog-blue);
  border-radius: 7px;
  background: #fff;
  color: var(--hb-catalog-blue);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.hb-catalog-filters__actions button { background: var(--hb-catalog-blue); color: #fff; cursor: pointer; }
.hb-catalog-products { min-width: 0; }
.hb-catalog-products .hb-card-grid { width: 100%; grid-template-columns: repeat(var(--hb-catalog-columns, 4), minmax(0, 1fr)); gap: 14px; }
.hb-catalog-pagination { margin-top: 28px; }
.hb-catalog-pagination ul { display: flex; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.hb-catalog-pagination a, .hb-catalog-pagination span {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--hb-catalog-line); border-radius: 7px; text-decoration: none;
}
.hb-catalog-pagination .current { border-color: var(--hb-catalog-blue); background: var(--hb-catalog-blue); color: #fff; }
.hb-catalog-empty { padding: 70px 20px; border: 1px solid var(--hb-catalog-line); border-radius: 10px; text-align: center; }
.hb-catalog-empty h2 { margin: 0 0 8px; }
.hb-catalog-empty a { display: inline-flex; margin-top: 14px; padding: 12px 18px; border-radius: 7px; background: var(--hb-catalog-blue); color: #fff; text-decoration: none; }
.hb-catalog-backdrop { display: none; }

@media (max-width: 1199px) {
  .hb-catalog-children { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hb-catalog-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 15px; }
  .hb-catalog-products .hb-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .hb-catalog { width: min(100% - 24px, 960px); }
  .hb-catalog-hero { grid-template-columns: minmax(0, 1fr) 220px; padding: 26px; }
  .hb-catalog-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .hb-catalog-products .hb-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hb-catalog { width: 100%; padding: 10px 16px 92px; }
  .hb-catalog__breadcrumb { min-height: 34px; font-size: 11px; }
  .hb-catalog-hero {
    min-height: 164px;
    grid-template-columns: minmax(0, 1fr) 112px;
    padding: 20px 16px;
    border-radius: 10px;
    background: linear-gradient(110deg, #f7faff, #fff);
    color: var(--hb-catalog-navy);
  }
  .hb-catalog-hero p { color: var(--hb-catalog-blue); font-size: 9px; }
  .hb-catalog-hero h1 { color: var(--hb-catalog-navy) !important; font-size: 23px; }
  .hb-catalog-hero div div { color: var(--hb-catalog-muted); font-size: 12px; line-height: 1.45; }
  .hb-catalog-hero img { height: 120px; }
  .hb-catalog-children {
    grid-auto-columns: 120px;
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 8px;
    margin: 12px -16px 18px;
    padding: 0 16px 3px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hb-catalog-children::-webkit-scrollbar { display: none; }
  .hb-catalog-children a {
    min-height: 132px;
    grid-template-columns: 1fr;
    grid-template-rows: 82px auto;
    gap: 5px;
    padding: 8px;
    text-align: center;
    scroll-snap-align: start;
  }
  .hb-catalog-children a > span { width: 100%; height: 82px; }
  .hb-catalog-children strong { font-size: 11px; }
  .hb-catalog-toolbar { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 0 0 12px; padding: 10px; }
  .hb-catalog-toolbar h2 { font-size: 14px; }
  .hb-catalog-filter-open { display: flex; }
  .hb-catalog-sort { grid-column: 1 / -1; }
  .hb-catalog-sort label { display: none; }
  .hb-catalog-sort select { width: 100%; }
  .hb-catalog-layout { display: block; }
  .hb-catalog-products .hb-card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: initial;
    gap: 10px;
    padding: 0;
    overflow: visible;
  }
  .hb-catalog-products .hb-card { min-width: 0; }
  .hb-catalog-products .hb-card__media { margin: 7px 7px 0; }
  .hb-catalog-products .hb-card__image-link { padding: 8px; }
  .hb-catalog-products .hb-card__stickers { top: 7px; left: 7px; }
  .hb-catalog-products .hb-card-sticker { font-size: 9px; }
  .hb-catalog-products .hb-card-sticker--discount { min-width: 52px; }
  .hb-catalog-products .hb-card-sticker--discount .hb-card-sticker__discount-label { padding: 4px 5px; }
  .hb-catalog-products .hb-card-sticker--discount strong { padding: 5px; font-size: 14px; }
  .hb-catalog-products .hb-card__wishlist { top: 7px; right: 7px; width: 36px; height: 36px; }
  .hb-catalog-products .hb-card__body { padding: 9px; }
  .hb-catalog-products .hb-card__brand { font-size: 9px; }
  .hb-catalog-products .hb-card__title { min-height: 48px; font-size: 12px; }
  .hb-catalog-products .hb-card__delivery { min-height: 27px; padding: 4px 5px; font-size: 9px; }
  .hb-catalog-products .hb-card__delivery .hb-icon { width: 14px; height: 14px; }
  .hb-catalog-products .hb-card__pricing { min-height: 60px; }
  .hb-catalog-products .hb-card__pricing strong { font-size: 18px; }
  .hb-catalog-products .hb-card__cta { min-height: 42px; padding: 6px; font-size: 12px; }
  .hb-catalog-backdrop {
    position: fixed; z-index: 9998; inset: 0; display: block;
    background: rgba(4, 18, 38, .62);
  }
  .hb-catalog-filters {
    position: fixed; z-index: 9999; right: 0; bottom: 0; left: 0;
    max-height: 88dvh; overflow: auto;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px rgba(8, 27, 56, .18);
    transform: translateY(102%);
    transition: transform .22s ease;
  }
  .hb-catalog-filters[aria-hidden=false] { transform: translateY(0); }
  .hb-catalog-filters__head { position: sticky; z-index: 2; top: 0; min-height: 68px; background: #fff; }
  .hb-catalog-filters__head button { display: block; }
  .hb-catalog-filters__actions { position: sticky; z-index: 2; bottom: 0; background: #fff; box-shadow: 0 -8px 20px rgba(8,27,56,.08); }
  .hb-catalog-filter-active { overflow: hidden; }
}

@media (max-width: 370px) {
  .hb-catalog { padding-inline: 12px; }
  .hb-catalog-products .hb-card-grid { gap: 7px; }
  .hb-catalog-products .hb-card__delivery span { white-space: normal; }
  .hb-catalog-products .hb-card__cta .hb-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-catalog-filters { transition: none; }
}
