/* ============================================
   crealica.id — design tokens & global styles
   Palette: sage · dusty pink · butter · cream
   ============================================ */

:root {
  /* surfaces */
  --bg: oklch(97% 0.018 92);              /* butter cream page */
  --bg-blush: oklch(94% 0.035 18);        /* soft blush block */
  --bg-sage: oklch(88% 0.045 145);        /* sage block */
  --bg-mint: oklch(93% 0.04 165);
  --bg-butter: oklch(92% 0.075 88);       /* warm butter accent */
  --card: oklch(99% 0.008 90);
  --card-2: oklch(95% 0.02 90);

  /* ink */
  --ink: oklch(28% 0.028 55);
  --ink-soft: oklch(45% 0.025 55);
  --ink-mute: oklch(60% 0.02 60);
  --line: oklch(88% 0.022 80);
  --line-strong: oklch(78% 0.03 70);

  /* brand */
  --sage: oklch(72% 0.07 150);
  --sage-deep: oklch(45% 0.08 150);
  --pink: oklch(80% 0.10 8);
  --pink-deep: oklch(55% 0.16 8);
  --butter: oklch(86% 0.12 90);
  --butter-deep: oklch(60% 0.15 80);

  /* radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 0 oklch(0% 0 0 / 0.04), 0 2px 6px oklch(0% 0 0 / 0.05);
  --shadow-md: 0 2px 0 oklch(0% 0 0 / 0.05), 0 8px 24px oklch(28% 0.04 60 / 0.08);
  --shadow-lg: 0 4px 0 oklch(0% 0 0 / 0.06), 0 20px 50px oklch(28% 0.04 60 / 0.12);

  /* type */
  --font-display: "Caprasimo", "DM Serif Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

img { display: block; max-width: 100%; }

/* ============================================
   Announcement marquee
   ============================================ */
.announce {
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid oklch(0% 0 0 / 0.1);
}
.announce__track {
  display: flex;
  gap: 48px;
  padding: 9px 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.announce__item { display: flex; align-items: center; gap: 12px; }
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--butter); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 16px;
}
.header__left, .header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.header__right { justify-content: flex-end; }

.logo {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.logo__dot { color: var(--pink-deep); }

.iconbtn {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 0.15s;
  position: relative;
}
.iconbtn:hover { background: var(--card-2); }
.iconbtn svg { width: 20px; height: 20px; }

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--pink-deep);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.locale-btn:hover { background: var(--card-2); }

/* Nav */
.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 24px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.nav__item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  transition: all 0.15s;
}
.nav__item:hover { background: var(--bg-blush); color: var(--ink); }
.nav__item--hot { color: var(--pink-deep); }
.nav__item--hot::after { content: " ♡"; }

/* ============================================
   Breadcrumb
   ============================================ */
.crumbs {
  padding: 18px 32px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  display: flex;
  gap: 6px;
  align-items: center;
}
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { opacity: 0.4; }
.crumbs__current { color: var(--ink); }

/* ============================================
   Product page layout
   ============================================ */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 24px 32px 80px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; padding: 16px 18px 48px; }
}

/* ============================================
   Gallery
   ============================================ */
.gallery { position: sticky; top: 130px; align-self: start; }
@media (max-width: 880px) { .gallery { position: static; } }

.gallery__main {
  position: relative;
  background: var(--bg-blush);
  border-radius: var(--r-lg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__main--mint { background: var(--bg-mint); }
.gallery__main--sage { background: var(--bg-sage); }
.gallery__main--butter { background: var(--bg-butter); }

.gallery__badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gallery__badge--pink { background: var(--pink-deep); }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background: var(--bg-blush);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
  padding: 14%;
}
.gallery__thumb--mint { background: var(--bg-mint); }
.gallery__thumb--sage { background: var(--bg-sage); }
.gallery__thumb--butter { background: var(--bg-butter); }
.gallery__thumb[data-active="true"] { border-color: var(--ink); }
.gallery__thumb:hover { border-color: var(--line-strong); }

/* ============================================
   Customizer panel
   ============================================ */
.cust { display: flex; flex-direction: column; gap: 18px; }

.cust__head { display: flex; flex-direction: column; gap: 8px; }
.cust__eyebrow {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--pink-deep);
  line-height: 1;
}
.cust__title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 600px) { .cust__title { font-size: 30px; } }

.cust__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}
.price__compare {
  color: var(--ink-mute);
  text-decoration: line-through;
  font-size: 16px;
  margin-left: 8px;
  font-family: var(--font-body);
  font-weight: 500;
}
.reviews { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; }
.reviews__stars { color: var(--butter-deep); letter-spacing: 1px; }

.cust__teaser {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cust__teaser strong { color: var(--ink); }
.cust__teaser-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-butter);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* Steps */
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.step__head .step__num { min-width: 0; flex: 1 1 auto; }
.step__head .step__hint { flex: 0 1 auto; text-align: right; max-width: 55%; }
.step__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.step__num-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}
.step__num-badge--done { background: var(--sage-deep); }
.step__hint {
  font-size: 12px;
  color: var(--ink-mute);
}
.step__hint--warn { color: var(--pink-deep); }

.step__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.step__label-value {
  color: var(--ink);
  font-weight: 700;
  margin-left: 4px;
}

