:root {
  --catalog-primary: #1d4ed8;
  --catalog-primary-dark: #172554;
  --catalog-accent: #0f766e;
  --catalog-text: #0f172a;
  --catalog-muted: #64748b;
  --catalog-border: #e2e8f0;
  --catalog-surface: #ffffff;
  --catalog-background: #f8fafc;
  --catalog-radius-sm: 12px;
  --catalog-radius-md: 16px;
  --catalog-radius-lg: 24px;
  --catalog-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.medical-catalog,
.medical-catalog * {
  box-sizing: border-box;
}

.medical-catalog {
  color: var(--catalog-text);
  background: var(--catalog-background);
}

.catalog-shell {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 38px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.16), transparent 25%),
    radial-gradient(circle at 88% 85%, rgba(96, 165, 250, 0.16), transparent 28%),
    linear-gradient(115deg, #172554 0%, #1e3a8a 50%, #1d4ed8 100%);
}

.catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}

.catalog-hero .catalog-shell {
  position: relative;
  z-index: 1;
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 22px;
  color: rgba(219, 234, 254, 0.78);
  font-size: 12px;
}

.catalog-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 160ms ease;
}

.catalog-breadcrumb a:hover {
  color: #99f6e4;
}

.catalog-breadcrumb > i {
  font-size: 8px;
  opacity: 0.55;
}

.catalog-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.catalog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
}

.catalog-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.catalog-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(219, 234, 254, 0.8);
  font-size: 14px;
  line-height: 1.9;
}

.catalog-hero-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 285px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--catalog-radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.catalog-hero-stat > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #99f6e4;
  background: rgba(15, 118, 110, 0.3);
  flex: 0 0 auto;
}

.catalog-hero-stat strong,
.catalog-hero-stat span {
  display: block;
}

.catalog-hero-stat strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.catalog-hero-stat span {
  color: rgba(219, 234, 254, 0.68);
  font-size: 10px;
}

.catalog-body {
  padding: 28px 0 56px;
  min-height: 720px;
}

.catalog-discovery {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: -54px;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  flex: 1;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.catalog-search > i {
  position: absolute;
  right: 21px;
  color: var(--catalog-primary);
  font-size: 16px;
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  min-width: 0;
  height: 62px;
  padding: 0 54px 0 52px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  color: var(--catalog-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.catalog-search input::placeholder {
  color: #94a3b8;
}

.catalog-search:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13), 0 16px 36px rgba(15, 23, 42, 0.12);
}

.catalog-search-clear {
  position: absolute;
  left: 13px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: #64748b;
  background: #f1f5f9;
  cursor: pointer;
}

.catalog-search-clear:hover {
  color: #b91c1c;
  background: #fee2e2;
}

.catalog-mobile-filter-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 112px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-filter-count {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--catalog-primary);
  font-size: 10px;
}

.catalog-category-strip {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius-lg);
  background: var(--catalog-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.catalog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.catalog-section-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--catalog-primary);
  font-size: 10px;
  font-weight: 800;
}

.catalog-section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.catalog-section-heading > i {
  color: #cbd5e1;
  font-size: 13px;
}

.catalog-category-chips {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.catalog-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--catalog-border);
  border-radius: 14px;
  color: #475569;
  background: #fff;
  white-space: nowrap;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.catalog-category-chip:hover {
  border-color: #93c5fd;
  color: var(--catalog-primary);
  background: #eff6ff;
  transform: translateY(-1px);
}

.catalog-category-chip.is-active {
  border-color: #2563eb;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.catalog-category-chip i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #2563eb;
  background: #eff6ff;
}

.catalog-category-chip.is-active i {
  color: #fff;
  background: rgba(255, 255, 255, 0.17);
}

.catalog-category-chip small {
  color: #94a3b8;
  font-size: 9px;
}

.catalog-category-chip.is-active small {
  color: #dbeafe;
}

.catalog-chip-skeleton,
.catalog-filter-skeleton {
  display: block;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: catalog-shimmer 1.4s infinite;
}

