/* ============================================================
   BUIKEM.COM — Core Stylesheet
   Mobile-first. Breakpoints scale UP (min-width), never down.
   Theme: paper/ink editorial base. Brand yellow + deep green are
   SECONDARY accents only, never the page background.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Base (primary) — dark green ground, yellow ink. */
  --paper: #0b2e18;
  --paper-2: #0e3820;
  --paper-3: #134228;
  --ink: #fdda19;
  --ink-2: #ecd23c;
  --ink-3: rgba(253, 218, 25, 0.62);
  --line: rgba(253, 218, 25, 0.26);

  /* Accents */
  --yellow: #fdda19;
  --yellow-soft: rgba(253, 218, 25, 0.14);
  --green: #0b2e18;
  --green-deep: #072012;
  --green-2: #0e3820;
  --green-soft: rgba(253, 218, 25, 0.1);
  --red: #d8463a;

  --danger: #ff5a4a;
  --danger-soft: rgba(255, 90, 74, 0.14);
  --success: #7ddc9a;

  /* Semantic */
  --bg: var(--paper);
  --surface: #0e3820;
  --text: var(--ink);
  --text-muted: var(--ink-3);
  --border: var(--line);

  --font-display: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-body: "Courier Prime", "Courier New", ui-monospace, monospace;

  --radius: 0px;
  --radius-sm: 0px;
  --radius-pill: 0px;
  --max-width: 1240px;
  --nav-h: 64px;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Kill the blue tap-highlight flash on mobile, everywhere. */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body,
a,
button,
input,
select,
textarea,
label,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 7vw, 2.75rem);
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  white-space: nowrap;
}

.lede {
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 56ch;
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition:
    transform 0.15s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
  user-select: none;
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--green);
}

.btn-accent {
  background: var(--yellow);
  color: var(--ink);
}

.btn-accent:hover {
  background: #ffd633;
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--ink-2);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.72rem;
}

.btn-lg {
  padding: 17px 32px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  transition: transform 0.22s var(--ease);
  will-change: transform;
  z-index: 200;
  background: var(--green);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar.nav-hidden {
  transform: translateY(-102%);
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
  .navbar.nav-hidden {
    transform: none;
  }
}

.navbar-inner {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* The mark always shows; the wordmark appears once there is room for it. */
.navbar-logo .logo-mark {
  height: 46px;
  width: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-logo .logo-word {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: none;
}

@media (min-width: 400px) {
  .navbar-logo .logo-word {
    display: block;
  }
}

/* Center links — desktop only */
.nav-links {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--paper-2);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
}

.hamburger-btn {
  order: -1;
}

/* ---------- Custom select (currency + generic) ---------- */
.cselect {
  position: relative;
  font-size: 0.78rem;
}

.cselect-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
  white-space: nowrap;
}

.cselect-trigger:hover {
  border-color: var(--ink);
}

.cselect.open .cselect-trigger {
  border-color: var(--ink);
  background: var(--paper-2);
}

.cselect-trigger .chev {
  transition: transform 0.2s var(--ease);
  color: var(--ink-3);
}

.cselect.open .cselect-trigger .chev {
  transform: rotate(180deg);
}

.flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  display: block;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(20, 19, 15, 0.12);
  overflow: hidden;
}

.cselect-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
  z-index: 300;
}

.cselect.open .cselect-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cselect-menu.left {
  right: auto;
  left: 0;
  transform-origin: top left;
}

.cselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  transition: background-color 0.15s var(--ease);
}

.cselect-option:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.cselect-option[aria-selected="true"] {
  background: var(--yellow-soft);
  color: var(--ink);
}

.cselect-option .opt-sub {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--ink-3);
  font-weight: 600;
}

.cselect-block .cselect-trigger {
  width: 100%;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.cselect-block .cselect-menu {
  left: 0;
  right: 0;
  min-width: 0;
}

/* ---------- Mobile drawer nav ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 15, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s;
  z-index: 400;
  backdrop-filter: blur(2px);
}

.scrim.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(420px, 90vw);
  background: var(--paper);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transition: transform 0.36s var(--ease);
  box-shadow: var(--shadow-lg);
}

.drawer-left {
  left: 0;
  transform: translateX(-102%);
}

.drawer-right {
  right: 0;
  transform: translateX(102%);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 20px;
}

.drawer-foot {
  flex: 0 0 auto;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.menu-link .arrow {
  color: var(--ink-3);
}

.menu-meta {
  padding-top: 22px;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* ---------- Cart drawer ---------- */
.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line img {
  width: 76px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.cart-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-line-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-line-meta {
  color: var(--ink-3);
  font-size: 0.76rem;
  margin-top: 2px;
}

.cart-line-price {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
}

.qty-control button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--ink-2);
  transition: background-color 0.15s var(--ease);
}

.qty-control button:hover {
  background: var(--paper-2);
}

.qty-control span {
  min-width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.link-remove {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

.link-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-2);
  padding: 4px 0;
}

