/* Brightkey product gallery — public storefront */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-page {
  --brand-primary: #06b6d4;
  --brand-secondary: #09090b;
  --brand-accent: #06b6d4;
  --catalog-ink: var(--brand-secondary);
  --catalog-muted: #667085;
  --catalog-subtle: #98a2b3;
  --catalog-line: #e4e7ec;
  --catalog-canvas: #f7f8fa;
  --catalog-surface: #ffffff;
  background: var(--catalog-canvas);
  color: var(--catalog-ink);
  font-family: "Commissioner", system-ui, sans-serif;
  overflow-x: clip;
}

.catalog-page button,
.catalog-page input,
.catalog-page select {
  font: inherit;
}

.catalog-shell {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.catalog-header {
  position: relative;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--catalog-line);
}

.catalog-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.catalog-brand {
  justify-self: start;
}

.catalog-brand img {
  width: 174px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.catalog-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.catalog-nav a {
  color: #5b6473;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 78px;
  position: relative;
}

.catalog-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.catalog-nav a:hover,
.catalog-nav a[aria-current="page"] {
  color: var(--catalog-ink);
}

.catalog-nav a:hover::after,
.catalog-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.catalog-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-cart {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  color: var(--catalog-ink);
  background: #fff;
  font-size: 0.83rem;
  font-weight: 700;
}

.catalog-cart:hover {
  color: var(--catalog-ink);
  border-color: #b7bec8;
}

.catalog-cart svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-cart__count {
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-primary);
  font-size: 0.68rem;
}

.catalog-menu-btn {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.catalog-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--catalog-ink);
  transition: transform 180ms ease;
}

.catalog-menu-btn.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.catalog-menu-btn.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.catalog-intro {
  padding: 72px 0 64px;
  background:
    linear-gradient(110deg, rgba(1, 57, 143, 0.045), transparent 42%),
    var(--catalog-surface);
  border-bottom: 1px solid var(--catalog-line);
}

.catalog-intro__eyebrow,
.catalog-toolbar__eyebrow {
  margin-bottom: 14px;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 80px;
  align-items: end;
}