.catalog-chip-skeleton {
  width: 145px;
  height: 46px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.catalog-filters {
  position: sticky;
  top: 122px;
}

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

.catalog-filter-scroll {
  display: grid;
  gap: 14px;
}

.catalog-filter-card {
  padding: 18px;
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius-md);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.035);
}

.catalog-filter-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.catalog-filter-card h3 span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-filter-card h3 i {
  color: var(--catalog-primary);
}

.catalog-filter-card h3 small {
  color: #94a3b8;
  font-size: 9px;
}

.catalog-filter-options {
  display: grid;
  gap: 7px;
}

.catalog-filter-skeleton {
  width: 100%;
  height: 38px;
  border-radius: 10px;
}

.catalog-filter-option,
.catalog-radio-option,
.catalog-checkbox-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 11px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-filter-option,
.catalog-radio-option {
  padding: 6px 8px;
}

.catalog-filter-option:hover,
.catalog-radio-option:hover {
  color: #1d4ed8;
  background: #f8fafc;
}

.catalog-filter-option input,
.catalog-radio-option input,
.catalog-checkbox-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.catalog-control-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  flex: 0 0 auto;
}

.catalog-radio-option .catalog-control-mark,
.catalog-filter-option .catalog-control-mark {
  border-radius: 50%;
}

.catalog-radio-option input:checked + .catalog-control-mark,
.catalog-filter-option input:checked + .catalog-control-mark {
  border: 5px solid #2563eb;
}

.catalog-checkbox-option input:checked + .catalog-control-mark {
  border-color: #dc2626;
  color: #fff;
  background: #dc2626;
}

.catalog-checkbox-option .catalog-control-mark i {
  font-size: 9px;
  opacity: 0;
}

.catalog-checkbox-option input:checked + .catalog-control-mark i {
  opacity: 1;
}

.catalog-filter-option .catalog-option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-filter-option .catalog-option-count {
  margin-right: auto;
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  text-align: center;
  font-size: 9px;
}

.catalog-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.catalog-price-fields label span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.catalog-price-fields input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  outline: 0;
  border-radius: 11px;
  color: var(--catalog-text);
  background: #f8fafc;
  font: inherit;
  font-size: 11px;
}

.catalog-price-fields input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.catalog-apply-button,
.catalog-reset-button,
.catalog-show-results {
  min-height: 44px;
  border-radius: 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-apply-button {
  width: 100%;
  border: 0;
  color: #fff;
  background: #2563eb;
}

.catalog-apply-button:hover {
  background: #1d4ed8;
}

.catalog-sale-card {
  padding: 16px 18px;
}

.catalog-checkbox-option {
  align-items: flex-start;
}

.catalog-checkbox-option strong,
.catalog-checkbox-option small {
  display: block;
}

.catalog-checkbox-option strong {
  margin-bottom: 4px;
  color: #334155;
  font-size: 11px;
}

.catalog-checkbox-option small {
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.6;
}

.catalog-filter-actions {
  display: flex;
  margin-top: 14px;
}

.catalog-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fff;
}

.catalog-reset-button:hover {
  background: #fef2f2;
}

.catalog-show-results {
  display: none;
}

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

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--catalog-border);
  border-radius: var(--catalog-radius-md);
  background: #fff;
}

.catalog-results-summary span,
.catalog-results-summary strong {
  display: block;
}

.catalog-results-summary span {
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

.catalog-results-summary strong {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-sort > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.catalog-sort select {
  min-width: 155px;
  height: 44px;
  padding: 0 12px 0 30px;
  border: 1px solid #dbe3ee;
  outline: 0;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-sort select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.catalog-view-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f5f9;
}

.catalog-view-switch button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}

.catalog-view-switch button.active {
  color: #2563eb;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.catalog-products-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.catalog-products-grid.list-view,
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.catalog-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.catalog-product-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.1);
}

.catalog-product-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  min-height: 0;
  margin-bottom: 13px;
  padding: 14px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}

.catalog-product-media img {
  width: 100%;
  height: 100%;
  max-height: 190px;
  object-fit: contain;
  transition: transform 260ms ease;
}

