/* buyshea — main stylesheet. Tokens live in tokens.css. Mobile-first. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading);
  font-synthesis: none;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
  letter-spacing: -0.01em;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  line-height: 1.3;
}
p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
}
a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip-link:focus {
  top: var(--space-2);
}
[hidden] {
  display: none !important;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-6);
}
.prose h3 {
  margin-top: var(--space-5);
}
.prose li + li {
  margin-top: var(--space-2);
}
main {
  display: block;
  padding-bottom: var(--space-8);
}
.section {
  padding-block: var(--space-7);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40ch;
}
.muted {
  color: var(--ink-soft);
}
.small {
  font-size: var(--step--1);
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 4rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
}
.wordmark svg {
  width: 1.4rem;
  height: 1.4rem;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-1) var(--space-4);
  flex-wrap: wrap;
}
.site-nav a,
.basket-link {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--space-1);
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.basket-link {
  gap: var(--space-2);
  font-weight: 600;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding-inline: 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.badge[data-empty] {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 39.99em) {
  .site-nav {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .site-nav ul {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }
  .site-nav a {
    padding-inline: 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

/* ---------- agent banner + notice ---------- */
.agent-banner {
  background: var(--sage-wash);
  color: var(--sage-ink);
  font-size: var(--step--1);
}
.agent-banner .wrap {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  min-height: 2.5rem;
}
.agent-banner strong {
  color: var(--ink);
}
.link-button {
  background: none;
  border: 0;
  padding: var(--space-2) var(--space-1);
  font: inherit;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  min-height: var(--tap);
}
.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius-s);
  padding: var(--space-4);
  margin-block: var(--space-5);
  max-width: 40rem;
}
.notice p {
  margin-bottom: var(--space-3);
}
.notice .actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.draft-note {
  background: var(--butter);
  border: 1px dashed var(--ink-soft);
  border-radius: var(--radius-s);
  padding: var(--space-3) var(--space-4);
  margin-block: var(--space-4) var(--space-6);
  max-width: var(--measure);
}

/* ---------- buttons + inputs ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent-deep);
  background: var(--accent-deep);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--accent-deeper);
  border-color: var(--accent-deeper);
}
.button[disabled],
.button[aria-disabled='true'] {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button.secondary:hover {
  background: var(--ink);
  color: var(--cream);
}
.button.wide {
  width: 100%;
}
label {
  font-weight: 600;
}
input[type='number'],
select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-s);
  min-height: var(--tap);
  padding: 0.4rem 0.6rem;
}

/* ---------- home hero + jar lineup (the one bold moment) ---------- */
.hero {
  padding-block: var(--space-7) var(--space-6);
}
.hero h1 {
  max-width: 16ch;
}
.lineup {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: var(--space-3);
  border-bottom: 3px solid var(--ink);
}
.lineup li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lineup a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: var(--ink);
  text-decoration: none;
  padding-top: var(--space-3);
}
.lineup .jar {
  width: 100%;
}
/* Jars scale with the cube root of volume (100 : 250 : 500 ml ≈ 1 : 1.36 : 1.71). */
.lineup li:nth-child(1) .jar {
  max-width: 5.6rem;
}
.lineup li:nth-child(2) .jar {
  max-width: 7.6rem;
}
.lineup li:nth-child(3) .jar {
  max-width: 9.6rem;
}
.lineup-labels {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  text-align: center;
}
.lineup-labels .size {
  font-family: var(--font-display);
  font-size: var(--step-2);
  display: block;
  line-height: 1.2;
}
.lineup-labels .price {
  display: block;
  font-variant-numeric: tabular-nums;
}
.lineup a:hover .jar-label,
.lineup a:focus-visible .jar-label {
  fill: var(--accent-deep);
}
@media (min-width: 48em) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-7);
    align-items: end;
  }
  .lineup {
    margin-top: 0;
  }
  .lineup li:nth-child(1) .jar {
    max-width: 7rem;
  }
  .lineup li:nth-child(2) .jar {
    max-width: 9.5rem;
  }
  .lineup li:nth-child(3) .jar {
    max-width: 12rem;
  }
}

/* ---------- product lists ---------- */
.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product-card .art {
  background: var(--butter);
  border-radius: var(--radius-s);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}
.product-card .art svg,
.product-card .art img {
  max-height: 100%;
  width: auto;
}
.product-card h3 {
  margin: var(--space-2) 0 0;
}
.product-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.product-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.product-card {
  position: relative;
}
.product-card h3 a:focus-visible {
  outline: none;
}
.product-card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.price {
  font-variant-numeric: tabular-nums;
}
.price-line {
  margin: 0;
  margin-top: auto;
}
.price-line .price {
  font-weight: 700;
  font-size: var(--step-1);
}
.vat-note {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* PRO range as a table: salons compare price per kg */
.table-wrap {
  overflow-x: auto;
}
.pack-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  border: 1px solid var(--line);
}
.pack-table caption {
  text-align: left;
  color: var(--ink-soft);
  padding-bottom: var(--space-2);
  caption-side: top;
}
.pack-table th,
.pack-table td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.pack-table td.num,
.pack-table th.num {
  text-align: right;
}
.pack-table tbody tr:last-child > * {
  border-bottom: 0;
}
.pack-table a {
  font-weight: 600;
}

