.catalog-intro { margin-block-end: clamp(22px, 3.6vw, 42px); }
.catalog-intro h1 { margin-bottom: 14px; }
.catalog-intro p { margin-bottom: 0; }
.catalog-intro .finder-panel { align-self: center; }
.catalog-category-links, .catalog-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 22px;
  padding: 0;
  list-style: none;
}
.catalog-category-links a, .catalog-directory-links a {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 630;
  text-decoration: none;
}
.catalog-category-links a:hover, .catalog-directory-links a:hover { background: #e7edf4; text-decoration: underline; }
.catalog-offers { margin-block: 0 clamp(30px, 5.25vw, 66px); }
.catalog-offers .search { margin: 0 0 17px; }
.catalog-offers h2 { margin-bottom: 12px; }
.catalog-status { margin: 0 0 14px; color: var(--muted); }
.catalog-filters, .catalog-note {
  background: #eaf0f7;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 15px;
}
.catalog-filters summary { cursor: pointer; font-weight: 690; padding: 13px 16px; }
.catalog-filters summary::marker { color: var(--blue); }
.catalog-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 13px;
  padding: 0 16px 16px;
}
.catalog-fields label, .ms-directory-search { display: grid; align-content: start; gap: 4px; font-size: .88rem; font-weight: 640; min-width: 0; }
.catalog-fields :is(select, input), .ms-directory-search input {
  width: 100%;
  padding: 8px 11px;
  min-height: 44px;
  border: 1px solid #aabac8;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 420;
}
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 0 16px 14px; }
.catalog-primary { display: inline-grid; place-items: center; min-height: 44px; padding: 7px 14px; border: 0; border-radius: 7px; color: white; background: var(--blue); font: inherit; font-weight: 690; text-decoration: none; cursor: pointer; }
.catalog-primary:hover { background: var(--navy); color: white; }
.catalog-note { padding: 11px 15px; color: var(--navy); font-size: .92rem; }
.catalog-note a { white-space: nowrap; }
.ms-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ms-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.ms-product-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .86rem; }
.ms-product-photo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.ms-product-copy { display: flex; flex: 1; flex-direction: column; padding: 15px; overflow-wrap: anywhere; }
.ms-product-copy h3 { margin: 4px 0 9px; font-size: 1rem; line-height: 1.38; }
.ms-product-copy h3 a { color: var(--ink); }
.ms-product-label { margin: 0 0 5px; color: var(--muted); font-size: .83rem; }
.ms-product-price { margin: 0 0 5px; color: var(--ink); font-weight: 760; font-variant-numeric: tabular-nums; }
.ms-product-copy .product-merchant { align-self: start; margin: auto 0 0; }
.ms-product-copy .ms-product-label:last-of-type { margin-bottom: 12px; }
.ms-product-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; margin: 15px 0 0; }
.ms-product-pages a { display: inline-grid; align-items: center; min-height: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.ms-directory-search { max-width: 340px; margin: 12px 0; }
.ms-directory-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 11px; }
.ms-directory-grid a { display: grid; gap: 4px; min-height: 70px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: white; font-weight: 680; overflow-wrap: anywhere; }
.ms-directory-grid small { color: var(--muted); font-weight: 420; }
.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.finder-actions a:not(.catalog-primary) { font-weight: 630; }
@media (max-width: 930px) { .ms-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 660px) { .ms-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ms-product-copy { padding: 10px; } }
@media (max-width: 350px) { .ms-product-grid { grid-template-columns: 1fr; } }

/* MűszakiStore catalog and detail layout */
.ms-product-photo {
  position: relative;
  overflow: hidden;
  flex: none;
}
.ms-product-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 12px;
  object-fit: contain;
}

/* Catalog offer groups */
.catalog-offers .ms-group {
  min-width: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.catalog-offers .ms-group summary {
  min-height: 44px;
  padding-block: 10px;
  color: var(--navy);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}
.catalog-offers .ms-group-options {
  max-block-size: 24rem;
  overflow: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 0 3px 3px;
  font-size: .875rem;
  line-height: 1.35;
}
.catalog-offers .ms-group-options li {
  display: grid;
  gap: 4px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}
.catalog-offers .ms-group-title { text-decoration: underline; text-underline-offset: .14em; }
.catalog-offers .ms-group-purchase {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
}
.catalog-offers .ms-group-purchase .product-merchant {
  min-height: 44px;
  width: auto;
  padding: 6px 8px;
  font-size: inherit;
}