.catalog-product-card:hover .catalog-product-media img {
  transform: scale(1.04);
}

.catalog-product-placeholder {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  color: #94a3b8;
  background: #e2e8f0;
  font-size: 28px;
}

.catalog-product-media .catalog-image-fallback {
  display: none;
}

.catalog-product-media.has-image-error .catalog-image-fallback {
  display: grid;
}

.catalog-product-badges {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}

.catalog-product-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

.catalog-product-badge.is-sale {
  background: #dc2626;
}

.catalog-product-badge.is-new {
  background: #2563eb;
}

.catalog-stock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
}

.catalog-stock-overlay span {
  padding: 8px 11px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #b91c1c;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.catalog-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.catalog-product-category {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  margin-bottom: 6px;
  overflow: hidden;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product-title {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-product-card:hover .catalog-product-title {
  color: #1d4ed8;
}

.catalog-product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.catalog-product-price {
  min-width: 0;
}

.catalog-product-price > span {
  display: block;
}

.catalog-product-price > span:first-child {
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 900;
  white-space: nowrap;
}

.catalog-product-price > span + span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 9px;
  white-space: nowrap;
}

.catalog-product-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.catalog-product-actions button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.catalog-product-actions button:hover {
  transform: translateY(-1px);
}

.catalog-whatsapp-action {
  color: #15803d;
  background: #f0fdf4;
}

.catalog-cart-action {
  color: #fff;
  background: #2563eb;
}

.catalog-product-actions button:disabled {
  color: #94a3b8;
  background: #e2e8f0;
  cursor: not-allowed;
  transform: none;
}

.catalog-products-grid.list-view .catalog-product-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
}

.catalog-products-grid.list-view .catalog-product-media {
  height: 160px;
  margin: 0;
}

.catalog-product-skeleton {
  min-height: 330px;
  padding: 13px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
}

.catalog-product-skeleton div,
.catalog-product-skeleton span {
  display: block;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: catalog-shimmer 1.4s infinite;
}

.catalog-product-skeleton div {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  margin-bottom: 16px;
  border-radius: 14px;
}

.catalog-product-skeleton span {
  height: 11px;
  margin-bottom: 10px;
  border-radius: 999px;
}

.catalog-product-skeleton span:nth-child(2) {
  width: 40%;
}

.catalog-product-skeleton span:nth-child(3) {
  width: 90%;
}

.catalog-product-skeleton span:nth-child(4) {
  width: 60%;
}

.no-products {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 360px;
  padding: 34px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--catalog-radius-lg);
  color: #64748b;
  background: #fff;
  text-align: center;
}

.no-products i {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 25px;
}

.no-products h3 {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 16px;
}

.no-products p {
  margin: 0 0 18px;
  font-size: 11px;
}

.no-products button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #2563eb;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.pagination-btn {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--catalog-border);
  border-radius: 11px;
  color: #475569;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.active {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-dots {
  color: #94a3b8;
  font-size: 12px;
}

.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  opacity: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
  transition: opacity 200ms ease;
}

.catalog-overlay.is-visible {
  opacity: 1;
}

body.catalog-filter-open {
  overflow: hidden;
}

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

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 18px;
  }

  .catalog-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-hero {
    padding: 26px 0 56px;
  }

  .catalog-hero-stat {
    display: none;
  }

  .catalog-discovery {
    margin-top: -52px;
  }

  .catalog-mobile-filter-button {
    display: inline-flex;
  }

  .catalog-layout {
    display: block;
  }

  .catalog-filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    width: min(390px, 92vw);
    padding: 0;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: -18px 0 50px rgba(15, 23, 42, 0.2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

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

  .catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--catalog-border);
    background: #fff;
    flex: 0 0 auto;
  }

  .catalog-filter-header span {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
  }

  .catalog-filter-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
  }

  .catalog-filter-header h2 i {
    color: #2563eb;
  }

  .catalog-filter-header button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 13px;
    color: #475569;
    background: #f1f5f9;
    cursor: pointer;
  }

  .catalog-filter-scroll {
    display: block;
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .catalog-filter-card {
    margin-bottom: 12px;
    box-shadow: none;
  }

  .catalog-filter-actions {
    gap: 10px;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--catalog-border);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  }

  .catalog-reset-button,
  .catalog-show-results {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .catalog-show-results {
    border: 0;
    color: #fff;
    background: #2563eb;
  }
}

