.mp-board { background: #fff; border-bottom: 1px solid #e6ebf5; padding: 36px 0 20px; }
.mp-board h2 { margin: 8px 0 14px; font-size: 18px; font-weight: 650; color: #0d1b3e; }
.mp-board h2:first-child { margin-top: 0; }
.mp-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 18px; }
.mp-cat, .mp-city, .mp-lead {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 14px;
}
.mp-cat { width: 148px; }
.mp-cat img { width: 100%; height: 92px; object-fit: cover; border-radius: 13px 13px 0 0; display: block; background: #f4f7fb; }
.mp-cat span, .mp-city, .mp-lead { display: block; }
.mp-cat span { padding: 10px 12px 12px; font-weight: 700; font-size: 13px; color: #0d1b3e; }
.mp-city { padding: 10px 14px; font-weight: 700; color: #1557bf; border-radius: 999px; }
.mp-lead { width: 240px; padding: 14px; }
.mp-lead strong { display: block; color: #0d1b3e; margin-bottom: 6px; }
.mp-lead em { display: block; font-style: normal; color: #64748b; font-size: 13px; }
.catalog-controls-wrap { padding-top: 14px; }
.catalog-controls-card {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px 12px;
}
.catalog-products-section { padding-top: 18px; }
.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: 88px;
}
.catalog-filters-card {
  padding: 18px;
  margin: 0;
}
.catalog-filters-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.catalog-filters-head > div {
  display: grid;
  gap: 2px;
}
.catalog-filters-head strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.catalog-filters-head span {
  color: #64748b;
  font-size: 0.8125rem;
}
.filter-aside-best {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.filter-aside-best__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.filter-aside-best__head strong {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}
.filter-aside-best__head a {
  color: #1557bf;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.filter-aside-best__head a:hover { text-decoration: underline; }
.filter-aside-best__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.filter-aside-best__list a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.filter-aside-best__list a:hover {
  border-color: rgba(21, 87, 191, 0.28);
  background: #fff;
}
.filter-aside-best__name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}
.filter-aside-best__meta {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.4;
}
.dir-filters-card .filter-aside-best {
  margin-top: 16px;
}
.catalog-main__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.catalog-main__bar .catalog-results {
  margin: 0;
}
.filter-drawer__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  color: #1557bf;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
.filter-drawer__toggle .fa {
  font-size: 0.9rem;
  line-height: 1;
  width: 1em;
  text-align: center;
}
.filter-drawer__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-drawer__backdrop {
  display: none;
}
.catalog-filters-stack {
  display: grid;
  gap: 14px;
}
.catalog-filter-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.catalog-filter-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0;
}
.catalog-main { min-width: 0; }
.catalog-main .catalog-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 0.875rem;
}
.catalog-layout .catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.price-slider {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}
.price-slider__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-slider__head strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.price-slider__track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.price-slider__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
}
.price-slider__range {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: #1557bf;
  pointer-events: none;
}
.price-slider__track input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}
.price-slider__track input#priceRangeMax {
  z-index: 3;
}
.price-slider__track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1557bf;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  pointer-events: auto;
}
.price-slider__track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1557bf;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  pointer-events: auto;
}
.price-slider__track input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
}
.mp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  width: 100%;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #e6ebf5;
}
.mp-filters--stack {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  padding-top: 0;
  border-top: 0;
}
.mp-filters label {
  display: grid;
  gap: 2px;
  flex: 1 1 118px;
  max-width: 168px;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.mp-filters--stack label {
  flex: none;
  max-width: none;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mp-filters input, .mp-filters select {
  width: 100%;
  height: 32px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  font-weight: 500;
  font-size: 13px;
}
.mp-filters--stack input,
.mp-filters--stack select {
  min-height: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.mp-filters .mp-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: none;
  height: 32px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.mp-filters--stack .mp-check {
  height: 42px;
}
.mp-filters .mp-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  accent-color: #1557bf;
}
.mp-filters button, .mp-filters a.mp-clear {
  height: 32px;
  width: auto;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 0;
  background: #1557bf;
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
}
.mp-filters a.mp-clear { display: inline-flex; align-items: center; background: #eef4ff; color: #1557bf; text-decoration: none; }
.mp-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.mp-filters--stack .mp-filters__actions button,
.mp-filters--stack .mp-filters__actions a.mp-clear {
  min-height: 42px;
  height: 42px;
  border-radius: 10px;
}
.desk-card__place { color: #64748b; font-size: 12px; margin-top: 2px; }
.nav-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f97316;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.top-deliver { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 13px; }
.top-deliver select { height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; }
.nav-mega { position: relative; }
.nav-mega__panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 460px;
  max-width: calc(100vw - 32px);
  padding-top: 8px;
  z-index: 40;
}
.nav-mega:hover .nav-mega__panel,
.nav-mega:focus-within .nav-mega__panel { display: block; }
.nav-mega__card {
  position: relative;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(13, 27, 62, .14);
}
.nav-mega__card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e6ebf5;
  border-top: 1px solid #e6ebf5;
  transform: rotate(45deg);
}
.nav-mega__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 10px;
}
.nav-mega__head span {
  color: #0d1b3e;
  font-size: 13px;
  font-weight: 700;
}
.nav-mega__head a {
  color: #1557bf;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.nav-mega__head a:hover { text-decoration: underline; }
.nav-mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-mega__grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  color: #0d1b3e;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
}
.nav-mega__grid a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-mega__grid a:hover { background: #f4f7fb; }
.nav-mega__grid img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef4ff;
}
.mp-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.mp-spec div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 10px; }
.mp-spec span { display: block; font-size: 11px; opacity: .75; }
.mp-spec strong { font-size: 13px; }
.mp-sticky-quote {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 40;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e6ebf5;
}
.mp-sticky-quote button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #1557bf;
  color: #fff;
  font-weight: 700;
}
.mp-bottom {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #e6ebf5;
  grid-template-columns: repeat(3, 1fr);
}
.mp-bottom a {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 4px 10px;
  color: #0d1b3e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mp-chips a { border: 1px solid #d7e0ea; border-radius: 999px; padding: 6px 12px; text-decoration: none; color: #1557bf; font-weight: 700; font-size: 13px; background: #fff; }
/* Text meta chips only — do not style verified/featured icon badges */
.mp-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mp-trust-chips > span {
  background: #eef4ff;
  color: #0d1b3e;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 1299px) {
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
  }
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .catalog-layout,
  .dir-layout.filter-drawer {
    grid-template-columns: 1fr;
  }
  .filter-drawer__toggle {
    display: inline-flex;
  }
  .filter-drawer__close {
    display: inline-flex;
  }
  /* Lift parent stacking context so fixed drawer sits above sticky header (z 220) */
  body.filter-drawer-open .catalog-controls-wrap,
  body.filter-drawer-open .dir-layout.filter-drawer.is-open {
    position: relative;
    z-index: 1300;
  }
  .filter-drawer__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }
  .filter-drawer.is-open .filter-drawer__backdrop,
  body.filter-drawer-open .filter-drawer.is-open .filter-drawer__backdrop {
    opacity: 1;
    visibility: visible;
  }
  .filter-drawer__panel,
  .catalog-sidebar.filter-drawer__panel,
  .dir-sidebar.filter-drawer__panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 88vw);
    z-index: 1310;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: #fff;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }
  .filter-drawer.is-open .filter-drawer__panel,
  .filter-drawer.is-open .catalog-sidebar.filter-drawer__panel,
  .filter-drawer.is-open .dir-sidebar.filter-drawer__panel {
    transform: translateX(0);
  }
  .filter-drawer__panel .catalog-filters-card,
  .filter-drawer__panel .dir-filters-card {
    min-height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.filter-drawer-open {
    overflow: hidden;
  }
}
@media (max-width: 980px) {
  .mp-filters:not(.mp-filters--stack) label { flex: 1 1 calc(50% - 10px); max-width: none; }
  .mp-filters:not(.mp-filters--stack) button,
  .mp-filters:not(.mp-filters--stack) a.mp-clear { flex: 1 1 calc(50% - 10px); }
  .mp-spec { grid-template-columns: 1fr 1fr; }
  .nav-mega__panel, .nav-post, .top-deliver { display: none; }
  .mp-bottom { display: grid; }
  .mp-sticky-quote { display: block; }
  body { padding-bottom: 64px; }
}
@media (max-width: 575px) {
  .catalog-layout .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
