/* ══════════════════════════════════════════════════════
   Healix Medical Supply — Professional Redesign
   ══════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font: inherit; }

/* ── Design Tokens ───────────────────────────────────── */
:root {
  /* Primary palette — deep navy */
  --navy-950:   #0a1628;
  --navy-900:   #0f2040;
  --navy-800:   #1a3a5c;
  --navy-700:   #1e4976;
  --navy-600:   #1d5fa8;
  --navy-100:   #dbeafe;
  --navy-50:    #eff6ff;

  /* CTA palette — teal/emerald */
  --teal-800:   #065f46;
  --teal-700:   #047857;
  --teal-600:   #059669;
  --teal-500:   #10b981;
  --teal-100:   #d1fae5;
  --teal-50:    #ecfdf5;

  /* Accent */
  --sky-600:    #0284c7;
  --sky-500:    #0ea5e9;
  --sky-100:    #e0f2fe;
  --sky-50:     #f0f9ff;

  /* Status */
  --green-600:  #16a34a;
  --green-100:  #dcfce7;
  --amber-600:  #d97706;
  --amber-100:  #fef3c7;
  --red-600:    #dc2626;
  --red-100:    #fee2e2;
  --gray-600-s: #475569;

  /* Neutrals */
  --white:      #ffffff;
  --gray-950:   #0c1222;
  --gray-900:   #0f172a;
  --gray-800:   #1e293b;
  --gray-700:   #334155;
  --gray-600:   #475569;
  --gray-500:   #64748b;
  --gray-400:   #94a3b8;
  --gray-300:   #cbd5e1;
  --gray-200:   #e2e8f0;
  --gray-150:   #edf0f5;
  --gray-100:   #f1f5f9;
  --gray-50:    #f8fafc;

  /* Semantic */
  --primary:       var(--navy-800);
  --primary-dark:  var(--navy-900);
  --primary-light: var(--navy-50);
  --cta:           var(--teal-600);
  --cta-dark:      var(--teal-700);
  --cta-light:     var(--teal-50);
  --bg:            #f0f4f8;
  --surface:       var(--white);
  --surface2:      var(--gray-50);
  --border:        var(--gray-200);
  --text:          var(--gray-800);
  --text-muted:    var(--gray-500);
  --text-xs:       var(--gray-400);

  /* Typography */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'DM Serif Display', Georgia, serif;

  /* Layout */
  --max-w:        1440px;
  --sidebar-w:    256px;
  --topbar-h:     38px;
  --header-h:     72px;
  --nav-h:        48px;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(15,23,42,.05);
  --sh-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --sh:    0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -1px rgba(15,23,42,.04);
  --sh-md: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -2px rgba(15,23,42,.03);
  --sh-lg: 0 20px 25px -5px rgba(15,23,42,.1),  0 10px 10px -5px rgba(15,23,42,.03);
  --sh-xl: 0 25px 50px -12px rgba(15,23,42,.22);
  --sh-focus: 0 0 0 3px rgba(5,150,105,.25);
  --sh-focus-primary: 0 0 0 3px rgba(30,58,92,.2);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  160ms;
}

/* ── Base ────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--navy-900);
  color: rgba(255,255,255,.82);
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { opacity: .7; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-link {
  color: rgba(255,255,255,.65);
  transition: color var(--dur) var(--ease);
}
.topbar-link:hover { color: var(--white); }

/* ── Header ──────────────────────────────────────────── */
.header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--sh-sm);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
}
.header-search input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  padding: 0 16px 0 40px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: var(--sh-focus-primary);
}
.header-search input::placeholder { color: var(--gray-400); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.search-btn {
  height: 42px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 0 var(--r) var(--r) 0;
  border: 1.5px solid var(--primary);
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease);
}
.header-phone:hover { border-color: var(--primary); }
.header-phone-icon {
  width: 32px; height: 32px;
  background: var(--primary-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.header-phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.header-phone-num { font-size: 14px; font-weight: 700; color: var(--text); }
.total-pill {
  height: 36px;
  padding: 0 14px;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-100);
  color: var(--teal-700);
  border-radius: var(--r);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────── */
.hero-bar {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
  padding: 80px 24px 72px;
}

/* Subtle grid texture */
.hero-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Gradient glow — upper-left accent */
.hero-bar::after {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(5,150,105,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Secondary glow — lower-right */
.hero-glow-r {
  position: absolute;
  bottom: -100px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(30,73,118,.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,150,105,.15);
  border: 1px solid rgba(5,150,105,.3);
  color: var(--teal-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}
.hero-eyebrow span {
  color: rgba(255,255,255,.65);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--teal-500);
}

/* H1 */
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--teal-500);
}

/* Sub-text */
.hero-content p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin-bottom: 32px;
}

/* CTA row */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 0 0 0 rgba(5,150,105,0);
  text-decoration: none;
}
.hero-btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(5,150,105,.35);
}
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 4px;
  border-radius: var(--r);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  border: none;
  background: none;
  cursor: pointer;
}
.hero-btn-secondary:hover { color: var(--white); }
.hero-btn-secondary svg { opacity: .6; transition: opacity var(--dur); }
.hero-btn-secondary:hover svg { opacity: 1; }

