/* Nutrition B2B: dense distributor storefront */
@font-face { font-family: "Plex"; src: url(/static/fonts/plex-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url(/static/fonts/plex-sans-cond-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url(/static/fonts/plex-sans-cond-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url(/static/fonts/plex-sans-cond-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #151815; --text: #272b27; --muted: #5f655e; --faint: #8a9088;
  --line: #d3d6ce; --line-2: #e6e8e2; --head: #eceee8; --zebra: #f8f9f6; --panel: #f4f5f1;
  --brand: #0e4a32; --brand-hi: #0a3a27; --brand-soft: #e7f0ea; --brand-line: #b8d0c2;
  --accent: #f3c613; --link: #1650a0; --bad: #b42318; --ok: #12703a; --warn: #fff6d8; --warn-line: #e3b100;
  --f: "Plex", "IBM Plex Sans", "Segoe UI", Arial, sans-serif; --fc: "Plex Cond", "Plex", "Arial Narrow", Arial, sans-serif; --fm: "Plex Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 13.5px/1.45 var(--f); font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--fm); font-size: 12px; }
.num { text-align: right; white-space: nowrap; }
.small { font-size: 12.5px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.inline { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font-size: inherit; }
.linkbtn:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

/* ---------- buttons + inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--brand); border-radius: 2px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--brand-hi); text-decoration: none; }
.btn-2 { background: #fff; color: var(--ink); border-color: #8f948b; }
.btn-2:hover { background: var(--panel); }
.btn-sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn-lg { height: 42px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn.is-added { background: var(--ok); border-color: var(--ok); }
.btn[disabled] { opacity: .6; cursor: default; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input:not([type]), select, textarea {
  border: 1px solid #a7aca2; border-radius: 2px; background: #fff; height: 32px; padding: 0 8px; font-size: 13.5px; min-width: 0; }
textarea { height: auto; padding: 7px 8px; resize: vertical; }
select { padding-right: 24px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 8px center; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 1px solid var(--brand); }
.qty { width: 54px; text-align: center; padding: 0 4px; -moz-appearance: textfield; }
.qty::-webkit-inner-spin-button { opacity: 1; }

/* ---------- header ---------- */
.util { background: var(--panel); border-bottom: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.util-in { display: flex; justify-content: space-between; gap: 16px; min-height: 28px; align-items: center; }
.util-r { display: flex; gap: 16px; white-space: nowrap; }
.util-r a { color: var(--muted); }
.hdr { background: #fff; border-bottom: 1px solid var(--line-2); }
.hdr-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 2px; padding: 11px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; }
.logo-t { display: flex; flex-direction: column; line-height: 1; }
.logo-t b { font: 700 27px/0.95 var(--fc); letter-spacing: .02em; color: var(--ink); }
.logo-t small { font: 600 10.5px/1.2 var(--fc); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-top: 3px; }
.search { display: flex; max-width: 760px; width: 100%; }
.search input { flex: 1; height: 40px; border: 2px solid var(--ink); border-right: 0; border-radius: 2px 0 0 2px; padding: 0 12px; font-size: 14px; }
.search input:focus { outline: none; border-color: var(--brand); }
.search button { height: 40px; padding: 0 18px; border: 0; background: var(--ink); color: #fff; font-weight: 600; border-radius: 0 2px 2px 0; cursor: pointer; }
.search button:hover { background: var(--brand); }
.acct { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
.acct-name, .acct-in { display: flex; align-items: center; gap: 8px; color: var(--ink); padding: 4px 8px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; list-style: none; }
.acct-name::-webkit-details-marker { display: none; }
.acct-name:hover, .acct-in:hover, .dd[open] > .acct-name { border-color: var(--line); text-decoration: none; }
.acct-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; max-width: 200px; }
.acct-t > span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-t small { color: var(--brand); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-apply { font-weight: 600; color: var(--brand); }
.cart-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 2px; padding: 5px 12px 5px 9px; color: var(--ink); min-width: 132px; }
.cart-btn:hover { border-color: var(--ink); text-decoration: none; }
.cart-btn svg { width: 24px; height: 24px; flex: none; }
.cart-t { display: flex; flex-direction: column; line-height: 1.2; font-size: 12.5px; }
.cart-t > span { white-space: nowrap; }
.cart-t b { font-size: 14px; }
.cart-t small { color: var(--muted); font-size: 12px; }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 30% { border-color: var(--ok); box-shadow: 0 0 0 3px #12703a33; } }
.catbar { background: var(--brand); }
.catbar-in { display: flex; flex-wrap: wrap; min-height: 36px; }
.catbar-in { position: relative; }
.catbar-in > a, .mega-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 500 13.5px/36px var(--fc); padding: 0 11px; letter-spacing: .015em; white-space: nowrap; }
.catbar-in > a:hover, .mega-btn:hover { background: var(--brand-hi); text-decoration: none; }
.catbar-in > a.on { background: var(--accent); color: var(--ink); }
.catbar-in > a.qo { margin-left: auto; }
.catbar-in > a .ic { width: 15px; height: 15px; }

/* ---------- layout bits ---------- */
.main { padding-top: 14px; padding-bottom: 40px; min-height: 60vh; }
.crumbs { font-size: 12px; color: var(--muted); margin: 0 0 8px; overflow-wrap: anywhere; }
.crumbs i { font-style: normal; margin: 0 6px; color: var(--faint); }
.crumbs span { color: var(--text); }
.box { border: 1px solid var(--line); background: #fff; padding: 14px 16px; }
.box h2 { font: 600 17px/1.25 var(--fc); margin-bottom: 8px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 600 17px/1.2 var(--fc); border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin: 26px 0 0; }
.sec-more { font: 500 13px var(--f); }
.note { font-size: 12.5px; background: var(--brand-soft); border-left: 3px solid var(--brand); padding: 7px 10px; margin: 8px 0; }
.note-warn { background: var(--warn); border-left-color: var(--warn-line); }
.note-bad { background: #fdeceb; border-left-color: var(--bad); }
.note-ok { background: #e6f3ea; border-left-color: var(--ok); }
.note.big { font-size: 14px; padding: 12px 14px; }
.empty { padding: 40px 0; }
.empty h1, .empty h2 { font: 600 22px var(--fc); margin-bottom: 6px; }
.empty-sm { color: var(--muted); padding: 10px 0; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.chip { display: inline-block; font-size: 11px; line-height: 18px; border: 1px solid var(--line); padding: 0 6px; border-radius: 2px; color: var(--muted); white-space: nowrap; }
.chip-pro { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 600; }
.status { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 2px; background: var(--head); white-space: nowrap; }
.st-approved, .st-shipped, .st-paid, .st-invoiced { background: #e2f1e7; color: var(--ok); }
.st-pending, .st-received, .st-confirmed, .st-picking { background: var(--warn); color: #7a5b00; }
.st-declined, .st-suspended, .st-cancelled { background: #fdeceb; color: var(--bad); }
.err { color: var(--bad); font-size: 12px; font-weight: 500; }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line-2); }
.kv th { width: 230px; font-weight: 600; color: var(--ink); }
.kv tr:first-child th, .kv tr:first-child td { border-top: 1px solid var(--line-2); }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
.rail h3 { font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin: 0 0 4px; }
.rail-list { list-style: none; padding: 0; margin: 0 0 20px; }
.rail-list a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line-2); }
.rail-list a span { color: var(--faint); font-size: 12px; }
.rail-list a:hover { color: var(--link); }
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.home-intro h1 { font: 600 27px/1.15 var(--fc); margin: 2px 0 6px; letter-spacing: -.005em; }
.home-intro > p { margin: 0 0 12px; max-width: 76ch; color: var(--text); font-size: 14px; }
.qo-mini { border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; }
.qo-mini label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.qo-mini label b { color: var(--ink); }
.qo-mini-row { display: flex; gap: 8px; }
.qo-mini textarea { flex: 1; font-family: var(--fm); font-size: 12.5px; min-height: 40px; }
.qo-mini .btn { height: auto; }
.box-acct { background: var(--panel); }
.login-mini { display: grid; gap: 8px; margin: 6px 0 8px; }
.login-mini label { display: grid; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.login-mini input { height: 34px; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); column-gap: 22px; }
.catcell { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.catcell-img img { width: 72px; height: 72px; display: block; border: 1px solid var(--line-2); background: #fff; }
.catcell-img:hover img { border-color: var(--line); }
.catcell h3 { font: 600 15px/1.2 var(--fc); }
.catcell h3 a { color: var(--ink); }
.catcell h3 span { font: 400 12px var(--f); color: var(--faint); margin-left: 4px; }
.catcell p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; }
.catcell-forms a { color: var(--muted); }
.brandcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 8px; }
.brandcols h3 { font: 600 15px var(--fc); }
.brandcols .small { margin: 0 0 4px; }
.brandcols ul { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 18px; }
.brandcols li { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; font-size: 13px; }
.brandcols li span { color: var(--faint); font-size: 12px; }
.who { margin-top: 6px; }
.who th a { color: var(--ink); }

/* ---------- listing ---------- */
.list { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.rail-head { display: none; }
.facet { margin-bottom: 16px; }
.facet h3 { font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin-bottom: 3px; }
.facet ul { list-style: none; margin: 0; padding: 0; }
.facet li a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 3px 0; color: var(--ink); font-size: 13px; }
.facet li a span { color: var(--faint); font-size: 12px; }
.facet li a:hover { color: var(--link); text-decoration: none; }
.cb { width: 13px; height: 13px; border: 1px solid #8f948b; border-radius: 2px; background: #fff; }
.facet a.on { font-weight: 600; }
.facet a.on .cb { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--brand); }
.facet summary { cursor: pointer; color: var(--link); font-size: 12.5px; padding: 4px 0; }
.list-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 4px; }
.list-head h1 { font: 600 24px/1.15 var(--fc); }
.count { color: var(--muted); font-size: 12.5px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.filter-btn { display: none; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 2px; max-width: 100%; overflow-wrap: anywhere; }
.fchip b { font-size: 15px; line-height: 1; }
.fchip-clear { font-size: 12px; align-self: center; }
.sort { margin-left: auto; }
.sort label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sort select { height: 30px; color: var(--ink); }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.grid thead th { position: sticky; top: 0; z-index: 2; background: var(--head); font: 600 11.5px var(--fc); letter-spacing: .05em; text-transform: uppercase; text-align: left; color: var(--muted);
  padding: 6px 8px; border-bottom: 1px solid #c6cac0; white-space: nowrap; }
.grid thead th.num { text-align: right; }
.grid td { padding: 5px 8px; vertical-align: middle; }
.grid tbody.pg { border-top: 1px solid #c6cac0; }
.grid tbody.pg:first-of-type { border-top: 0; }
.ph td { padding: 10px 8px 3px; }
.ph-in { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-img { flex: none; }
.ph-img img { width: 64px; height: 64px; display: block; border: 1px solid var(--line-2); background: #fff; }
.ph-img:hover img { border-color: var(--line); }
.ph-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ph-brand { font: 600 12px var(--fc); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.ph-name { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.ph-name:hover { color: var(--link); }
.ph-meta { font-size: 12px; color: var(--muted); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.vr td { border-top: 1px solid var(--line-2); }
.vr:hover td { background: var(--zebra); }
.vr .c-item { width: 108px; }
.vr .c-item a { color: var(--link); }
.c-var { overflow-wrap: anywhere; }
.c-var small { display: block; color: var(--faint); font-size: 11px; }
.c-msrp { width: 84px; color: var(--muted); }
.c-pack { width: 190px; }
.c-pack select { width: 100%; height: 30px; font-size: 12.5px; }
.c-price { width: 128px; }
.c-add { width: 140px; }
.lbl { display: none; }
.pp { font-size: 14px; color: var(--ink); }
.pu { display: block; font-size: 11.5px; color: var(--muted); }
.gate { font-size: 12.5px; white-space: nowrap; }
.add { display: flex; gap: 6px; justify-content: flex-end; }
.add .qty { height: 30px; }
.btn-add { height: 30px; min-width: 58px; padding: 0 10px; }
.vr-more td { padding: 4px 8px 8px 116px; font-size: 12.5px; border-top: 1px solid var(--line-2); }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; align-items: center; }
.pager a, .pager b, .pager span { min-width: 32px; height: 30px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 13px; }
.pager b { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .off { color: var(--faint); }
.pager .gap { border: 0; }

.brandhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; margin: 4px 0 14px; }
.bh-t .facts { margin-top: 10px; justify-content: start; }
.brandhead h2 { font: 700 22px var(--fc); }
.brandhead p { margin: 2px 0 0; color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font: 600 11px var(--fc); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.az { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0; }
.az a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 600; }
.brandtable td { border-top: 1px solid var(--line-2); padding: 6px 8px; }
.brandtable .small { max-width: 520px; }

/* ---------- product ---------- */
.pdp-top { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 32px; align-items: start; }
.pdp-brand { font: 600 13px var(--fc); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.pdp-info h1 { font: 600 27px/1.15 var(--fc); margin: 2px 0 8px; overflow-wrap: anywhere; }
.pdp-info .ph-chips { justify-content: flex-start; margin-bottom: 10px; }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.facts-2 div { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.ordertable td { border-top: 1px solid var(--line-2); }
.ordertable tr.vfirst td { border-top: 1px solid #c6cac0; }
.ordertable .c-var { width: 26%; }
.ordertable .cont { color: var(--faint); font-size: 12px; }
.ordertable .c-pk { white-space: nowrap; }
.ordertable .c-item { white-space: nowrap; width: 150px; }
.ordertable .c-unit, .ordertable .c-tot { width: 100px; }
.ordertable .c-tot b { font-size: 14px; color: var(--ink); }
.ordertable .c-mgn { width: 110px; color: var(--ok); font-weight: 600; }
.ordertable .c-gate { color: var(--muted); }
.pdp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
.desc { font-size: 14px; line-height: 1.55; }
.desc > *:not(h2) { max-width: 82ch; }
.desc h4 { font: 600 15px var(--fc); margin: 14px 0 4px; }
.desc p { margin: 8px 0; }
.desc ul, .desc ol { padding-left: 20px; }
.desc table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; margin: 8px 0; }
.desc td, .desc th { border: 1px solid var(--line-2); padding: 4px 6px; overflow-wrap: anywhere; vertical-align: top; }
.desc .src { margin-top: 14px; }
.pdp-side { margin-top: 26px; }
.pdp-side h3 { font: 600 14px var(--fc); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.pdp-side ul { padding-left: 16px; }
.pdp-side li { margin: 6px 0; }

/* ---------- cart / checkout / orders ---------- */
.cartwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.carttable td { border-top: 1px solid var(--line-2); }
.cp { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.cp img { width: 48px; height: 48px; border: 1px solid var(--line-2); flex: none; background: #fff; }
.cp span { display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.cp small, .carttable small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.carttable .c-pk { white-space: nowrap; }
.qform { display: flex; gap: 4px; align-items: center; }
.js .qform .btn { display: none; }
.c-lt { font-weight: 600; color: var(--ink); }
.cart-side { position: sticky; top: 10px; }
.totals { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.totals th, .totals td { padding: 6px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.totals th { text-align: left; font-weight: 500; }
.totals th small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.totals td { text-align: right; white-space: nowrap; padding-left: 10px; }
.totals .grand th, .totals .grand td { font-size: 17px; font-weight: 700; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.totals .msrpline th, .totals .msrpline td { font-size: 12px; color: var(--muted); border-bottom: 0; }
.totals-r { max-width: 380px; margin-left: auto; }
.checkout, .apply { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.co-side { position: sticky; top: 10px; }
fieldset { border: 1px solid var(--line); margin: 0 0 14px; padding: 12px 16px 16px; min-width: 0; }
legend { font: 600 16px var(--fc); padding: 0 6px; color: var(--ink); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.fgrid > label, .contact > label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.fgrid > label small { font-weight: 400; color: var(--muted); }
.fgrid input, .fgrid select { height: 36px; font-size: 14px; }
.span2 { grid-column: 1 / -1; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); margin: 6px 0; cursor: pointer; font-size: 13px; }
.radio input { margin: 3px 0 0; accent-color: var(--brand); }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio b { color: var(--ink); }
.radio.card span { display: flex; flex-direction: column; }
.radio.card small { color: var(--muted); }
.typegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px; font-weight: 400 !important; font-size: 13px; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.lbl2 { width: 100%; font-size: 12.5px; font-weight: 600; }
.steps { padding-left: 18px; }
.steps li { margin: 4px 0; }
.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 8px; }
.mini td { padding: 5px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.mini td small { display: block; color: var(--muted); }
.mini .num { padding-left: 8px; }
.order-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin: 6px 0 4px; }
.order-top .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; align-items: flex-start; }
.olines td { border-top: 1px solid var(--line-2); }
.olines .c-prod small { color: var(--muted); }
.qo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.qo textarea { width: 100%; font-family: var(--fm); font-size: 13px; margin: 6px 0; }
.qo tr.bad td { background: #fdeceb; }

/* ---------- account / auth / docs ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 420px); gap: 22px; }
.auth h1 { font: 600 24px var(--fc); margin-bottom: 8px; }
.auth form { display: grid; gap: 10px; align-content: start; }
.auth label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; }
.auth input { height: 38px; font-size: 14px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 8px 0; }
.facts.facts-1 { grid-template-columns: 1fr; }
.facts-1 div { display: grid; grid-template-columns: 130px minmax(0, 1fr); padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.admin td { border-top: 1px solid var(--line-2); vertical-align: top; }
.admin small { color: var(--muted); }
.adm-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-form select { height: 26px; font-size: 12px; }
.msg { white-space: pre-wrap; max-width: 480px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.docnav { display: flex; flex-direction: column; }
.docnav h3 { font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin: 0 0 3px; }
.docnav h3 + a { margin-top: 0; }
.docnav a { padding: 4px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 13px; }
.docnav a.on { font-weight: 700; color: var(--brand); }
.docnav a:last-of-type { margin-bottom: 18px; }
.doc-body { max-width: 860px; font-size: 14px; line-height: 1.55; }
.doc-body h1 { font: 600 27px/1.15 var(--fc); margin-bottom: 8px; }
.doc-body h2 { font: 600 17px var(--fc); border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin: 22px 0 8px; }
.doc-body .lead { font-size: 15px; color: var(--text); }
.doc-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.contact { margin-top: 10px; }
.contact input, .contact select { height: 36px; font-size: 14px; }

/* ---------- footer ---------- */
.ftr { background: #101813; color: #c3cbc4; margin-top: 30px; padding: 28px 0 18px; font-size: 13px; }
.ftr-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ftr h4 { font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .07em; color: #fff; margin-bottom: 6px; }
.ftr a { display: block; color: #dfe5df; padding: 2px 0; }
.ftr p { margin: 0 0 8px; }
.ftr-small { border-top: 1px solid #2b372e; margin-top: 18px; padding-top: 12px; font-size: 12px; color: #98a39a; }

/* ---------- sheets + toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(10, 16, 12, .5); display: flex; }
.sheet[hidden] { display: none; }
.sheet-panel { background: #fff; width: 380px; max-width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-head b { font: 600 17px var(--fc); }
.sheet-x { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 2px; color: var(--ink); }
.sheet-body { padding: 10px 14px 30px; }
.sheet-body h4 { font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 3px; margin: 16px 0 2px; }
.sheet-list { list-style: none; padding: 0; margin: 0; }
.sheet-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 15px; }
.sheet-list span { color: var(--faint); font-size: 13px; }
.sheet-acct { display: flex; flex-direction: column; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.sheet-acct small { color: var(--brand); }
.sheet-cta { display: grid; gap: 8px; }
.sheet-cta .btn { height: 42px; font-size: 15px; }
.sheet .btn.wide { margin-top: 16px; height: 42px; }
body.locked { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 3px;
  font-size: 13px; width: max-content; max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast[hidden] { display: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.toast.bad { background: var(--bad); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .home { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .brandcols ul { columns: 2; }
  .pdp-top { grid-template-columns: 340px minmax(0, 1fr); gap: 24px; }
  .ftr-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-t { max-width: 140px; }
  .hdr-in { gap: 14px; }
  .catbar-in > a, .mega-btn { padding: 0 8px; font-size: 13px; }
  .catbar-in > a.lo { display: none; }
}
@media (max-width: 960px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .home-rail { display: none; }
  .list { grid-template-columns: minmax(0, 1fr); }
  .list-rail { display: none; position: fixed; inset: 0; z-index: 85; background: #fff; overflow-y: auto; padding: 64px 16px 40px; overscroll-behavior: contain; }
  .filters-open .list-rail { display: block; }
  .rail-head { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 56px; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; background: #fff; border-bottom: 1px solid var(--line); z-index: 2; }
  .rail-head b { font: 600 18px var(--fc); }
  .facet li a { padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); }
  .filter-btn { display: inline-flex; }
  .pdp-body, .cartwrap, .checkout, .apply, .qo { grid-template-columns: minmax(0, 1fr); }
  .cart-side, .co-side { position: static; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .docnav { display: none; }
  .brandhead { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .typegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .util-r { display: none; }
  .acct-apply { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .wrap { padding: 0 14px; }
  .util { display: none; }
  .hdr-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .menu-btn { display: flex; }
  .logo { justify-self: start; }
  .mark { width: 34px; height: 34px; }
  .logo-t b { font-size: 23px; }
  .logo-t small { font-size: 9px; letter-spacing: .12em; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search input { font-size: 16px; height: 42px; }
  .search button { height: 42px; padding: 0 14px; }
  .acct { display: none; }
  .cart-btn { min-width: 0; padding: 4px 8px; }
  .cart-t small { display: none; }
  .catbar { display: none; }
  /* iPhones zoom the page into any field under 16px when it gets focus; no field rule may go smaller on a phone */
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input:not([type]), select, textarea { font-size: 16px !important; }
  .home-intro h1 { font-size: 23px; }
  .qo-mini-row { flex-direction: column; }
  .qo-mini .btn { height: 40px; }
  .catgrid { grid-template-columns: minmax(0, 1fr); }
  .brandcols { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brandcols ul { columns: 2; }
  .kv th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .kv td { display: block; padding-top: 2px; }
  .kv tr { display: block; border-bottom: 1px solid var(--line-2); }
  .kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
  .list-head h1, .pdp-info h1, .doc-body h1 { font-size: 22px; }
  .sort { margin-left: 0; }
  .toolbar { gap: 6px; }
  .fchips { order: 3; flex-basis: 100%; }

  /* tables become stacked rows */
  table.grid, .grid thead, .grid tbody, .grid tr, .grid td, .grid th { display: block; }
  .grid thead { display: none; }
  .grid td { padding: 0; border: 0 !important; }
  .grid tbody.pg { border-top: 1px solid #c6cac0; padding: 4px 0 6px; }
  .ph td { padding: 8px 0 2px; }
  .ph-in { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .ph-img img { width: 72px; height: 72px; }
  .ph-chips { width: 100%; justify-content: flex-start; }
  .grid .vr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "var item" "pack price" "msrp add"; gap: 6px 12px; padding: 9px 0; border-top: 1px solid var(--line-2); align-items: center; }
  .vr:hover td { background: none; }
  .vr .c-item { grid-area: item; width: auto; text-align: right; }
  .vr .c-var { grid-area: var; font-weight: 600; color: var(--ink); }
  .vr .c-var small { font-weight: 400; }
  .vr .c-msrp { grid-area: msrp; width: auto; text-align: left; font-size: 12.5px; }
  .vr .c-pack { grid-area: pack; width: auto; }
  .vr .c-pack select { height: 40px; font-size: 16px; }
  .vr .c-price { grid-area: price; width: auto; text-align: right; }
  .vr .c-add { grid-area: add; width: auto; }
  .lbl { display: inline; margin-right: 4px; color: var(--faint); font: 600 10.5px var(--fc); text-transform: uppercase; letter-spacing: .05em; }
  .add .qty { height: 40px; width: 60px; }
  .btn-add { height: 40px; min-width: 70px; font-size: 14px; }
  .vr-more td { padding: 8px 0 4px; }

  .pdp-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ordertable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "var item" "pk tot" "msrp unit" "mgn add"; gap: 5px 12px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: center; }
  .ordertable.gated tbody tr { grid-template-areas: "var item" "pk msrp" "gate add"; }
  .ordertable tbody tr.vfirst { border-top: 1px solid #c6cac0; }
  .ordertable .c-var { grid-area: var; width: auto; }
  .ordertable .cont { font-size: 13px; color: var(--muted); }
  .ordertable .c-pk { grid-area: pk; font-weight: 600; }
  .ordertable .c-item { grid-area: item; width: auto; text-align: right; }
  .ordertable .c-msrp { grid-area: msrp; width: auto; text-align: left; }
  .ordertable.gated .c-msrp { text-align: right; }
  .ordertable .c-unit { grid-area: unit; width: auto; }
  .ordertable .c-tot { grid-area: tot; width: auto; }
  .ordertable .c-mgn { grid-area: mgn; width: auto; text-align: left; }
  .ordertable .c-gate { grid-area: gate; }
  .ordertable .c-add { grid-area: add; }

  .carttable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prod prod" "pk item" "u lt" "q x"; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: center; }
  .carttable .c-prod { grid-area: prod; }
  .carttable .c-pk { grid-area: pk; }
  .carttable .c-item { grid-area: item; text-align: right; }
  .carttable .c-u { grid-area: u; text-align: left; }
  .carttable .c-lt { grid-area: lt; }
  .carttable .c-q { grid-area: q; }
  .carttable .c-x { grid-area: x; text-align: right; }
  .carttable .qty { height: 40px; width: 70px; }
  .carttable .c-x .linkbtn { padding: 10px 0; }
  .order-top { grid-template-columns: minmax(0, 1fr); }
  .olines tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "prod prod prod" "pk pk item" "n un u" "lt lt lt"; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
  .olines .c-prod { grid-area: prod; } .olines .c-pk { grid-area: pk; } .olines .c-item { grid-area: item; text-align: right; }
  .olines .c-n { grid-area: n; text-align: left; } .olines .c-un { grid-area: un; text-align: left; } .olines .c-u { grid-area: u; text-align: left; }
  .olines .c-lt { grid-area: lt; font-size: 15px; }
  .order-top .facts { grid-template-columns: minmax(0, 1fr); }
  .grid:not(.carttable):not(.ordertable):not(.olines):not(.mxt):not(.again):not(.orders-mini):not(.padt):not(.spect):not(.claimt) > tbody:not(.pg) > tr { display: block; padding: 8px 0; border-top: 1px solid var(--line-2); }
  .grid:not(.carttable):not(.ordertable):not(.olines):not(.mxt):not(.again):not(.orders-mini):not(.padt):not(.spect):not(.claimt) > tbody:not(.pg) > tr > td { display: inline; margin-right: 8px; }
  .claimt thead { display: none; }
  .claimt, .claimt tbody { display: block; }
  .claimt tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prod prod" "pk item" "sh af"; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: center; }
  .claimt td { display: block; padding: 0; border: 0; }
  .claimt .c-prod { grid-area: prod; } .claimt .c-pk { grid-area: pk; } .claimt .c-item { grid-area: item; text-align: right; }
  .claimt .c-sh { grid-area: sh; text-align: left; } .claimt .c-af { grid-area: af; }
  .claimt .qty { height: 42px; }
  .claim-go .btn { flex: 1; }
  .brandtable td:first-child { display: block !important; }
  .hide-sm { display: none !important; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fgrid input, .fgrid select { height: 42px; font-size: 16px; }
  .typegrid { grid-template-columns: minmax(0, 1fr); }
  .auth, .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-1 div { grid-template-columns: 110px minmax(0, 1fr); }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-panel { width: 100%; min-height: 100dvh; }
  .toast { bottom: 12px; }
}
@media (max-width: 380px) {
  .logo-t small { display: none; }
  .logo-t b { font-size: 19px; }
  .cart-t span[data-cart-word] { display: none; }
}
@media print {
  .util, .hdr, .catbar, .ftr, .toast, .sheet { display: none !important; }
}
.glance { margin-top: 12px; }
.glance th { width: 150px; }
.co-side .kv th { width: 92px; padding-right: 8px; }
.docnav h3:not(:first-child) { margin-top: 18px; }

/* ---------- account tabs, saved items, settings, admin account ---------- */
.tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin: 8px 0 12px; }
.tabs a { font: 600 14px/34px var(--fc); padding: 0 14px; color: var(--ink); margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs a:hover { background: var(--panel); text-decoration: none; }
.tabs a.on { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.tabs a span { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; font: 600 11.5px/17px var(--f); text-align: center; background: var(--accent); color: var(--ink); border-radius: 2px; }
.list-head-2 { margin-top: 4px; }
.list-head-2 h2 { font: 600 19px/1.2 var(--fc); }
.sec-n { font: 500 13px var(--f); color: var(--faint); margin-right: auto; }
.sec-sub { font: 400 12.5px var(--f); color: var(--muted); margin-right: auto; }
.save { display: inline-flex; }
.savebtn { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 5px; border: 1px solid var(--line); border-radius: 2px; background: #fff;
  color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.savebtn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.savebtn:hover { border-color: var(--ink); color: var(--ink); }
.savebtn.on { background: var(--accent); border-color: #c9a40c; color: var(--ink); }
.savebtn.on svg { fill: currentColor; }
.savebtn[disabled] { opacity: .6; }
.save-lg .savebtn { height: 26px; padding: 0 10px 0 7px; font-size: 12.5px; }
.save-lg .savebtn svg { width: 14px; height: 14px; }
.acct-saved { color: var(--ink); font-weight: 600; }
.acct-saved b { display: inline-block; min-width: 18px; padding: 0 5px; font-size: 11.5px; line-height: 17px; text-align: center; background: var(--accent); border-radius: 2px; }
.chip-ok { background: #e2f1e7; border-color: #b5d9c1; color: var(--ok); font-weight: 600; }
.acct-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acct-grid .box > label { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.acct-grid .box > label small { font-weight: 400; color: var(--muted); }
.acct-grid .box > label input, .acct-grid .box > label textarea { width: 100%; }
.acct-grid .box > label input { height: 36px; font-size: 14px; }
.acct-grid .box > .btn + .small, .acct-grid .box > .small { margin: 8px 0 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.addrtable td { border-top: 1px solid var(--line-2); padding: 8px; vertical-align: top; }
.addrtable .c-lbl { width: 210px; }
.addrtable .c-ph { width: 140px; white-space: nowrap; }
.addrtable .c-act { width: 260px; text-align: right; white-space: nowrap; }
.addrtable .c-act > * { margin-left: 12px; }
.linkbtn.danger { color: var(--bad); }
.addr-form { margin-top: 12px; max-width: 860px; }
.addr-form .fgrid { margin: 4px 0 12px; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.addr-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.addr-pick .radio { margin: 4px 0; }
.addr-pick .chip { margin-left: 4px; vertical-align: 1px; }
.js .newaddr.off { display: none; }
.newaddr { margin-top: 8px; }
.adm-order { margin: 12px 0; max-width: 760px; }
.adm-order h2 small { font: 400 12px var(--f); color: var(--muted); margin-left: 6px; }
.adm-order .fgrid { margin-bottom: 10px; }
.ro { display: flex; align-items: center; height: 36px; font-weight: 400; }
.temp-pw code { font-size: 18px; font-weight: 600; letter-spacing: .04em; background: #fff; border: 1px solid var(--warn-line); padding: 2px 8px; margin-left: 6px; user-select: all; }

/* ---------- compare with other brands ---------- */
.simtable td { border-top: 1px solid var(--line-2); }
.simtable .c-f { width: 150px; }
.simtable .c-n { width: 70px; }
.simtable td.num { width: 120px; }
.simtable .c-y b { color: var(--ink); }

/* ---------- search suggestions ---------- */
.search { position: relative; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 70; margin-top: 2px; background: #fff; border: 1px solid var(--ink); border-top-width: 2px;
  box-shadow: 0 10px 24px rgba(21, 24, 21, .16); max-height: min(560px, 72vh); overflow-y: auto; overscroll-behavior: contain; }
.sg-h { font: 600 11px var(--fc); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--head); padding: 4px 10px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--ink); border-top: 1px solid var(--line-2); min-width: 0; }
.suggest a:hover, .suggest a.on { background: var(--brand-soft); text-decoration: none; }
.sg-p img { width: 40px; height: 40px; flex: none; border: 1px solid var(--line-2); background: #fff; }
.sg-p span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sg-p b { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.sg-p small { color: var(--muted); font-size: 11.5px; }
.sg-p small:first-child { font: 600 11px var(--fc); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.sg-l { justify-content: space-between; }
.sg-l span { font-weight: 600; }
.sg-l small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.sg-all { font-weight: 600; color: var(--link) !important; background: var(--panel); }
.suggest mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 2px; }

@media (max-width: 1180px) {
  .acct-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-saved { display: none; }
}
@media (max-width: 960px) {
  .addr-pick { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tabs a { padding: 0 10px; font-size: 14px; line-height: 40px; }
  .acct-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .acct-grid .box > label input { height: 42px; font-size: 16px; }
  .savebtn { height: 32px; padding: 0 12px 0 9px; font-size: 13px; }
  .savebtn svg { width: 14px; height: 14px; }
  .ph-chips .save { margin-left: auto; }
  .addrtable tbody tr { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 0 !important; }
  .addrtable tbody tr > td { display: block !important; margin: 0 !important; width: auto !important; text-align: left !important; white-space: normal !important; }
  .addrtable .c-act > * { margin: 0 18px 0 0; }
  .addrtable .c-act .linkbtn, .addrtable .c-act a { display: inline-block; padding: 8px 0; }
  .form-actions .btn { flex: 1; height: 42px; }
  .simtable tbody tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prod prod" "f m" "n y"; gap: 4px 12px; padding: 10px 0 !important; }
  .simtable tbody tr > td { display: block !important; margin: 0 !important; width: auto !important; }
  .simtable .c-prod { grid-area: prod; } .simtable .c-f { grid-area: f; color: var(--muted); } .simtable .c-n { display: none !important; }
  .simtable .c-m { grid-area: m; } .simtable .c-y { grid-area: y; }
  .suggest { max-height: 66vh; }
  .suggest a { padding: 9px 14px; }
  .sg-h { padding: 5px 14px; }
}
select.autoset { animation: autoset .9s; }
@keyframes autoset { 0%, 40% { background-color: var(--warn); border-color: var(--warn-line); } }

/* ---------- photos: product gallery ---------- */
.gal { min-width: 0; }
.gal-stage { position: relative; border: 1px solid var(--line-2); background: #fff; aspect-ratio: 1; overflow: hidden; }
.gal-main { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gal-main img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .15s; }
.gal-main.loading img { opacity: .35; }
.gal-none .gal-stage img { opacity: .5; }
.gal-z { position: absolute; top: 0; left: 0; max-width: none; pointer-events: none; background: #fff; will-change: transform; }
.gal-n { position: absolute; left: 8px; bottom: 8px; font: 500 11.5px/20px var(--fm); padding: 0 6px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); color: var(--muted); pointer-events: none; }
.gal-hint { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font: 600 11px/20px var(--fc); letter-spacing: .04em; text-transform: uppercase;
  padding: 0 7px 0 5px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line-2); color: var(--muted); pointer-events: none; transition: opacity .15s; }
.gal-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gal-step { position: absolute; top: 50%; margin-top: -19px; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  border-radius: 2px; cursor: pointer; color: var(--ink); opacity: 0; transition: opacity .15s; }
.gal-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.gal-step:hover { border-color: var(--ink); }
.gal-prev { left: 8px; } .gal-next { right: 8px; }
.gal-stage:hover .gal-step, .gal-step:focus-visible { opacity: 1; }
.gal-stage.zooming .gal-step, .gal-stage.zooming .gal-hint, .gal-stage.zooming .gal-n { opacity: 0; }
.gal-thumbs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.gal-thumbs a { position: relative; display: block; border: 1px solid var(--line-2); background: #fff; aspect-ratio: 1; }
.gal-thumbs a:hover { border-color: #9da396; }
.gal-thumbs a.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.gal-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gal-thumbs i { position: absolute; left: 2px; bottom: 2px; font: 600 9.5px/14px var(--fc); letter-spacing: .05em; text-transform: uppercase; padding: 0 4px; background: var(--ink); color: #fff; font-style: normal; }
.gal-cap { margin: 6px 0 0; font-size: 11.5px; color: var(--faint); }
@media (hover: none) { .gal-step { opacity: 1; } .gal-hint { display: none; } }

/* flavour / size photos in table rows */
.vthumb { float: left; margin: 0 9px 0 0; padding: 0; border: 1px solid var(--line-2); background: #fff; line-height: 0; cursor: pointer; }
.vthumb img { width: 34px; height: 34px; display: block; }
.vthumb:hover { border-color: var(--ink); }
.c-var .vlab { display: block; overflow: hidden; }
.ordertable .c-var b { display: block; overflow: hidden; padding-top: 1px; }
.ordertable tr.vfirst .vthumb + b { min-height: 36px; display: flex; align-items: center; }

/* ---------- photos: picture view ---------- */
.vtog { display: inline-flex; border: 1px solid #8f948b; border-radius: 2px; overflow: hidden; }
.vtog a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: #fff; }
.vtog a + a { border-left: 1px solid #8f948b; }
.vtog a:hover { background: var(--panel); text-decoration: none; }
.vtog a.on { background: var(--ink); color: #fff; }
.vtog svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line-2); }
.card { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; min-width: 0; }
.card:hover { box-shadow: inset 0 0 0 1px var(--line); }
.card-img { display: block; padding: 12px 12px 4px; }
.card-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.card-b { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 12px; flex: 1; min-width: 0; }
.card-brand { font: 600 11.5px var(--fc); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.card-t { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-t:hover { color: var(--link); }
.card-meta { font-size: 12px; color: var(--muted); }
.card-sw { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 0; align-items: center; }
.card-sw a { line-height: 0; border: 1px solid var(--line-2); }
.card-sw a:hover { border-color: var(--ink); }
.card-sw img { width: 26px; height: 26px; }
.card-sw i { font: 600 11px var(--f); font-style: normal; color: var(--muted); margin-left: 2px; }
.card-p { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; }
.card-from { font-size: 12.5px; color: var(--muted); }
.card-from b { font-size: 16px; color: var(--ink); }
.card-p small { font-size: 11.5px; color: var(--muted); }
.card-p .gate { margin-top: 2px; }
.card-add { display: grid; gap: 6px; margin-top: 8px; }
.card-add select { width: 100%; height: 30px; font-size: 12.5px; }
.card-add .add { justify-content: stretch; }
.card-add .btn-add { flex: 1; }
.card-go { margin-top: 8px; height: 30px; font-size: 12.5px; }

/* ---------- photos: home, brand pages ---------- */
.bstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 6px 0 8px; }
.bstrip a { display: block; border: 1px solid var(--line-2); background: #fff; line-height: 0; }
.bstrip a:hover { border-color: var(--ink); }
.bstrip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bstrip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bh-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 88px); gap: 6px; }
.bh-strip a { display: block; border: 1px solid var(--line-2); background: #fff; line-height: 0; }
.bh-strip a:hover { border-color: var(--ink); }
.bh-strip img { width: 86px; height: 86px; }
.bt { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.bt img { width: 40px; height: 40px; border: 1px solid var(--line-2); background: #fff; flex: none; }

/* ---------- photos: full-screen viewer ---------- */
.lb { position: fixed; inset: 0; z-index: 95; background: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.lb-bar b { font: 600 15px/1.25 var(--fc); color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar span { font: 500 12px var(--fm); color: var(--muted); white-space: nowrap; }
.lb-x { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 2px; color: var(--ink); flex: none; }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb.zoomed .lb-stage { display: block; overflow: auto; cursor: zoom-out; touch-action: auto; }
.lb.zoomed .lb-stage img { max-width: none; max-height: none; width: 1400px; }
.lb-step { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink); z-index: 2; }
.lb-step svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-step:hover { border-color: var(--ink); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb.zoomed .lb-step { display: none; }
.lb-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px 12px 12px; border-top: 1px solid var(--line-2); }
.lb-strip button { width: 54px; height: 54px; padding: 0; border: 1px solid var(--line-2); background: #fff; cursor: pointer; line-height: 0; }
.lb-strip button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.lb-strip img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1180px) {
  .bh-strip { grid-template-columns: repeat(4, 80px); }
  .bh-strip li:nth-child(n+5) { display: none; }
  .bh-strip img { width: 78px; height: 78px; }
}
@media (max-width: 960px) {
  .bh-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bh-strip li:nth-child(n+5) { display: block; }
  .bh-strip img { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 760px) {
  .gal { max-width: 520px; margin: 0 auto; width: 100%; }
  .gal-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .gal-step { width: 40px; height: 40px; margin-top: -20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-img { padding: 10px 10px 2px; }
  .card-b { padding: 4px 10px 12px; }
  .card-t { font-size: 14px; }
  .card-add select { height: 40px; font-size: 16px; }
  .card-go { height: 40px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; }
  .card-add .qty { width: 52px; }
  .vtog a { height: 36px; padding: 0 12px; }
  .bh-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bh-strip li:nth-child(n+5) { display: none; }
  .bstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vthumb img { width: 40px; height: 40px; }
  .lb-step { width: 42px; height: 42px; margin-top: -21px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-strip button { width: 46px; height: 46px; }
}
@media print { .gal-step, .gal-hint, .gal-n, .lb, .vtog { display: none !important; } }
.lb.nozoom .lb-stage { cursor: default; }

/* flavour swatches beside the gallery */
.pdp-sw { margin: 0 0 12px; }
.pdp-sw p { margin: 0 0 5px; font-size: 12.5px; color: var(--muted); }
.pdp-sw p b { color: var(--ink); }
.pdp-sw-row { display: flex; flex-wrap: wrap; gap: 5px; }
.pdp-sw-row button { padding: 0; border: 1px solid var(--line-2); background: #fff; cursor: pointer; line-height: 0; }
.pdp-sw-row button:hover { border-color: #9da396; }
.pdp-sw-row button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pdp-sw-row img { width: 48px; height: 48px; }
@media (max-width: 760px) { .pdp-sw-row img { width: 52px; height: 52px; } }

/* ---------- product sheet (print) ---------- */
.print-only { display: none; }
.sheetbtn svg { fill: none; }
@media print {
  @page { margin: 12mm; }
  body { font-size: 10.5pt; }
  .print-only { display: block; }
  .print-from { font-size: 9pt; color: #444; margin: 0 0 8px; }
  .wrap { max-width: none; padding: 0; }
  .crumbs, .ph-chips, .gal-thumbs, .gal-cap, .pdp-sw-row, .pdp-sw p, .note, .pdp-side, .c-add, .pager, .vthumb, .skip, .savebtn, .filter-btn, .toolbar { display: none !important; }
  .pg-pdp .pdp-top { grid-template-columns: 52mm minmax(0, 1fr); gap: 8mm; }
  .gal-stage { border: 0; }
  .grid thead th { position: static; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grid td { padding: 3px 6px; }
  .ordertable, .simtable { page-break-inside: auto; }
  .ordertable tr { page-break-inside: avoid; }
  .pg-pdp .sec { margin-top: 12px; }
  .pg-pdp .pdp-body { grid-template-columns: minmax(0, 1fr); }
  .pg-pdp .desc .src { display: none; }
  .pg-pdp table.grid:not(.mxt):not(.simtable):not(.spect), .pg-pdp .sec:has(+ table.grid:not(.mxt):not(.simtable)) { display: none; }
  .mx-bar, .mxt .qty, .tab-list, .c-none span, .mxt .vthumb { display: none !important; }
  .tab-pane { display: block !important; }
  .ptabs .pane-h { display: block !important; font: 600 13pt var(--fc); border-bottom: 1px solid #000; margin: 10px 0 4px; }
  .mxt .pk { display: block; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- round 4: icons, account menu, cart preview ---------- */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic-lg { width: 24px; height: 24px; stroke-width: 1.5; }
.ic-caret { width: 14px; height: 14px; transition: transform .15s; }
.dd[open] .ic-caret, .mega-wrap.open .mega-btn .ic-caret { transform: rotate(180deg); }
.btn .ic { width: 16px; height: 16px; }
.dd { position: relative; }
.dd-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 280px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink);
  box-shadow: 0 10px 28px rgba(16, 24, 16, .14); z-index: 75; padding: 4px 0 6px; }
.dd-head { margin: 0 0 4px; padding: 8px 14px 10px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; }
.dd-head b { color: var(--ink); }
.dd-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dd-panel a, .dd-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 14px; color: var(--ink); font-size: 13px; background: none; border: 0; text-align: left; cursor: pointer; }
.dd-panel a:hover, .dd-panel button:hover { background: var(--panel); text-decoration: none; color: var(--brand); }
.dd-panel .ic { color: var(--muted); }
.dd-panel form { margin: 4px 0 0; border-top: 1px solid var(--line-2); padding-top: 4px; }
.acct-saved { display: inline-flex; align-items: center; gap: 5px; }
.acct-saved b:empty { display: none; }
.hcart { position: relative; }
.hmini { position: absolute; right: 0; top: calc(100% + 6px); width: 390px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink);
  box-shadow: 0 10px 28px rgba(16, 24, 16, .16); z-index: 75; }
.mini-in { padding: 10px 14px 14px; }
.mini-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-h span { color: var(--muted); font-size: 12px; }
.mini-lines { list-style: none; margin: 0; padding: 0; }
.mini-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.mini-img img { width: 44px; height: 44px; display: block; border: 1px solid var(--line-2); }
.mini-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mini-t a { color: var(--ink); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-t small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-lines b { font-size: 13px; }
.mini-more { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.mini-sum { display: flex; justify-content: space-between; margin: 8px 0 2px; font-size: 13.5px; }
.mini-sum b { font-size: 15px; color: var(--ink); }
.mini-empty { margin: 4px 0; font-size: 13px; }
.mini-gate { margin: 8px 0 0; }
.mini-act { display: flex; gap: 8px; margin-top: 12px; }
.mini-act .btn { flex: 1; height: 36px; }

/* free-freight progress */
.fbar p { margin: 6px 0 5px; font-size: 12.5px; color: var(--text); }
.fbar p b { color: var(--ink); }
.fbar-t { display: block; height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.fbar-t i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.fbar.done p b { color: var(--ok); }
.fbar.done .fbar-t i { background: var(--ok); }
.w0 { width: 0; } .w1 { width: 5%; } .w2 { width: 10%; } .w3 { width: 15%; } .w4 { width: 20%; } .w5 { width: 25%; } .w6 { width: 30%; }
.w7 { width: 35%; } .w8 { width: 40%; } .w9 { width: 45%; } .w10 { width: 50%; } .w11 { width: 55%; } .w12 { width: 60%; } .w13 { width: 65%; }
.w14 { width: 70%; } .w15 { width: 75%; } .w16 { width: 80%; } .w17 { width: 85%; } .w18 { width: 90%; } .w19 { width: 95%; } .w20 { width: 100%; }

/* ship-today line and search shortcut */
.util-ship { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.util-ship .ic { width: 17px; height: 17px; color: var(--muted); }
.util-ship b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.util-ship.is-today .ic, .util-ship.is-today b { color: var(--brand); }
.util-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-key { align-self: center; margin-left: -34px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: 3px; font: 500 12px var(--fm); color: var(--muted); background: var(--panel); pointer-events: none; position: relative; z-index: 1; margin-right: 12px; }
.search input:focus ~ .search-key, .search input:not(:placeholder-shown) ~ .search-key { visibility: hidden; }

/* ---------- round 4: All categories menu ---------- */
.mega-btn { background: var(--brand-hi); font-weight: 600; padding: 0 14px; cursor: pointer; }
.mega-btn.on, .mega-wrap.open .mega-btn { background: var(--accent); color: var(--ink); }
.mega-btn .ic { width: 16px; height: 16px; }
.mega { position: absolute; left: 20px; right: 20px; top: 100%; z-index: 72; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  box-shadow: 0 14px 36px rgba(16, 24, 16, .18); display: grid; grid-template-columns: 250px minmax(0, 1fr); color: var(--text); }
.mega-cats { list-style: none; margin: 0; padding: 6px 0; background: var(--panel); border-right: 1px solid var(--line-2); }
.mega-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 0 14px; line-height: 25px; color: var(--ink); font-size: 13px; }
.mega-cats a span { color: var(--faint); font-size: 12px; }
.mega-cats a:hover { text-decoration: none; color: var(--brand); }
.mega-cats a.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.mega-pane { padding: 14px 20px 16px; min-width: 0; }
.mega-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 5px; }
.mega-h h3 { font: 600 20px/1.2 var(--fc); }
.mega-h h3 a { color: var(--ink); }
.mega-all { font-weight: 600; font-size: 13px; }
.mega-cols { display: grid; grid-template-columns: 210px 170px minmax(0, 1fr); gap: 26px; margin-top: 12px; }
.mega-cols h4 { font: 600 11.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; margin: 0 0 3px; }
.mega-cols ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mega-cols li a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; color: var(--ink); font-size: 13px; }
.mega-cols li a span { color: var(--faint); font-size: 12px; }
.mega-cols li a:hover { color: var(--link); }
.mega-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-content: start; }
.mega-tiles li a { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line-2); height: 100%; color: var(--ink); }
.mega-tiles li a:hover { border-color: var(--ink); text-decoration: none; }
.mega-tiles img { width: 96px; height: 96px; display: block; margin: 0 auto 6px; }
.mega-tiles small { color: var(--brand); font: 600 11px var(--fc); text-transform: uppercase; letter-spacing: .04em; }
.mega-tiles span { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 9px 20px; border-top: 1px solid var(--line-2); background: var(--zebra); font-size: 13px; }
.mega-foot b { color: var(--ink); }
.mega-foot-r { margin-left: auto; font-weight: 600; }

/* ---------- round 4: buyer desk (signed-in home) ---------- */
.desk { margin-bottom: 30px; }
.desk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.kicker { margin: 0 0 2px; font: 600 11.5px var(--fc); text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.desk-head h1 { font: 600 26px/1.15 var(--fc); }
.desk-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.desk-main .sec:first-of-type { margin-top: 20px; }
.desk-side { display: grid; gap: 14px; }
.desk-side .box h2 { display: flex; align-items: baseline; gap: 8px; font-size: 16px; }
.box-more { margin-left: auto; font: 500 13px var(--f); }
.kv-sm th { width: 96px; font-size: 12.5px; padding: 6px 8px 6px 0; }
.kv-sm td { font-size: 12.5px; padding: 6px 0; }
.desk-cart { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font-size: 13.5px; }
.desk-cart b { font-size: 16px; color: var(--ink); }
.desk-saved { list-style: none; margin: 0; padding: 0; }
.desk-moves { list-style: none; margin: 8px 0 0; padding: 0; }
/* report a problem */
.claim-lead { max-width: 760px; margin: 4px 0 14px; }
.claim-why { border: 1px solid var(--line); padding: 10px 14px 12px; margin: 0 0 6px; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 8px 18px; }
.claim-why legend { font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }
.claim-r { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; padding: 6px 4px; }
.claim-r input { margin-top: 3px; flex: none; }
.claim-r b { display: block; }
.claim-r small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.claimt .c-prod small { display: block; color: var(--muted); }
.claimt .qty { width: 76px; text-align: right; }
.claim-notes { display: block; max-width: 760px; margin: 14px 0 0; font-weight: 600; }
.claim-notes small { font-weight: 400; color: var(--muted); }
.claim-notes textarea { display: block; width: 100%; margin-top: 4px; }
.claim-go { display: flex; align-items: center; gap: 18px; margin: 14px 0 6px; }
.claims-list small, .adm-claims small { color: var(--muted); }
.adm-claims tr.is-open td { background: var(--warn); }
.adm-claim input[name=resolution] { width: 180px; }
.st-open { background: var(--warn); color: #7a5b00; }
.st-credited, .st-replaced { background: #e2f1e7; color: var(--ok); }
.st-closed { background: #eceee9; color: var(--muted); }
.desk-moves li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; line-height: 1.3; }
.desk-moves a { min-width: 0; color: var(--ink); }
.desk-moves small { display: block; color: var(--muted); font-size: 11.5px; }
.desk-moves .mv { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.desk-moves s { color: var(--muted); font-size: 12px; }
.desk-moves em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; }
.desk-moves em.up { color: #8a5a00; }
.desk-moves em.dn { color: var(--ok, #1d6b3a); }
.desk-saved a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 13px; line-height: 1.3; }
.desk-saved img { width: 40px; height: 40px; display: block; border: 1px solid var(--line-2); }
.desk-saved small { display: block; color: var(--muted); font-size: 11.5px; }
.desk-empty { border: 1px dashed #b9beb4; padding: 14px 16px; margin-top: 8px; background: #fff; }
.desk-empty > p { margin: 0; }
.steps { margin: 8px 0 0; padding-left: 20px; }
.steps li { margin: 5px 0; }
.again .c-img { width: 52px; }
.again .c-img img { width: 40px; height: 40px; display: block; border: 1px solid var(--line-2); }
.again .c-prod { line-height: 1.3; }
.again .c-prod a { color: var(--ink); font-weight: 600; }
.again .c-prod small { display: block; color: var(--muted); font-size: 12px; }
.again .c-price b { display: block; }
.again td { padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--line-2); }
.orders-mini td { border-bottom: 1px solid var(--line-2); padding-top: 7px; padding-bottom: 7px; }
.orders-mini .c-act { text-align: right; white-space: nowrap; }
.orders-mini .c-act a { margin-right: 10px; }
.cards.cards-row { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.home-desk { margin-top: 6px; }

/* ---------- round 4: product order grid ---------- */
.mxt { margin-top: 8px; }
.mxt td { padding: 8px; border-bottom: 1px solid var(--line-2); }
.mxt tbody tr:hover td { background: var(--zebra); }
.mxt tbody tr:target td { background: #fffbe8; }
.mxt .c-var { min-width: 230px; }
.mxt .vthumb img { width: 40px; height: 40px; }
.mxt .vlab b { display: block; color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.mxt .vlab small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.mxt .vlab .mono { font-size: 11.5px; }
.mxt .c-msrp { color: var(--muted); width: 90px; }
.mxt th.c-pk { min-width: 158px; }
.pk { display: grid; grid-template-columns: minmax(0, 1fr) 62px; column-gap: 10px; align-items: center; cursor: text; }
.pk-l { font-size: 12px; color: var(--muted); grid-column: 1; }
.pk-p { grid-column: 1; line-height: 1.25; }
.pk-p b { display: block; font-size: 14.5px; color: var(--ink); }
.pk-p small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pk-p em { font-style: normal; color: var(--ok); font-weight: 600; }
.pk .qty { grid-column: 2; grid-row: 1 / span 2; width: 62px; height: 34px; }
.gated .pk .qty { grid-row: 1; }
.qty.has { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; color: var(--ink); }
.c-none span { font-size: 12px; color: var(--faint); }
.mx-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); box-shadow: 0 -6px 18px rgba(16, 24, 16, .07); }
.mx-bar.on { border-top-color: var(--brand); }
.mx-sum { font-size: 14px; color: var(--muted); }
.mx-sum b { color: var(--ink); }
.mx-bar .btn { min-width: 190px; }
/* first submit button in the grid form, so Enter in a quantity adds to cart (not "Save as my usual order") */
.mx-default { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }

/* ---------- round 4: product tabs and specifications ---------- */
.ptabs { margin-top: 28px; }
.tab-list { display: none; border-bottom: 2px solid var(--ink); }
.js .tab-list { display: flex; }
.tab-list button { background: none; border: 0; padding: 0 18px; height: 38px; font: 600 14.5px var(--fc); color: var(--muted); cursor: pointer; letter-spacing: .01em; }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pane-h { font: 600 17px/1.2 var(--fc); border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin: 26px 0 8px; }
.js .ptabs .pane-h { display: none; }
.tab-pane { padding-top: 14px; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); max-width: 980px; }
.facts-3 div { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.facts-3 dd small { display: block; color: var(--muted); font-size: 12px; }
.spect { margin-top: 14px; }
.spect td { border-bottom: 1px solid var(--line-2); }
.spect td small { display: block; color: var(--muted); font-size: 11.5px; }
.pnote { font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.pnote b { color: var(--ink); }

/* ---------- round 4: listing multi-add bar ---------- */
.mbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 18px;
  background: var(--ink); color: #fff; border-radius: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); font-size: 14px; max-width: calc(100vw - 24px); }
.mbar b { color: var(--accent); }
.mbar .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.mbar .linkbtn { color: #cfd5cb; }
.vr.pending td { background: #fffbe8; }
.list-main.loading { opacity: .55; transition: opacity .15s .1s; }

@media (max-width: 1180px) {
  .mega { grid-template-columns: 210px minmax(0, 1fr); }
  .mega-cols { grid-template-columns: 180px 150px minmax(0, 1fr); gap: 18px; }
  .mega-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .util-sub { display: none; }
}
@media (max-width: 960px) {
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-cols { grid-template-columns: 1fr 1fr; }
  .mega-tiles { display: none; }
  .facts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-key { display: none; }
}
@media (max-width: 760px) {
  .desk-head h1 { font-size: 22px; }
  .desk-tools .btn { flex: 1 1 auto; }
  .again thead, .orders-mini thead { display: none; }
  .again tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .again td { display: block; padding: 0; border: 0; }
  .again .c-img { grid-row: 1 / span 3; width: auto; }
  .again .c-prod { grid-column: 2 / -1; }
  .again .c-item, .again .c-last { display: none; }
  .again .c-pk { grid-column: 2; font-size: 12.5px; color: var(--muted); }
  .again .c-price { grid-column: 3; grid-row: 2; }
  .again .c-add { grid-column: 2 / -1; }
  .again .c-add .add { justify-content: flex-start; }
  .orders-mini tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .orders-mini td { display: block; padding: 0; border: 0; }
  .orders-mini .c-act { grid-column: 1 / -1; text-align: left; }
  .mxt thead { display: none; }
  .mxt, .mxt tbody, .mxt tr, .mxt td { display: block; }
  .mxt tr { border: 1px solid var(--line); margin: 0 0 10px; padding: 8px 10px 4px; }
  .mxt tbody tr:hover td { background: none; }
  .mxt td { padding: 4px 0; border: 0; }
  .mxt .c-var { min-width: 0; }
  .mxt .c-msrp { width: auto; text-align: left; font-size: 12.5px; }
  .mxt .c-pk { border-top: 1px solid var(--line-2) !important; padding: 8px 0; }
  .mxt .c-none { display: none; }
  .pk { grid-template-columns: minmax(0, 1fr) 76px; }
  .pk .qty { width: 76px; height: 42px; font-size: 16px; }
  .mx-bar { margin: 10px -14px 0; border-left: 0; border-right: 0; padding: 10px 14px; }
  .mx-bar .btn { min-width: 0; flex: none; }
  .mx-sum { font-size: 13px; }
  .tab-list { overflow: hidden; }
  .tab-list button { padding: 0 10px; font-size: 13.5px; flex: 1 1 auto; }
  .facts-3 { grid-template-columns: minmax(0, 1fr); }
  .spect thead { display: none; }
  .spect, .spect tbody, .spect tr, .spect td { display: block; }
  .spect tr { border: 1px solid var(--line-2); margin-bottom: 8px; padding: 6px 10px; }
  .spect td { border: 0; padding: 2px 0; text-align: left; display: flex; justify-content: space-between; gap: 12px; }
  .spect td::before { content: attr(data-l); color: var(--muted); font: 600 11px var(--fc); text-transform: uppercase; letter-spacing: .05em; }
  .spect td small { display: inline; margin-left: 6px; }
  .spect td:empty { display: none; }
  .mbar { left: 12px; right: 12px; transform: none; bottom: 12px; justify-content: space-between; }
}

/* ---------- round 5: search notes, order pad ---------- */
.didyou { margin: 8px 0 2px; font-size: 13.5px; }
.didyou b { color: var(--ink); }
.noresults { padding: 26px 0 30px; }
.noresults .tips { padding-left: 18px; margin: 8px 0 16px; font-size: 14px; }
.noresults .tips li { margin: 5px 0; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.qo:not(.qo-result) { grid-template-columns: minmax(0, 1fr) 300px; }
.qo-main { display: grid; gap: 16px; min-width: 0; }
.qo-pad { display: none; }
.js .qo-pad { display: block; }
.pad-head p { margin: 0 0 6px; }
.padt td { padding: 5px 6px; border-bottom: 1px solid var(--line-2); }
.padt .c-n { width: 30px; color: var(--faint); font-size: 12px; text-align: right; }
.padt .c-code { width: 150px; }
.pad-code { width: 100%; text-transform: uppercase; }
.pad-code::placeholder { text-transform: none; }
.padt .c-pk { width: 200px; }
.padt .c-pk select { width: 100%; }
.padt .c-q { width: 72px; }
.padt .qty { width: 62px; }
.padt .c-tot { width: 100px; font-weight: 600; color: var(--ink); }
.pad-p { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: center; color: var(--ink); font-size: 12.5px; line-height: 1.25; }
.pad-p:hover { text-decoration: none; color: var(--link); }
.pad-p img { width: 36px; height: 36px; display: block; border: 1px solid var(--line-2); background: #fff; }
.pad-p small { display: block; color: var(--muted); font-size: 11.5px; }
.pad-err { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.padt tr.ok .pad-code { border-color: var(--ok); }
.padt tr.bad .pad-code { border-color: var(--bad); }
.pad-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.pad-sum { flex: 1; text-align: right; font-size: 13.5px; color: var(--muted); }
.pad-sum b { color: var(--ink); }
.qo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filebtn { position: relative; }
.filebtn input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filebtn:focus-within { outline: 2px solid var(--link); outline-offset: 1px; }
@media (max-width: 960px) {
  .qo:not(.qo-result) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .padt thead { display: none; }
  .padt, .padt tbody { display: block; }
  .padt tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) 78px; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .padt td { display: block; padding: 0; border: 0; width: auto !important; }
  .padt .c-n { grid-column: 1; grid-row: 1; }
  .padt .c-code { grid-column: 2; grid-row: 1; }
  .padt .c-q { grid-column: 3; grid-row: 1; }
  .padt .qty, .pad-code { height: 42px; font-size: 16px; }
  .padt .qty { width: 78px; }
  .padt .c-prod, .padt .c-pk, .padt .c-tot { grid-column: 2 / -1; }
  .padt .c-prod:empty, .padt .c-tot:empty, .padt tr:not(.ok) .c-pk { display: none; }
  .padt .c-pk select { height: 42px; font-size: 16px; }
  .padt .c-tot { text-align: right; }
  .pad-foot { flex-wrap: wrap; }
  .pad-sum { order: -1; flex-basis: 100%; text-align: left; }
  .pad-foot .btn-lg { flex: 1; }
  .qo-actions .btn { flex: 1 1 auto; }
}

/* ---------- round 5: order guide ---------- */
.guide-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; }
.guide-filter { flex: 0 1 380px; height: 34px; }
.mx-sum { flex: 1; min-width: 0; }
.mx-bar .btn-2 { min-width: 0; }
.guide-t tbody.pg { border-top: 1px solid #c6cac0; }
.guide-t tr.ph td { padding: 12px 8px 4px; background: #fff; }
.guide-t tr.ph:hover td { background: #fff; }
@media (max-width: 760px) {
  .guide-filter { flex: 1 1 100%; height: 42px; font-size: 16px; }
  .guide-tools .btn { flex: 1 1 auto; }
  .mxt tr.ph { border: 0; margin: 16px 0 6px; padding: 0; }
  .mxt tr.ph td { padding: 0; }
  .mx-bar { flex-wrap: wrap; }
  .mx-sum { flex-basis: 100%; }
  .mx-bar .btn { flex: 1 1 auto; }
}

/* ---------- round 5: order status timeline ---------- */
.otl { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 12px 0 18px; padding: 0; }
.otl li { position: relative; padding: 24px 10px 0 0; font-size: 12px; color: var(--faint); line-height: 1.35; }
.otl li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.otl li.done::before { background: var(--brand); }
.otl li i { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #b9beb4; z-index: 1; }
.otl li.done i { background: var(--brand); border-color: var(--brand); }
.otl li.now i { background: var(--accent); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.otl b { display: block; font: 600 13.5px var(--fc); color: var(--muted); }
.otl li.done, .otl li.now { color: var(--muted); }
.otl li.done b, .otl li.now b { color: var(--ink); }
.otl small { display: block; font-size: 12px; }
@media (max-width: 760px) {
  .otl { grid-template-columns: minmax(0, 1fr); }
  .otl li { padding: 0 0 12px 28px; }
  .otl li::before { top: 16px; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .otl li:last-child::before { display: none; }
}
@media print { .otl { display: none; } }

.bh-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
@media (max-width: 760px) { .bh-act .btn { flex: 1 1 auto; } }

/* ---------- round 5: filter sheet footer, recently viewed, phone header ---------- */
.rail-foot { display: none; }
.rv-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rv-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line-2); color: var(--ink); height: 100%; }
.rv-list a:hover { border-color: var(--ink); text-decoration: none; }
.rv-list img { width: 72px; height: 72px; display: block; margin: 0 auto 6px; }
.rv-list small { color: var(--brand); font: 600 11px var(--fc); text-transform: uppercase; letter-spacing: .04em; }
.rv-list span { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv .sec-more { font-size: 12.5px; }
@media (max-width: 960px) {
  .list-rail { padding-bottom: 96px; }
  .filters-open .rail-foot { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .rail-foot .btn { height: 46px; font-size: 15px; }
  .rail-foot button.btn { flex: 1; }
}
@media (max-width: 760px) {
  .hdr { position: sticky; top: 0; z-index: 60; transition: transform .2s ease; }
  .hdr.hdr-hide { transform: translateY(-100%); }
  .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-list li:nth-child(n+5) { display: none; }
}
/* people who turn motion off get no slides, fades or smooth scrolling anywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.cart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0; font-size: 13px; }
.cart-tools .linkbtn { font-size: 13px; }
.cart-tools .cart-empty { color: var(--bad); }
@media (max-width: 760px) { .cart-tools { gap: 4px 16px; } .cart-tools a, .cart-tools .linkbtn { padding: 8px 0; } }

.nf-search { display: flex; gap: 8px; max-width: 560px; margin: 12px 0 16px; }
.nf-search input { flex: 1; height: 40px; font-size: 15px; }
.nf-search .btn { height: 40px; }
@media (max-width: 760px) { .nf-search input { font-size: 16px; height: 44px; } .nf-search .btn { height: 44px; } }
.sg-fix { padding: 7px 12px; font-size: 12.5px; color: var(--muted); background: var(--warn); border-bottom: 1px solid var(--line-2); }
.sg-fix b { color: var(--ink); }
.chip-buy { background: #e2f1e7; border-color: #b6d9c1; color: var(--ok); font-weight: 600; }
.vlast { display: block; color: var(--ok); font-size: 11.5px; }
.card-buy { align-self: flex-start; margin-top: 3px; }

.adm-top { margin: 6px 0 4px; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px 28px; align-items: start; }
.adm-cat th.mono { font-size: 12px; font-weight: 400; }
.adm-today caption { text-align: left; font: 600 12.5px var(--fc); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 4px; }
.st-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.st-filter a { padding: 3px 9px; border: 1px solid var(--line); border-radius: 2px; font-size: 12.5px; color: var(--ink); }
.st-filter a span { color: var(--faint); margin-left: 3px; }
.st-filter a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.st-filter a.on span { color: #cfd5cb; }
@media (max-width: 960px) {
  .acct-t { display: none; }
  .acct-name, .acct-in { padding: 6px; }
  .cart-btn { min-width: 0; }
}
.show-sm { display: none !important; }
@media (max-width: 760px) {
  .show-sm { display: flex !important; }
  .qchips { flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
  .qchips .fchip { padding: 6px 10px; font-size: 13px; }
  .qchips .fchip:nth-child(n+7) { display: none; }
}
.sort { display: flex; gap: 12px; align-items: center; }
.per select { width: 64px; }
@media (max-width: 760px) { .per { display: none !important; } }
.pdp-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; }
@media print { .pdp-links { display: none; } }
.bybrand tfoot th, .bybrand tfoot td { border-top: 2px solid var(--ink); padding: 6px 8px; }
.bybrand tfoot th { text-align: left; }
@media (max-width: 760px) {
  .bybrand tfoot, .bybrand tfoot tr { display: block; }
  .bybrand tfoot tr { padding: 8px 0; border-top: 2px solid var(--ink); }
  .bybrand tfoot th, .bybrand tfoot td { display: inline; border: 0; padding: 0; margin-right: 10px; }
  .bybrand tfoot td:empty { display: none; }
}
.adm-searches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.adm-searches h3 { font: 600 14px var(--fc); margin: 10px 0 4px; }
@media (max-width: 960px) { .adm-searches { grid-template-columns: minmax(0, 1fr); } }
.pdp-jump { display: none; }
@media (max-width: 760px) {
  .pdp-jump:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--ink); box-shadow: 0 -6px 18px rgba(16, 24, 16, .1); color: var(--ink); }
  .pdp-jump span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; min-width: 0; }
  .pdp-jump small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pdp-jump .btn { height: 42px; min-width: 120px; font-size: 15px; }
  .pdp-jump:hover { text-decoration: none; }
}
@media print { .pdp-jump { display: none !important; } }
.co-side h2 { display: flex; align-items: baseline; gap: 8px; }
.mini .mini-pic { width: 44px; padding-right: 8px; }
.mini .mini-pic img { width: 36px; height: 36px; display: block; border: 1px solid var(--line-2); }
.co-more summary { cursor: pointer; color: var(--link); font-size: 12.5px; padding: 2px 0 8px; }
.pk-kg { display: block; color: var(--brand) !important; font-weight: 600; }

/* ---------- order grid on tablets: stacked like phones, so four pack columns never push the page sideways ---------- */
.pk-p small { white-space: normal; }
@media (max-width: 1180px) {
  .mxt .c-var { min-width: 190px; }
  .mxt th.c-pk { min-width: 140px; }
}
@media (max-width: 960px) {
  .mxt thead { display: none; }
  .mxt, .mxt tbody, .mxt tr, .mxt td { display: block; }
  .mxt tr { border: 1px solid var(--line); margin: 0 0 10px; padding: 8px 10px 4px; }
  .mxt tr.ph { border: 0; margin: 16px 0 6px; padding: 0; }
  .mxt tr.ph td { padding: 0; }
  .mxt tbody tr:hover td { background: none; }
  .mxt td { padding: 4px 0; border: 0; }
  .mxt .c-var { min-width: 0; }
  .mxt .c-msrp { width: auto; text-align: left; font-size: 12.5px; }
  .mxt .c-msrp .lbl { display: inline; margin-right: 4px; color: var(--faint); font: 600 10.5px var(--fc); text-transform: uppercase; letter-spacing: .05em; }
  .mxt .c-pk { border-top: 1px solid var(--line-2) !important; padding: 8px 0; }
  .mxt .c-none { display: none; }
  .pk { grid-template-columns: minmax(0, 1fr) 76px; }
  .pk .qty { width: 76px; height: 40px; }
}
@media (max-width: 760px) { .pk .qty { height: 42px; font-size: 16px; } }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
.sec-acts { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; font: 500 13px var(--f); }
.cat-intro { margin: 0 0 6px; font-size: 13px; color: var(--muted); max-width: 110ch; }
@media (max-width: 760px) { .cat-intro { font-size: 12.5px; } }
.co-ship { margin: 10px 0 8px; font-size: 13px; color: var(--text); }
.co-ship b { color: var(--brand); }
.ftr-svc { list-style: none; margin: 0 0 22px; padding: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.18); }
.ftr-svc li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; }
.ftr-svc .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.ftr-svc b { display: block; font-size: 13.5px; }
@media (max-width: 960px) { .ftr-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ftr-svc { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.ftr-svc b { color: #fff; }
@media print { .ftr-svc { display: none; } }
.colfill { display: block; font: 500 11px var(--f); text-transform: none; letter-spacing: 0; margin-top: 1px; }
@media (min-width: 961px) {
  .list-rail { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
}
.js .colfill.js-only { display: block !important; }
.vmove { color: #8a5a00; font-weight: 600; }

/* ---------- quick order panel ---------- */
.qv-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--brand); color: var(--brand); font-size: 12px; font-weight: 600; border-radius: 2px; white-space: nowrap; }
.qv-btn:hover { background: var(--brand); color: #fff; text-decoration: none; }
.qv { position: fixed; inset: 0; z-index: 88; background: rgba(16, 24, 16, .5); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 20px; }
.qv[hidden] { display: none; }
.qv-panel { background: #fff; width: min(1060px, 100%); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; border-top: 3px solid var(--accent); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.qv-head { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; background: #fff; border-bottom: 1px solid var(--line); font: 600 15px var(--fc); color: var(--ink); }
.qv-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qv-body { padding: 12px 16px 0; }
.qv-prod { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.qv-prod img { width: 72px; height: 72px; flex: none; border: 1px solid var(--line-2); }
.qv-prod small { display: block; color: var(--brand); font: 600 11.5px var(--fc); text-transform: uppercase; letter-spacing: .04em; }
.qv-prod b { display: block; font: 600 18px/1.2 var(--fc); color: var(--ink); }
.qv-prod a { font-size: 12.5px; }
.qv-wait { padding: 30px 0; color: var(--muted); }
.qv .mxt th.c-pk { min-width: 130px; }
.qv .mx-bar { margin: 10px -16px 0; border-left: 0; border-right: 0; }
@media (max-width: 760px) {
  .qv { padding: 0; }
  .qv-panel { width: 100%; max-height: none; height: 100dvh; border-top: 0; }
  .qv-head { padding: 6px 6px 6px 14px; }
  .qv-body { padding: 10px 14px 0; }
  .qv .mx-bar { margin: 10px -14px 0; }
  .ph-chips .qv-btn { height: 34px; padding: 0 12px; font-size: 13px; }
}
.tfilter { display: block; width: 100%; max-width: 420px; height: 34px; margin: 8px 0 2px; }
.js .tfilter.js-only { display: block !important; }
.chip-due { background: var(--warn); border-color: var(--warn-line); color: #6b4a00; font-weight: 600; margin-top: 3px; }
.upsell { display: block; margin: 0 0 6px; padding: 5px 8px; background: #e6f3ea; border-left: 3px solid var(--ok); font-size: 12.5px; color: var(--text); }
.upsell b { color: var(--ok); }
.upsell .linkbtn { font-weight: 600; margin-left: 6px; }
.trk { display: block; margin-top: 3px; color: var(--muted); }