@media (max-width: 640px) {
  .catalog-shell {
    width: min(100% - 24px, 1280px);
  }

  .catalog-hero {
    padding: 20px 0 52px;
  }

  .catalog-breadcrumb {
    margin-bottom: 16px;
  }

  .catalog-hero h1 {
    margin-bottom: 7px;
    font-size: 25px;
  }

  .catalog-hero p {
    font-size: 11px;
    line-height: 1.8;
  }

  .catalog-eyebrow {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .catalog-body {
    padding-top: 22px;
  }

  .catalog-discovery {
    gap: 8px;
    margin-top: -46px;
    margin-bottom: 14px;
  }

  .catalog-search {
    min-height: 56px;
    border-radius: 16px;
  }

  .catalog-search input {
    height: 54px;
    padding-right: 45px;
    padding-left: 42px;
    font-size: 11px;
  }

  .catalog-search > i {
    right: 17px;
    font-size: 13px;
  }

  .catalog-search-clear {
    left: 8px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .catalog-mobile-filter-button {
    min-width: 58px;
    min-height: 56px;
    padding: 0 12px;
    border-radius: 16px;
  }

  .catalog-mobile-filter-button > span:not(.catalog-filter-count) {
    display: none;
  }

  .catalog-category-strip {
    margin-inline: -12px;
    margin-bottom: 16px;
    padding: 15px 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .catalog-section-heading {
    margin-bottom: 11px;
  }

  .catalog-category-chips {
    margin-inline: -12px;
    padding-inline: 12px;
    scrollbar-width: none;
  }

  .catalog-category-chips::-webkit-scrollbar {
    display: none;
  }

  .catalog-category-chip {
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 10px;
  }

  .catalog-category-chip i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .catalog-toolbar {
    align-items: flex-end;
    min-height: 64px;
    margin-bottom: 12px;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .catalog-toolbar-actions {
    gap: 6px;
  }

  .catalog-sort {
    display: block;
  }

  .catalog-sort > span {
    display: none;
  }

  .catalog-sort select {
    min-width: 132px;
    height: 42px;
    padding-right: 10px;
    font-size: 9px;
  }

  .catalog-view-switch {
    display: none;
  }

  .catalog-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-product-card {
    padding: 8px;
    border-radius: 14px;
  }

  .catalog-product-media {
    aspect-ratio: 1 / 0.9;
    margin-bottom: 10px;
    padding: 9px;
    border-radius: 11px;
  }

  .catalog-product-media img {
    max-height: 140px;
  }

  .catalog-product-badges {
    top: 6px;
    right: 6px;
  }

  .catalog-product-badge {
    padding: 4px 6px;
    font-size: 7px;
  }

  .catalog-product-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 22px;
  }

  .catalog-product-category {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .catalog-product-title {
    min-height: 38px;
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.8;
  }

  .catalog-product-footer {
    align-items: stretch;
    flex-direction: column;
    padding-top: 8px;
  }

  .catalog-product-price > span:first-child {
    font-size: 10px;
  }

  .catalog-product-price > span + span {
    font-size: 8px;
  }

  .catalog-product-actions {
    width: 100%;
  }

  .catalog-product-actions button {
    height: 38px;
    flex: 1;
    border-radius: 10px;
  }

  .catalog-product-skeleton {
    min-height: 270px;
    padding: 8px;
    border-radius: 14px;
  }

  .catalog-product-skeleton div {
    border-radius: 11px;
  }

  .no-products {
    min-height: 300px;
  }
}

@media (max-width: 359px) {
  .catalog-products-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .catalog-product-footer {
    align-items: flex-end;
    flex-direction: row;
  }

  .catalog-product-actions {
    width: auto;
  }

  .catalog-product-actions button {
    width: 40px;
    flex: 0 0 40px;
  }
}

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