/* Black Swamp Fab Lab — site styles
   Palette: lichen white ground, deep marsh ink, marsh green actions, moss fills. Amber lives only in the logo. */
:root {
  --ground: #F2F4F0;
  --white: #FFFFFF;
  --moss: #DCE3D9;
  --moss-2: #C8D2C4;
  --ink: #1E2A24;
  --ink-2: #3E4B44;
  --muted: #5D6A63;
  --rule: #CBD3C8;
  --marsh: #2E4A3B;
  --marsh-dk: #213A2E;
  --amber: #E8742A;
  --red: #A63A2E;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --w: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--marsh); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 32px; }
main.page { min-height: 60vh; padding-top: 8px; padding-bottom: 80px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .r { text-align: right; }
code { font: 0.86em ui-monospace, Menlo, monospace; background: var(--moss); padding: 1px 5px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.announce { background: var(--marsh); color: #fff; text-align: center; font-size: 14.5px; padding: 9px 16px; }

/* ---------- header ---------- */
header.top { background: var(--ground); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { height: 41px; width: auto; }
.logo .logo-sm { display: none; height: 30px; }
.admin-tag { font-size: 13px; color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 8px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; }
nav a:hover { color: var(--ink); text-decoration: underline; }
#cart-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: var(--moss); font-size: 13px; text-align: center; }

/* ---------- buttons and links ---------- */
.btn { display: inline-block; background: var(--marsh); color: #fff; border: 1px solid var(--marsh); border-radius: 6px; padding: 12px 22px; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--marsh-dk); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
nav .btn.small-btn, .btn.sm { padding: 9px 16px; font-size: 15px; color: #fff; text-decoration: none; }
.btn.line, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover, .btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.line.light { color: #fff; border-color: #fff; }
.btn.white { background: #fff; color: var(--marsh); border-color: #fff; }
.btn.full { width: 100%; padding: 15px; margin-top: 10px; text-align: center; }
.text-link { font-weight: 600; margin-left: 22px; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 4px 0; }
.linkbtn.danger { color: var(--red); }

/* ---------- photo placeholder (until Admin > Photos has one) ---------- */
.ph { width: 100%; height: 100%; min-height: 120px; background: var(--moss); display: flex; align-items: flex-end; padding: 14px 16px; }
.ph span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* ---------- home: hero ---------- */
.hero { padding-top: 72px; }
.hero-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; max-width: 13ch; }
.hero-side p:first-child { font-size: 18.5px; color: var(--ink-2); max-width: 46ch; }
.hero-side p:last-child { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.process figure { margin: 0; }
.process img, .process .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.process figcaption { padding-top: 14px; font-size: 15px; color: var(--muted); max-width: 32ch; }
.process figcaption b { display: block; color: var(--ink); font-size: 19px; font-weight: 600; margin-bottom: 2px; }

/* ---------- home: services ---------- */
section.wrap + section.wrap { margin-top: 120px; }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 32px; }
.split-head h2, .sec-title, .about h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px; }
.split-head p { color: var(--ink-2); max-width: 36ch; }
.svc-list { border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: 1fr 168px; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.svc h3 { font-size: 22px; margin-bottom: 8px; }
.svc p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 52ch; }
.svc:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.svc-img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }
.svc-img img, .svc-img .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.svc-img .ph span { font-size: 12px; }
.facts { margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.facts dt { font-weight: 600; font-size: 15px; }
.facts dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- home: work ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.work figure { margin: 0; }
.work img, .work .ph { width: 100%; object-fit: cover; border-radius: 4px; }
.work figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.w-a { grid-column: 1 / 8; } .w-a img, .w-a .ph { aspect-ratio: 4 / 3; }
.w-b { grid-column: 8 / 13; } .w-b img, .w-b .ph { aspect-ratio: 4 / 5; height: auto; }
.w-c { grid-column: 1 / 6; } .w-c img, .w-c .ph { aspect-ratio: 1; }
.w-d { grid-column: 6 / 9; } .w-d img, .w-d .ph { aspect-ratio: 3 / 4; }
.w-e { grid-column: 9 / 13; } .w-e img, .w-e .ph { aspect-ratio: 3 / 4; }

/* ---------- home: shop + about ---------- */
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-row .text-link { margin: 0; }
.sec-lead { color: var(--ink-2); margin-top: -6px; margin-bottom: 30px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-img { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.about-img img, .about-img .ph { width: 100%; height: 100%; object-fit: cover; }
.about-text > p { color: var(--ink-2); max-width: 54ch; }
.contact { margin: 28px 0 32px; border-top: 1px solid var(--rule); }
.contact div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; color: var(--ink-2); }
main > section:last-child { margin-bottom: 120px; }

/* ---------- product cards (home + shop) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 20px; }
.card { color: var(--ink); text-decoration: none; display: block; }
.thumb { aspect-ratio: 1; background: var(--moss); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.noimg { height: 100%; display: grid; place-items: center; font-size: 13.5px; color: var(--muted); }
.noimg.big { aspect-ratio: 1; background: var(--moss); border-radius: 4px; }
.card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-sub { margin: 0 0 6px; font-size: 14.5px; color: var(--muted); }
.card-price { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.card-price span { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.pill { font-size: 12.5px; padding: 1px 8px; border-radius: 10px; background: var(--moss); color: var(--ink-2); }
.pill.stl { background: var(--marsh); color: #fff; }

/* ---------- shop page ---------- */
.page-head { padding: 56px 0 20px; }
.page-head h1, h1.page { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h1.page { margin: 56px 0 18px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
h1.page small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.lede { max-width: 640px; font-size: 18px; color: var(--ink-2); }
.filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a { padding: 7px 14px; border-radius: 18px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.chips a:hover { background: var(--moss); }
.chips a.on { background: var(--ink); color: #fff; }
.search input { padding: 9px 14px; border: 1px solid var(--moss-2); border-radius: 6px; font: inherit; font-size: 15px; background: var(--white); min-width: 260px; }
.count { margin: 0 0 26px; }
.empty { padding: 60px 0; color: var(--muted); }
.tabs { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- product page ---------- */
.crumbs { font-size: 14.5px; margin: 32px 0 22px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.gallery > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--moss); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid var(--rule); }
.buy h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 18px; }
.specs { border-top: 1px solid var(--rule); }
.specs div { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.specs span { min-width: 90px; color: var(--muted); }
.specs b { font-weight: 600; }
.price.big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 22px 0 16px; }
.price.big small { font-size: 15px; font-weight: 400; color: var(--muted); }
.variant { display: flex; margin-bottom: 18px; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.variant label { flex: 1; display: block !important; text-align: center; padding: 11px; cursor: pointer; font-weight: 600 !important; font-size: 15px !important; margin: 0 !important; color: var(--ink-2) !important; }
.variant label + label { border-left: 1px solid var(--ink); }
.variant label:has(input:checked) { background: var(--ink); color: #fff !important; }
.buy .variant input { display: none; }
.row-opts { display: flex; gap: 12px; }
.row-opts label { flex: 1; } .row-opts .qty-l { flex: 0 0 100px; }
.desc { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.ok { color: var(--marsh); font-weight: 600; }

/* ---------- forms ---------- */
.buy label, .form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.buy input, .buy select, .form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: 400 16px var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--moss-2); border-radius: 6px; }
.buy input:focus, .buy select:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--marsh); outline-offset: -1px; border-color: var(--marsh); }
.form input[type=checkbox], .form input[type=radio] { display: inline; width: auto; margin: 0 8px 0 0; accent-color: var(--marsh); }
.form label.check { display: flex; align-items: center; }
.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { max-width: 860px; }
.form.narrow { max-width: 360px; margin: 60px auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.label-box { margin: 18px 0; padding: 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: end; }
fieldset { border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px 4px; margin: 0 0 18px; background: var(--white); }
legend { padding: 0 6px; }
.imgedit { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.imgedit label { width: 110px; font-weight: 400; }
.imgedit img { width: 110px; height: 110px; object-fit: cover; border-radius: 4px; }
.imgedit input { display: inline; width: auto; }
form.inline { display: inline; }

/* ---------- tables, cart, notices ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); margin-bottom: 20px; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl th { font-size: 14px; font-weight: 600; color: var(--muted); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .tot td { font-weight: 700; font-size: 18px; border-top: 1px solid var(--ink); }
.tbl tr.dim { opacity: .5; }
.tbl a { color: var(--ink); font-weight: 600; }
.cart .ci img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart .qty { width: 72px; padding: 7px 9px; border: 1px solid var(--moss-2); border-radius: 6px; font: inherit; }
.checkout { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
img.mini { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.notice { background: var(--moss); border-radius: 6px; padding: 13px 16px; margin: 20px 0; }
.notice.err { background: #F3DED9; color: #6E241B; }
.status { display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 12px; border-radius: 14px; background: var(--moss); }
.s-paid, .s-printing, .s-accepted, .s-in_progress { background: #F6E3D3; color: #7A3A10; }
.s-shipped, .s-complete, .s-done, .s-quoted { background: var(--marsh); color: #fff; }
.s-cancelled, .s-declined { opacity: .55; }
.s-new, .s-reviewing { background: #F3DED9; color: #6E241B; }
.downloads { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 22px; margin: 20px 0; }
.downloads h2 { font-size: 22px; margin-bottom: 8px; }
.downloads .btn { margin: 6px 8px 6px 0; }
.quote { background: var(--white); border: 1px solid var(--marsh); border-radius: 6px; padding: 24px 26px; margin: 20px 0; max-width: 600px; }
.quote h2 { font-size: 28px; margin-bottom: 6px; }
.quote form { margin-top: 14px; }
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px; }
dl.kv dt { color: var(--muted); font-size: 15px; }
dl.kv dd { margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--marsh-dk); color: #CFD9D2; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; }
.foot h2 { font-size: 15px; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.foot a { color: #CFD9D2; text-decoration: none; }
.foot-grid > div > a { display: block; padding: 3px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; padding-bottom: 28px; font-size: 13.5px; color: #9FB0A5; }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.stats > * { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 16px; color: var(--muted); font-size: 14px; text-decoration: none; }
.stats b { display: block; font-size: 28px; color: var(--ink); }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.files { display: grid; gap: 8px; }
.files a { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 6px; color: var(--ink); text-decoration: none; }
.files img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.addr { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.pa-item { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 12px; }
.pa-thumb { background: var(--moss); display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; border-radius: 4px; }
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pa-thumb span { font-size: 13px; color: var(--muted); }
.pa-item p { margin: 4px 0 10px; }
.pa-form { display: flex; gap: 8px; align-items: center; }
.pa-form input { font-size: 13px; min-width: 0; flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-head, .split, .about, .pdp, .two { grid-template-columns: 1fr; gap: 32px; }
  .hero-head { align-items: start; }
  .split-head { position: static; }
  .hide-sm { display: none; }
  .row3, .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .w-a, .w-b, .w-c { grid-column: 1 / -1; }
  .w-d { grid-column: 1 / 7; } .w-e { grid-column: 7 / 13; }
  .w-b img, .w-b .ph { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { height: 64px; gap: 14px; } nav { gap: 16px; }
  .logo img { height: 30px; }
  .hero { padding-top: 40px; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process img, .process .ph { aspect-ratio: 4 / 3; }
  section.wrap + section.wrap { margin-top: 80px; }
  .svc { grid-template-columns: 1fr 96px; gap: 16px; }
  .svc h3 { font-size: 19px; } .svc p { font-size: 15.5px; }
  .facts { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .card-price { flex-direction: column; gap: 0; }
  .row2, .row3, .dims { grid-template-columns: 1fr; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .search, .search input { width: 100%; min-width: 0; }
  dl.kv { grid-template-columns: 1fr; }
  .tbl td, .tbl th { padding: 9px 7px; }
  .text-link { margin-left: 16px; }
  main > section:last-child { margin-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.work .ph, .process .ph { height: auto; }


/* ---------- Gridfinity: bins + custom drawers ---------- */
.gf-head { max-width: 760px; }
.gf-jump { display: flex; gap: 22px; margin-top: 18px; }
.gf-jump a { font-weight: 600; }
.gf-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.gf-block h2 { font-size: 30px; letter-spacing: -0.025em; margin-bottom: 18px; }
.gf-visual { position: sticky; top: 24px; }
.gf-visual svg { width: 100%; height: auto; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; display: block; }
.gf-visual > p { margin-top: 10px; }
.opt { border: 0; padding: 0; margin: 0 0 22px; background: none; }
.opt legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip, .opt-sw { position: relative; margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.opt-chip input, .opt-sw input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chip span { display: flex; flex-direction: column; min-width: 96px; padding: 10px 14px; border: 1px solid var(--moss-2); border-radius: 6px; background: var(--white); }
.opt-chip b { font-size: 16px; }
.opt-chip small { font-size: 13px; color: var(--muted); }
.opt-sw span { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--moss-2); border-radius: 22px; background: var(--white); font-size: 15px; }
.opt-sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: block; }
.opt-chip input:checked + span, .opt-sw input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-chip input:focus-visible + span, .opt-sw input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.gf-buy { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-top: 6px; }
.gf-buy label { margin-bottom: 0 !important; width: 120px; }
.gf-total { text-align: right; }
.gf-total span { display: block; font-size: 14px; color: var(--muted); }
.gf-total b { font-size: 28px; letter-spacing: -0.02em; }
.gf-form .notice { margin: 14px 0 0; }
.gf-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.gf-form input[type=number], .gf-form input[name=notes] { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: 400 16px var(--font); background: var(--white); border: 1px solid var(--moss-2); border-radius: 6px; color: var(--ink); }
.gf-form input:focus { outline: 2px solid var(--marsh); outline-offset: -1px; }
.dims3 { margin-top: 10px; }
.gf-sum { margin: 16px 0 0; border-top: 1px solid var(--rule); }
.gf-sum div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.gf-sum dt { font-weight: 600; } .gf-sum dd { margin: 0; color: var(--ink-2); }
.gf-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 28px; }
.gf-promo a { display: block; padding: 18px 20px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; }
.gf-promo a:hover { border-color: var(--marsh); }
.gf-promo b { display: block; font-size: 18px; }
.gf-promo span { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .gf-block { grid-template-columns: 1fr; gap: 28px; }
  .gf-drawer .gf-visual { order: -1; }
  .gf-visual { position: static; }
}
@media (max-width: 640px) {
  .gf-promo { grid-template-columns: 1fr; }
  .dims3 { grid-template-columns: 1fr 1fr 1fr !important; gap: 10px; }
  .opt-chip span { min-width: 0; }
}
.gf-form label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.gf-form label.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--marsh); }
.gf-tiles { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.gf-tiles th, .gf-tiles td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--moss); }
.gf-tiles th { font-weight: 500; color: #5D6A63; }

/* ---------- match the homepage (storefront only) ---------- */
body:not(.admin) header.top { background: var(--marsh); border-bottom: 0; position: sticky; top: 0; z-index: 20; }
body:not(.admin) .nav { height: 68px; }
body:not(.admin) .logo img { height: 36px; }
body:not(.admin) nav a { color: #F2F4F0; font-weight: 600; }
body:not(.admin) nav a:hover { color: var(--amber); text-decoration: none; }
body:not(.admin) #cart-count { background: var(--marsh-dk); color: #F2F4F0; }
body:not(.admin) .btn { border-radius: 999px; font-weight: 700; padding: 13px 24px; }
body:not(.admin) nav .btn.small-btn { background: var(--amber); border-color: var(--amber); color: #1B2E24; }
body:not(.admin) .page-head h1, body:not(.admin) h1.page { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.01em; margin: 32px 0 16px; }
body:not(.admin) .foot { background: #1B2E24; }
body:not(.admin) .announce { background: var(--amber); color: #1B2E24; font-weight: 700; }
@media (max-width: 720px) { body:not(.admin) nav .hide-sm { display: none; } body:not(.admin) nav { gap: 14px; } body:not(.admin) .logo img { height: 30px; } }
body:not(.admin) .logo { flex-shrink: 0; }
@media (max-width: 720px) { body:not(.admin) .nav .wrap, body:not(.admin) .wrap.nav { padding: 0 18px; } body:not(.admin) nav .btn.small-btn { padding: 9px 14px; font-size: 14px; } }
@media (max-width: 420px) { body:not(.admin) nav { gap: 10px; } body:not(.admin) .wrap.nav { gap: 10px; padding: 0 14px; } body:not(.admin) .logo img { height: 26px; } }
.gf-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 40px; }
.gf-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }
@media (max-width: 800px) { .gf-photos { grid-template-columns: repeat(2, 1fr); } }