/* Inputs */
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--ink);
  background: white;
}
.input--row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-wrap { display: flex; flex-direction: column; gap: 6px; }
.input-wrap__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.input-wrap__counter {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  min-width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 2px solid var(--line);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  white-space: nowrap;
}
.swatch:hover { border-color: var(--line-strong); }
.swatch[data-active="true"] {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--card-2);
}
.swatch[data-active="true"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  opacity: 0.25;
  pointer-events: none;
}

.swatch--color {
  width: 44px;
  padding: 0;
  border-radius: 50%;
}
.swatch--color .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.1);
}

.swatch--font {
  height: 56px;
  padding: 0 18px;
  font-size: 22px;
  border-radius: var(--r-sm);
  min-width: 64px;
}
.swatch--size {
  width: 56px;
  padding: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

.swatch--accessory {
  flex-direction: column;
  width: 100px;
  height: auto;
  padding: 10px;
  border-radius: var(--r-md);
  gap: 6px;
}
.swatch--accessory .acc-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm);
  background: var(--bg-blush);
  display: flex; align-items: center; justify-content: center;
}
.swatch--accessory .acc-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Upload */
.upload {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload:hover { border-color: var(--ink); background: var(--card-2); }
.upload--has-file {
  border-style: solid;
  border-color: var(--sage);
  background: oklch(94% 0.04 145 / 0.4);
}
.upload__preview {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-blush);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload__text { font-size: 13px; color: var(--ink-soft); flex: 1; }
.upload__text strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.upload__action {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quantity + add to cart */
.atc-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  position: sticky;
  bottom: 12px;
  background: var(--bg);
  padding: 4px 0;
  z-index: 5;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  overflow: hidden;
  height: 54px;
}
.qty button {
  width: 44px;
  height: 100%;
  font-size: 16px;
  font-weight: 700;
}
.qty button:hover { background: var(--card-2); }
.qty input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qty input:focus { outline: none; }

.btn-primary {
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary__price { opacity: 0.7; }
.btn-primary[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; background: var(--ink-mute); }

.btn-ghost {
  height: 44px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { border-color: var(--ink); }

/* Voucher banner */
.voucher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-butter);
  border: 1px dashed var(--butter-deep);
  font-size: 13px;
}
.voucher__code {
  font-family: var(--font-display);
  font-size: 16px;
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--butter-deep);
  letter-spacing: 0.04em;
}
.voucher__timer {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Payment row */
.pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.pay-row__methods { display: flex; gap: 6px; }
.pay-chip {
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: white;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================
   Tabs / description block
   ============================================ */
.tabs-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  padding: 14px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  margin-right: 28px;
  white-space: nowrap;
}
.tab[data-active="true"] { color: var(--ink); border-color: var(--ink); }
.tabs-section .copy {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .tabs-section .copy { grid-template-columns: 1fr; } }
.copy h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 16px;
  line-height: 1.1;
}
.copy p { color: var(--ink-soft); margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.copy ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.copy li { margin: 6px 0; }

.facts {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
}
.fact__value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

/* ============================================
   You may also like
   ============================================ */
.also {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.also__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.also__title {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.005em;
}
.also__title em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--pink-deep);
  font-size: 1.1em;
  margin-right: 4px;
}
.also__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .also__grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__img {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: var(--bg-blush);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.card:hover .card__img { transform: translateY(-2px); }
.card__quickadd {
  position: absolute;
  inset: auto 12px 12px auto;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card__quickadd { opacity: 1; transform: translateY(0); }
.card__name { font-family: var(--font-display); font-size: 17px; line-height: 1.15; }
.card__price { font-size: 13px; color: var(--ink-soft); }
.card__price strong { color: var(--ink); font-weight: 600; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 32px 24px;
  margin-top: 24px;
}
.footer__grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__logo { font-family: var(--font-display); font-size: 36px; line-height: 1; margin-bottom: 14px; }
.footer__about { font-size: 14px; opacity: 0.7; line-height: 1.6; }
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 14px;
  opacity: 0.6;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 14px; opacity: 0.85; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__newsletter input {
  width: 100%;
  padding: 12px 14px;
  background: oklch(35% 0.03 60);
  border: 1px solid oklch(45% 0.03 60);
  border-radius: var(--r-pill);
  color: var(--bg);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer__newsletter input::placeholder { color: oklch(75% 0.03 60); }
.footer__newsletter button {
  width: 100%;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__newsletter button:hover { background: var(--butter); }
.footer__bottom {
  max-width: 1440px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid oklch(45% 0.03 60);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Modals (lang / currency / cart drawer)
   ============================================ */
.scrim {
  position: fixed; inset: 0;
  background: oklch(28% 0.025 60 / 0.45);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: fadein 0.2s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.scrim--center { justify-content: center; align-items: center; padding: 24px; }
.drawer {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slidein 0.25s cubic-bezier(.2,.8,.2,1);
}
@keyframes slidein { from { transform: translateX(100%); } to { transform: translateX(0); } }
.modal {
  background: var(--bg);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  animation: pop 0.2s cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.drawer__head, .modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.modal__head { padding: 0 0 16px; }
.drawer__head h3, .modal__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__img {
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: var(--bg-blush);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cart-line__name { font-family: var(--font-display); font-size: 16px; line-height: 1.1; }
.cart-line__opts { font-size: 11px; color: var(--ink-mute); margin-top: 4px; line-height: 1.4; }
.cart-line__price { font-weight: 700; }

.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.cart-total b { font-family: var(--font-display); font-size: 24px; }

.locale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.locale-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 14px;
  border: 1.5px solid transparent;
}
.locale-row:hover { background: var(--card-2); }
.locale-row[data-active="true"] {
  border-color: var(--ink);
  background: var(--card-2);
}
.locale-row__flag { font-size: 22px; line-height: 1; }
.locale-section h4 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 16px 0 8px;
  color: var(--ink-mute);
  font-weight: 700;
}

/* small toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  animation: pop 0.2s, fadeout 0.3s 2.2s forwards;
  display: flex; gap: 8px; align-items: center;
  box-shadow: var(--shadow-lg);
}
@keyframes fadeout { to { opacity: 0; transform: translate(-50%, 10px); } }

/* utility */
.hide-sm { }
@media (max-width: 700px) { .hide-sm { display: none; } }

/* show only on small screens (mobile) */
.show-sm { display: none !important; }
@media (max-width: 700px) { .show-sm { display: inline-flex !important; } }

/* compact locale/currency switcher for the mobile header */
.locale-btn--mini {
  padding: 0 10px; height: 40px; gap: 5px;
  font-size: 12px; font-weight: 700;
  background: var(--bg-butter); border: 1px solid var(--butter-deep);
  color: var(--ink); border-radius: var(--r-pill);
  align-items: center; cursor: pointer;
}
.locale-btn--mini svg { width: 9px; height: 9px; }

/* Accordion — product detail sections (replaces hidden tab slides on mobile) */
.acc { border-top: 1px solid var(--line); margin-top: 8px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 2px; background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-align: left; font-family: inherit;
}
.acc__chevron { transition: transform 0.2s ease; flex: none; color: var(--ink-soft); }
.acc__head[data-open="true"] .acc__chevron { transform: rotate(90deg); }
.acc__head[data-open="true"] { color: var(--ink); }
.acc__panel { padding: 0 2px 22px; animation: accIn 0.18s ease; }
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============================================
   HOME PAGE
   ============================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
  min-height: 620px;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero { padding: 12px 16px 0; }
}

.hero__copy {
  background: var(--bg-blush);
  border-radius: var(--r-lg);
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) { .hero__copy { padding: 28px 24px; } }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  width: max-content;
  border: 1px solid var(--line);
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.hero__h1 em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--pink-deep);
  font-size: 1.1em;
  display: inline-block;
  transform: rotate(-2deg);
  margin: 0 0.05em;
}
.hero__h1-line {
  display: block;
}
.hero__h1-line--indent { padding-left: 1em; }
.hero__h1-strike { position: relative; display: inline-block; }
.hero__h1-strike::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  top: 55%;
  height: 5px;
  background: var(--butter);
  z-index: -1;
  transform: rotate(-1deg);
}

.hero__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__cta-primary {
  height: 56px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s, background 0.15s;
}
.hero__cta-primary:hover { background: var(--pink-deep); transform: translateY(-2px); }
.hero__cta-secondary {
  height: 56px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  transition: background 0.15s;
}
.hero__cta-secondary:hover { background: var(--ink); color: var(--bg); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.hero__trust-item { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust-item svg { width: 16px; height: 16px; color: var(--sage-deep); }

/* hero visual side */
.hero__visual {
  background: var(--bg-sage);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-img { width: 92%; height: 92%; }

.hero__stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-12deg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1.5px dashed var(--ink);
  padding: 8px;
}
.hero__stamp small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero__price-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg);
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
  max-width: 240px;
}
.hero__price-tag-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__price-tag-name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
}
.hero__price-tag-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.hero__price-tag-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* ---- Marquee strip (logos / "as seen in") ---- */
.strip {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 32px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.strip__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip__items {
  flex: 1;
  display: flex;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}
.strip__item {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.strip__item::before {
  content: "✿";
  color: var(--pink-deep);
  font-size: 14px;
}

/* ---- Section header ---- */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section--tight { padding: 56px 32px; }
@media (max-width: 700px) { .section, .section--tight { padding: 48px 16px; } }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 720px;
}
.section__title em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--pink-deep);
  font-size: 1.05em;
}
.section__sub {
  max-width: 380px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.section__cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section__cta:hover { color: var(--pink-deep); }

/* ---- Category tiles ---- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }

.cat {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.cat:hover { transform: translateY(-4px); }
.cat--blush { background: var(--bg-blush); }
.cat--sage  { background: var(--bg-sage); }
.cat--butter { background: var(--bg-butter); }
.cat--mint   { background: var(--bg-mint); }

.cat__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  width: max-content;
}
.cat__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cat__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.cat:hover .cat__arrow { transform: rotate(-45deg); }
.cat__illo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}
.cat__illo svg { width: 70%; height: 70%; max-height: 200px; }

/* ---- Feature product (hero product callout) ---- */
.feature {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 480px;
}
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }

