/* Clevrast design tokens, shared by the storefront, customer account and admin. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/jost-latin-wght-normal.woff2') format('woff2'); }

:root {
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --surface-2: #efe9de;
  --surface-3: #e7dfd0;
  --ink: #1f1f1b;
  --ink-2: #45443c;
  --muted: #66655b;
  --line: #e1dacb;
  --line-strong: #cfc6b4;
  --gold: #b8955a;
  --gold-ink: #7a5f30;
  --gold-soft: #f1e7d3;
  /* Brand identity: The Harvest green, KöLAX orange (used only where the brand is shown). */
  --harvest: #2f6b3f;
  --harvest-soft: #e5f0e7;
  --kolax: #a84a16;
  --kolax-soft: #fbe8da;
  --heart: #b4412f;
  --info: #2c4a5e;
  --info-soft: #e2eaef;
  --success: #2e6a3e;
  --success-soft: #e3efe3;
  --warning: #8a5800;
  --warning-soft: #f7ecd3;
  --danger: #a3392a;
  --danger-soft: #f6e1dc;
  --whatsapp: #1f8f52;

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 31, 27, .06), 0 2px 8px rgba(31, 31, 27, .04);
  --shadow: 0 2px 6px rgba(31, 31, 27, .05), 0 12px 32px rgba(31, 31, 27, .08);
  --shadow-lg: 0 24px 64px rgba(31, 31, 27, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.12; margin: 0; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

/* Buttons */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.4em; border: 1px solid var(--b); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: #33332d; box-shadow: var(--shadow); }
.btn-gold { --b: var(--gold); background: var(--gold); color: #1f1a10; }
.btn-gold:hover { background: #c4a46c; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { --b: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { --b: var(--whatsapp); background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #197a45; }
.btn-danger { --b: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { min-height: 54px; padding: .85em 1.8em; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: .4em 1em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-icon { width: 54px; min-height: 54px; padding: 0; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .8125rem; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(184, 149, 90, .25); }
.field input[aria-invalid='true'] { border-color: var(--danger); }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: .9375rem; }
.notice.is-warning { background: var(--warning-soft); color: #5e3d00; }
.notice.is-error { background: var(--danger-soft); color: #74261b; }
.notice.is-success { background: var(--success-soft); color: #1d4a29; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--surface); border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); max-width: min(92vw, 460px); padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: .9375rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