/* Trust badges row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.hero-trust-item svg { color: var(--teal-500); opacity: .8; }
.hero-trust-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.12);
}

/* Stats card */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  backdrop-filter: blur(12px);
  min-width: 220px;
  box-shadow: 0 24px 48px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}
@media (max-width: 860px) {
  .hero-stats {
    flex-direction: row;
    min-width: auto;
    padding: 20px 24px;
    justify-content: space-around;
  }
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.stat:last-child { border-bottom: none; }
@media (max-width: 860px) {
  .stat { border-bottom: none; padding: 0; text-align: center; }
}
.stat strong {
  font-family: var(--font-serif);
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}

/* Category Nav ────────────────────────────────────── */
.cat-nav {
  height: var(--nav-h);
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.cat-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.cat-pill:hover {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
.cat-pill.active {
  color: var(--white);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  font-weight: 600;
}

/* ── Layout ──────────────────────────────────────────── */
.layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.sidebar.collapsed { width: 0; overflow: hidden; border: none; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 1;
}
.sidebar-header h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
}
.clear-btn {
  font-size: 12px;
  color: var(--sky-600);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  transition: all var(--dur) var(--ease);
}
.clear-btn:hover { background: var(--sky-100); }

.filter-group {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; }
.filter-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.filter-search {
  width: 100%;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface2);
  margin-bottom: 8px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.filter-search:focus { border-color: var(--primary); }
.filter-scroll {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}
.filter-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--gray-700);
  text-align: left;
  transition: all var(--dur) var(--ease);
  border: 1.5px solid transparent;
}
.filter-item:hover { background: var(--primary-light); color: var(--primary); }
.filter-item.active {
  background: var(--navy-100);
  color: var(--primary);
  font-weight: 600;
  border-color: rgba(30,58,92,.15);
}
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.price-inputs input {
  flex: 1;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  background: var(--surface2);
  transition: border-color var(--dur) var(--ease);
}
.price-inputs input:focus { border-color: var(--primary); }
.price-inputs span { color: var(--gray-400); font-size: 13px; }

/* Toggle checkboxes */
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--gray-700);
}
.check-item input[type="radio"],
.check-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px; height: 14px;
}
.check-item.toggle {
  justify-content: space-between;
  padding: 6px 0;
}
.toggle-slider {
  width: 36px; height: 20px;
  background: var(--gray-200);
  border-radius: 10px;
  position: relative;
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
  box-shadow: var(--sh-xs);
}
.check-item input[type="checkbox"]:checked + span + .toggle-slider,
.check-item.toggle input:checked ~ .toggle-slider {
  background: var(--cta);
}
.check-item.toggle input:checked ~ .toggle-slider::after { transform: translateX(16px); }

.apply-btn {
  display: block;
  width: calc(100% - 36px);
  margin: 4px 18px 18px;
  height: 38px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r);
  letter-spacing: .01em;
  transition: background var(--dur) var(--ease);
}
.apply-btn:hover { background: var(--primary-dark); }

