/* Catalog products page redesign */
.cat-page { padding: 8px 0 60px; font-family: inherit; color: #0d0f12; }
.cat-page__header { text-align: center; margin: 24px 0 28px; padding: 0 16px; }
.cat-page__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0; color: #0d0f12;
}
.cat-page__lede { color: #52575e; font-size: 16px; max-width: 680px; margin: 12px auto 0; line-height: 1.55; }

/* Search bar restyling — applies to whatever mSearchForm outputs */
.cat-search { max-width: 760px; margin: 0 auto 36px; padding: 0 16px; position: relative; }
.cat-search form { position: relative; display: block; }
.cat-search input[type="text"], .cat-search input[type="search"] {
  width: 100%; padding: 14px 22px 14px 48px;
  border: 1px solid rgba(13,15,18,0.12);
  border-radius: 100px;
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.cat-search input:focus { border-color: #f24c2a; box-shadow: 0 0 0 3px rgba(242,76,42,0.1); }
.cat-search form::before {
  content: '';
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%237a7e86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat; background-position: center;
  pointer-events: none;
}
.cat-search button, .cat-search input[type="submit"] {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; padding: 8px 18px;
  background: #0d0f12; color: #fff;
  font-weight: 700; font-size: 13.5px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s ease;
}
.cat-search button:hover, .cat-search input[type="submit"]:hover { background: #f24c2a; }

/* Card grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding: 0 16px;
}

.cat-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(13,15,18,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242,76,42,0.3);
  box-shadow: 0 18px 40px -12px rgba(13,15,18,0.18);
  text-decoration: none; color: inherit;
}
.cat-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f4f4f1 0%, #fafaf8 100%);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cat-card__media img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body {
  padding: 16px 20px 22px;
  flex: 1 1 auto;
  display: flex; align-items: flex-start; gap: 8px;
}
.cat-card__title {
  font-size: 15.5px; font-weight: 700;
  line-height: 1.35;
  color: #0d0f12; margin: 0;
  letter-spacing: -0.005em;
  flex: 1 1 auto;
}
.cat-card__arrow {
  flex: 0 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(13,15,18,0.05);
  color: #0d0f12;
  margin-top: 2px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cat-card:hover .cat-card__arrow { background: #f24c2a; color: #fff; transform: translateX(2px); }
.cat-card__arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.cat-empty { text-align: center; padding: 60px 20px; color: #7a7e86; font-size: 16px; }