.feature__media {
  background: var(--bg-butter);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 360px;
}
.feature__media svg { width: 80%; height: 80%; }
.feature__badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--r-pill);
}

.feature__body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
@media (max-width: 600px) { .feature__body { padding: 32px 24px; } }
.feature__eyebrow {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--butter);
  line-height: 1;
}
.feature__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature__copy {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 440px;
  margin: 0;
}
.feature__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 14px 0;
  border-top: 1px solid oklch(45% 0.03 60);
  border-bottom: 1px solid oklch(45% 0.03 60);
}
.feature__cta {
  height: 54px;
  width: max-content;
  padding: 0 28px;
  border-radius: var(--r-pill);
  background: var(--butter);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, transform 0.15s;
}
.feature__cta:hover { background: var(--pink); transform: translateY(-2px); }

/* ---- How it works ---- */
.how {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 56px 44px;
  border: 1px solid var(--line);
}
@media (max-width: 700px) { .how { padding: 32px 20px; } }

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 900px) { .how__steps { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 500px) { .how__steps { grid-template-columns: 1fr; } }

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.step-card__illo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-blush);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.step-card:nth-child(2) .step-card__illo { background: var(--bg-sage); }
.step-card:nth-child(3) .step-card__illo { background: var(--bg-butter); }
.step-card:nth-child(4) .step-card__illo { background: var(--bg-mint); }
.step-card__illo svg { width: 65%; height: 65%; }
.step-card__num {
  position: absolute;
  top: 14px; left: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}