/* ── Main Content ─────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; }

/* ── Toolbar ──────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  box-shadow: var(--sh-xs);
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--dur) var(--ease);
}
.sidebar-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.results-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.results-label strong { color: var(--text); }
.sort-select {
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 0 28px 0 12px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface2);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color var(--dur) var(--ease);
  cursor: pointer;
}
.sort-select:focus { border-color: var(--primary); outline: none; }
.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.view-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--dur) var(--ease);
  background: var(--surface2);
}
.view-btn + .view-btn { border-left: 1.5px solid var(--border); }
.view-btn:hover { color: var(--primary); background: var(--primary-light); }
.view-btn.active { color: var(--primary); background: var(--navy-100); }

/* Active chips */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: var(--navy-100);
  border: 1.5px solid rgba(30,58,92,.15);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}
.chip-remove {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(30,58,92,.12);
  color: var(--primary);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}
.chip-remove:hover { background: rgba(30,58,92,.25); }

/* ── Product Grid ────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-grid.list-mode {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ── Product Card ────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
  animation: fadeUp .3s var(--ease) both;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--gray-300);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-seo-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Card image area */
.card-img {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 100%;
}
.card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
  /* Prevent broken-image alt text from overflowing */
  overflow: hidden;
  text-indent: -9999px;
  font-size: 0;
  color: transparent;
}
.product-card:hover .card-img img { transform: scale(1.04); }

/* Availability badge */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-full);
  z-index: 1;
  pointer-events: none;
}
.badge-stock  { background: var(--green-100);  color: var(--green-600); }
.badge-low    { background: var(--amber-100);  color: var(--amber-600); }
.badge-out    { background: var(--red-100);    color: var(--red-600);   }
.badge-login  { background: var(--gray-100);   color: var(--gray-600);  }

/* Card body */
.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.card-brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sky-600);
}
.card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.card-tag {
  font-size: 10.5px;
  padding: 2px 7px;
  background: var(--gray-100);
  border-radius: var(--r-xs);
  color: var(--gray-600);
  font-weight: 500;
}
.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.card-price small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}
.card-bulk-btn {
  height: 34px;
  padding: 0 12px;
  background: var(--cta);
  color: var(--white);
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(5,150,105,.25);
}
.card-bulk-btn:hover {
  background: var(--cta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5,150,105,.3);
}

/* List mode */
.product-grid.list-mode .product-card {
  flex-direction: row;
}
.product-grid.list-mode .card-img {
  width: 96px;
  aspect-ratio: unset;
  height: auto;
  flex-shrink: 0;
}

/* ── Skeleton ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-xs);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Empty / Error ───────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .6; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); max-width: 320px; font-size: 14px; }

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  padding-bottom: 8px;
}
.page-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--surface);
  transition: all var(--dur) var(--ease);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}
.page-btn:disabled { opacity: .35; cursor: default; }
.page-ellipsis { padding: 0 4px; color: var(--gray-400); font-size: 14px; }

/* ── Product Detail Modal ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.55);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px) scale(.98);
  transition: transform var(--dur) var(--ease);
  scrollbar-width: thin;
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 48px);
  float: right;
  margin: 16px 16px 0 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
  z-index: 10;
}
.modal-close:hover { background: var(--gray-200); color: var(--text); }
.modal-body { padding: 24px; padding-top: 0; clear: both; }

/* Modal product layout */
.modal-product {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.modal-gallery {}
.modal-main-img {
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.modal-main-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; }
.modal-thumb {
  width: 68px; height: 68px;
  border-radius: var(--r);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.active { border-color: var(--primary); }
.modal-thumb:hover { border-color: var(--gray-300); }

/* Modal info */
.modal-info {}
.modal-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sky-600);
  margin-bottom: 6px;
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}
.modal-brand {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.modal-price-block {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.modal-price-each {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.modal-price-case {
  font-size: 13px;
  color: var(--text-muted);
}
.modal-avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.avail-in    { background: var(--green-100); color: var(--green-600); }
.avail-limit { background: var(--amber-100); color: var(--amber-600); }
.avail-out   { background: var(--red-100);   color: var(--red-600);   }
.modal-desc {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 16px;
}
.modal-features {
  margin-bottom: 16px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  padding: 12px 16px;
}
.modal-features ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.modal-features li {
  font-size: 13px;
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
}
.modal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-600);
  font-weight: 700;
}
.modal-specs {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.spec-row {
  display: flex;
  align-items: baseline;
  padding: 8px 14px;
  font-size: 13px;
  gap: 12px;
}
.spec-row:nth-child(even) { background: var(--gray-50); }
.spec-label { width: 110px; flex-shrink: 0; color: var(--text-muted); font-weight: 500; }
.spec-value { color: var(--text); font-weight: 500; flex: 1; }
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-primary {
  flex: 1;
  height: 44px;
  background: var(--cta);
  color: var(--white);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur) var(--ease);
  box-shadow: 0 3px 8px rgba(5,150,105,.25);
}
.btn-primary:hover { background: var(--cta-dark); }
.btn-secondary {
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--surface);
  transition: all var(--dur) var(--ease);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Similar products */
.similar-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.similar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* ── Inquiry Modal ───────────────────────────────────── */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.inquiry-overlay.open { opacity: 1; pointer-events: all; }
.inquiry-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  width: 100%;
  max-width: 500px;
  transform: translateY(16px) scale(.97);
  transition: transform .22s var(--ease);
  overflow: hidden;
}
.inquiry-overlay.open .inquiry-modal { transform: none; }