.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.empty-state {
  text-align: center;
  padding: 56px 12px;
  color: var(--ink-3);
}

.empty-state h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: var(--paper);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 44px 0 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.9rem, 15vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
}

.hero h1 .hl {
  color: var(--yellow);
}

.hero p {
  color: rgba(250, 248, 243, 0.74);
  margin-top: 16px;
  max-width: 44ch;
  font-size: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-cta .btn-outline {
  border-color: rgba(250, 248, 243, 0.4);
  color: var(--paper);
}

.hero-cta .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero-media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-media img {
  width: min(320px, 76%);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 14px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.product-card-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.045);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.badge-accent {
  background: var(--yellow);
  color: var(--ink);
}

.badge-muted {
  background: var(--paper-3);
  color: var(--ink-2);
}

.product-card-info {
  padding: 11px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-card-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* ---------- Stars ---------- */
.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--yellow);
}

.stars svg {
  width: 13px;
  height: 13px;
}

.stars .off {
  color: var(--paper-3);
}

.stars-lg svg {
  width: 18px;
  height: 18px;
}

.star-input button {
  padding: 2px;
  color: var(--paper-3);
  line-height: 0;
}

.star-input button.on {
  color: var(--yellow);
}

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel-flat {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 20px;
}

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.value-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.value-item svg {
  color: var(--ink);
  margin-bottom: 12px;
}

.value-item h3 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.value-item p {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------- Split feature band ---------- */
.split {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.split-media {
  background: var(--green);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.split-media img {
  width: min(190px, 58%);
  height: auto;
  max-height: none;
  object-fit: contain;
}

.split-body {
  padding: 28px 22px 32px;
}

.split-body h2 {
  font-size: clamp(1.6rem, 6.5vw, 2.3rem);
  margin-bottom: 12px;
}

.split-body p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.tick-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.tick-list svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--success);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  margin-bottom: 10px;
}

.newsletter h2 .hl {
  color: var(--yellow);
}

.newsletter p {
  color: rgba(250, 248, 243, 0.7);
  font-size: 0.92rem;
  max-width: 46ch;
  margin: 0 auto 22px;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(250, 248, 243, 0.22);
  background: rgba(250, 248, 243, 0.06);
  color: var(--paper);
  font-size: 0.95rem;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(250, 248, 243, 0.42);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--yellow);
}

.newsletter-note {
  font-size: 0.72rem;
  color: rgba(250, 248, 243, 0.45);
  margin-top: 14px;
}

.form-note {
  font-size: 0.82rem;
  margin-top: 10px;
}

.form-note.ok {
  color: var(--yellow);
}

.form-note.err {
  color: #ff9d8a;
}

/* ---------- Lookbook ---------- */
.look-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.look-card {
  display: block;
  color: inherit;
  min-width: 0;
}

.look-card-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}

.look-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

a.look-card:hover .look-card-media img {
  transform: scale(1.045);
}

.look-card-body {
  padding: 12px 2px 0;
}

.look-card-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.look-card-body p {
  font-size: 0.84rem;
  color: var(--ink-3);
}

.look-card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

@media (min-width: 900px) {
  .look-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .look-grid.look-grid-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  color: var(--ink-2);
}

.prose h2 {
  font-size: 1.6rem;
  margin: 32px 0 12px;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--ink);
}