.step-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Brand story / Made in Bandung ---- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

.story__media {
  background: var(--bg-sage);
  border-radius: var(--r-lg);
  min-height: 460px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story__media svg { width: 80%; height: 80%; }
.story__media-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 12px 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story__media-badge small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.story__media-badge strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}

.story__body {
  background: var(--bg-butter);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
@media (max-width: 600px) { .story__body { padding: 32px 24px; } }
.story__eyebrow {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--pink-deep);
  line-height: 1;
}
.story__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.story__copy { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.story__copy strong { color: var(--ink); }
.story__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 8px;
}
.story__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.story__stat strong {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}
.story__stat span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Reviews ---- */
.reviews-section {
  background: var(--bg-blush);
  padding: 80px 32px;
}
.reviews-section__inner { max-width: 1440px; margin: 0 auto; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

.review {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  position: relative;
}
.review__quote {
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 0.5;
  color: var(--pink);
  height: 24px;
}
.review__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.review__text em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--pink-deep);
  font-size: 1.2em;
}
.review__stars {
  color: var(--butter-deep);
  font-size: 14px;
  letter-spacing: 2px;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-butter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review__avatar svg { width: 70%; height: 70%; }
.review__author-name { font-weight: 700; font-size: 14px; }
.review__author-meta { font-size: 12px; color: var(--ink-mute); }

/* ---- Instagram grid ---- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 800px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

.ig-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.ig-cell:hover { transform: scale(1.03); }
.ig-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, oklch(0% 0 0 / 0.3));
  opacity: 0;
  transition: opacity 0.2s;
}
.ig-cell:hover::after { opacity: 1; }
.ig-cell__heart {
  position: absolute;
  inset: auto 10px 10px auto;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.ig-cell:hover .ig-cell__heart { opacity: 1; }
.ig-cell svg { width: 70%; height: 70%; }

/* ---- Newsletter CTA ---- */
.newsletter {
  background: var(--sage-deep);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 64px 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; padding: 40px 24px; } }

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.newsletter__title em {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.05em;
  color: var(--butter);
}
.newsletter__sub {
  font-size: 15px;
  opacity: 0.8;
  margin: 16px 0 0;
  max-width: 480px;
  line-height: 1.55;
}
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter__input-wrap {
  display: flex;
  gap: 8px;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 6px;
  align-items: center;
}
.newsletter__input-wrap input {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 0 18px;
  color: var(--ink);
  outline: none;
}
.newsletter__submit {
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.newsletter__submit:hover { background: var(--pink-deep); }
.newsletter__small {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.04em;
  padding-left: 18px;
}
.newsletter__deco {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
body.admin-body { background: oklch(96% 0.012 90); font-size: 14px; }
body.admin-body * { box-sizing: border-box; }

.admin {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  background: var(--ink);
  color: oklch(85% 0.02 60);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  gap: 22px;
}
.sidebar__logo {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--bg);
  line-height: 1;
  padding: 4px 8px 18px;
  border-bottom: 1px solid oklch(40% 0.02 60);
}
.sidebar__logo span { color: var(--pink); }
.sidebar__logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(70% 0.02 60);
  margin-top: 6px;
  font-weight: 700;
}

.sidebar__group { display: flex; flex-direction: column; gap: 2px; }
.sidebar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(60% 0.02 60);
  padding: 4px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: oklch(85% 0.02 60);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-item:hover { background: oklch(35% 0.02 60); color: var(--bg); }
.nav-item[data-active="true"] {
  background: var(--bg);
  color: var(--ink);
}
.nav-item[data-active="true"] .nav-item__icon { color: var(--pink-deep); }
.nav-item__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: oklch(70% 0.02 60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-item__icon svg { width: 100%; height: 100%; }
.nav-item__badge {
  margin-left: auto;
  background: var(--pink-deep);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.nav-item[data-active="true"] .nav-item__badge { background: var(--pink-deep); }

.sidebar__user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: oklch(35% 0.02 60);
}
.sidebar__user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--butter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-name { color: var(--bg); font-size: 13px; font-weight: 700; line-height: 1.2; }
.sidebar__user-role { font-size: 11px; color: oklch(70% 0.02 60); line-height: 1.3; }
.sidebar__user-action {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: transparent;
  color: oklch(75% 0.02 60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar__user-action:hover { background: oklch(40% 0.02 60); color: var(--bg); }

/* ---- Main area ---- */
.admin-main { display: flex; flex-direction: column; min-width: 0; }

.admin-top {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-top__search {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.admin-top__search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 0 14px 0 42px;
  font-size: 14px;
}
.admin-top__search input:focus { outline: none; border-color: var(--ink); background: white; }
.admin-top__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-mute);
}
.admin-top__kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-mute);
  background: var(--bg);
}

