/* ============================================================
   Dorch & Danola — modernised storefront
   Clean Scandinavian / industrial. Bold grotesque + mono.
   ============================================================ */

:root {
  /* color — warm neutral canvas, near-black navy ink, signal accent */
  --bg:        oklch(0.974 0.004 80);
  --surface:   oklch(0.995 0.002 80);
  --surface-2: oklch(0.955 0.005 80);
  --ink:       oklch(0.215 0.014 255);
  --ink-soft:  oklch(0.45 0.012 255);
  --ink-mute:  oklch(0.60 0.010 255);
  --line:      oklch(0.885 0.006 80);
  --line-strong: oklch(0.80 0.008 80);

  --accent:      oklch(0.616 0.156 154);  /* workshop green (#009f57) */
  --accent-deep: oklch(0.536 0.156 154);
  --accent-ink:  oklch(0.99 0.01 80);     /* text on accent */
  --accent-soft: oklch(0.93 0.04 154);

  /* shape + rhythm — driven by tweaks */
  --radius: 3px;
  --space: 1;            /* density multiplier */
  --fs: 1;               /* type scale multiplier */

  --maxw: 1280px;
  --header-h: 132px;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --shadow-1: 0 1px 2px oklch(0.2 0.02 255 / 0.05);
  --shadow-2: 0 6px 24px oklch(0.2 0.02 255 / 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(16px * var(--fs));
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--font-mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }

/* kicker / eyebrow label */
.kicker {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--fs));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(14px * var(--fs));
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  padding: calc(13px * var(--space)) calc(22px * var(--space));
  border-radius: var(--radius);
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--surface); }
.btn--block { width: 100%; }
.btn--lg { padding: calc(16px * var(--space)) calc(28px * var(--space)); font-size: calc(15px * var(--fs)); }

/* ---- product placeholder imagery (striped, labelled) ---- */
.ph {
  position: relative;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--surface-2) 0 11px,
    transparent 11px 22px
  );
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.ph__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 7px;
  margin: 10px;
  border-radius: 2px;
}

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: calc(10.5px * var(--fs));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: var(--surface);
}
.badge--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge--stock { color: oklch(0.5 0.12 150); border-color: oklch(0.78 0.08 150); }

/* utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-s { gap: 8px; }
.gap-m { gap: 16px; }
.divider { height: 1px; background: var(--line); border: 0; }

input, select { font-family: inherit; }

/* ---- header bits ---- */
.hdr-ico {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: transparent; border: 0; color: var(--ink);
  font-size: 11px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius);
  transition: background .15s ease;
}
.hdr-ico:hover { background: var(--surface-2); }
.cart-dot {
  position: absolute; top: -7px; right: -9px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center; line-height: 1;
}
.nav-link {
  background: transparent; border: 0; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  padding: 0 14px; height: 100%; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link--all { font-weight: 700; }
.nav-link--deal { color: var(--accent); font-weight: 700; }
.foot-link { transition: color .15s; }
.foot-link:hover { color: var(--surface) !important; }

/* ---- product card ---- */
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .18s ease, transform .18s ease;
  text-align: left;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card .ph { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line); }
.card__body { padding: calc(16px * var(--space)); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__brand { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.card__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; letter-spacing: -0.01em; }
.card__spacer { flex: 1; }
.card__price { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.card__old { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); text-decoration: line-through; }
.card__add {
  margin-top: 10px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 11px; border-radius: var(--radius); white-space: nowrap;
  transition: background .15s, color .15s;
}
.card__add:hover { background: var(--ink); color: var(--surface); }
.card__ribbon {
  position: absolute; top: 10px; left: 10px; z-index: 2;
}

/* ---- home ---- */
.hero-search {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  transition: box-shadow .2s ease;
}
.hero-search:focus-within { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); }
.chip {
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 100px; transition: all .14s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.hero-stat {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-stat b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.hero-stat span { font-size: 11.5px; color: var(--ink-mute); }
.link-arrow { font-weight: 700; font-size: 14px; color: var(--ink); transition: gap .15s, color .15s; }
.link-arrow:hover { color: var(--accent); gap: 11px !important; }

.cat-tile {
  text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; min-height: 158px; display: flex; flex-direction: column;
  transition: border-color .15s, background .15s, transform .18s;
}
.cat-tile:hover { border-color: var(--ink); transform: translateY(-3px); }
.cat-tile:hover .cat-tile__arrow { color: var(--accent); transform: translateX(3px); }
.cat-tile__num { color: var(--ink-mute); font-size: 12px; letter-spacing: 0.08em; }
.cat-tile__arrow { color: var(--line-strong); transition: color .15s, transform .15s; }
.cat-tile__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.cat-tile__sub { font-size: 12.5px; color: var(--ink-mute); }

.feat {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  background: var(--ink); border-radius: var(--radius); overflow: hidden;
}
.feat .ph { background-color: oklch(0.3 0.02 255); background-image: repeating-linear-gradient(-45deg, oklch(0.34 0.02 255) 0 11px, transparent 11px 22px); }
.feat .ph__tag { background: var(--ink); border-color: oklch(0.4 0.02 255); color: oklch(0.7 0.01 255); }

.brand-cell {
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.04em; font-weight: 700;
  height: 64px; transition: color .15s, border-color .15s;
}
.brand-cell:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---- filters / forms ---- */
.chk { color: var(--ink-soft); transition: color .12s; }
.chk:hover { color: var(--ink); }
.chk__box {
  width: 18px; height: 18px; border: 1.5px solid var(--line-strong);
  border-radius: 3px; display: grid; place-items: center;
  color: var(--accent-ink); background: var(--surface); flex-shrink: 0; transition: all .12s;
}
.chk__box.is-on { background: var(--accent); border-color: var(--accent); }
.range { -webkit-appearance: none; appearance: none; height: 4px; background: var(--line-strong); border-radius: 4px; outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 3px solid var(--surface); }
.sortsel {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 12px; background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 13px; cursor: pointer;
}

/* ---- product page ---- */
.qty { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 44px; height: 50px; background: var(--surface); border: 0; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--surface-2); }
.qty span { width: 44px; text-align: center; font-size: 16px; }
.ptab {
  background: none; border: 0; padding: 14px 18px; margin-bottom: -1px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--ink-mute); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.ptab:hover { color: var(--ink); }
.ptab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.spectable { width: 100%; border-collapse: collapse; }
.spectable td { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spectable td:first-child { color: var(--ink-mute); width: 220px; }
.spectable td:last-child { color: var(--ink); font-size: 13.5px; }

/* ---- cart drawer ---- */
.drawer-scrim {
  position: fixed; inset: 0; background: oklch(0.2 0.02 255 / 0.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--bg); z-index: 91; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -12px 0 40px oklch(0.2 0.02 255 / 0.12);
}
.drawer.is-open { transform: translateX(0); }
.qty--sm button { width: 30px; height: 30px; font-size: 15px; }
.qty--sm span { width: 30px; font-size: 13px; }
.freebar { height: 5px; background: var(--surface-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.freebar span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--surface); z-index: 95;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-2); animation: toast-in .25s ease;
}
.toast svg { color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* scrollbar polish */
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
