/* MedSupplyGuide — green theme matching onlinemedicalsupply.com's palette
   Dark green + mint. Sources: #2F6B50 (green), #99D6B2 (mint bar), #E8F5EE (pale mint). */

:root{
  --green:#2f6b50; --green-ink:#1f4d38; --green-600:#3a7d5e; --green-700:#265a43;
  --mint:#99d6b2; --mint-soft:#e8f5ee; --mint-tint:#f2faf5;
  --ink:#232a2f; --ink-2:#3b4650; --muted:#6b7780;
  --border:#e2e8e5; --border-2:#cfd9d3; --bg:#fff; --soft:#f6f9f7;
  --radius:12px; --radius-sm:8px;
  --shadow:0 1px 2px rgba(31,77,56,.05), 0 6px 18px rgba(31,77,56,.07);
  --shadow-lg:0 14px 44px rgba(31,77,56,.16);
  --maxw:1280px;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--green);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.narrow{max-width:860px;margin:0 auto}
.muted{color:var(--muted)} .small{font-size:.85rem} .center{text-align:center}

/* ---- affiliate disclosure bar (top of page) ---- */
.discbar{background:var(--green-ink);color:#d7e9de;font-size:.78rem;line-height:1.5;padding:7px 24px;text-align:center}
.discbar strong{color:#fff} .discbar a{color:var(--mint);text-decoration:underline}

/* ---- announcement bar ---- */
.announce{background:var(--mint);color:#123a28;text-align:center;font-size:.84rem;font-weight:600;padding:9px 24px;letter-spacing:.01em}
.announce a{color:#123a28;text-decoration:underline}

/* ---- header ---- */
header.site{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:60}
.headtop{display:flex;align-items:center;gap:22px;padding:14px 0}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--green-ink);font-size:1.15rem;letter-spacing:-.01em;flex:none}
.logo:hover{text-decoration:none}
.mark{width:34px;height:34px;border-radius:9px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800}
.searchwrap{flex:1;display:flex;max-width:560px}
.searchwrap input{flex:1;border:1px solid var(--border-2);border-right:0;border-radius:8px 0 0 8px;padding:10px 14px;font-family:inherit;font-size:.92rem;color:var(--ink)}
.searchwrap input:focus{outline:none;border-color:var(--green)}
.searchwrap button{border:1px solid var(--green);background:var(--green);color:#fff;border-radius:0 8px 8px 0;padding:0 16px;cursor:pointer;display:grid;place-items:center}
.searchwrap button:hover{background:var(--green-700)}
.util{display:flex;align-items:center;gap:18px;margin-left:auto;font-size:.85rem;color:var(--ink-2);white-space:nowrap}
.util a{color:var(--ink-2);display:flex;align-items:center;gap:6px}
.util a:hover{color:var(--green);text-decoration:none}
.util svg{width:18px;height:18px}
.cartbadge{background:var(--green);color:#fff;border-radius:999px;font-size:.68rem;font-weight:700;padding:1px 6px}

/* ---- nav row + mega menu ---- */
.headnav{border-top:1px solid var(--border)}
.navlist{list-style:none;display:flex;gap:0;margin:0;padding:0}
.navlist>li{position:relative}
.navtop{display:inline-flex;align-items:center;gap:6px;padding:14px 15px;color:var(--ink);font-size:.9rem;font-weight:600;white-space:nowrap}
.navtop:hover{color:var(--green);text-decoration:none}
.caret{width:9px;height:6px;opacity:.5}
.mega{position:absolute;top:100%;left:0;display:none;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:28px;
  background:#fff;border:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow-lg);
  padding:22px 26px;min-width:540px;max-width:min(940px,88vw);max-height:calc(100vh - 170px);overflow:auto;z-index:70}
.hasmega:hover>.mega,.hasmega.open>.mega,.hasmega:focus-within>.mega{display:grid}
/* Menus near the right edge open from left:0 and are ≥540px wide, so they would
   spill past the viewport. Anchor the last two to the right edge instead. */
.navlist>li:nth-last-child(-n+2)>.mega{left:auto;right:0}
.megacol h4{margin:0 0 10px;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:750}
.megacol ul{list-style:none;margin:0;padding:0;display:grid;gap:1px}
.megacol a{display:block;padding:5px 8px;border-radius:6px;color:var(--ink-2);font-size:.86rem}
.megacol a:hover{background:var(--mint-soft);color:var(--green-ink);text-decoration:none}

@media(max-width:1100px){
  .headtop{flex-wrap:wrap;gap:12px}
  .searchwrap{order:3;width:100%;max-width:none;flex-basis:100%}
  .headnav{overflow-x:auto}
  .navlist{flex-wrap:nowrap}
  /* position:fixed ignores the parent, so top:100% would put this BELOW the
     viewport. Anchor it to the measured header bottom instead (set by app.js). */
  .mega{position:fixed;left:10px;right:10px;top:var(--mega-top,120px);min-width:0;max-width:none;
    max-height:calc(100vh - var(--mega-top,120px) - 16px);grid-auto-flow:row;border-radius:var(--radius)}
}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fff;
  border:1px solid var(--green);padding:13px 24px;border-radius:8px;font-weight:650;font-size:.95rem;
  cursor:pointer;font-family:inherit;transition:background .15s}
.btn:hover{background:var(--green-700);text-decoration:none}
.btn--sm{padding:9px 16px;font-size:.86rem}
.btn--block{width:100%;margin-top:auto;padding:10px 16px;font-size:.9rem}
.btn--ghost{background:transparent;color:var(--green);border-color:var(--green)}
.btn--ghost:hover{background:var(--mint-soft)}
.btn--light{background:#fff;color:var(--green-ink);border-color:#fff}

/* ---- hero ---- */
.hero{position:relative;background:var(--mint-soft);overflow:hidden}
.hero-in{max-width:var(--maxw);margin:0 auto;padding:0 24px;min-height:420px;display:flex;align-items:center}
.hero-txt{max-width:560px;padding:66px 0}
.hero h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.1;letter-spacing:-.02em;margin:0 0 14px;color:var(--green-ink);font-weight:800;max-width:16ch}
.hero p{font-size:1.05rem;color:var(--ink-2);margin:0 0 26px;max-width:46ch}
.hero-img{position:absolute;top:0;right:0;height:100%;width:58%;object-fit:cover;object-position:center}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--mint-soft) 34%,rgba(232,245,238,.65) 52%,rgba(232,245,238,0) 78%);pointer-events:none}
.hero-in{position:relative;z-index:2}
@media(max-width:820px){.hero-img{position:static;width:100%;height:240px;order:2}.hero-in{flex-direction:column;min-height:0;align-items:stretch}.hero::after{display:none}.hero-txt{padding:40px 0 30px}}