.inquiry-header {
  background: var(--primary);
  padding: 22px 24px 20px;
  position: relative;
}
.inquiry-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.inquiry-header p {
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.inquiry-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background var(--dur) var(--ease);
}
.inquiry-close:hover { background: rgba(255,255,255,.25); }

.inquiry-product-tag {
  margin: 0 24px;
  padding: 12px 14px;
  background: var(--teal-50);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--r-lg);
  transform: translateY(-1px);
}
.inquiry-product-tag .ipt-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal-700);
  margin-bottom: 2px;
}
.inquiry-product-tag .ipt-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

.inquiry-form-wrap { padding: 20px 24px 24px; }
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.form-label .req { color: var(--red-600); margin-left: 2px; }
.form-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface2);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-input:focus {
  border-color: var(--cta);
  background: var(--white);
  box-shadow: var(--sh-focus);
}
.form-input::placeholder { color: var(--gray-400); }
.form-textarea {
  width: 100%;
  height: 80px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface2);
  outline: none;
  resize: vertical;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  font-family: var(--font);
  line-height: 1.5;
}
.form-textarea:focus {
  border-color: var(--cta);
  background: var(--white);
  box-shadow: var(--sh-focus);
}
.form-textarea::placeholder { color: var(--gray-400); }
.form-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.inquiry-submit {
  width: 100%;
  height: 46px;
  background: var(--cta);
  color: var(--white);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: 0 3px 10px rgba(5,150,105,.3);
}
.inquiry-submit:hover:not(:disabled) {
  background: var(--cta-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(5,150,105,.35);
}
.inquiry-submit:disabled { opacity: .6; cursor: default; transform: none; }

/* Inquiry success state */
.inquiry-success {
  padding: 40px 24px 32px;
  text-align: center;
}
.inquiry-success-icon {
  width: 64px; height: 64px;
  background: var(--teal-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--teal-600);
}
.inquiry-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.inquiry-success p { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 320px; margin: 0 auto; }
.inquiry-success-close {
  margin-top: 24px;
  height: 42px;
  padding: 0 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--dur) var(--ease);
}
.inquiry-success-close:hover { background: var(--primary-dark); }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.65);
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-name { color: var(--white); font-size: 18px; }
.footer-brand .logo-sub { color: rgba(255,255,255,.45); }
.footer-brand .logo-mark { background: rgba(255,255,255,.1); }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
  z-index: 9999;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SEO Links (hidden) ──────────────────────────────── */
.seo-links { display: none; }

/* ── Utility ─────────────────────────────────────────── */
.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;
}

