:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --bg: #f4f4f4;
  --paper: #ffffff;
  --blue: #0000ff;
  --red: #ff0000;
  --line: #e4e4e4;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
button, input, select { font: inherit; color: inherit; }
.sr, .skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 80; background: #fff; padding: 8px 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 0;
}
.bar, .search, .chips, main, .footgrid, .legal { max-width: var(--max); margin-left: auto; margin-right: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { display: block; width: 176px; height: auto; background: transparent; border-radius: 0; }
.brand-medical {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  border-left: 2px solid var(--red);
  padding-left: 12px;
  line-height: 1;
}
.account { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.account a { text-decoration: none; font-weight: 650; }
.hello { color: var(--muted); }
.cartlink {
  color: #fff !important;
  background: #111;
  text-decoration: none;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}
.badge { background: var(--red); color: #fff; min-width: 1.2em; text-align: center; margin-left: 8px; padding: 0 5px; font-size: 12px; }

.search {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  gap: 0;
}
.search select, .search input, .search button {
  min-height: 46px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 0;
  padding: 0 12px;
}
.search select { border-right: 0; }
.search input { width: 100%; border-right: 0; }
.search button {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 22px;
  cursor: pointer;
}
.search-pop {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% - 6px);
  background: #fff;
  border: 1px solid #111;
  max-height: min(70vh, 480px);
  overflow: auto;
}
.search-pop a, .search-pop .more {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.search-pop a.is-active, .search-pop a:hover { background: #f7f7f7; }
.search-pop img { width: 52px; height: 52px; object-fit: contain; background: #fafafa; flex: none; }
.search-pop .nm { font-weight: 650; }
.search-pop .pr { color: var(--muted); font-size: 14px; }
.search-pop .more { justify-content: center; font-weight: 700; }

.chips {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.chips a {
  flex: none;
  text-decoration: none;
  color: #111;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  background: transparent;
  border-radius: 0;
}
.chips a.on, .chips a:hover { border-bottom-color: var(--red); color: #111; background: transparent; }

main { padding: 28px 20px 64px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  min-height: 420px;
}
.hero-copy { padding: 48px 40px; }
.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 750;
}
.hero p { margin: 0 0 18px; color: #333; max-width: 38ch; }
.hero-copy a { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0;
}
.btn { background: var(--red); color: #fff !important; border: 0; cursor: pointer; }
.ghost { color: #111; border: 1px solid #111; background: #fff; }
.hero-photo { background: #f7f7f7; display: flex; align-items: center; justify-content: center; padding: 28px; }
.hero-photo img { max-height: 380px; width: auto; object-fit: contain; }
.hero .price { color: #111; font-size: 28px; }
.hero .stock.in { color: #0a7a32; }

.section { margin-top: 42px; }
.section h2, .page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lede { color: #333; margin: 0 0 16px; max-width: 68ch; }
.page-head .kicker { color: var(--red); }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .pic { display: flex; align-items: center; justify-content: center; background: #fafafa; height: 200px; }
.card img { width: 78%; height: 78%; object-fit: contain; }
.cardbody { padding: 12px 14px 16px; }
.card h3 { font-size: 15px; line-height: 1.35; margin: 0 0 8px; font-weight: 650; }
.card h3 a { color: #111; text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.price { font-weight: 750; letter-spacing: -0.02em; }
.was { color: var(--muted); font-size: 14px; }
.stock { font-size: 13px; }
.stock.in { color: #0a7a32; }
.stock.out { color: #8a4b12; }

.feature-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.feature {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.feature img { width: 140px; height: 140px; object-fit: contain; background: #fafafa; }
.feature h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }

.prose { background: #fff; border: 1px solid var(--line); padding: 22px 22px 8px; }
.prose p { margin-top: 0; }
.prose a { color: var(--blue); }
.prose img { max-width: 100%; height: auto; }

.product { display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: 28px; align-items: start; }
.stage { background: #fff; border: 1px solid var(--line); padding: 12px; }
.purchase { background: #fff; border: 1px solid var(--line); padding: 16px; margin-top: 14px; }
.purchase .price { font-size: 32px; }
.qtyrow { display: flex; gap: 8px; margin: 12px 0; }
.qtyrow input { width: 84px; min-height: 46px; border: 1px solid #ccc; padding: 0 10px; }
.facts { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.facts span { display: inline-block; margin-right: 12px; }
.opt { display: block; margin: 8px 0; }
.opt select { min-height: 44px; border: 1px solid #ccc; width: 100%; max-width: 360px; }

.page-head { margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.note { background: #fff; border-left: 3px solid var(--red); padding: 12px 14px; margin: 0 0 16px; }
.empty { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pager a, .pager .on {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
}
.pager .on { background: #111; color: #fff; }

.cart { display: flex; flex-direction: column; gap: 10px; }
.line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  align-items: center;
}
.line img { width: 84px; height: 84px; object-fit: contain; background: #fafafa; }
.line h2 { font-size: 16px; margin: 0 0 6px; }
.line h2 a { color: inherit; text-decoration: none; }
.totals {
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.faq details { background: #fff; border: 1px solid var(--line); padding: 12px 14px; margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; }
.guidelinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guidelinks li { background: #fff; border: 1px solid var(--line); padding: 14px 16px; }
.guidelinks a { display: block; font-weight: 700; text-decoration: none; }
.guidelinks a:hover { color: var(--blue); }
.guidelinks span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 4px; }

.site-footer { background: #111; color: #ddd; padding: 36px 20px 22px; }
.footgrid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 28px; }
.site-footer a { color: #fff; display: block; text-decoration: none; margin: 7px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #aaa; }
.site-footer p { color: #c8c8c8; }
.footlogo { width: 160px; height: auto; background: transparent; border-radius: 0; padding: 0; }
.legal { margin: 22px auto 0; color: #888; font-size: 13px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero, .feature-row, .product, .footgrid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { padding: 12px 14px 0; }
  .bar { align-items: center; }
  .brand img { width: 132px; }
  .brand-medical { font-size: 11px; letter-spacing: 0.12em; padding-left: 8px; }
  .hello { display: none; }
  .account { gap: 10px; }
  .search { grid-template-columns: 1fr; }
  .search select, .search input { border-right: 1px solid #ccc; border-bottom: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .guidelinks { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 88px 1fr; }
  .feature img { width: 88px; height: 88px; }
  .hero-copy { padding: 24px 18px; }
  .hero-photo img { max-height: 260px; }
  .chips { margin: 0 -14px; padding: 0 14px; }
  body.has-buybar { padding-bottom: 92px; }
  .purchase {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .purchase .facts, .purchase .opt { display: none; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