/* ---- values row ---- */
.values{background:var(--mint-tint);border-bottom:1px solid var(--border)}
.values-in{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;padding:36px 24px}
.value{text-align:center}
.value svg{width:34px;height:34px;color:var(--green);margin:0 auto 12px}
.value h3{margin:0 0 6px;font-size:1rem;color:var(--green-ink);font-weight:750}
.value p{margin:0;color:var(--muted);font-size:.88rem}
@media(max-width:820px){.values-in{grid-template-columns:repeat(2,1fr)}}

/* ---- section head + tile rows ---- */
.sec{padding:52px 0}
.sec--mint{background:var(--mint-tint);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:26px}
.sechead h2{font-size:clamp(1.4rem,2.6vw,2rem);line-height:1.15;letter-spacing:-.015em;margin:0;color:var(--green-ink);font-weight:780}
.viewall{color:var(--green);font-weight:650;font-size:.88rem;white-space:nowrap}
.viewall:hover{text-decoration:underline}

.tilerow{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:18px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.tilerow::-webkit-scrollbar{height:8px}
.tilerow::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:8px}
.tile{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;scroll-snap-align:start;
  transition:box-shadow .15s,transform .15s,border-color .15s;display:flex;flex-direction:column}
.tile:hover{box-shadow:var(--shadow);transform:translateY(-2px);border-color:var(--mint);text-decoration:none}
.tile-img{aspect-ratio:1/1;background:#fff;display:grid;place-items:center;padding:18px}
.tile-img img{max-height:100%;width:auto;object-fit:contain}
.tile-name{padding:12px 14px;font-size:.9rem;font-weight:650;color:var(--ink);text-align:center;border-top:1px solid var(--border)}

/* ---- featured product cards ---- */
.grid{display:grid;gap:18px}
.grid--5{grid-template-columns:repeat(5,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
@media(max-width:1100px){.grid--5{grid-template-columns:repeat(3,1fr)}.grid--4{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.grid--5,.grid--4,.grid--3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.grid--5,.grid--4,.grid--3{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;height:100%}
.product .pthumb{aspect-ratio:1/1;border-radius:var(--radius-sm);border:1px solid var(--border);background:#fff;display:grid;place-items:center;overflow:hidden;margin-bottom:12px;padding:10px}
.product .pthumb img{max-height:100%;width:auto;object-fit:contain}
.noimg{width:100%;height:100%;display:grid;place-items:center;background:var(--mint-soft);color:var(--green);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;text-align:center;padding:10px}
.pbody{display:flex;flex-direction:column;flex:1}
.vendor{font-size:.66rem;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.product h3{font-size:.88rem;margin:0 0 8px;line-height:1.32;flex:1}
.product h3 a{color:var(--ink)}
.product h3 a:hover{color:var(--green);text-decoration:none}
.pricerow{margin:2px 0 12px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.price{font-weight:800;font-size:1rem;color:var(--green-ink)}
.fromlbl{font-weight:600;font-size:.78rem;color:var(--muted);margin-right:4px;text-transform:uppercase;letter-spacing:.04em}
.was{color:var(--muted);text-decoration:line-through;font-size:.82rem}
.affline{font-size:.68rem;color:var(--muted);margin:8px 0 0;text-align:center}

/* ---- 35 years ---- */
.years{text-align:center}
.years h2{font-size:clamp(1.6rem,3vw,2.4rem);color:var(--green-ink);margin:0 0 16px;letter-spacing:-.015em;font-weight:800}
.years p{max-width:70ch;margin:0 auto 14px;color:var(--ink-2)}
.years a{color:var(--green);text-decoration:underline}
.years .callout{margin:22px auto;max-width:640px}

/* ---- brands ---- */
.brandgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
@media(max-width:900px){.brandgrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.brandgrid{grid-template-columns:repeat(2,1fr)}}
.brandcell{background:#fff;border:1px solid var(--border);border-radius:var(--radius);aspect-ratio:1/1;display:grid;place-items:center;padding:20px}
.brandcell img{max-height:100%;max-width:100%;object-fit:contain;filter:saturate(1)}

/* ---- articles ---- */
.artrow{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:820px){.artrow{grid-template-columns:1fr}}
.artcard{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.artcard:hover{box-shadow:var(--shadow);text-decoration:none}
.artcard .aimg{aspect-ratio:16/9;overflow:hidden;background:var(--mint-soft)}
.artcard .aimg img{width:100%;height:100%;object-fit:cover}
.artcard h3{padding:14px 16px;margin:0;font-size:.95rem;line-height:1.35;color:var(--ink)}

/* ---- catalog browser ---- */
.browserbar{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;margin-bottom:22px;padding:14px 16px;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);position:sticky;top:120px;z-index:30;box-shadow:var(--shadow)}
.bcount{font-size:.9rem;color:var(--muted);white-space:nowrap}.bcount strong{color:var(--ink);font-size:1.05rem}
.search,.vendorsel,.sortsel{font-family:inherit;font-size:.9rem;padding:10px 12px;border:1px solid var(--border-2);border-radius:8px;background:#fff;color:var(--ink);min-width:0}
.search:focus,.vendorsel:focus,.sortsel:focus{outline:2px solid var(--mint-soft);border-color:var(--green)}
.vendorsel{max-width:210px}
@media(max-width:860px){.browserbar{grid-template-columns:1fr 1fr;position:static}.search{grid-column:1/-1}.bcount{grid-column:1/-1}}
.pager{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:34px}
.pager button{font-family:inherit;font-size:.88rem;padding:8px 13px;border:1px solid var(--border);background:#fff;border-radius:8px;cursor:pointer;color:var(--ink-2);font-weight:600}
.pager button:hover{border-color:var(--green);color:var(--green)}
.pager button.on{background:var(--green);border-color:var(--green);color:#fff}
.pager .gap{color:var(--muted);padding:8px 2px}
.empty{padding:40px;text-align:center;color:var(--muted)}

/* ---- misc ---- */
.discblock{background:var(--mint-soft);border:1px solid #c9e6d6;border-left:4px solid var(--green);border-radius:var(--radius-sm);padding:13px 18px;font-size:.86rem;color:var(--green-ink);margin-bottom:20px}
.callout{background:#fff8ea;border:1px solid #f0dcae;border-left:4px solid #e0a63c;border-radius:var(--radius-sm);padding:15px 18px;font-size:.88rem;color:#5b4a1e;margin:16px 0}
.callout--warn{background:#fff1f0;border-color:#f3c9c5;border-left-color:#d9534f;color:#7a2f2b}
.pagehero{background:var(--mint-tint);border-bottom:1px solid var(--border);padding:44px 0 38px}
.pagehero h1{font-size:clamp(1.8rem,3.6vw,2.6rem);margin:0;color:var(--green-ink);letter-spacing:-.02em}
.pagehero .lede{margin:12px 0 0;color:var(--ink-2);max-width:60ch}
.kicker{display:inline-block;text-transform:uppercase;letter-spacing:.16em;font-size:.68rem;font-weight:750;color:var(--green);margin-bottom:12px}
.crumbs{padding:16px 24px;font-size:.83rem;color:var(--muted)}
.crumbs a{color:var(--muted)} .crumbs span{margin:0 6px}
.prose h2{font-size:1.35rem;margin:32px 0 10px;color:var(--green-ink)}
.prose h2:first-child{margin-top:0}
.prose p{margin:0 0 14px}
.ratetable{width:100%;border-collapse:collapse;margin:14px 0;font-size:.88rem}
.ratetable th,.ratetable td{border:1px solid var(--border);padding:10px 12px;text-align:left}
.ratetable th{background:var(--soft);font-weight:700}
@media(max-width:700px){.ratetable{display:block;overflow-x:auto;white-space:nowrap}}

/* ---- footer ---- */
footer.site{background:var(--green-ink);color:#cfe3d8;padding:52px 0 22px}
.footgrid{display:grid;grid-template-columns:1.6fr 1fr 1.3fr;gap:36px}
@media(max-width:820px){.footgrid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.footgrid{grid-template-columns:1fr}}
.footlogo{color:#fff;font-weight:800;font-size:1.05rem;margin-bottom:14px}
.footcol h4{color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;margin:0 0 14px}
.footcol p{font-size:.86rem;margin:0 0 10px;line-height:1.55}
.footcol ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.footcol a{color:#cfe3d8;font-size:.87rem}
.footcol a:hover{color:#fff}
.news{display:flex;gap:0;margin:10px 0 18px}
.news input{flex:1;border:1px solid #4e7f66;background:#fff;border-radius:6px 0 0 6px;padding:9px 12px;font-family:inherit;font-size:.85rem;min-width:0}
.news button{background:var(--mint);color:#123a28;border:0;border-radius:0 6px 6px 0;padding:0 16px;font-weight:700;font-family:inherit;cursor:pointer;font-size:.85rem}
.newsfine{margin:-8px 0 14px;font-size:.7rem;color:#9fc0ad}
.payrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.payrow span{background:#4e7f66;color:#fff;font-size:.62rem;font-weight:700;padding:5px 8px;border-radius:4px;letter-spacing:.03em}
.footbase{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #3a6b52;margin-top:34px;padding-top:18px;font-size:.8rem;color:#9fc0ad}

/* ---- prose sub-headings and lists ---- */
.prose h3{font-size:1.05rem;margin:22px 0 8px;color:var(--green-ink)}
.prose ul{margin:0 0 14px;padding-left:20px}
.prose li{margin:0 0 6px}

/* ---- cookie notice ---- */
.cookienote{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--green-ink);color:#e6f1ea;border-top:1px solid #3a6b52;box-shadow:0 -4px 20px rgba(0,0,0,.18)}
.cookienote .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;flex-wrap:wrap;margin:0 auto}
.cookienote span{font-size:.85rem;line-height:1.5}
.cookienote a{color:var(--mint);text-decoration:underline}
.cookienote button{background:var(--mint);color:#123a28;border:0;border-radius:6px;padding:9px 18px;font-weight:700;font-family:inherit;cursor:pointer;font-size:.85rem;white-space:nowrap}