.admin-top__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.admin-top__btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-top__btn:hover { border-color: var(--ink); }
.admin-top__btn svg { width: 14px; height: 14px; }
.admin-top__btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.admin-top__btn--primary:hover { background: var(--pink-deep); border-color: var(--pink-deep); }

/* ---- Page content ---- */
.admin-page {
  padding: 28px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head__title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}
.page-head__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.page-head__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.page-head__date svg { width: 14px; height: 14px; }

/* ---- KPI cards ---- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.kpi__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kpi__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-sage);
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kpi__icon svg { width: 18px; height: 18px; }
.kpi--pink .kpi__icon { background: var(--bg-blush); color: var(--pink-deep); }
.kpi--butter .kpi__icon { background: var(--bg-butter); color: var(--butter-deep); }
.kpi--mint .kpi__icon { background: var(--bg-mint); color: var(--sage-deep); }
.kpi__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.kpi__value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.kpi__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-mute);
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}
.kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 11px;
}
.kpi__delta--up { color: var(--sage-deep); }
.kpi__delta--down { color: var(--pink-deep); }

.kpi__spark {
  position: absolute;
  right: 14px;
  bottom: 36px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Card / section ---- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.panel__head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  line-height: 1.1;
}
.panel__sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 4px 0 0;
}
.panel__actions { display: flex; gap: 8px; align-items: center; }
.panel__body { padding: 20px; }
.panel__body--flush { padding: 0; }

.chip-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.chip[data-active="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip__count {
  background: oklch(0% 0 0 / 0.1);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
}
.chip[data-active="true"] .chip__count { background: oklch(100% 0 0 / 0.15); color: var(--bg); }

/* manageable chip (category with menu) */
.chip-wrap { position: relative; display: inline-flex; }
.chip-wrap .dropmenu { top: 36px; left: 0; right: auto; }
.chip--manage { padding-right: 4px; gap: 4px; }
.chip--archived {
  opacity: 0.5;
  border-style: dashed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.chip__menu-btn {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  padding: 0;
  margin-left: 2px;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.chip__menu-btn:hover, .chip__menu-btn[data-open="true"] {
  opacity: 1;
  background: oklch(0% 0 0 / 0.1);
}
.chip[data-active="true"] .chip__menu-btn { opacity: 0.75; }
.chip[data-active="true"] .chip__menu-btn:hover { background: oklch(100% 0 0 / 0.18); }
.chip__menu-btn svg { width: 12px; height: 12px; }

.chip__edit-input {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  outline: none;
  border-bottom: 1.5px solid currentColor;
  width: 110px;
  min-width: 60px;
}

/* + Add category inline form */
.cat-adder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px dashed var(--ink);
}
.cat-adder input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  width: 130px;
}
.cat-adder input::placeholder { color: var(--ink-mute); }
.cat-adder__add {
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-adder__add:disabled { opacity: 0.4; cursor: not-allowed; }
.cat-adder__cancel {
  font-size: 11px;
  color: var(--ink-mute);
  text-decoration: underline;
  padding: 0 6px;
  background: transparent;
}

/* ---- Kanban pipeline ---- */
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
}
@media (max-width: 1200px) { .kanban { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .kanban { grid-template-columns: 1fr; } }

.kcol {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  max-height: 540px;
}
.kcol__head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 6px;
}
.kcol__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kcol__dot { width: 8px; height: 8px; border-radius: 50%; }
.kcol--new    .kcol__dot { background: var(--pink-deep); }
.kcol--illu   .kcol__dot { background: var(--butter-deep); }
.kcol--proof  .kcol__dot { background: oklch(60% 0.12 230); }
.kcol--engr   .kcol__dot { background: var(--sage-deep); }
.kcol--ship   .kcol__dot { background: var(--ink); }

.kcol__count {
  background: var(--card-2);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.kcol__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.kcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.kcard:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.kcard__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kcard__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-blush);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcard__avatar svg { width: 100%; height: 100%; }
