:root {
  --mzpm-blue: #1e3a78;
  --mzpm-blue-dark: #142c5c;
  --mzpm-blue-mid: #3358a3;
  --mzpm-silver: #b9bdc3;
  --mzpm-text: #172033;
  --mzpm-muted: #667085;
  --mzpm-soft: #f4f7fb;
  --mzpm-border: #d9e2ef;
}

.mzpm-products-browser,
.mz-products-browser {
  width: 100%;
}

.mz-product-filter-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 0 34px;
  padding: 28px 28px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--mzpm-border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(20, 44, 92, 0.09);
}

.mz-product-filter-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--mzpm-blue-dark), var(--mzpm-blue), var(--mzpm-silver));
}

.mz-product-filter-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.mz-product-filter-eyebrow {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--mzpm-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mz-product-filter-heading h2 {
  margin: 0;
  color: var(--mzpm-blue-dark);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
}

.mz-product-filter-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--mzpm-muted);
  font-size: 15px;
  line-height: 1.65;
}

.mz-product-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 12px;
}

.mz-product-filter-button {
  appearance: none;
  border: 1px solid #ced8e8;
  border-radius: 13px;
  background: #ffffff;
  color: var(--mzpm-blue-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 4px 12px rgba(20,44,92,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.mz-product-filter-button span {
  flex: 0 0 auto;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3fa;
  color: #59687e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.mz-product-filter-button:hover,
.mz-product-filter-button:focus-visible {
  border-color: var(--mzpm-blue);
  box-shadow: 0 10px 24px rgba(30,58,120,.14);
  transform: translateY(-1px);
  outline: none;
}

.mz-product-filter-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--mzpm-blue-dark), var(--mzpm-blue));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(30,58,120,.26);
}

.mz-product-filter-button.is-active span {
  background: rgba(255,255,255,.18);
  color: #ffffff;
}

.mz-product-result-count {
  margin: 18px 0 0;
  color: var(--mzpm-muted);
  font-size: 14px;
  font-weight: 600;
}

.mz-product-result-count strong {
  color: var(--mzpm-blue-dark);
}

.mz-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 22px;
}

.mz-product-card {
  overflow: hidden;
  border: 1px solid #e2e8f2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20,44,92,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.mz-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,58,120,.35);
  box-shadow: 0 22px 46px rgba(20,44,92,.14);
}

.mz-product-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mz-product-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 22px;
  background: linear-gradient(180deg, #f8fafc, #eef3f8);
  transition: transform .25s ease;
}

.mz-product-card:hover img {
  transform: scale(1.035);
}

.mz-product-card-body {
  padding: 18px 18px 20px;
}

.mz-product-category {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf2fa;
  color: var(--mzpm-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mz-product-card h3 {
  margin: 0;
  color: var(--mzpm-text);
  font-size: 17px;
  line-height: 1.35;
}

.mz-product-empty {
  margin-top: 22px;
  padding: 18px;
  border: 1px dashed var(--mzpm-border);
  border-radius: 14px;
  background: var(--mzpm-soft);
  color: var(--mzpm-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .mz-product-filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .mz-product-filter-wrap {
    padding: 24px 18px 18px;
  }
}

@media (max-width: 640px) {
  .mz-product-filter {
    grid-template-columns: 1fr;
  }
  .mz-product-grid {
    grid-template-columns: 1fr;
  }
  .mz-product-card img {
    height: 205px;
  }
}
