/* The shared look of the eikendal.com shop and the club members' area,
   after eikendal.ch: tokens, type, buttons, the nav and the footer. */
:root {
  --ink: #2d251f;
  --ink-soft: #4e443c;
  --muted: #7a6f65;
  --paper: #fbf7ef;
  --paper-deep: #f3ecdf;
  --line: #e8dfcf;
  --line-strong: #d9ccb6;
  --gold: #c9a35e;
  --gold-hover: #b8924d;
  --gold-dark: #9d7938;
  --vine: #516344;
  --danger: #a12a2a;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(49, 36, 24, 0.14);
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-font: "Goudy Bookletter 1911", "Goudy Fallback", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--body-font); background: #fff; color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display-font); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.005em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); } }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.eyebrow { margin: 0 0 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav: frosted, the logo in the middle at 34px, eikendal.com's
   menu on the left, the members' area and the order on the right.
   Below 900px the menu folds into a burger. */
/* Pages on eikendal.com's own header (site-nav.css, synced by
   scripts/sync-nav.js): it is fixed, so the page starts below it. */
body.is-shop-content { padding-top: 68px; }
.nav { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; padding: 0 var(--gutter); background: rgba(255,255,255,0.92); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(45,37,31,0.08); }
.nav-brand { grid-column: 2; grid-row: 1; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.nav-links a { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 140ms ease, color 140ms ease; }
.nav-links a:hover { border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--gold-dark); }
.nav-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.nav-icon, .nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background 140ms ease; }
.nav-icon:hover, .nav-cart:hover { background: var(--paper); }
.nav-icon.is-in::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 2px #fff; }
.nav-cart b { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 0.68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-burger { grid-column: 1; grid-row: 1; display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; margin-left: -10px; }
.nav-burger span { display: block; height: 2px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(49,36,24,0.08); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 16px var(--gutter); border-top: 1px solid var(--line); border-bottom: 0; font-size: 0.8rem; }
}

/* Footer */
.footer { margin-top: 48px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-stack { display: grid; justify-items: center; gap: 14px; padding: clamp(36px, 5vw, 56px) 20px 28px; text-align: center; }
.footer-logo { height: 52px; width: auto; }
.footer-estate { margin: 0; font-size: 0.86rem; line-height: 1.8; color: var(--muted); }
.footer-estate a:hover { color: var(--ink); }
.footer-socials { display: flex; gap: 18px; }
.footer-socials img { width: 22px; height: 22px; opacity: 0.75; }
.footer-socials a:hover img { opacity: 1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px 20px calc(28px + env(safe-area-inset-bottom)); font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 760px) { .footer-bottom { gap: 8px 18px; } .footer-bottom > span:first-child { flex-basis: 100%; text-align: center; } .footer-bottom > span[aria-hidden] { display: none; } }

/* The shop's header: the members' icon and the order in one capsule, a thin
   line between them, the number of bottles beside the bag. */
.nav-capsule { display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; }
.nav-capsule .nav-capsule-btn { width: auto; height: 36px; padding: 0 12px; border-radius: 999px; gap: 6px; }
.nav-capsule .nav-capsule-btn, .nav-capsule .nav-capsule-btn:hover { background: transparent; }
.nav-capsule .nav-capsule-btn { transition: color 140ms ease; }
.nav-capsule .nav-capsule-btn:hover { color: var(--gold-dark); }
.nav-capsule:hover { border-color: var(--ink-soft); }
.nav-capsule-sep { width: 1px; height: 18px; background: var(--line-strong); }
.nav-capsule .nav-cart b { position: static; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: inherit; font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-capsule .nav-icon.is-in::after { top: 6px; right: 8px; }
@media (max-width: 480px) {
  .nav-capsule { height: 34px; }
  .nav-capsule .nav-capsule-btn { height: 32px; padding: 0 8px; gap: 4px; }
  .nav-capsule svg { width: 17px; height: 17px; }
  .nav-capsule-sep { height: 16px; }
  .nav-capsule .nav-icon.is-in::after { top: 4px; right: 4px; }
}