.kcard__pet {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.1;
}
.kcard__meta {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.kcard__id {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ink-mute);
  background: var(--card-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.kcard__opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kcard__opt {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.kcard__opt-color {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid oklch(0% 0 0 / 0.15);
  flex-shrink: 0;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}
.kcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink-mute);
}
.kcard__due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.kcard__due--warn { color: var(--pink-deep); font-weight: 700; }
.kcard__price {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kcard__note-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-butter);
  border: 1px solid var(--butter-deep);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---- Orders table ---- */
.otable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.otable thead th {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
}
.otable tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.otable tbody tr { cursor: pointer; transition: background 0.12s; }
.otable tbody tr:hover { background: var(--bg); }
.otable tbody tr:last-child td { border-bottom: none; }

.otable__id {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
}
.otable__pet { display: flex; align-items: center; gap: 10px; }
.otable__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-blush);
  flex-shrink: 0;
  overflow: hidden;
}
.otable__avatar svg { width: 100%; height: 100%; }
.otable__pet-name {
  font-weight: 700;
  line-height: 1.2;
}
.otable__pet-cust {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.otable__total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-pill__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pill--new    { background: var(--bg-blush); color: var(--pink-deep); border-color: oklch(80% 0.04 8); }
.status-pill--new    .status-pill__dot { background: var(--pink-deep); }
.status-pill--illu   { background: var(--bg-butter); color: var(--butter-deep); border-color: oklch(80% 0.08 80); }
.status-pill--illu   .status-pill__dot { background: var(--butter-deep); }
.status-pill--proof  { background: oklch(94% 0.04 230); color: oklch(45% 0.13 230); border-color: oklch(85% 0.05 230); }
.status-pill--proof  .status-pill__dot { background: oklch(55% 0.15 230); }
.status-pill--engr   { background: var(--bg-sage); color: var(--sage-deep); border-color: oklch(80% 0.05 145); }
.status-pill--engr   .status-pill__dot { background: var(--sage-deep); }
.status-pill--ship   { background: var(--card-2); color: var(--ink); border-color: var(--line-strong); }
.status-pill--ship   .status-pill__dot { background: var(--ink); }
.status-pill--delivered { background: var(--bg-mint); color: var(--sage-deep); border-color: oklch(82% 0.04 160); }
.status-pill--delivered .status-pill__dot { background: var(--sage-deep); }

/* ---- Order drawer ---- */
.order-drawer {
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  animation: slidein 0.25s cubic-bezier(.2,.8,.2,1);
}
.order-drawer__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-drawer__id {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 4px 8px;
  background: var(--card-2);
  border-radius: 6px;
  width: max-content;
}
.order-drawer__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 6px 0 0;
  line-height: 1;
}
.order-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.order-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-drawer__section h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

.od-photo {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
}
.od-photo__main {
  width: 160px; height: 160px;
  border-radius: 14px;
  background: var(--bg-blush);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.od-photo__main svg { width: 100%; height: 100%; }
.od-photo__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.od-photo__info strong { font-weight: 700; }
.od-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.od-row:last-child { border: none; }
.od-row__label { color: var(--ink-soft); }
.od-row__value { color: var(--ink); font-weight: 600; text-align: right; }
.od-row__value-color {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid oklch(0% 0 0 / 0.15);
  vertical-align: middle;
  margin-right: 6px;
}

.od-notes {
  background: var(--bg-butter);
  border: 1px solid var(--butter-deep);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  font-family: var(--font-body);
  color: var(--ink);
  position: relative;
}
.od-notes::before {
  content: "✿ Customer note";
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--bg-butter);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--butter-deep);
}
.od-notes em { font-style: italic; }