/* ---------- how it's made ---------- */
.route {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}
.route li {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
}
.route li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--step-1);
  background: var(--cream);
}
.route li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 2.75rem;
  bottom: calc(-1 * var(--space-5) + 0.25rem);
  border-left: 2px dashed var(--accent);
}
.route h3 {
  margin-bottom: var(--space-1);
}
.route p {
  margin: 0;
  color: var(--ink-soft);
}
@media (min-width: 48em) {
  .route {
    grid-template-columns: repeat(3, 1fr);
  }
  .route li {
    padding-left: 0;
    padding-top: 3.5rem;
  }
  .route li:not(:last-child)::after {
    left: 3rem;
    right: calc(-1 * var(--space-5) + 0.25rem);
    top: 1.2rem;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--accent);
  }
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--sage-wash);
  color: var(--sage-ink);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: var(--space-5) 0;
  display: grid;
  gap: var(--space-4);
}
.trust li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust svg {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.15rem;
}
.trust strong {
  color: var(--ink);
  display: block;
}
@media (min-width: 48em) {
  .trust ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- product page ---------- */
.breadcrumbs {
  font-size: var(--step--1);
  padding-block: var(--space-4) 0;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--ink-soft);
}
.product {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-5);
}
.product .art {
  background: var(--butter);
  border-radius: var(--radius-m);
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: var(--space-6);
  max-height: 28rem;
}
.product .art svg,
.product .art img {
  max-height: 100%;
  width: auto;
}
.product h1 {
  font-size: var(--step-3);
}
.buy-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  margin-block: var(--space-5);
}
.buy-box .price-line {
  margin-bottom: var(--space-4);
}
.buy-box .price-line .price {
  font-size: var(--step-2);
  font-family: var(--font-display);
  font-weight: 400;
}
.buy-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
  flex-wrap: wrap;
}
.buy-row .field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.buy-row input {
  width: 5.5rem;
}
.buy-row .button {
  flex: 1 1 12rem;
}
.status {
  min-height: 1.6em;
  margin: var(--space-3) 0 0;
}
.specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-4);
}
.specs dt {
  font-weight: 600;
}
.specs dd {
  margin: 0;
}
@media (min-width: 48em) {
  .product {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---------- basket ---------- */
.basket-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  border-top: 1px solid var(--line);
}
.basket-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.basket-line .name {
  font-weight: 600;
  color: var(--ink);
}
.basket-line .line-total {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-pill);
  background: var(--paper);
}
.qty button {
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.qty button[disabled] {
  color: var(--line);
  cursor: not-allowed;
}
.qty output {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.line-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.basket-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-5);
}
.basket-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.basket-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.basket-summary .total {
  font-size: var(--step-1);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-5);
}
legend {
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  font-weight: 400;
}
.radio input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent-deep);
}
.radio.is-disabled {
  color: var(--ink-soft);
}
.hint {
  background: var(--sage-wash);
  color: var(--sage-ink);
  border-radius: var(--radius-s);
  padding: var(--space-3) var(--space-4);
  font-size: var(--step--1);
}
.error {
  color: var(--danger-ink);
  font-weight: 600;
}
/* One-handed on a phone: total + Checkout pinned to the bottom of the viewport. */
.checkout-bar {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-inline: calc(-1 * var(--space-5));
  margin-bottom: calc(-1 * var(--space-5));
  padding: var(--space-4) var(--space-5);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
@media (min-width: 56em) {
  .basket-layout {
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: var(--space-7);
    align-items: start;
  }
  .basket-summary {
    position: sticky;
    top: var(--space-4);
  }
}

/* ---------- agent landing ---------- */
.qr-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  max-width: 22rem;
}
.qr {
  width: 100%;
  max-width: 14rem;
  height: auto;
}
details summary {
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2);
}
.faq details > div {
  padding-bottom: var(--space-3);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--space-7);
  font-size: var(--step--1);
}
.site-footer a {
  color: var(--cream);
}
.site-footer .cols {
  display: grid;
  gap: var(--space-5);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li a {
  display: inline-block;
  padding-block: 0.35rem;
}
.site-footer h2 {
  font-size: var(--step-1);
  margin-bottom: var(--space-3);
}
@media (min-width: 48em) {
  .site-footer .cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .added {
    animation: pop 0.35s ease-out;
  }
  @keyframes pop {
    50% {
      transform: scale(1.25);
    }
  }
}

@media print {
  .site-header nav,
  .site-footer,
  .agent-banner,
  .checkout-bar {
    display: none;
  }
}

/* small helpers */
.m0 {
  margin: 0;
}
.h3 {
  font-size: var(--step-1);
  line-height: 1.3;
  margin-top: var(--space-6);
}
.mt {
  margin-top: var(--space-6);
}
.break {
  overflow-wrap: anywhere;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--space-5);
  font-size: var(--step--1);
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
}
.prose blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  background: var(--paper);
  border-left: 4px solid var(--line);
}
.prose code {
  font-size: 0.92em;
  background: var(--butter);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
