/* ==========================================================================
   JDS Manufacturing (jds-mfg.com) — North American B2B DME OEM Portal
   Design System: Clinical Navy, Medical Teal, Crisp Industrial Slate
   ========================================================================== */

:root {
  --navy-950: #07192f;
  --navy-900: #0b2545;
  --navy-800: #13355e;
  --navy-700: #1e4976;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-50: #f0fdfa;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --green-700: #15803d;
  --green-50: #f0fdf4;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06), 0 1px 2px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 6px 18px -4px rgba(11, 37, 69, 0.08), 0 2px 6px -2px rgba(11, 37, 69, 0.05);
  --shadow-lg: 0 16px 36px -8px rgba(11, 37, 69, 0.14);
  --container: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Compliance Bar */
.topbar {
  background-color: var(--navy-950);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--teal-500);
  display: inline-block;
}

.topbar-contact a {
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.topbar-contact a:hover {
  color: var(--teal-500);
}

/* Main Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  border-bottom: 3px solid var(--teal-500);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-900);
  border-bottom-color: var(--teal-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--navy-900);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quote-pill-btn:hover {
  border-color: var(--navy-700);
  background: var(--white);
}

.quote-count {
  background: var(--teal-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--navy-900);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--teal-600);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--teal-700);
  transform: translateY(-1px);
}

.btn-navy {
  background-color: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--navy-800);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-outline {
  border-color: var(--slate-300);
  color: var(--navy-900);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--navy-800);
  background: var(--slate-50);
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-900) 58%, #103c5c 100%);
  color: var(--white);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(20, 184, 166, 0.38);
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.eyebrow-light {
  background: var(--teal-50);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--teal-700);
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.0625rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.metric-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-visual-card img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px 4px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  gap: 12px;
}

.status-tag {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Trust / Compliance Strip */
.trust-strip {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 22px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.trust-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
}

.trust-desc {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Section Layout */
.section {
  padding: 76px 0;
}

.section-alt {
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-navy {
  background-color: var(--navy-900);
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 12px;
}

.section-navy .section-header h2 {
  color: var(--white);
}

.section-header p {
  color: var(--slate-600);
  font-size: 1.02rem;
}

.section-navy .section-header p {
  color: #cbd5e1;
}

/* Category Cards (Home) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.cat-img-wrap {
  background: #f3f6f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cat-img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: contain;
}

.cat-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-code {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-700);
  margin-bottom: 6px;
}

.cat-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.cat-body p {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.spec-pill {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 3px 9px;
  border-radius: 4px;
}

/* Feature / Advantage Grid */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.adv-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.adv-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.adv-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
}

/* Page Sub-hero */
.page-hero {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 52px 0;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-hero p {
  color: #cbd5e1;
  max-width: 700px;
  font-size: 1.02rem;
}

/* Catalog Filter & Product SKU Cards */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-200);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.filter-tab:hover {
  border-color: var(--navy-700);
  color: var(--navy-900);
}

.filter-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sku-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sku-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.sku-img {
  background: #f4f7fa;
  padding: 18px;
  position: relative;
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sku-img img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.hcpcs-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.kd-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid #bbf7d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.sku-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sku-model {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.sku-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  line-height: 1.32;
}

.sku-specs {
  list-style: none;
  margin-bottom: 18px;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
  font-size: 0.83rem;
  flex: 1;
}

.sku-specs li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--slate-200);
  gap: 8px;
}

.sku-specs li span:first-child {
  color: var(--slate-500);
}

.sku-specs li span:last-child {
  font-weight: 600;
  color: var(--slate-800);
  text-align: right;
}

.sku-actions {
  display: flex;
  gap: 8px;
}

.sku-actions .btn {
  flex: 1;
}

.btn-added {
  background-color: var(--navy-900) !important;
  color: var(--white) !important;
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:nth-child(even) td {
  background: var(--slate-50);
}

/* Two-Column Info Blocks */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 16px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 0.94rem;
  color: var(--slate-700);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-600);
  font-weight: 800;
}

/* Contact & RFQ Form */
.rfq-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
}

.rfq-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.selected-basket-box {
  background: var(--teal-50);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
}

.basket-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  font-size: 0.85rem;
}

.basket-item-row:last-child {
  border-bottom: none;
}

.remove-sku-btn {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-side-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.contact-side-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}

.contact-detail-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
}

.contact-detail-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.contact-detail-val {
  font-size: 1.02rem;
  font-weight: 700;
  color: #5eead4;
  word-break: break-all;
}

/* Container Estimator Widget */
.estimator-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.est-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9rem;
}

.cbm-meter {
  height: 12px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 8px;
}

.cbm-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-600), var(--navy-700));
  width: 0%;
  transition: width 0.25s ease;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-banner p {
  color: #cbd5e1;
  max-width: 620px;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.alert-success {
  display: none;
  background: var(--green-50);
  border: 1px solid #86efac;
  color: var(--green-700);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .rfq-layout {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sku-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    gap: 14px;
    align-items: flex-start;
  }
  .main-nav.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-card {
    grid-template-columns: 1fr;
  }
  .adv-grid,
  .sku-grid,
  .trust-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .est-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==========================================================================
   257-Model Medical Catalog Sidebar, Search, Pagination & Quick-View Modal
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 30px;
  align-items: start;
}

.cat-sidebar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 94px;
  box-shadow: var(--shadow-sm);
}

.cat-sidebar-header {
  background: var(--navy-900);
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cat-side-list {
  list-style: none;
}

.cat-side-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--slate-100);
  text-align: left;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cat-side-btn:hover {
  background: var(--slate-50);
  color: var(--navy-900);
}

.cat-side-btn.active {
  background: var(--teal-50);
  color: var(--teal-700);
  border-left: 3px solid var(--teal-600);
  font-weight: 700;
}

.cat-count-badge {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.cat-side-btn.active .cat-count-badge {
  background: var(--teal-600);
  color: var(--white);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
}

.search-input-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 420px;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.cat-banner-info {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--teal-600);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.cat-banner-info h2 {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.cat-banner-info p {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 34px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.page-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Home 12-Subcategory Showcase Grid */
.subcat-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.subcat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-600);
}

.subcat-thumb {
  height: 185px;
  background: var(--white);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--slate-100);
}

.subcat-thumb img {
  max-height: 158px;
  width: auto;
  object-fit: contain;
}

.subcat-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.subcat-info h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

/* Product Detail Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 47, 0.65);
  backdrop-filter: blur(3px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--slate-700);
  z-index: 2;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  padding: 32px;
  align-items: center;
}

.modal-img-box {
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.modal-img-box img {
  max-height: 300px;
  object-fit: contain;
}

.factory-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.factory-photo-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.factory-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.factory-photo-card .caption {
  padding: 16px;
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .cat-sidebar {
    position: static;
  }
  .cat-side-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .cat-side-btn {
    width: auto;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
  }
  .subcat-grid-12 {
    grid-template-columns: repeat(2, 1fr);
  }
  .factory-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .subcat-grid-12,
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
}