.od-pipe {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.od-pipe__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.od-pipe__row:hover { border-color: var(--line); background: var(--card); }
.od-pipe__row--done .od-pipe__bullet { background: var(--sage-deep); color: white; border-color: var(--sage-deep); }
.od-pipe__row--current { background: var(--card); border-color: var(--ink); }
.od-pipe__row--current .od-pipe__bullet { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.od-pipe__bullet {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.od-pipe__bullet svg { width: 14px; height: 14px; }
.od-pipe__main { flex: 1; min-width: 0; }
.od-pipe__label { font-weight: 700; font-size: 13.5px; }
.od-pipe__sub { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.od-pipe__time { font-size: 11px; color: var(--ink-mute); white-space: nowrap; }

.od-activity {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.od-activity__row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.od-activity__row:last-child { border: none; }
.od-activity__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--sage);
  flex-shrink: 0;
}
.od-activity__main { flex: 1; font-size: 13px; }
.od-activity__time { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }

.order-drawer__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--card);
  display: flex;
  gap: 8px;
}
.order-drawer__foot button { flex: 1; }
.btn-admin {
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-admin--primary { background: var(--ink); color: var(--bg); }
.btn-admin--primary:hover { background: var(--pink-deep); }
.btn-admin--ghost { background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-admin--ghost:hover { border-color: var(--ink); }
.btn-admin svg { width: 14px; height: 14px; }

/* mobile sidebar collapse */
@media (max-width: 800px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-top { padding: 12px 16px; }
  .admin-page { padding: 16px 16px 60px; }
  .order-drawer { max-width: 100%; }
}

/* ============================================
   PRODUCTS PAGE (admin)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
@media (max-width: 700px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 380px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.pcard:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pcard__img {
  aspect-ratio: 1 / 1;
  background: var(--bg-blush);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pcard__img--mint { background: var(--bg-mint); }
.pcard__img--sage { background: var(--bg-sage); }
.pcard__img--butter { background: var(--bg-butter); }
.pcard__img--pink { background: var(--bg-blush); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img svg { width: 60%; height: 60%; }

.pcard__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.pcard__badge--star { background: var(--ink); color: var(--butter); border-color: var(--ink); }
.pcard__badge--draft { background: var(--card-2); color: var(--ink-mute); }

.pcard__menu {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  color: var(--ink);
}
.pcard:hover .pcard__menu,
.pcard__menu[data-open="true"] { opacity: 1; }
.pcard__menu[data-open="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pcard__menu svg { width: 14px; height: 14px; }

/* ---- Dropdown menu ---- */
.dropmenu {
  position: absolute;
  top: 44px; right: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 4px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  min-width: 170px;
  animation: pop 0.15s cubic-bezier(.2,.8,.2,1);
}
.dropmenu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  width: 100%;
}
.dropmenu__item:hover { background: var(--card-2); }
.dropmenu__item svg { width: 14px; height: 14px; flex-shrink: 0; }
.dropmenu__item--danger { color: var(--pink-deep); }
.dropmenu__item--danger:hover { background: oklch(94% 0.04 8); }
.dropmenu__sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ---- Archived state on product card ---- */
.pcard[data-archived="true"] { opacity: 0.55; }
.pcard[data-archived="true"]:hover { opacity: 0.85; }

/* ---- Confirm delete modal ---- */
.confirm-modal {
  max-width: 440px;
  padding: 32px 28px 24px;
  text-align: center;
}
.confirm-modal__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-blush);
  color: var(--pink-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.confirm-modal__icon svg { width: 26px; height: 26px; }
.confirm-modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 10px;
  line-height: 1.1;
}
.confirm-modal__copy {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.confirm-modal__name {
  background: var(--card-2);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  margin: 0 0 22px;
  font-size: 14px;
}
.confirm-modal__buttons {
  display: flex;
  gap: 8px;
}
.confirm-modal__buttons button { flex: 1; }
.btn-danger {
  height: 44px;
  border-radius: 10px;
  background: var(--pink-deep);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  transition: background 0.15s;
}
.btn-danger:hover { background: oklch(45% 0.18 8); }
.btn-danger svg { width: 14px; height: 14px; }

.pcard__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pcard__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pcard__name {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.15;
  margin: 0;
}
.pcard__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.pcard__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.pcard__stock {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
}
.pcard__stock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
}
.pcard__stock-dot--low { background: var(--butter-deep); }
.pcard__stock-dot--out { background: var(--pink-deep); }

/* +Add new card */
.pcard--add {
  background: transparent;
  border: 2px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 280px;
  color: var(--ink-soft);
  cursor: pointer;
}
.pcard--add:hover {
  border-color: var(--ink);
  background: var(--card);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}
.pcard--add__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pcard--add__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg-blush);
  color: var(--pink-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pcard--add__icon svg { width: 22px; height: 22px; }
.pcard--add__label { font-weight: 700; font-size: 14px; }
.pcard--add__sub { font-size: 11px; color: var(--ink-mute); }

/* ---- Add product modal ---- */
.modal--wide {
  max-width: 720px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.modal--wide .modal__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.modal--wide .modal__body {
  padding: 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.modal--wide .modal__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--line-strong);
  background: var(--card);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-zone:hover, .upload-zone[data-drag="true"] {
  border-color: var(--ink);
  background: var(--bg-blush);
}
.upload-zone__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-blush);
  color: var(--pink-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.upload-zone__icon svg { width: 26px; height: 26px; }
.upload-zone__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
}
.upload-zone__sub {
  font-size: 12px;
  color: var(--ink-soft);
}
.upload-zone__btn {
  margin-top: 8px;
  height: 38px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 500px) { .upload-previews { grid-template-columns: repeat(3, 1fr); } }
.upload-preview {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--bg-blush);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview__index {
  position: absolute;
  top: 4px; left: 4px;
  background: oklch(0% 0 0 / 0.7);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.upload-preview--main .upload-preview__index { background: var(--pink-deep); }
.upload-preview__index small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.upload-preview__remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: oklch(0% 0 0 / 0.7);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.upload-preview:hover .upload-preview__remove { opacity: 1; }
.upload-preview__remove svg { width: 12px; height: 12px; }
.upload-preview__nav {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.upload-preview:hover .upload-preview__nav { opacity: 1; }
.upload-preview__nav button {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: oklch(0% 0 0 / 0.7);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background 0.12s;
}
.upload-preview__nav button:hover:not(:disabled) { background: var(--ink); }
.upload-preview__nav button:disabled { opacity: 0.25; cursor: not-allowed; pointer-events: none; }
.upload-preview__nav button svg { width: 12px; height: 12px; }

/* form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-field .input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: white;
}
.form-field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.form-field__hint { font-size: 11px; color: var(--ink-mute); }

.form-section-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 -4px;
}

/* segmented control */
.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  letter-spacing: 0.04em;
}
.seg button[data-active="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* variant pills */
.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.variant-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.variant-pill[data-active="true"] {
  border-color: var(--ink);
  background: var(--card-2);
}
.variant-pill__color {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid oklch(0% 0 0 / 0.15);
  display: inline-block;
}
.variant-pill--add {
  border-style: dashed;
  color: var(--ink-soft);
  background: transparent;
}
.variant-pill--add:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--card);
}

/* Toggle switch */
.toggle {
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.18s;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.toggle__knob {
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 1px 3px oklch(0% 0 0 / 0.2);
}
.toggle[data-on="true"] { background: var(--sage-deep); }
.toggle[data-on="true"] .toggle__knob { transform: translateX(18px); }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.toggle-row:hover { border-color: var(--line-strong); }
.toggle-row[data-on="true"] {
  background: oklch(94% 0.04 145 / 0.5);
  border-color: var(--sage);
}
.toggle-row__info { flex: 1; min-width: 0; }
.toggle-row__title {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
}
.toggle-row__sub {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 3px;
}

/* Inline add-color form */
.color-adder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1.5px dashed var(--ink);
  margin-top: 8px;
  flex-wrap: wrap;
}
.color-adder__swatch {
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid oklch(0% 0 0 / 0.15);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.color-adder__swatch input {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.color-adder__name {
  flex: 1;
  min-width: 140px;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 13px;
  font-family: inherit;
}
.color-adder__name:focus { outline: none; border-color: var(--ink); }
.color-adder__btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.color-adder__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.color-adder__cancel {
  font-size: 12px;
  color: var(--ink-mute);
  text-decoration: underline;
  padding: 0 6px;
}

/* ============================================
   LOGIN / AUTH PAGE
   ============================================ */
body.auth-body { background: var(--bg); min-height: 100vh; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* slim top bar */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.auth-bar__logo {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
}
.auth-bar__logo .logo__dot { color: var(--pink-deep); }
.auth-bar__right { display: flex; align-items: center; gap: 10px; }
.auth-bar__back {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
}
.auth-bar__back:hover { background: var(--card-2); color: var(--ink); }
.auth-lang {
  display: inline-flex;
  gap: 2px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}
.auth-lang button {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}
.auth-lang button[data-active="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }

/* split layout */
.auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}
@media (max-width: 860px) { .auth-main { grid-template-columns: 1fr; } }

/* brand / value panel */
.auth-aside {
  background: var(--bg-sage);
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 860px) { .auth-aside { display: none; } }
.auth-aside__eyebrow {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--pink-deep);
  line-height: 1;
}
.auth-aside__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  color: var(--ink);
  max-width: 460px;
}
.auth-aside__title em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--pink-deep);
  font-size: 1.1em;
}
.auth-perks { display: flex; flex-direction: column; gap: 14px; }
.auth-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink);
}
.auth-perk__icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.auth-perk__icon svg { width: 20px; height: 20px; color: var(--sage-deep); }
.auth-perk strong { font-weight: 700; }
.auth-perk span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.auth-aside__illo {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 230px;
  height: 230px;
  opacity: 0.9;
  pointer-events: none;
}
.auth-aside__note {
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  width: max-content;
}

