/* Draíocht — new site (draiochtWeb5.5)
   Look: an apothecary's herbal. Vellum paper, forest-ink text, moss for actions,
   gilt for small accents. Each of the six actives keeps its own colour. */

:root {
  --vellum: #EFEADB;
  --vellum-deep: #E4DCC6;
  --paper: #FBF8F0;
  --ink: #1E2A22;
  --ink-soft: #46524A;
  --moss: #33473A;
  --moss-dark: #22301F;
  --gilt: #A8823F;
  --rule: #CFC4A8;

  /* the six actives */
  --ha:  #C9962F;
  --nia: #A3343C;
  --pan: #7A3466;
  --pro: #4A3F8C;
  --tre: #C46A26;
  --all: #2F5A8A;

  --serif: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--moss-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--moss); color: #fff; padding: .7em 1.2em; }
.skip-link:focus { left: 0; }
.fine { font-size: .85rem; color: var(--ink-soft); }
.lede { font-size: 1.15rem; max-width: 60ch; color: var(--ink-soft); margin-top: .6rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--sans);
  padding: .95em 1.4em;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-dark); color: #fff; }
.btn-primary:disabled { background: #8A968C; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(251,248,240,.55); }
.btn-ghost:hover { background: rgba(251,248,240,.12); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 234, 219, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .55rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-logo { height: clamp(52px, 6vw, 72px); width: auto; }
.main-nav { display: none; gap: 1.8rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--moss); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.cart-btn, .nav-toggle {
  position: relative; width: 44px; height: 44px; border: 0; background: none; color: var(--ink);
  cursor: pointer; display: grid; place-items: center; border-radius: 6px;
}
.cart-btn svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--nia); color: #fff; font-size: .72rem; font-weight: 600;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }
.nav-toggle { gap: 5px; align-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }
.main-nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--vellum); border-bottom: 1px solid var(--rule);
}
.main-nav.is-open a { padding: .9rem var(--gutter); border-top: 1px solid var(--rule); }
@media (min-width: 860px) {
  .main-nav, .main-nav.is-open { display: flex; position: static; flex-direction: row; gap: 1.8rem; border: 0; background: none; }
  .main-nav.is-open a { padding: 0; border: 0; }
  .nav-toggle { display: none; }
}

/* ---------- product ---------- */
.product {
  background-color: var(--moss-dark);
  background-image: linear-gradient(rgba(20,28,22,.35), rgba(20,28,22,.55)), url('../images/ShopBackground.jpg');
  background-image: linear-gradient(rgba(20,28,22,.35), rgba(20,28,22,.55)),
    image-set(url('../images/ShopBackground.webp') type('image/webp'), url('../images/ShopBackground.jpg') type('image/jpeg'));
  background-size: cover; background-position: center;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
}
.product-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 900px) { .product-inner { grid-template-columns: 1fr 1fr; align-items: start; } }