.prose p {
  margin-bottom: 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose img {
  border-radius: var(--radius);
  margin: 20px 0;
}

.prose a {
  border-bottom: 2px solid var(--yellow);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  gap: 24px;
  padding: 24px 0 64px;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumbs button {
  flex: 0 0 auto;
  width: 62px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--paper-2);
}

.gallery-thumbs button.active {
  border-color: var(--ink);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail h1 {
  font-size: clamp(1.9rem, 8vw, 3rem);
  margin-bottom: 6px;
}

.product-price-lg {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.option-group {
  margin-top: 22px;
}

.option-group > label,
.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s var(--ease);
}

.option-pill:hover {
  border-color: var(--ink);
}

.option-pill.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.stock-note {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 12px;
}

.stock-note.low {
  color: var(--danger);
  font-weight: 600;
}

.accordion {
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.accordion-trigger .chev {
  color: var(--ink-3);
  transition: transform 0.22s var(--ease);
}

.accordion-item.open .accordion-trigger .chev {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding-bottom: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  white-space: pre-line;
}

.accordion-item.open .accordion-panel {
  display: block;
}

/* ---------- Reviews ---------- */
.review {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-left: auto;
}

.review-body {
  font-size: 0.9rem;
  color: var(--ink-2);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.rating-score {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

/* ---------- Shop toolbar / filters ---------- */
.toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}

.search-field input:focus {
  outline: none;
  border-color: var(--ink);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.result-count {
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s var(--ease);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a8a294;
}

.form-row {
  display: grid;
  gap: 0;
}

.form-error {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 6px;
}

.notice {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
}

.notice-ok {
  background: var(--green-soft);
  color: var(--success);
}

.notice-warn {
  background: var(--yellow-soft);
  color: #7a5c00;
}

.notice-err {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  gap: 24px;
  padding: 24px 0 64px;
}

.order-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.order-line img {
  width: 52px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.step-dots .on {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  color: var(--paper);
  margin-top: 24px;
}

.footer-top {
  display: grid;
  gap: 28px;
  padding: 44px 0 32px;
}

.footer-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(250, 248, 243, 0.6);
  font-size: 0.86rem;
  max-width: 34ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(250, 248, 243, 0.72);
  font-size: 0.86rem;
  padding: 5px 0;
  transition: color 0.18s var(--ease);
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.14);
  padding: 18px 0 calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(250, 248, 243, 0.55);
}

.made-by a {
  color: var(--yellow);
  font-weight: 700;
  border-bottom: 1px solid rgba(245, 197, 24, 0.4);
}

.made-by a:hover {
  border-color: var(--yellow);
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 92vw;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease);
}

.toast.leaving {
  animation: toast-out 0.25s var(--ease) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 37%, var(--paper-2) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Admin ---------- */
.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-header img {
  height: 30px;
}

.admin-content {
  flex: 1;
  padding: 18px 16px 60px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 14px;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.stat-label {
  color: var(--ink-3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  background: var(--paper-2);
}

tbody tr:last-child td {
  border-bottom: none;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--ink-2);
}

.tag-ok {
  background: var(--green-soft);
  color: var(--success);
}

.tag-warn {
  background: var(--yellow-soft);
  color: #7a5c00;
}

.tag-err {
  background: var(--danger-soft);
  color: var(--danger);
}

.bar-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--paper-3);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: var(--radius-pill);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
}

.auth-card img {
  height: 48px;
  margin: 0 auto 18px;
}

/* ---------- Utilities ---------- */
.u-center {
  text-align: center;
}
.u-muted {
  color: var(--ink-3);
}
.u-small {
  font-size: 0.82rem;
}
.u-mt-8 {
  margin-top: 8px;
}
.u-mt-16 {
  margin-top: 16px;
}
.u-mt-24 {
  margin-top: 24px;
}
.u-mb-16 {
  margin-bottom: 16px;
}
.u-hide {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Tablet & up
   ============================================================ */
@media (min-width: 640px) {
  .container {
    padding: 0 28px;
  }
  .section {
    padding: 72px 0;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
  }
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter {
    padding: 52px 40px;
  }
  .newsletter-form {
    grid-template-columns: 1fr auto;
    max-width: 520px;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-inner {
    padding-top: 56px;
  }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 1024px) {
  :root {
    --nav-h: 76px;
  }
  .nav-links {
    display: flex;
  }
  .hamburger-btn {
    display: none;
  }
  .navbar-logo .logo-mark {
    height: 54px;
    width: 54px;
  }
  .navbar-logo .logo-word {
    height: 26px;
  }
  .navbar-actions {
    gap: 10px;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    padding: 76px 0 64px;
    min-height: 560px;
  }
  .hero-media img {
    width: min(400px, 100%);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    align-items: center;
  }
  .split-media {
    aspect-ratio: auto;
    min-height: 100%;
    max-height: none;
    height: 100%;
  }
  .split-body {
    padding: 48px 44px;
  }
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-detail {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
    padding: 40px 0 90px;
  }
  .product-detail .gallery {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
  .checkout-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
    padding: 40px 0 90px;
  }
  .checkout-grid .summary-panel {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
  .toolbar {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
  }
  .footer-top {
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding: 64px 0 44px;
  }
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ---------- Admin dashboard (mobile-first) ---------- */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.admin-brand img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-who {
  display: none;
  font-size: 0.78rem;
  color: var(--ink-3);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 560px) {
  .admin-who {
    display: block;
  }
}

.admin-tabs {
  padding-top: 14px;
}

.admin-tab {
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.admin-tab:hover {
  border-color: var(--ink-3);
}

.admin-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.admin-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.admin-hint {
  color: var(--ink-3);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-bar .admin-card-title {
  margin-bottom: 0;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  justify-content: flex-end;
}

.admin-search {
  flex: 1 1 140px;
  min-width: 0;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
}

.admin-search:focus {
  outline: none;
  border-color: var(--ink);
}

.admin-form-row {
  display: grid;
  gap: 0 14px;
}

@media (min-width: 620px) {
  .admin-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 14px;
  cursor: pointer;
}

.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.admin-checks {
  display: grid;
  gap: 2px;
}

.admin-preview {
  margin-top: 10px;
}

.admin-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.admin-note {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.admin-note.err {
  color: var(--danger);
}

.admin-empty {
  color: var(--ink-3);
  font-size: 0.86rem;
  padding: 14px 0;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.admin-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-item-media {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}

.admin-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-body {
  padding: 12px 13px 14px;
  display: grid;
  gap: 8px;
}

.admin-item-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.admin-item-meta {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-review p {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 150px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.chart-bar {
  width: 100%;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}

.chart-col span {
  font-size: 0.62rem;
  color: var(--ink-3);
}

@media (min-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Page headers (lookbook, FAQ) ----------
   These sit directly under the sticky navbar, so they carry their own top
   breathing room. Without this the H1 crowded the nav on every screen size. */
.page-head {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.page-head h1 {
  font-size: clamp(2rem, 9vw, 3.4rem);
  margin: 6px 0 10px;
}

.page-head p:not(.eyebrow) {
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

@media (min-width: 900px) {
  .page-head {
    padding: 72px 0 14px;
  }
}

/* ---------- Confirm / alert modal ---------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 15, 0.5);
  backdrop-filter: blur(3px);
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.modal-scrim.open {
  opacity: 1;
}

.modal-card {
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s var(--ease);
}

.modal-scrim.open .modal-card {
  transform: none;
}

.modal-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1 1 130px;
}

/* ---------- Admin slide-over panels ----------
   Add/edit forms live in a right-hand panel that slides out of the side of the
   screen instead of appearing inline in the middle of the page. */
.admin-panel {
  width: min(520px, 96vw);
}

.admin-panel .drawer-body {
  padding-top: 16px;
}

.admin-panel .admin-form {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* ---------- Colour picker (admin) ---------- */
.color-picker-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.color-picker-row input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.color-picker-row input[type="text"] {
  flex: 1 1 130px;
  min-width: 0;
}

.color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
}

.color-chip .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(20, 19, 15, 0.18);
  flex: 0 0 auto;
}

.color-chip button {
  color: var(--ink-3);
  line-height: 1;
  font-size: 1rem;
  padding: 0 2px;
}

.color-chip button:hover {
  color: var(--danger);
}

/* ---------- Colour swatches (storefront product page) ---------- */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: inset 0 0 0 2px var(--paper);
  transition: all 0.18s var(--ease);
}

.swatch.selected {
  border-color: var(--ink);
}

/* The inner span carries the picked hex so the swatch shows the real colour. */
.swatch > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.swatch-name {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 8px;
}

/* Admin slide-over panel: the form itself is the flex column so the header and
   the save/cancel footer stay pinned while the fields scroll. */
.admin-panel > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-panel .admin-form-actions {
  margin-top: 0;
}

.admin-panel .admin-form-actions .btn {
  flex: 1 1 140px;
}

/* ---------------------------------------------------------------------------
   Cart line options (size / colour) — flat, no accent bars, no animation.
   Used by cart-drawer.js, cart-page.js and the checkout order summary so the
   shopper can always see exactly what they are buying.
--------------------------------------------------------------------------- */
.cart-line-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-line-opt strong {
  font-weight: 600;
  color: var(--color-text, inherit);
}

.cart-line-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.cart-line-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.summary-row-item > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-item-name {
  font-weight: 600;
}

.summary-item-opts,
.summary-item-qty {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ============================================================
   Checkout: phone field with country dial code
   ============================================================ */
.phone-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-field input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}
.phone-country {
  flex: 0 0 auto;
}
.phone-preview {
  margin-top: 6px;
  min-height: 1em;
}

/* Searchable combobox (240+ dial codes — a native select would be unusable) */
.ccombo {
  position: relative;
  height: 100%;
}
.ccombo-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 46px;
  padding: 0 10px;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #dcd6c9);
  border-radius: 10px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.ccombo-trigger:hover {
  border-color: var(--color-accent, #12291a);
}
.ccombo-iso {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.ccombo-dial {
  color: var(--color-muted, #7c7566);
  font-size: 0.9rem;
}
.ccombo .chev {
  display: inline-flex;
  opacity: 0.6;
}
.ccombo-panel {
  display: none;
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, 78vw);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #dcd6c9);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.ccombo.open .ccombo-panel {
  display: block;
}
.ccombo-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-border, #dcd6c9);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  background: transparent;
}
.ccombo-list {
  max-height: 260px;
  overflow-y: auto;
}
.ccombo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ccombo-option:hover,
.ccombo-option.selected {
  background: var(--color-bg-alt, #f6f3ec);
}
.ccombo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ccombo-empty {
  padding: 14px;
  color: var(--color-muted, #7c7566);
  font-size: 0.9rem;
}

/* Breathing room under the Pay Now button (and clear of the iOS bottom bar) */
.checkout-bottom-space {
  height: 72px;
}
.checkout-page {
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

/* ============================================================
   Order confirmation
   ============================================================ */
.oc-title {
  font-size: 1.5rem;
  color: var(--color-accent, #12291a);
  margin-bottom: 10px;
}
.oc-title-success {
  color: var(--color-accent, #12291a);
}
.oc-title-danger {
  color: var(--color-danger, #b3261e);
}
.oc-sub {
  color: var(--color-muted, #7c7566);
  max-width: 520px;
  margin: 0 auto;
}
.oc-receipt {
  max-width: 460px;
  margin: 22px auto;
  text-align: left;
}
.oc-ref {
  color: var(--color-muted, #7c7566);
  font-size: 0.8rem;
  margin-top: 10px;
}
.oc-cta {
  margin-top: 20px;
}

/* ---------------------------------------------------------------------------
   Admin: compact controls
   The shop's buttons are deliberately large and loud. Inside the dashboard
   (and the staff login) that reads as oversized, so everything is scaled down
   to a dense, tool-like size.
--------------------------------------------------------------------------- */
.admin-shell .btn,
.admin-panel .btn,
.auth-card .btn {
  padding: 9px 15px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  gap: 6px;
}

.admin-shell .btn-sm,
.admin-panel .btn-sm {
  padding: 6px 12px;
  font-size: 0.66rem;
}

.auth-card .btn-block {
  padding: 11px 16px;
  font-size: 0.74rem;
}

.admin-shell .icon-btn,
.admin-panel .icon-btn {
  width: 34px;
  height: 34px;
}

.admin-shell .admin-tab {
  padding: 8px 13px;
  font-size: 0.74rem;
}

/* ---------------------------------------------------------------------------
   Admin: order details panel
--------------------------------------------------------------------------- */
#ordersBody tr {
  cursor: pointer;
}

#ordersBody tr:hover {
  background: var(--paper-2);
}

#ordersBody tr.is-active {
  background: var(--paper-2);
}

.order-panel {
  width: min(460px, 96vw);
}

.order-section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.order-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.order-section h4 {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.order-kv {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 6px 12px;
  font-size: 0.85rem;
}

.order-kv dt {
  color: var(--ink-3);
}

.order-kv dd {
  color: var(--ink);
  word-break: break-word;
}

.order-line {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
}

.order-line img {
  width: 46px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  flex: 0 0 auto;
}

.order-line-main {
  flex: 1 1 auto;
  min-width: 0;
}

.order-line-sub {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 0;
}

.order-total-row.is-total {
  font-weight: 800;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}

/* ---------------------------------------------------------------------------
   Admin: multi-image product gallery
--------------------------------------------------------------------------- */
.admin-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.admin-image {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
}

.admin-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.admin-image .admin-image-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}

.admin-image-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.admin-image-actions button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.admin-image-actions button:hover {
  background: #000;
}

/* ============================================================
   MARKET THEME — dark green ground, yellow monospace ink.
   Flat, square, uppercase. Loaded last so it wins over the
   older editorial rules without needing them rewritten.
   ============================================================ */

body {
  background: var(--green);
  color: var(--yellow);
  letter-spacing: 0.06em;
}

/* The red rule that used to sit across the top of every page was removed on
   request — the navbar now meets the edge of the screen directly. */

h1,
h2,
h3,
h4,
.section-title,
.eyebrow,
.btn,
.chip,
label,
th {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--yellow);
}

p,
li,
td,
input,
select,
textarea {
  color: var(--yellow);
}

.u-muted,
.text-muted,
.eyebrow,
.form-note,
.newsletter-note,
.result-count,
.market-status {
  color: var(--ink-3);
}

::selection {
  background: var(--yellow);
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--green);
  border-bottom: 0;
  backdrop-filter: none;
}

.navbar-inner {
  grid-template-columns: 1fr auto 1fr;
  height: 72px;
}

.navbar-logo {
  justify-self: center;
}

.navbar-logo {
  gap: 8px;
  transition: opacity 0.2s var(--ease);
}

.navbar-logo:hover {
  opacity: 0.82;
}

.navbar-logo .logo-mark {
  height: 56px;
  width: auto;
  flex: none;
}

/* The wordmark sits next to the icon. It shrinks before the icon does so the
   row (hamburger · icon · word · currency · bag) always fits a small phone. */
.navbar-logo .logo-word {
  display: block !important;
  height: 28px;
  width: auto;
  max-width: 42vw;
  object-fit: contain;
}

@media (max-width: 400px) {
  .navbar-logo .logo-mark {
    height: 46px;
  }
  .navbar-logo .logo-word {
    height: 21px;
  }
}

.navbar-actions {
  justify-self: end;
}

.icon-btn {
  color: var(--yellow);
  border-radius: 0;
}

.icon-btn:hover {
  background: transparent;
  color: #fff;
}

.hamburger-btn {
  justify-self: start;
  display: inline-flex !important;
}

.nav-links {
  display: none !important;
}

.cart-badge {
  background: var(--yellow);
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 999px;
}

/* ---------- Full-screen menu ---------- */
.drawer.menu-full {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  transform: none;
  opacity: 0;
  pointer-events: none;
  background: var(--green);
  display: flex;
  flex-direction: column;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
  border: 0;
  /* Fades in while the whole panel eases down a few pixels, instead of the
     old hard on/off flip. Links then stagger in underneath (see below). */
  transform: translateY(-10px);
  transition:
    opacity 0.26s var(--ease),
    transform 0.32s var(--ease),
    visibility 0.32s;
  visibility: hidden;
  z-index: 600;
}

.drawer.menu-full.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

/* Staggered entrance for the menu items. --i is set per link in navbar.js. */
.drawer.menu-full .menu-link,
.drawer.menu-full .menu-search {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.drawer.menu-full.open .menu-link,
.drawer.menu-full.open .menu-search {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(90ms + (var(--i, 6) * 45ms));
}

@media (prefers-reduced-motion: reduce) {
  .drawer.menu-full,
  .drawer.menu-full .menu-link,
  .drawer.menu-full .menu-search {
    transition-duration: 0.01ms;
    transform: none;
  }
}

.menu-top {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.menu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.menu-top .logo-mark {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.menu-top .logo-word {
  height: 18px;
  width: auto;
  max-width: 44vw;
  object-fit: contain;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  flex: 1;
}

.menu-links .menu-link {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 6px 0;
  border: 0;
}

.menu-links .menu-link:hover,
.menu-links .menu-link.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu-search {
  display: flex;
  align-items: stretch;
  margin-top: auto;
}

.menu-search input {
  flex: 1;
  min-width: 0;
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-search input::placeholder {
  color: rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.menu-search button {
  width: 64px;
  background: #000;
  color: var(--yellow);
  display: grid;
  place-items: center;
  border: 3px solid var(--yellow);
}

/* ---------- Market grid ---------- */
.page-market #main {
  padding-top: 8px;
  padding-bottom: 56px;
}

.market-status {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 4px 0 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 24px;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-card-media {
  background: transparent;
  border: 0;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-info {
  align-items: center;
  gap: 6px;
  padding: 12px 4px 0;
  text-align: center;
}

.product-card-title,
.product-card-price {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--yellow);
  text-align: center;
}

.product-card-price {
  font-weight: 700;
}

.product-card .badge {
  background: var(--yellow);
  color: #000;
  border-radius: 0;
  letter-spacing: 0.12em;
}

.product-card .badge-muted {
  background: #000;
  color: var(--yellow);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 0;
  border: 2px solid var(--yellow);
  letter-spacing: 0.12em;
  box-shadow: none;
}

.btn-primary,
.btn-accent {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.btn-primary:hover,
.btn-accent:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

.btn-outline:hover,
.btn-ghost:hover {
  background: var(--yellow);
  color: #000;
}

.btn:disabled {
  opacity: 0.45;
}

/* ---------- Surfaces, forms, tables ---------- */
.card,
.panel,
.surface,
.drawer,
.modal-card,
.admin-card,
.review-card,
.summary-card,
.empty-state {
  background: var(--green);
  border-color: var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--yellow);
}

input,
select,
textarea,
.field input,
.field select,
.field textarea {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 0;
  font-family: var(--font-body);
}

input::placeholder,
textarea::placeholder {
  color: rgba(253, 218, 25, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  outline: none;
}

select option {
  background: var(--green);
  color: var(--yellow);
}

.chip {
  border-radius: 0;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--yellow);
}

.chip.active {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.toast {
  border-radius: 0;
  background: var(--yellow);
  color: #000;
}

.scrim {
  background: rgba(0, 0, 0, 0.72);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green);
  border-top: 2px solid var(--line);
  padding: 28px 0 40px;
  color: var(--yellow);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .footer-bottom {
  justify-content: center;
  border-top: 0;
  margin-top: 16px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-made {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-made a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-made a:hover {
  opacity: 0.8;
}

/* ---------- Content pages (fits / policy) ---------- */
.page-head {
  padding: 26px 0 6px;
  border-bottom: 2px solid var(--line);
}

.prose h2 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Admin keeps the same ink, just calmer ---------- */
.admin-shell,
.admin-main,
.admin-sidebar {
  background: var(--green);
  color: var(--yellow);
}

.admin-table th,
.admin-table td {
  border-color: var(--line);
  color: var(--yellow);
}

/* ============================================================
   ADMIN — analytics tab + order management controls
   ============================================================ */

/* Two-up card layout for the analytics lists; stacks on phones. */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .admin-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Dropdowns in the admin bars match the search inputs next to them. */
select.admin-search {
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 0;
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 100%;
}

select.admin-search option {
  background: var(--green);
  color: var(--yellow);
}

/* Status picker inside the order drawer. */
.order-status-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.order-status-row select {
  flex: 1 1 150px;
  min-width: 0;
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 0;
  padding: 8px 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.order-status-row select option {
  background: var(--green);
  color: var(--yellow);
}

.tag-warn {
  border-color: var(--yellow);
}

/* The analytics stat grid holds more cards than the overview one, so let the
   cards get narrower before they wrap. */
#tab-analytics .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* ============================================================
   Checkout — discount code
   ============================================================ */
.discount-box { margin: 14px 0 20px; }
.discount-box label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.discount-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.discount-row input { min-width: 0; text-transform: uppercase; }
.discount-note { margin-top: 6px; min-height: 1em; }
.discount-note.is-ok { color: var(--yellow); }
.discount-note.is-err { color: var(--red); }
.summary-row-discount span:last-child { color: var(--yellow); }

/* ============================================================
   Market — collection chips
   ============================================================ */
.category-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.category-bar::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; background: transparent; color: inherit; border: 1px solid currentColor; padding: 6px 12px; font: inherit; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.cat-chip.is-active { background: var(--yellow); color: var(--green-deep); border-color: var(--yellow); }

/* ============================================================
   Admin — order / customer / discount cards (mobile first)
   ============================================================ */
.order-list { display: grid; gap: 10px; }
.order-card { display: block; width: 100%; text-align: left; background: transparent; color: inherit; border: 1px solid currentColor; padding: 12px; font: inherit; cursor: pointer; }
.order-card.is-static { cursor: default; }
.order-card.is-active { background: rgba(253, 218, 25, 0.12); }
.order-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.order-card-ref { font-weight: 700; overflow-wrap: anywhere; }
.order-card-name { font-size: 0.85rem; margin-top: 4px; overflow-wrap: anywhere; }
.order-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; opacity: 0.8; margin-top: 6px; }
.order-card-track { font-size: 0.72rem; opacity: 0.75; margin-top: 6px; overflow-wrap: anywhere; }

.stat-delta { font-size: 0.7rem; margin-top: 4px; opacity: 0.85; }
.stat-delta.is-up { color: var(--yellow); }
.stat-delta.is-down { color: var(--red); }

.bulk-bar { display: grid; gap: 8px; border: 1px solid currentColor; padding: 10px; margin-bottom: 12px; font-size: 0.78rem; }
.admin-item.is-picked { outline: 2px solid var(--yellow); }
.admin-item-pick { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px 0; }

@media (min-width: 700px) {
  .bulk-bar { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   CUSTOM FORM CONTROLS
   Native dropdowns, date pickers, checkboxes, radios and file
   inputs are replaced/restyled so nothing on the site falls back
   to the operating system's own chrome.
   ============================================================ */
.cfield {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  /* When the wrapper inherits a control class (e.g. .admin-search) it must not
     also paint that control's box — the trigger inside does that. */
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.cfield-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.cfield-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.cfield-trigger:hover,
.cfield.is-open .cfield-trigger {
  border-color: var(--yellow);
}

.cfield-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfield-value.is-placeholder {
  opacity: 0.6;
}

.cfield-chev {
  display: inline-flex;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.cfield.is-open .cfield-select .cfield-chev,
.cfield-select.is-open .cfield-chev {
  transform: rotate(180deg);
}

.cfield-menu {
  position: absolute;
  z-index: 200;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: var(--green-deep, var(--green));
  border: 2px solid var(--yellow);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cfield.drop-up .cfield-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px);
}

.cfield.is-open .cfield-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cfield-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  color: var(--yellow);
  border: 0;
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.cfield-option:hover {
  background: rgba(253, 218, 25, 0.14);
}

.cfield-option .cfield-tick {
  display: none;
  flex: 0 0 auto;
}

.cfield-option[aria-selected="true"] {
  background: var(--yellow);
  color: var(--green-deep, #062012);
}

.cfield-option[aria-selected="true"] .cfield-tick {
  display: inline-flex;
}

/* ---- Calendar ---- */
.cfield-cal {
  padding: 10px;
  width: 268px;
  max-width: calc(100vw - 32px);
  left: 0;
  right: auto;
}

.cal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cal-title {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.cal-nav {
  width: 28px;
  height: 28px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:hover {
  background: rgba(253, 218, 25, 0.14);
}

.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow span {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  opacity: 0.65;
  padding-bottom: 4px;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.cal-cell.is-blank {
  cursor: default;
}

.cal-cell:not(.is-blank):hover {
  border-color: currentColor;
}

.cal-cell.is-today {
  border-color: rgba(253, 218, 25, 0.55);
}

.cal-cell.is-selected {
  background: var(--yellow);
  color: var(--green-deep, #062012);
  border-color: var(--yellow);
  font-weight: 700;
}

.cal-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(253, 218, 25, 0.3);
  padding-top: 8px;
}

.cal-action {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cal-action:hover {
  background: rgba(253, 218, 25, 0.14);
}

/* ---- Checkboxes and radios ---- */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 0;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: var(--yellow);
}

input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--green-deep, #062012);
  border-bottom: 2.5px solid var(--green-deep, #062012);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.14s ease;
  margin-top: -2px;
}

input[type="checkbox"]:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}

input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) scale(1);
}

input[type="radio"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  transform: scale(0);
  transition: transform 0.14s ease;
}

input[type="radio"]:checked {
  border-color: var(--yellow);
}

input[type="radio"]:checked::after {
  transform: scale(1);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ---- File inputs ---- */
input[type="file"] {
  width: 100%;
  padding: 8px;
  font-size: 0.78rem;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  background: var(--yellow);
  color: var(--green-deep, #062012);
  border: 0;
  border-radius: 0;
  padding: 7px 12px;
  margin-right: 10px;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Colour input ---- */
input[type="color"] {
  padding: 2px;
  cursor: pointer;
}

/* Native pickers we can't replace still get brand ink. */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

/* ============================================================
   ADMIN — filter bars fit a phone
   A row of search + status + two date pickers pushed the page
   wider than the screen, which is what made the orders tab look
   zoomed out on mobile. It is a stacked grid now.
   ============================================================ */
.admin-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.admin-filters .admin-search,
.admin-filters .cfield {
  width: 100%;
  min-width: 0;
  flex: none;
}

.admin-filters-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-filters-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filters-btns .btn {
  flex: 1 1 auto;
  justify-content: center;
}

@media (min-width: 720px) {
  .admin-filters {
    grid-template-columns: minmax(160px, 1.4fr) minmax(140px, 1fr) auto auto;
    align-items: center;
  }
  .admin-filters-dates {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
  .admin-filters-btns .btn {
    flex: 0 0 auto;
  }
}

/* Nothing in the dashboard may push the document wider than the screen. */
.admin-shell {
  max-width: 100%;
  overflow-x: clip;
}

.admin-content,
.admin-bar,
.admin-card,
.tab-panel {
  min-width: 0;
  max-width: 100%;
}

.admin-bar-actions {
  min-width: 0;
  flex-wrap: wrap;
}

@media (max-width: 719px) {
  .admin-bar {
    align-items: stretch;
  }
  .admin-bar-actions {
    justify-content: flex-start;
    flex: 1 1 100%;
  }
  .stat-value {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }
  .order-card-meta {
    flex-wrap: wrap;
  }
}

/* ============================================================
   PRODUCT — always-visible add to bag bar
   ============================================================ */
body.has-buybar {
  padding-bottom: 96px;
}

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--green-deep, var(--green));
  border-top: 2px solid var(--yellow);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.buybar.is-visible {
  transform: translateY(0);
}

.buybar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.buybar-info {
  min-width: 0;
}

.buybar-name {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buybar-sub {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buybar-price {
  font-weight: 700;
}

.buybar .btn {
  white-space: nowrap;
  padding: 12px 22px;
}

@media (max-width: 420px) {
  .buybar .btn {
    padding: 12px 16px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buybar,
  .cfield-menu {
    transition: none;
  }
}

/* ============================================================
   SITE LOCK — storefront gate ("back soon" screen)
   ============================================================ */

/* Hide the storefront until the gate has answered. Pages without JS enabled
   still render (the rule only applies once the gate class is added). */
html.site-lock-checking body {
  visibility: hidden;
}

.site-locked-body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.lockscreen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 22px calc(40px + env(safe-area-inset-bottom));
}

.lockscreen-inner {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.lockscreen-logo {
  display: block;
  width: min(62vw, 300px);
  height: auto;
  margin: 0 auto 30px;
  object-fit: contain;
}

.lockscreen-countdown {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ink);
}

.lockscreen-note {
  font-size: 0.85rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin: 10px 0 26px;
}

.lockscreen-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.lockscreen-form[hidden],
.lockscreen [hidden] {
  display: none !important;
}


.lockscreen-form input {
  width: 100%;
  padding: 14px 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  min-width: 0;
}

.lockscreen-form input::placeholder {
  color: var(--ink-3);
  letter-spacing: 0.14em;
}

.lockscreen-form input:focus {
  outline: none;
  border-color: var(--ink);
}

.lockscreen-form button {
  padding: 14px 18px;
  background: var(--ink);
  color: var(--green-deep);
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.lockscreen-form button:hover {
  opacity: 0.85;
}

.lockscreen-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.lockscreen-pass {
  margin-top: 12px;
}

.lockscreen-msg {
  min-height: 18px;
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.lockscreen-msg.ok {
  color: var(--success);
}

.lockscreen-msg.err {
  color: var(--danger);
}

.lockscreen-link {
  display: inline-block;
  margin-top: 22px;
  background: none;
  border: none;
  padding: 4px 2px;
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.lockscreen-link:hover {
  color: var(--ink);
}

/* ---------- admin: site lock page ---------- */

.lock-status {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.lock-status strong {
  color: var(--ink);
}

.lock-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.lock-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lock-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lock-switch .lock-switch-track {
  width: 52px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  flex: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lock-switch .lock-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--ink-3);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.lock-switch input:checked + .lock-switch-track {
  border-color: var(--ink);
  background: var(--yellow-soft);
}

.lock-switch input:checked + .lock-switch-track::after {
  transform: translateX(24px);
  background: var(--ink);
}

.lock-switch input:focus-visible + .lock-switch-track {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