/* ── Sidebar backdrop (mobile) ───────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.55);
  z-index: 299;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-backdrop.visible { display: block; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1/-1; }
}

/* ── Tablet / mobile sidebar ─────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 300px; --topbar-h: 0px; }
  .topbar { display: none; }
  .header-phone { display: none; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100vh - var(--header-h));
    z-index: 300;
    transform: translateX(-100%);
    border-radius: 0;
    border-left: none;
    transition: transform .25s var(--ease);
    max-height: unset;
    /* bigger touch targets inside sidebar */
  }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: var(--sh-xl); }
  .sidebar.collapsed { transform: translateX(-100%); width: var(--sidebar-w); border: 1px solid var(--border); }
  .layout { padding: 16px; }
  /* Touch-friendly filter rows */
  .filter-item { min-height: 44px; font-size: 14px; padding: 8px 10px; }
  .check-item { min-height: 40px; }
  .apply-btn { height: 44px; font-size: 14px; }
}

/* ── Mobile: ≤ 680px ─────────────────────────────────── */
@media (max-width: 680px) {
  /* Header */
  :root { --header-h: 60px; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-mark svg { width: 18px; height: 18px; }
  .logo-name { font-size: 15px; }
  .logo-sub { display: none; }
  .total-pill { display: none; }
  .header-search { max-width: none; }
  .header-search input { font-size: 13px; padding: 0 12px 0 34px; }
  .search-btn { padding: 0 12px; font-size: 0; width: 42px; justify-content: center; }
  .search-btn svg { display: block; }

  /* Hero */
  .hero-bar { padding: 40px 16px 36px; }
  .hero-inner { gap: 20px; }
  .hero-eyebrow { font-size: 11px; padding: 4px 12px; margin-bottom: 14px; }
  .hero-content h1 { font-size: clamp(26px, 8vw, 40px); margin-bottom: 14px; }
  .hero-content p { font-size: 14px; line-height: 1.65; margin-bottom: 24px; }
  .hero-btn-primary { padding: 11px 20px; font-size: 13.5px; }
  .hero-trust { gap: 10px; margin-top: 20px; }
  .hero-trust-divider { display: none; }
  .hero-trust-item { font-size: 11px; }
  .hero-stats { padding: 14px 16px; }
  .stat strong { font-size: 28px; }
  .stat span { font-size: 10px; }

  /* Category nav */
  .cat-nav { height: auto; }
  .cat-nav-inner { padding: 6px 12px; gap: 6px; }
  .cat-pill { height: 34px; padding: 0 12px; font-size: 12.5px; }

  /* Layout + toolbar */
  .layout { padding: 10px; gap: 0; }
  .toolbar { padding: 8px 10px; gap: 6px; }
  .toolbar-left { gap: 8px; }
  .toolbar-right { gap: 6px; }
  .results-label { font-size: 12.5px; }
  .view-toggle { display: none; }

  /* Product grid: 2-col */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Product card: compact */
  .card-body { padding: 10px 10px 12px; gap: 3px; }
  .card-brand { font-size: 10px; }
  .card-name { font-size: 12.5px; }
  .card-tag { font-size: 10px; padding: 2px 5px; }
  .card-footer { margin-top: 8px; gap: 6px; }
  .card-price { font-size: 14px; }
  .card-price small { font-size: 10px; }
  .card-bulk-btn { height: 30px; padding: 0 10px; font-size: 11px; }

  /* Modal: full-width bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
  .modal-body { padding: 16px; padding-top: 0; }
  .modal-product { grid-template-columns: 1fr; gap: 20px; }
  .modal-gallery { max-width: 280px; margin: 0 auto; }

  /* Inquiry: bottom sheet */
  .inquiry-overlay { align-items: flex-end; padding: 0; }
  .inquiry-modal { max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; }

  /* Footer */
  .footer { margin-top: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 24px; }
  .footer-brand { grid-column: auto; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 16px; }
}

/* ── Mobile: ≤ 400px ─────────────────────────────────── */
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-bulk-btn { font-size: 10.5px; padding: 0 7px; }
  .hero-bar { padding: 32px 14px 28px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; }
}

/* ── Touch: ensure 44px tap targets everywhere ───────── */
@media (hover: none) and (pointer: coarse) {
  .cat-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .page-btn { min-height: 44px; min-width: 44px; }
  .card-bulk-btn { min-height: 44px; height: 44px; }
  .search-btn { min-height: 44px; height: 44px; }
  .header-search input { height: 44px; }
  .filter-item { min-height: 44px; }
  .chip { height: 36px; }
}