/* form panel */
.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-card__head { text-align: left; }
.auth-card__title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}
.auth-card__sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 0 0;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 4px;
}
.auth-tabs button {
  flex: 1;
  height: 40px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.auth-tabs button[data-active="true"] { background: var(--ink); color: var(--bg); }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}
.auth-input:focus { outline: none; border-color: var(--ink); background: white; }
.auth-input--has-btn { padding-right: 52px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap__toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
}
.auth-input-wrap__toggle:hover { color: var(--ink); background: var(--card-2); }
.auth-input-wrap__toggle svg { width: 18px; height: 18px; }

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .auth-row { grid-template-columns: 1fr; } }

.auth-select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%236b5429' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.auth-select:focus { outline: none; border-color: var(--ink); }

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.auth-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-link:hover { color: var(--pink-deep); }

.auth-submit {
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s, background 0.15s;
}
.auth-submit:hover { background: var(--pink-deep); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.auth-submit__spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-alert {
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.auth-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.auth-alert--error { background: oklch(94% 0.05 18); color: var(--pink-deep); border: 1px solid oklch(82% 0.09 18); }
.auth-alert--ok { background: oklch(93% 0.05 150); color: var(--sage-deep); border: 1px solid oklch(80% 0.08 150); }
.auth-alert code {
  font-family: ui-monospace, monospace;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-guest {
  height: 50px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-guest:hover { border-color: var(--ink); }

.auth-foot {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.5;
}
.auth-foot a { text-decoration: underline; }

/* logged-in state */
.auth-account { display: flex; flex-direction: column; gap: 18px; }
.auth-account__hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-account__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-butter);
  border: 1px solid var(--butter-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.auth-account__name { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.auth-account__email { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.auth-account__links { display: flex; flex-direction: column; gap: 2px; }
.auth-account__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.auth-account__link:hover { border-color: var(--line-strong); background: var(--card-2); }
.auth-account__link svg { width: 20px; height: 20px; color: var(--sage-deep); flex-shrink: 0; }
.auth-account__link-arrow { margin-left: auto; color: var(--ink-mute); }
.auth-account__logout {
  height: 48px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.auth-account__logout:hover { border-color: var(--pink-deep); color: var(--pink-deep); }

.auth-demo-pill {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}
.auth-demo-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--butter-deep);
}

/* --- Admin photo upload: loading + add tiles --------------------------- */
@keyframes crl-spin { to { transform: rotate(360deg); } }
.upload-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line-strong, #d9d2c7);
  border-top-color: var(--ink, #2a221d);
  animation: crl-spin 0.7s linear infinite;
}
.upload-preview--loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 2px dashed var(--line-strong, #d9d2c7);
  background: var(--card, #fff); border-radius: 12px; min-height: 96px;
}
.upload-preview__loadtext { font-size: 11px; font-weight: 700; color: var(--ink-soft, #7a6f64); }
.upload-preview--add {
  border: 2px dashed var(--line-strong, #d9d2c7); background: var(--card, #fff);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 12px; color: var(--ink-soft, #7a6f64); min-height: 96px;
}
.upload-preview--add:hover { color: var(--ink, #2a221d); border-color: var(--ink, #2a221d); }
.upload-previews[data-drag="true"] { outline: 2px dashed var(--ink, #2a221d); outline-offset: 4px; border-radius: 12px; }