.catalog-intro h1 {
  max-width: 850px;
  margin: 0;
  color: var(--catalog-ink);
  font-size: clamp(2.8rem, 5vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.catalog-intro p {
  max-width: 500px;
  margin: 0 0 7px;
  color: var(--catalog-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.13rem);
  line-height: 1.75;
}

.catalog-section {
  padding: 56px 0 96px;
}

.catalog-toolbar {
  min-height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--catalog-line);
}

.catalog-toolbar__eyebrow {
  margin-bottom: 7px;
  color: var(--catalog-subtle);
}

.catalog-toolbar h2 {
  margin: 0;
  color: var(--catalog-ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.catalog-toolbar__controls {
  display: flex;
  gap: 10px;
}

.catalog-filter-trigger {
  min-height: 46px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  color: var(--catalog-ink);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.catalog-filter-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.catalog-filter-trigger span {
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-primary);
  font-size: 0.66rem;
}

.catalog-sort {
  min-width: 196px;
  min-height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  background: #fff;
}

.catalog-sort select,
.filter-select select {
  width: 100%;
  height: 100%;
  padding: 0 42px 0 14px;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--catalog-ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.catalog-sort svg,
.filter-select svg {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 13px;
  pointer-events: none;
  fill: none;
  stroke: var(--catalog-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 28px;
}

.catalog-filters {
  position: sticky;
  top: calc(var(--nav-height, 68px) + 28px);
  padding: 22px;
  border: 1px solid var(--catalog-line);
  border-radius: 12px;
  background: var(--catalog-surface);
}

.catalog-filters__mobile-head,
.catalog-apply-mobile {
  display: none;
}

.filter-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #edf0f3;
}

.filter-block--features {
  margin-bottom: 18px;
}

.filter-label {
  display: block;
  margin-bottom: 9px;
  color: var(--catalog-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.filter-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-heading-row .filter-label {
  margin-bottom: 0;
}

.filter-value {
  color: var(--catalog-muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.filter-clear {
  padding: 0;
  border: 0;
  color: var(--brand-primary);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-search,
.filter-select {
  width: 100%;
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  background: #fff;
}

.filter-search:focus-within,
.filter-select:focus-within,
.catalog-sort:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.filter-search svg {
  width: 17px;
  height: 17px;
  position: absolute;
  left: 13px;
  fill: none;
  stroke: var(--catalog-subtle);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.filter-search input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 40px;
  border: 0;
  outline: 0;
  color: var(--catalog-ink);
  background: transparent;
  font-size: 0.78rem;
}

.filter-search input::placeholder {
  color: #a0a8b5;
}

.price-range {
  height: 32px;
  position: relative;
  margin-top: 10px;
}

.price-range__track,
.price-range__fill {
  height: 4px;
  position: absolute;
  top: 14px;
  right: 0;
  left: 0;
  border-radius: 4px;
}

.price-range__track {
  background: #dfe3e8;
}

.price-range__fill {
  background: var(--brand-primary);
}

.price-range input[type="range"] {
  width: 100%;
  height: 32px;
  position: absolute;
  inset: 0;
  margin: 0;
  appearance: none;
  pointer-events: none;
  background: transparent;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(4, 22, 59, 0.18);
  pointer-events: auto;
  cursor: grab;
}

.price-range input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  background: #fff;
  pointer-events: auto;
  cursor: grab;
}

.feature-filters {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 14px;
  padding-right: 6px;
  max-height: 410px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #d7dce2 transparent;
}

.feature-businesses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.feature-business-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.feature-business-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.feature-business-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  color: var(--catalog-muted);
  background: #fff;
  font-size: .7rem;
  font-weight: 700;
  transition: border-color .15s, color .15s, background .15s;
}

.feature-business-pill span::before {
  content: '';
  width: 10px;
  height: 10px;
  flex: none;
  margin-right: 6px;
  border: 1px solid #aeb6c2;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.feature-business-pill input:checked + span {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 9%, #fff);
}

.feature-business-pill input:checked + span::before {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.feature-business-pill input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 28%, transparent);
  outline-offset: 2px;
}

.feature-option {
  flex: 0 0 auto;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 2px;
  color: #4f5968;
  font-size: 0.76rem;
  line-height: 1.4;
  cursor: pointer;
}

.feature-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  border: 1px solid #bdc4ce;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.feature-option > span:not(.feature-option__count) {
  min-width: 0;
  flex: 1;
  padding-right: 4px;
}

.feature-option input:checked {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feature-option__count {
  margin-left: auto;
  color: var(--catalog-subtle);
  font-size: 0.66rem;
}

.filter-placeholder {
  width: 90%;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eef0f3 25%, #f8f9fa 50%, #eef0f3 75%);
  background-size: 200% 100%;
  animation: catalogShimmer 1.2s infinite;
}

.filter-placeholder--short {
  width: 68%;
}

.catalog-reset,
.catalog-apply-mobile {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--catalog-line);
  border-radius: 8px;
  color: var(--catalog-ink);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.catalog-reset:disabled {
  color: #b4bac3;
  background: #f4f5f7;
  cursor: default;
}

.catalog-results {
  min-width: 0;
}

.catalog-results__meta {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.catalog-results__meta p {
  margin: 0;
  color: var(--catalog-muted);
  font-size: 0.76rem;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--catalog-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(4, 22, 59, 0.025);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: color-mix(in srgb, var(--brand-primary) 32%, var(--catalog-line));
  box-shadow: 0 14px 34px rgba(4, 22, 59, 0.1);
  transform: translateY(-3px);
}

.product-card__media {
  aspect-ratio: 4 / 3.35;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 22px;
  background: #f6f7f9;
  border-bottom: 1px solid #edf0f3;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9ba3ae;
  background:
    linear-gradient(145deg, rgba(1, 57, 143, 0.045), transparent 55%),
    #eef1f4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__category {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  max-width: calc(100% - 26px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  color: var(--catalog-ink);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  font-size: 0.63rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-card__sku {
  margin: 0 0 6px;
  color: var(--brand-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 8px;
  color: var(--catalog-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.product-card__price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 12px;
}

.product-card__price {
  color: #16a34a;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.product-card__compare {
  color: #dc2626;
  font-size: 0.66rem;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.product-card__section {
  padding-top: 13px;
  margin-top: 1px;
  border-top: 1px solid #edf0f3;
}

.product-card__section + .product-card__section {
  margin-top: 13px;
}

.product-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--catalog-ink);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card__feature {
  max-width: 100%;
  padding: 5px 7px;
  overflow: hidden;
  border-radius: 5px;
  color: #4b5665;
  background: #f2f4f7;
  font-size: 0.65rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__spec {
  min-width: 0;
  color: #4b5665;
  font-size: 0.75rem;
  line-height: 1.48;
}

.product-card__spec span {
  display: inline;
  color: var(--catalog-ink);
  font-size: inherit;
  font-weight: 600;
  text-transform: none;
}

.product-card__spec strong {
  display: inline;
  color: #4b5665;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-card__details-note {
  color: var(--catalog-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.product-card__actions {
  display: block;
  margin-top: auto;
  padding-top: 18px;
}

.product-card__add,
.product-card__view {
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
}

.product-card__add {
  width: 100%;
  border: 1px solid var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
  font-family: "Commissioner", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600 !important;
  line-height: 1;
  letter-spacing: 0.005em;
  transition: filter 160ms ease, transform 160ms ease;
}

.product-card__add:hover {
  filter: brightness(1.12);
}

.product-card__add:active {
  transform: scale(0.985);
}

.product-card__view {
  display: grid;
  place-items: center;
  border: 1px solid var(--catalog-line);
  color: var(--catalog-ink);
  background: #fff;
}

.product-card__view:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.product-card__view svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card-skeleton {
  min-height: 590px;
  border: 1px solid var(--catalog-line);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.8) 50%, transparent 75%) 0 0 / 200% 100%,
    linear-gradient(#e9ecf0 0 0) 18px 18px / calc(100% - 36px) 235px no-repeat,
    linear-gradient(#e9ecf0 0 0) 18px 275px / 30% 12px no-repeat,
    linear-gradient(#e9ecf0 0 0) 18px 305px / 72% 20px no-repeat,
    linear-gradient(#e9ecf0 0 0) 18px 345px / 45% 24px no-repeat,
    linear-gradient(#f2f4f6 0 0) 18px 395px / calc(100% - 36px) 85px no-repeat,
    linear-gradient(#e9ecf0 0 0) 18px 520px / calc(100% - 80px) 44px no-repeat,
    #fff;
  animation: catalogShimmer 1.25s infinite;
}

.catalog-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 48px;
  border: 1px dashed #ccd2da;
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.catalog-empty[hidden] {
  display: none;
}

.catalog-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--catalog-subtle);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.catalog-empty h3 {
  margin: 0 0 8px;
  color: var(--catalog-ink);
  font-size: 1.1rem;
}

.catalog-empty p {
  margin: 0 0 20px;
  color: var(--catalog-muted);
  font-size: 0.82rem;
}

.catalog-empty button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--catalog-line);
  border-radius: 7px;
  color: var(--catalog-ink);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.catalog-load-more {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--catalog-muted);
  font-size: 0.72rem;
}

.catalog-load-more[hidden] {
  display: none;
}

.catalog-load-more__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dfe4e9;
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: catalogSpin 700ms linear infinite;
}

.catalog-filter-overlay {
  display: none;
}

.catalog-footer {
  background: #fff;
  border-top: 1px solid var(--catalog-line);
}

.catalog-footer__inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.catalog-footer img {
  width: 142px;
}

.catalog-footer p,
.catalog-footer span {
  margin: 0;
  color: var(--catalog-muted);
  font-size: 0.73rem;
}

.catalog-footer > .catalog-footer__inner > span {
  justify-self: end;
}

@keyframes catalogShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes catalogSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-shell {
    width: 100%;
    max-width: var(--max-width);
    padding-inline: var(--space-lg);
  }

  .catalog-header__inner {
    grid-template-columns: 1fr auto;
  }

  .catalog-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--catalog-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(4, 22, 59, 0.16);
  }

  .catalog-nav.is-open {
    display: flex;
  }

  .catalog-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    line-height: 1;
  }

  .catalog-nav a::after {
    display: none;
  }

  .catalog-menu-btn {
    display: block;
  }

  .catalog-intro {
    padding: 56px 0 50px;
  }

  .catalog-intro__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-intro h1 {
    max-width: 680px;
  }

  .catalog-intro p {
    max-width: 620px;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filter-trigger {
    display: inline-flex;
  }

  .catalog-filters {
    width: min(380px, calc(100% - 28px));
    height: 100dvh;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    overflow: auto;
    padding: 0 22px 22px;
    border: 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 20px 0 52px rgba(4, 22, 59, 0.2);
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .catalog-filters.is-open {
    transform: translateX(0);
  }

  .catalog-filters__mobile-head {
    min-height: 72px;
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #fff;
    border-bottom: 1px solid var(--catalog-line);
  }

  .catalog-filters__mobile-head strong {
    color: var(--catalog-ink);
    font-size: 1rem;
  }

  .catalog-filters__mobile-head button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
  }

  .catalog-filters__mobile-head svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--catalog-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
  }

  .catalog-filter-overlay {
    position: fixed;
    z-index: 1001;
    inset: 0;
    display: block;
    background: rgba(4, 22, 59, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .catalog-filter-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .catalog-apply-mobile {
    display: block;
    margin-top: 10px;
    border-color: var(--brand-primary);
    color: #fff;
    background: var(--brand-primary);
  }
}

@media (max-width: 620px) {
  .catalog-shell {
    width: 100%;
    padding-inline: var(--space-lg);
  }

  .catalog-header__inner {
    min-height: 68px;
  }

  .catalog-brand img {
    width: 142px;
  }

  .catalog-cart {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .catalog-cart > span:not(.catalog-cart__count) {
    display: none;
  }

  .catalog-cart__count {
    position: absolute;
    top: 7px;
    right: 48px;
  }

  .catalog-nav {
    top: 68px;
    right: 14px;
    left: 14px;
  }

  .catalog-intro {
    padding: 44px 0 40px;
  }

  .catalog-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
    line-height: 1.01;
  }

  .catalog-section {
    padding: 38px 0 64px;
  }

  .catalog-toolbar {
    align-items: flex-end;
  }

  .catalog-toolbar__controls {
    gap: 7px;
  }

  .catalog-sort {
    min-width: 0;
    width: 52px;
  }

  .catalog-sort select {
    width: 50px;
    padding: 0;
    color: transparent;
  }

  .catalog-sort svg {
    right: 16px;
  }

  .catalog-layout {
    gap: 0;
    padding-top: 18px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card__media {
    aspect-ratio: 4 / 3;
  }

  .catalog-footer__inner {
    min-height: 150px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    gap: 8px;
  }

  .catalog-footer > .catalog-footer__inner > span {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-page *,
  .catalog-page *::before,
  .catalog-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