.product-inner > * { min-width: 0; }
.gallery { display: grid; gap: .75rem; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.photo-slot {
  height: 100%; display: grid; place-content: center; text-align: center; gap: .3rem;
  border: 2px dashed var(--rule); border-radius: 10px; margin: 0; color: var(--ink-soft);
  font-family: var(--serif); font-size: 1.5rem;
}
.photo-slot small { font: .9rem var(--sans); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.thumb {
  aspect-ratio: 1 / 1; border-radius: 8px; border: 2px solid transparent; background: rgba(251,248,240,.85);
  font: 1.2rem var(--serif); color: var(--ink-soft); cursor: pointer;
}
.thumb.is-active { border-color: var(--gilt); background: var(--paper); }

.buy-panel {
  background: var(--paper); border-radius: 10px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.6);
}
.product-title { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.product-sub { color: var(--ink-soft); margin: .6rem 0 1.1rem; font-size: 1.05rem; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: .9rem 0; border-block: 1px solid var(--rule); }
.price { font: 2.4rem/1 var(--serif); }
.size { color: var(--ink-soft); }

.product-title span { display: block; font-size: .55em; font-style: italic; color: var(--ink-soft); margin-top: .35rem; }
.made-for { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.1rem; }
.made-for li { font-size: .85rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--moss); color: var(--moss); background: color-mix(in srgb, var(--moss) 6%, var(--paper)); }
.actives-title { font: 600 .95rem var(--sans); margin: 1.2rem 0 .6rem; color: var(--ink); }
.actives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .5rem; margin-bottom: 1.1rem; }
.actives li {
  --tile: color-mix(in srgb, var(--c) 72%, #000);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  min-height: 92px; padding: .7rem .75rem; border-radius: 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 88%, #fff) 0%, var(--tile) 100%);
  color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.actives b { font: 1.9rem/1 var(--serif); }
.actives span { font-size: .82rem; font-weight: 500; line-height: 1.25; }
@media (max-width: 400px) { .actives { grid-template-columns: repeat(2, minmax(0, 1fr)); } .actives li { min-height: 80px; } }
.amazon-line { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
.free-from { font-size: .92rem; color: var(--ink-soft); }

.add-form { display: flex; gap: .6rem; margin-top: 1.1rem; }
.qty { display: flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: 6px; background: #fff; }
.qty input { width: 3rem; border: 0; text-align: center; font: 600 1rem var(--sans); color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-step { width: 2.5rem; border: 0; background: none; font-size: 1.2rem; color: var(--ink); cursor: pointer; }
.add-btn { flex: 1; }
.assurances { margin-top: 1.1rem; display: grid; gap: .35rem; font-size: .92rem; }
.assurances li { padding-left: 1.4rem; position: relative; }
.assurances li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .4rem; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }

/* ---------- ask your AI ---------- */
.ask-ai { background: var(--moss); color: var(--paper); padding: clamp(1.75rem, 4vw, 2.75rem) var(--gutter); }
.ask-ai-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1.1rem; }
.ask-ai h2 { color: var(--paper); font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.ask-ai p { color: rgba(251,248,240,.85); max-width: 58ch; margin-top: .4rem; }
.ask-ai-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.ask-ai-note { font-size: .85rem; margin: 0; }
@media (min-width: 960px) {
  .ask-ai-inner { grid-template-columns: 1fr auto; align-items: center; }
  .ask-ai-note { grid-column: 1 / -1; }
}

/* ---------- story ---------- */
.story { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.story-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1.5rem; }
.story-text { max-width: 64ch; font-size: 1.08rem; }
@media (min-width: 900px) { .story-inner { grid-template-columns: 5fr 7fr; } .story h2 { font-size: 3.4rem; } }

/* ---------- formula ---------- */
.formula {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background-color: var(--vellum-deep);
  background-image: linear-gradient(rgba(239,234,219,.82), rgba(239,234,219,.9)), url('../images/ingredients-bg.jpg');
  background-image: linear-gradient(rgba(239,234,219,.82), rgba(239,234,219,.9)),
    image-set(url('../images/ingredients-bg.webp') type('image/webp'), url('../images/ingredients-bg.jpg') type('image/jpeg'));
  background-size: cover; background-attachment: scroll;
  border-block: 1px solid var(--rule);
}
.formula-inner { max-width: var(--wrap); margin: 0 auto; }

.composition { margin: 2rem 0 2.5rem; }
.comp-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.comp-bar span { flex: var(--w) 1 0; background: var(--c); }
.composition figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

.entries { display: grid; gap: 2.25rem; }
@media (min-width: 900px) { .entries { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; row-gap: 3rem; } }
.entry { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; }
.entry img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--c); box-shadow: 0 0 0 4px var(--paper);
}
.entry h3 { font-size: 1.7rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.entry h3 span { font: 600 1rem var(--sans); color: var(--c); filter: brightness(.8); }
.entry-role { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin: .1rem 0 .6rem; }
.entry p:not(.entry-role) { font-size: .97rem; }
@media (max-width: 520px) { .entry { grid-template-columns: 64px 1fr; } .entry img { width: 64px; height: 64px; } }


/* ---------- preservatives ("guards") ---------- */
.guard {
  padding: clamp(3rem, 9vw, 7rem) var(--gutter);
  background-color: #E9E1CB;
  background-image: url('../images/microbes.jpg');
  background-image: image-set(url('../images/microbes.webp') type('image/webp'), url('../images/microbes.jpg') type('image/jpeg'));
  background-size: cover; background-position: center;
}
.guard-inner { max-width: var(--wrap); margin: 0 auto; }
.guard-card {
  max-width: 640px; padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(251,248,240,.93); border-radius: 12px;
  box-shadow: 0 24px 60px -30px rgba(30,42,34,.55);
  backdrop-filter: blur(2px);
}
.guard-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin: .3rem 0 1rem; }
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.4rem 0 1rem; }
.guards li { border-radius: 8px; padding: .8rem .9rem; background: var(--g); color: #fff; display: grid; gap: .2rem; }
.guards b { font: 1.2rem/1.15 var(--serif); font-weight: 400; }
.guards span { font-size: .84rem; line-height: 1.35; opacity: .92; }
.guard-free { font-weight: 600; color: var(--moss); margin: 0; }
@media (max-width: 460px) { .guards { grid-template-columns: 1fr; } }

/* ---------- compare ---------- */
.compare {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background-color: #1B261F;
  background-image: radial-gradient(ellipse at 15% 0%, rgba(168,130,63,.22), transparent 55%),
                    radial-gradient(ellipse at 90% 100%, rgba(74,63,140,.28), transparent 55%);
  color: rgba(251,248,240,.88);
}
.compare h2, .compare h3 { color: var(--paper); }
.compare .lede, .compare .sub-lede { color: rgba(251,248,240,.78); }
.compare a { color: #E2CF9F; }
.compare .fine { color: rgba(251,248,240,.6); }

.compare-inner { max-width: var(--wrap); margin: 0 auto; }
.table-wrap { position: relative; overflow-x: auto; margin-top: 1.75rem; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -35px rgba(0,0,0,.8); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { color: var(--ink); text-align: left; padding: .9rem 1rem; font-family: var(--serif); font-size: 1.25rem; }
th, td { padding: .7rem .9rem; text-align: left; border-top: 1px solid #ECE6D6; vertical-align: top; }
thead th { font-weight: 600; font-size: .82rem; color: var(--ink-soft); background: var(--vellum); }
tbody th { font-weight: 500; white-space: nowrap; }
.matrix td { text-align: center; white-space: nowrap; vertical-align: middle; }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix thead th[style] { box-shadow: inset 0 -4px 0 var(--c); color: var(--ink); }
.matrix tbody th, .matrix thead th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.matrix thead th:first-child { background: var(--vellum); }
.dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.ring { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #CFC4A8; }
.tot-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: #ECE5D3; font-weight: 600; font-size: .85rem; }
.tot-pill.full { background: var(--moss); color: #fff; }
.matrix tr.us th, .matrix tr.us td { background: color-mix(in srgb, var(--gilt) 14%, var(--paper)); }
.matrix tr.us th { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.matrix tr.us .dot { width: 24px; height: 24px; }

.sub-h { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 3rem; }
.sub-lede { color: var(--ink-soft); max-width: 62ch; margin-top: .4rem; }

.value-bars { margin-top: 1.75rem; padding: 1.5rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: grid; gap: .55rem; max-width: 900px; }
.value-bars li { display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr 3.5rem; align-items: center; gap: .8rem; font-size: .93rem; }
.vb-bar { height: 18px; width: calc(var(--v) / 612 * 100%); min-width: 6px; background: linear-gradient(90deg, rgba(226,207,159,.55), rgba(226,207,159,.85)); border-radius: 0 4px 4px 0; display: flex; overflow: hidden; }
.vb-bar i { flex: 1; background: var(--c); }
.vb-name { color: rgba(251,248,240,.85); }
.vb-val { font-weight: 600; text-align: right; color: var(--paper); }
.value-bars li.us .vb-name, .value-bars li.us .vb-val { font-weight: 700; color: #fff; font-size: 1.05rem; }
.value-bars li.us .vb-bar { height: 26px; min-width: 24px; border-radius: 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }

.versus { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .versus { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.vs-col { border-radius: 12px; padding: 1.4rem 1.5rem; }
.vs-col h4 { font: 1.5rem/1.2 var(--serif); margin: 0 0 1rem; }
.vs-col li { display: grid; gap: .1rem; padding: .7rem 0 .7rem 1.1rem; border-top: 1px solid; position: relative; }
.vs-col li b { font-size: .8rem; font-weight: 600; }
.vs-us { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; padding-top: 1.8rem; }
.vs-us::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--nia), var(--pan), var(--pro), var(--tre), var(--ha), var(--all)); }
.vs-us h4 { color: var(--ink); }
.vs-us li { border-color: #ECE5D3; }
.vs-us li::before { content: ""; position: absolute; left: 0; top: .95rem; bottom: .95rem; width: 4px; border-radius: 2px; background: var(--c); }
.vs-us li b { color: var(--ink-soft); }
.vs-them { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: rgba(251,248,240,.75); }
.vs-them h4 { color: rgba(251,248,240,.85); }
.vs-them li { border-color: rgba(255,255,255,.1); }
.vs-them li::before { content: ""; position: absolute; left: 0; top: .95rem; bottom: .95rem; width: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.vs-them li b { color: rgba(251,248,240,.5); }
.compare .fine { margin-top: 1.5rem; max-width: 80ch; }

/* ---------- routine ---------- */
.routine { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.routine-inner { max-width: var(--wrap); margin: 0 auto; }
.steps { counter-reset: step; display: grid; gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); font: 2.6rem/1 var(--serif); color: var(--gilt); display: block; margin-bottom: .4rem; }
.steps h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.routine .fine { max-width: 80ch; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(3rem, 8vw, 6rem) var(--gutter); background: var(--vellum-deep); border-block: 1px solid var(--rule); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq h2 { margin-bottom: 1.5rem; }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font: 1.5rem var(--sans); color: var(--gilt); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 1.1rem; max-width: 65ch; }

/* ---------- contact ---------- */
.contact { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.contact-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 5fr 7fr; } }
.contact p { max-width: 45ch; margin-top: .6rem; }
.contact-form { display: grid; gap: 1rem; background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 10px; border: 1px solid var(--rule); }
.contact-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  font: 1rem var(--sans); padding: .75rem .85rem; border: 1.5px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(51,71,58,.18); }
.contact-form .btn { justify-self: start; }
.honey { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: var(--nia); }

/* ---------- footer ---------- */
.site-footer { background: var(--moss-dark); color: rgba(251,248,240,.85); padding: 3rem var(--gutter) 6rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 7fr 5fr; } .site-footer { padding-bottom: 3rem; } }
.site-footer h2 { color: var(--paper); font-size: 1.5rem; margin-bottom: .6rem; }
.site-footer a { color: #E2CF9F; }
.site-footer .fine { color: rgba(251,248,240,.6); }

/* ---------- mobile buy bar ---------- */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25);
  transform: translateY(110%); transition: transform .25s ease;
}
.buy-bar.is-shown { transform: none; }
.buy-bar b { font: 1.5rem var(--serif); }
@media (min-width: 900px) { .buy-bar { display: none; } }

/* ---------- cart drawer ---------- */
.cart-scrim { position: fixed; inset: 0; background: rgba(20,28,22,.45); z-index: 60; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(400px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
  box-shadow: -10px 0 40px -20px rgba(0,0,0,.5);
}
.cart-drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.cart-head h2 { font-size: 1.6rem; }
.cart-close { width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--ink); }
.cart-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.cart-empty { color: var(--ink-soft); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.cart-line h3 { font-size: 1.2rem; }
.cart-line .line-meta { font-size: .88rem; color: var(--ink-soft); grid-column: 1; }
.cart-line .line-price { font-weight: 600; grid-row: 1; grid-column: 2; }
.cart-line .line-actions { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: center; margin-top: .3rem; }
.cart-line .line-remove { background: none; border: 0; color: var(--nia); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.cart-foot { padding: 1.25rem; border-top: 1px solid var(--rule); display: grid; gap: .6rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 0; }
.cart-foot .btn { width: 100%; }
.cart-foot .fine { margin: 0; }

@media (max-width: 600px) {
  .value-bars { padding: 1.1rem; gap: .8rem; }
  .value-bars li { grid-template-columns: 1fr auto; row-gap: .3rem; }
  .vb-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* comparison matrix: fits without scrolling; becomes stacked rows on phones */
.matrix-wrap { overflow: visible; }
.matrix tbody th { white-space: normal; }
.matrix-key { display: none; }
@media (max-width: 760px) {
  .matrix-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .9rem; margin-top: 1.5rem; font-size: .88rem; color: rgba(251,248,240,.9); }
  .matrix-key li { display: flex; align-items: center; gap: .5rem; }
  .matrix-key li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
  .matrix-wrap { margin-top: 1rem; }
  .matrix, .matrix tbody, .matrix caption { display: block; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; align-items: center; padding: .8rem 1rem; border-top: 1px solid #ECE6D6; }
  .matrix tbody th { grid-column: 1 / -1; position: static; padding: 0 0 .5rem; border: 0; background: none; }
  .matrix td { padding: 0; border: 0; background: none; }
  .matrix tr.us th, .matrix tr.us td { background: none; }
  .matrix tr.us { background: color-mix(in srgb, var(--gilt) 14%, var(--paper)); }
  .matrix .dot { width: 18px; height: 18px; }
  .matrix tr.us .dot { width: 22px; height: 22px; }
}
