/* ============================================================
   ExtraVirgin — Marketplace design system
   Warm-cream, product-forward storefront.
   ALL colors, type, spacing live here as variables — retune the
   :root block and the whole site shifts.
   ============================================================ */

:root {
  /* --- Palette (warm cream + olive anchor) --- */
  --bg:        #faf6ee;   /* page background (warm cream) */
  --bg-2:      #f3ecdd;   /* alt surfaces / tints */
  --surface:   #fffdf8;   /* cards, header (warm white) */
  --ink:       #221f17;   /* primary text */
  --ink-soft:  #5f5a4b;   /* secondary text */
  --ink-faint: #6f6856;   /* muted / captions (darkened 01.10.2026 for readable contrast) */

  --olive:      #5d6a34;  /* primary brand accent */
  --olive-deep: #454f26;  /* hover / strong */
  --olive-soft: #edf0e1;  /* olive-tinted fill */

  --gold:  #b58a3c;       /* gift accent */
  --terra: #bb6038;       /* "new" accent */

  --line:   #e6ddc9;      /* hairline borders */
  --line-2: #d6cbb2;      /* stronger borders */

  /* semantic (kept for admin/states elsewhere) */
  --ok-bg:#e6efd9; --ok-line:#bcd49a; --ok-text:#4a6a2f; --ok-text-deep:#2f4a22;
  --err-bg:#f7e6e2; --err-line:#e6b3a6; --err-text:#8a3a24; --err-text-2:#a14444;
  --info-bg:#e6ecf0; --info-text:#3a5a70; --warn-bg:#f3ecd9; --warn-text:#8a6a1b;

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Radius --- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  /* --- Shadow --- */
  --shadow-sm: 0 1px 3px rgba(69,79,38,0.06);
  --shadow:    0 8px 24px rgba(69,79,38,0.08);
  --shadow-lg: 0 18px 38px rgba(69,79,38,0.10);

  /* --- Layout --- */
  --container: 1280px;

  /* --- Aliases for carried-over component styles (map old names to new palette) --- */
  --cream:      var(--bg);
  --cream-2:    var(--bg-2);
  --line-soft:  #f0ebde;
  --olive-line: #cdd6ab;
  --gold-deep:  #8f6f24;
  --font-head:  var(--font-display);
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}
a { color: var(--olive-deep); text-decoration: none; }
a:hover { color: var(--olive); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, .logo {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--olive);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 700;
  padding: 0.9rem 1.8rem; background: var(--olive); color: #fff;
  border: 1.5px solid var(--olive); border-radius: var(--r-sm);
  cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }
.btn .ar { transition: transform 0.25s; }
.btn:hover .ar { transform: translateX(3px); }
.btn-line { background: transparent; color: var(--olive-deep); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--olive); background: var(--olive-soft); color: var(--olive-deep); }

/* ===== Top bar ===== */
.topbar {
  background: var(--olive-deep); color: #fff; text-align: center;
  font-size: 0.76rem; font-weight: 500; padding: 0.55rem 1rem; letter-spacing: 0.02em;
}

/* ===== Header ===== */
.site-header {
  background: rgba(250,246,238,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 1.05rem; padding-bottom: 1.05rem;
}
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; font-size: 1.6rem; font-weight: 600; color: var(--olive-deep); white-space: nowrap; }
.logo .logo-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: .01em;
  margin-top: .25rem;
  max-width: 340px;
  line-height: 1.3;
  white-space: normal;
}
.logo .logo-quote { display: block; }
.logo .logo-author { display: block; font-style: normal; }
.logo:hover { color: var(--olive); }

/* main nav (with dropdown) */
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a, .nav-trigger {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  transition: color 0.2s; background: none; border: none;
  cursor: pointer; font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.main-nav > a:hover, .nav-trigger:hover { color: var(--olive); }
.nav-trigger .chev { transition: transform 0.25s; }

/* dropdown mega-menu */
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 1.1rem; min-width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s, visibility 0.22s; z-index: 60;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.dropdown-panel.open {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-trigger .chev,
.nav-dropdown:focus-within .nav-trigger .chev { transform: rotate(180deg); }
.dropdown-item {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.7rem 0.9rem; border-radius: var(--r-sm); transition: background 0.18s;
}
.dropdown-item:hover { background: var(--olive-soft); }
.dropdown-item .di-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.dropdown-item .di-sub { font-size: 0.78rem; color: var(--ink-faint); }
.dropdown-all {
  grid-column: 1 / -1; margin-top: 0.3rem; padding-top: 0.8rem;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.dropdown-all a { font-weight: 700; font-size: 0.88rem; color: var(--olive); display: inline-flex; gap: 0.4rem; align-items: center; }

/* header right cluster */
.header-actions { display: flex; align-items: center; gap: 1.3rem; }

/* header search */
.search-form-header {
  display: flex; align-items: center; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 30px;
  padding: 0.45rem 0.5rem 0.45rem 0.95rem; transition: border-color 0.2s;
}
.search-form-header:focus-within { border-color: var(--olive); }
.search-form-header input[type="search"] {
  border: none; background: transparent; outline: none; font-size: 0.88rem;
  width: 150px; color: var(--ink); font-family: inherit;
}
.search-form-header input[type="search"]::placeholder { color: var(--ink-faint); }
.search-form-header button {
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  padding: 0.3rem 0.4rem; display: flex; align-items: center;
}
.search-form-header button:hover { color: var(--olive); }

/* cart */
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); }
.cart-link:hover { color: var(--olive); }
.cart-icon { display: block; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; background: var(--olive); color: #fff;
  font-size: 0.62rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  font-family: var(--font-body);
}

/* lang switcher */
.lang-switcher { display: flex; gap: 0.55rem; align-items: center; }
.lang-switcher a { display: inline-flex; line-height: 0; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.lang-switcher a svg {
  height: 1.05rem; width: auto; display: block; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  opacity: 0.5; filter: grayscale(35%);
  transition: opacity 0.15s, filter 0.15s;
}
.lang-switcher a:hover svg, .lang-switcher a.active svg { opacity: 1; filter: none; }

/* mobile menu toggle (hidden on desktop) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 0.2rem; }

/* ===== Hero ===== */
.home-hero {
  position: relative; background: linear-gradient(120deg, var(--olive-soft), var(--bg-2));
  border-bottom: 1px solid var(--line); overflow: hidden;
  margin: 1.75rem calc(50% - 50vw) 0; /* small top gap below sticky header + full-bleed */
}
.home-hero .hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; min-height: 48vh;
}
.home-hero .hero-text { padding: 3.5rem 1rem 3.5rem 0; }
.home-hero .eyebrow { margin-bottom: 1rem; display: inline-block; }
.home-hero h1 {
  font-weight: 600; font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.05;
  color: var(--olive-deep); margin-bottom: 1rem;
}
.home-hero h1 em { font-style: italic; color: var(--terra); }
.home-hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.8rem; }
.home-hero .hero-visual {
  align-self: stretch; min-height: 320px; border-left: 1px solid var(--line);
  background: linear-gradient(160deg, var(--olive-soft), var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--olive); font-family: var(--font-display); font-style: italic;
  background-size: cover; background-position: center;
}

/* ===== Shop / filter bar ===== */
.shop-section { padding: 2.5rem 0 4rem; }
.shop-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.shop-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.shop-head .count { font-size: 0.9rem; color: var(--ink-faint); font-weight: 500; }

.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter {
  padding: 0.55rem 1.1rem; border-radius: 30px; font-size: 0.86rem; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body);
}
.filter:hover { border-color: var(--olive); color: var(--olive-deep); }
.filter.active { background: var(--olive); color: #fff; border-color: var(--olive); }
/* Mobile: stack category pills full-width and identical, instead of a ragged wrapping row */
@media (max-width: 640px) {
  .filters { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-bottom: 1.5rem; }
  .filter { width: 100%; text-align: center; }
}

/* ===== Product grid (dense) ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card > a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-card > a:hover { color: inherit; }
.product-card-image {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.4rem;
  box-sizing: border-box;
  color: var(--ink-faint); font-family: var(--font-display); font-style: italic;
  font-size: 0.9rem; text-align: center;
}
.product-card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.product-card .origin {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card h2, .product-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); 
display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.product-desc { font-size: 0.84rem; color: var(--ink-soft); flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.8rem; }
.product-price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--olive-deep); }
.product-price .from { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.product-price .size { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }

/* empty state */
.empty-products { text-align: center; padding: 4rem 0; color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 2.2rem 0 1.4rem; margin-top: 2.5rem;
}
.footer-main {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2.5rem; flex-wrap: wrap;
  padding-bottom: 1.1rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.site-footer .footer-nav { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 0.5rem 3rem; justify-content: start; margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.site-footer .footer-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.site-footer .footer-nav a:hover { color: var(--olive); }
.footer-copyright { text-align: center; color: var(--ink-faint); font-size: 0.86rem; }
/* Certifications plaque: the badge art is light-on-black, so it keeps its dark
   background and is framed as an intentional plaque on the cream footer. */
.footer-certs { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; margin-bottom: 0; text-align: right; }
.footer-certs-label { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); }
.footer-certs img {
  width: 230px; max-width: 100%; height: auto;
  background: #000; padding: 0.5rem 0.7rem;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
/* Footer stacks and centers on small screens */
@media (max-width: 640px) {
  .footer-main { flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
  .site-footer .footer-nav { grid-auto-flow: row; grid-template-columns: repeat(2, auto); grid-template-rows: none; justify-content: center; gap: 0.5rem 2.5rem; }
  .footer-certs { align-items: center; text-align: center; }
}

/* ============================================================
   The styles below (product detail, cart, checkout, blog,
   search, admin, etc.) are carried over and will be restyled
   in later stages. Kept here so existing pages don't break.
   ============================================================ */



/* ===== Marketplace responsive: header, hero, grid ===== */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  /* Header collapses: show toggle, hide inline nav until opened */
  .menu-toggle { display: inline-flex; order: -1; }
  .site-header .container { flex-wrap: wrap; gap: 0.9rem; }
  .main-nav {
    flex-basis: 100%; order: 5; display: none;
    flex-direction: column; align-items: flex-start; gap: 0.2rem;
    padding-top: 0.8rem; border-top: 1px solid var(--line);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav > a, .nav-trigger { padding: 0.6rem 0; font-size: 1rem; width: 100%; }
  .nav-dropdown { width: 100%; }
  /* On mobile the mega-menu becomes an inline expanding list */
  .dropdown-panel {
    position: static; transform: none; min-width: 0; width: 100%;
    box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 1rem;
    grid-template-columns: 1fr; opacity: 1; visibility: visible;
    display: none;
  }
  .dropdown-panel.open { display: grid; }
  .nav-dropdown:hover .dropdown-panel { /* disable hover-open on touch */
    display: none;
  }
  .nav-dropdown:hover .dropdown-panel.open { display: grid; }
  /* The desktop open-state re-applies translateX(-50%), which on a full-width
     mobile panel shoves it off the left edge. Cancel any transform here. */
  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown:focus-within .dropdown-panel,
  .dropdown-panel.open { transform: none; }
  /* Chevron is driven by the JS-toggled aria-expanded (not :hover/:focus-within,
     which lingers after a tap and left the arrow stuck flipped when closed). */
  .nav-dropdown:hover .nav-trigger .chev,
  .nav-dropdown:focus-within .nav-trigger .chev { transform: none; }
  .nav-dropdown .nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .dropdown-item { padding: 0.5rem 0.6rem; }
  .dropdown-all { margin-top: 0; }

  .header-actions { gap: 1rem; margin-left: auto; }
  .search-form-header input[type="search"] { width: 110px; }

  .home-hero .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 0; padding: 0; }
  .home-hero .hero-text { padding: 2rem 1.5rem 2.5rem; }
  .home-hero .hero-visual { aspect-ratio: 16/10; align-self: start; min-height: 200px; order: -1; border-left: none; border-bottom: 1px solid var(--line); }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 440px) {
  .container { padding: 0 1.1rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .logo { font-size: 1.4rem; }
  .search-form-header { display: none; } /* keep header uncluttered on tiny screens; search is in nav flow */
}

/* ===== Carried-over component styles (to be restyled in later stages) ===== */
/* Product detail */
/* ===== Product detail (Marketplace) ===== */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 1.5rem 0 1.25rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
}
.back-link:hover { color: var(--olive); }
.product-detail { padding-bottom: 4rem; }
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.product-info-col h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.6rem; line-height: 1.1;
}
.product-info-col .lead {
  font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.8rem; line-height: 1.5;
}
.product-body { margin-top: 2rem; line-height: 1.75; color: var(--ink-soft); }
.product-body p { margin-bottom: 1rem; }

.variants {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem 1.8rem;
}
.variant-list { list-style: none; }
.variant-row {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.variant-row:last-child { border-bottom: none; }
.variant-label { flex: 1; font-weight: 500; }
.variant-price { font-weight: 600; min-width: 80px; text-align: right; }
.cart-coming-soon {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* Active language */
.lang-switcher a.active { border-bottom-color: var(--olive); }

/* 404 page (Marketplace) */
.error-page {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 5.5rem 0 6rem;
}
.error-page .eyebrow { display: inline-block; margin-bottom: 1.1rem; }
.error-page h1 {
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 600;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* Category header (Marketplace) */
.category-header {
  padding: 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.category-header .back-link { margin-top: 0; }
.category-header h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.category-description {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Category navigation */
.category-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.category-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.category-nav a:hover {
  color: var(--olive);
  text-decoration: none;
}

/* Blog / generic section header (Marketplace) */
.page-header {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.page-header .eyebrow { display: inline-block; margin-bottom: 0.9rem; text-transform: none; }
.page-header h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.page-subtitle {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 auto;
}

/* Blog article list (Marketplace) */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1.6rem;
  margin: 0 auto 4rem;
  max-width: 980px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.article-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.article-card > a:hover { color: inherit; }
.article-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.article-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--olive);
}
.article-card h2, .article-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.article-excerpt {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  margin-top: 0.3rem;
  color: var(--olive);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.article-card:hover .read-more { color: var(--olive-deep); }

/* Article detail (Marketplace) */
.article-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0 4.5rem;
}
.article-header {
  margin-bottom: 2rem;
}
.article-header .eyebrow { display: inline-block; margin-bottom: 0.8rem; }
.article-header h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 0.7rem;
}
/* In the detail view the date is a muted caption, not the olive eyebrow */
.article-detail .article-date {
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
}
.article-body {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-body p { margin-bottom: 1.3rem; }
.article-body p:first-of-type { color: var(--ink); }

/* Search: other-language hint (Marketplace) */
.search-other-langs {
  background: var(--olive-soft);
  border: 1px solid var(--olive-line);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem auto 0;
  max-width: 560px;
  text-align: left;
}
.search-other-langs p {
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--olive-deep);
}
.search-other-langs ul { list-style: none; padding: 0; margin: 0; }
.search-other-langs li { padding: 0.35rem 0; }
.search-other-langs a {
  color: var(--olive-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.search-other-langs a:hover { color: var(--olive); }

/* Big search form on /search page (Marketplace) */
.search-form-large {
  display: flex;
  gap: 0.6rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
}
.search-form-large input[type="search"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.search-form-large input[type="search"]:focus { outline: none; border-color: var(--olive); }
.search-form-large input[type="search"]::placeholder { color: var(--ink-faint); }
.search-form-large button {
  padding: 0.9rem 1.7rem;
  background: var(--olive);
  color: #fff;
  border: 1.5px solid var(--olive);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s;
}
.search-form-large button:hover { background: var(--olive-deep); border-color: var(--olive-deep); }

/* Search page sections (Marketplace) */
.search-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.search-header h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.search-summary {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.search-summary strong { color: var(--ink); }
.search-section { margin-bottom: 3.5rem; }
.search-section > h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

/* Static page detail (Marketplace) */
.page-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 0 4.5rem;
}
.page-detail-header {
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.page-detail-header h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.12;
}
.page-detail-body {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.page-detail-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.3rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.page-detail-body h2:first-child { margin-top: 0; }
.page-detail-body p { margin-bottom: 1.2rem; }
.page-detail-body strong { color: var(--ink); font-weight: 700; }
.page-detail-body a {
  color: #c0392b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-detail-body a:hover { color: #a93226; }

/* Footer navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.footer-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--olive);
  text-decoration: none;
}
.footer-copyright {
  text-align: center;
}

/* Admin login */
.admin-login {
  width: 100%;
  max-width: 400px;
  padding: 2.75rem 2.5rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-login-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.admin-login-brand:hover { text-decoration: none; color: var(--olive-deep); }
.admin-login-eyebrow {
  margin: 0.35rem 0 1.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--olive);
}
.admin-login h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.admin-login .admin-form { text-align: left; }
.admin-login .btn-primary { margin-top: 1rem; }

.admin-form .form-field {
  margin-bottom: 1.25rem;
}
.admin-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
}
.admin-form input:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--surface);
}

/* ===== General form fields (checkout + shared) ===== */
.form-field { margin-bottom: 1.1rem; }
.form-field > label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="number"] {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: 1rem; font-family: inherit;
  background: var(--bg); color: var(--ink);
}
.form-field input:focus { outline: none; border-color: var(--olive); background: var(--surface); }

/* Inline per-field validation (checkout) */
.form-field.has-error input,
.form-field.has-error select { border-color: var(--err-text); background: var(--err-bg); }
.field-error {
  display: block; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 600;
  color: var(--err-text); display: flex; align-items: center; gap: 0.35rem;
}
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: var(--err-text); color: #fff;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.95rem;
  background: var(--olive);
  color: #fff;
  border: 1.5px solid var(--olive);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
}
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-text {
  background: none;
  border: none;
  color: var(--olive-deep);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn-text:hover {
  color: var(--olive);
}

.form-error {
  background: var(--err-bg);
  border: 1px solid var(--err-line);
  color: var(--err-text);
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  scroll-margin-top: 90px;
}
.form-error ul { margin: 0; padding-left: 1.2rem; }
.form-error li { margin: 0.2rem 0; }

/* Admin dashboard */
.admin-dashboard {
  max-width: 900px;
  margin: 2rem auto;
  padding-bottom: 4rem;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.admin-header h1 {
  font-size: 1.75rem;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.admin-email {
  color: var(--ink-soft);
}
.logout-form {
  margin: 0;
}

.admin-welcome {
  background: var(--olive-soft);
  border: 1px solid var(--olive-line);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  color: var(--olive-deep);
  font-size: 0.98rem;
  margin-bottom: 2.25rem;
}

.admin-nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.admin-nav li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.admin-nav .placeholder {
  color: var(--ink-faint);
  font-style: italic;
}

/* Admin page — generic */
.admin-page {
  max-width: 1100px;
  margin: 2rem auto;
  padding-bottom: 4rem;
}
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.admin-page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
}
.admin-page-header .back-link {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: inline-block;
}

.admin-nav-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.2s, transform 0.1s;
}
.admin-nav-link:hover {
  border-color: var(--olive);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Admin tables */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.92rem;
}
.admin-table th {
  background: var(--cream-2);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--olive-line);
}
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table .row-slug {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: monospace;
  margin-top: 0.2rem;
}
.admin-table .row-actions {
  white-space: nowrap;
}
.admin-table .row-actions a {
  margin-right: 0.6rem;
}
.admin-table .inactive-row {
  opacity: 0.6;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}
.badge-active {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.badge-inactive {
  background: var(--err-bg);
  color: var(--err-text-2);
}

.missing {
  color: var(--terra);
  font-style: italic;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* Admin forms — wide variant */
.admin-form-wide {
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.form-section legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  padding: 0 0.5rem;
  margin-left: -0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  resize: vertical;
  min-height: 100px;
}
.form-field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--surface);
}

.form-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
}
.form-field select:focus {
  outline: none;
  border-color: var(--olive);
  background: var(--surface);
}

.form-field.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}
.form-field.form-checkbox input {
  width: auto;
}

.field-hint {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.btn-secondary {
  color: var(--olive-deep);
  background: transparent;
  border: 1.5px solid var(--line-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
}
.btn-secondary:hover {
  border-color: var(--olive);
  background: var(--olive-soft);
  color: var(--olive-deep);
  text-decoration: none;
}

.form-error ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}
.form-error li {
  margin-bottom: 0.25rem;
}

.variant-readonly {
  list-style: none;
  padding: 0;
}
.variant-readonly li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.variant-readonly li:last-child {
  border-bottom: none;
}
.variant-readonly code {
  background: var(--cream-2);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.form-actions-left {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* In the admin form action bar the primary button sizes to its content
   (the global .btn-primary is full-width for login/checkout forms). */
.form-actions .btn-primary {
  display: inline-block;
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

/* Variant editor */
#variants-container {
  margin-bottom: 1rem;
}

.variant-row-edit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.variant-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 0.9fr 0.6fr 0.9fr;
  gap: 0.75rem;
}

.variant-fields .form-field {
  margin-bottom: 0;
}
.variant-fields .form-field label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.variant-fields .form-field input {
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}

.btn-remove-variant {
  align-self: center;
  background: var(--err-bg);
  color: var(--err-text-2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-remove-variant:hover {
  background: var(--err-line);
}

.btn-secondary-action {
  background: none;
  border: 1px dashed var(--olive);
  color: var(--olive-deep);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary-action:hover {
  background: var(--cream);
  border-style: solid;
}

.btn-primary-inline {
  display: inline-flex; align-items: center;
  background: var(--olive);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.btn-primary-inline:hover {
  background: var(--olive-deep);
  text-decoration: none;
  color: var(--surface);
}

.inline-delete-form {
  display: inline;
  margin: 0;
}
.btn-delete {
  background: none;
  border: none;
  color: var(--err-text-2);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn-delete:hover {
  color: var(--err-text);
}

/* Image management in admin */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.image-thumb {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.6rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.image-thumb-pic {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.image-thumb-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* cropping is fine in the admin; keeps tiles uniform squares */
  display: block;
}
.image-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.image-field select,
.image-field input {
  width: 100%;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 400;
}
.image-delete-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--err-text-2);
  cursor: pointer;
}
.image-delete-check input {
  width: auto;
}

/* Product card images */
/* Product detail gallery (Marketplace) */
.product-gallery { position: sticky; top: 90px; }
.product-gallery-main {
  width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--r); background: #fff;
  border: 1px solid var(--line); margin-bottom: 0.75rem;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 0.5rem; box-sizing: border-box; }
.product-gallery-empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--olive-soft), var(--bg-2));
  color: var(--ink-faint); font-family: var(--font-display); font-style: italic; font-size: 1rem;
}
.product-gallery-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: #fff;
  transition: border-color 0.2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--olive); }
.gallery-thumb[hidden], .product-gallery-thumbs[hidden] { display: none; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.2rem; box-sizing: border-box; display: block; }

/* Article admin extras */
.table-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.featured-image-current {
  margin-bottom: 1.25rem;
}
.featured-image-current img {
  max-width: 240px;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.5rem;
}

/* Blog featured images (Marketplace) */
.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, var(--olive-soft), var(--bg-2));
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.04); }

.article-detail-image {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  border-radius: var(--r);
  margin-bottom: 2rem;
  background: var(--olive-soft);
  border: 1px solid var(--line);
}
.article-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-loc {
  background: var(--info-bg);
  color: var(--info-text);
  margin-right: 0.3rem;
}

/* Purchase controls (Marketplace) */
.purchase-controls {
  display: flex; gap: 1rem; align-items: flex-end; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.purchase-field { flex: 1; min-width: 130px; }
.purchase-field label {
  display: block; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 0.4rem;
}
.purchase-field select,
.purchase-field input {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: 1rem; font-family: inherit;
  background-color: var(--bg); color: var(--ink);
}
/* Custom-styled dropdown: hide the native arrow and draw our own, set in from the edge */
.purchase-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c5c52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
}
.purchase-field select:focus,
.purchase-field input:focus { outline: none; border-color: var(--olive); background-color: var(--surface); }
.purchase-qty { flex: 0 0 auto; }
.purchase-qty input { width: 88px; }
.add-to-cart {
  width: 100%; background: var(--olive); color: #fff; border: 1.5px solid var(--olive);
  border-radius: var(--r-sm); padding: 0.95rem 1.5rem; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; font-family: var(--font-body);
  transition: all 0.25s;
}
.add-to-cart:hover:not(:disabled) { background: var(--olive-deep); border-color: var(--olive-deep); }
.add-to-cart:disabled { opacity: 0.55; cursor: default; }
.cart-confirm {
  margin-top: 1rem; padding: 0.9rem 1.1rem; background: var(--ok-bg);
  border: 1px solid var(--ok-line); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.cart-confirm-text { color: var(--ok-text-deep); font-weight: 600; }
.cart-confirm-link { color: var(--ok-text-deep); font-weight: 700; white-space: nowrap; }
.cart-confirm-link:hover { color: var(--olive-deep); }

/* Cart link + badge in header */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.cart-link:hover { color: var(--olive); text-decoration: none; }
.cart-icon { display: block; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--olive);
  color: var(--surface);
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Cart page */
.cart-page {
  max-width: 860px;
  margin: 2rem auto;
  padding-bottom: 4rem;
}
.cart-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.cart-empty {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.cart-items {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0.5rem 1.4rem; margin-bottom: 1.5rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
  box-sizing: border-box;
  display: block;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cart-item-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item-name:hover { color: var(--olive); }
.cart-item-variant {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.cart-item-unit {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.cart-qty-input {
  width: 60px;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: inherit;
  text-align: center;
  background: var(--bg);
}
.cart-qty-input:focus { outline: none; border-color: var(--olive); background: var(--surface); }
.cart-item-qty-form {
  display: flex;
  align-items: center;
  margin: 0;
}
.cart-item-line {
  font-weight: 600;
  white-space: nowrap;
}
.cart-item-remove-form {
  margin: 0;
}
.cart-summary {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem 1.6rem;
}
.cart-total {
  font-size: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  width: 100%; justify-content: space-between;
}
.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--olive-deep);
}
.cart-summary .btn-primary, .cart-summary .btn-secondary { width: auto; display: inline-flex; align-items: center; }
.checkout-placeholder {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.9rem;
}

/* Checkout */
.checkout-page { max-width: 1080px; margin: 2rem auto; padding-bottom: 4rem; }
.checkout-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-actions { grid-column: 1; }
.checkout-form .form-section { margin-bottom: 1.25rem; }
.checkout-form .form-section legend { display: flex; align-items: center; gap: 0.5rem; }
.radio-inline { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 1.5rem; font-weight: 500; cursor: pointer; }
.radio-inline input, .radio-block input { accent-color: var(--olive); width: 17px; height: 17px; }
.radio-block {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 0.6rem; transition: border-color 0.2s, background 0.2s;
}
.radio-block:hover { border-color: var(--olive-line); background: var(--olive-soft); }
.radio-block:has(input:checked) { border-color: var(--olive); background: var(--olive-soft); }
.checkout-summary {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.7rem; position: sticky; top: 90px;
}
.checkout-summary h2 { margin-top: 0; font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 1rem; }
.summary-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; padding: 0.4rem 0; color: var(--ink-soft); border-bottom: 1px dotted var(--line); }
.summary-line { display: flex; justify-content: space-between; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.summary-total { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--olive-deep); border-top: 2px solid var(--line-2); margin-top: 0.3rem; padding-top: 0.7rem; }
#summary-total { font-weight: 600; }
.shipping-message {
  margin-top: 1rem; padding: 0.9rem 1rem; background: var(--warn-bg); border: 1px solid var(--gold);
  border-radius: var(--r-sm); font-size: 0.9rem; color: var(--gold-deep);
}

/* Checkout success / cancel (Marketplace) */
.checkout-success {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
  text-align: center;
}
.checkout-success h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.4rem 0 0.6rem; }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--olive-soft); color: var(--olive);
  border: 1px solid var(--olive-line);
  font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem;
}
.cancel-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--warn-bg); color: var(--gold-deep);
  border: 1px solid var(--gold);
  font-size: 1.9rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem;
}
.success-ref { font-size: 1.05rem; color: var(--ink-soft); }
.success-ref strong { color: var(--ink); }
.success-details, .payment-instructions {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem 1.7rem; margin: 1.6rem 0; box-shadow: var(--shadow-sm);
}
.success-details h2, .payment-instructions h2 {
  margin-top: 0; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem;
}
.bank-details {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 1.1rem 1.2rem; margin: 1rem 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.9; font-size: 0.9rem; color: var(--ink);
}
.bank-note { font-size: 0.88rem; color: var(--ink-faint); }
.checkout-success .btn { margin-top: 0.6rem; }

/* Order admin */
.order-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.order-filters a {
  padding: 0.4rem 0.85rem; border-radius: 6px; font-size: 0.88rem;
  background: var(--line-soft); color: var(--ink-soft); text-decoration: none;
}
.order-filters a.active { background: var(--olive); color: var(--surface); }
.badge-status { text-transform: capitalize; }
.badge-pending { background: var(--cream-2); color: var(--gold-deep); }
.badge-paid { background: var(--ok-bg); color: var(--ok-text); }
.badge-shipped { background: var(--info-bg); color: var(--info-text); }
.badge-delivered { background: var(--ok-bg); color: var(--ok-text-deep); }
.badge-cancelled { background: var(--err-bg); color: var(--err-text); }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.order-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem;
}
.order-card h2 { font-size: 1rem; margin: 1rem 0 0.5rem; }
.order-card h2:first-child { margin-top: 0; }
.order-card p { margin: 0.25rem 0; }
.order-address, .order-notes {
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0.75rem;
  font-family: inherit; white-space: pre-wrap; margin: 0;
}
.status-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.status-form select { padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 5px; font-family: inherit; }

.export-form { display: flex; gap: 0.5rem; align-items: center; }
.export-form input[type="month"] {
  padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 5px; font-family: inherit;
}

/* ===== Product detail + cart + checkout responsive ===== */
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .product-gallery { position: static; }
  .purchase-controls { flex-direction: column; align-items: stretch; }
  .purchase-qty input { width: 100%; }

  /* Checkout: summary drops below the form */
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  /* Cart items reflow to a compact two-row layout */
  .cart-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "img info line"
      "img qty  remove";
    gap: 0.5rem 1rem;
    align-items: center;
  }
  .cart-item-image { grid-area: img; width: 64px; height: 64px; }
  .cart-item-info { grid-area: info; }
  .cart-item-line { grid-area: line; text-align: right; }
  .cart-item-qty-form { grid-area: qty; }
  .cart-item-remove-form { grid-area: remove; text-align: right; }
}

/* ===== Stage 5a public pages — responsive ===== */
@media (max-width: 860px) {
  .article-list { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
  .search-form-large { flex-direction: column; }
  .search-form-large button { padding: 0.85rem; }
  .error-page { padding: 4rem 0 4.5rem; }
  .article-detail, .page-detail { padding-top: 1rem; }
  .checkout-success { padding-top: 1.5rem; }
}

/* ===== Small-screen spacing + admin variant grid =====
   Replaces a stale "carried-over responsive" block that was disabled by a
   broken comment and, where it still applied (<=640px), re-laid-out the
   Marketplace header as a grid and forced the product grid to one column.
   Header / hero / product-grid / detail-page responsive behaviour is handled
   by the Marketplace layers earlier in this file; only the non-conflicting
   container, footer, and admin variant-grid rules are kept here. */
@media (max-width: 960px) {
  .container { padding: 0 1.25rem; }
}
@media (max-width: 720px) {
  .variant-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .site-footer { padding: 2rem 0 1.5rem; }
}

/* ============================================================
   Admin shell (Stage 5b) — slim top bar + nav, no customer chrome
   ============================================================ */
.admin-body { background: var(--bg); }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.admin-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 62px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.admin-brand:hover { text-decoration: none; color: var(--ink); }
.admin-brand-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  background: var(--olive-soft);
  border: 1px solid var(--olive-line);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.admin-topnav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.admin-topnav-link {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}
.admin-topnav-link:hover {
  text-decoration: none;
  color: var(--olive-deep);
  background: var(--olive-soft);
}
.admin-topnav-link.is-active {
  color: var(--olive-deep);
  background: var(--olive-soft);
}

.admin-topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.admin-topbar-email {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.admin-logout-form { margin: 0; }
.admin-logout-btn {
  background: transparent;
  border: 1.5px solid var(--line-2);
  color: var(--ink-soft);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-logout-btn:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: #fff;
}

.admin-main { padding: 0 1.5rem; }

/* Auth (login) screen */
.admin-auth-body { background: var(--bg); }
.admin-auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

/* Editorial eyebrow + display headings on admin page headers */
.admin-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--olive);
}
.admin-page-header h1 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Dashboard quick-access cards */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}
.admin-card:hover {
  text-decoration: none;
  border-color: var(--olive-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.admin-card-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.admin-card-go {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--olive);
}
.admin-card .ar { display: inline-block; transition: transform 0.2s; }
.admin-card:hover .ar { transform: translateX(3px); }

/* Admin shell — responsive */
@media (max-width: 700px) {
  .admin-topbar-inner { padding: 0.6rem 1.1rem; min-height: 0; }
  .admin-topbar-user { width: 100%; margin-left: 0; justify-content: space-between; padding-top: 0.2rem; }
  .admin-main { padding: 0 1.1rem; }
  .order-detail-grid { grid-template-columns: 1fr; }
}
.coming-soon-note {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--olive, #6b7a3a);
}
.add-to-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ===== Speedy office widget ===== */
.speedy-widget-mount { margin-top: .5rem; }
.speedy-iframe {
  width: 100%;
  height: 520px;
  border: 1px solid var(--line, #e0d8c8);
  border-radius: 10px;
  background: #fff;
}
.speedy-widget-hint { margin: .5rem 0 0; font-size: .85rem; color: var(--muted, #8a7f6a); }
.speedy-chosen {
  margin-bottom: .6rem; padding: .7rem .9rem;
  background: var(--olive, #5d6a34); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: .95rem;
}

/* ===== Privacy consent checkbox ===== */
.consent-field { margin: 1rem 0; }
.consent-label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .92rem; line-height: 1.45; }
.consent-label input[type="checkbox"] { margin-top: .2rem; flex-shrink: 0; }
.consent-field.has-error .consent-label { color: var(--err, #b3261e); }
.consent-label a { color: var(--olive, #5d6a34); text-decoration: underline; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #2a2a26; color: #f3efe6;
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto; padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner-text { margin: 0; font-size: .85rem; line-height: 1.5; flex: 1 1 320px; }
.cookie-banner-text a { color: #d8e0b0; text-decoration: underline; }
.cookie-banner-btn {
  flex-shrink: 0; padding: .55rem 1.3rem; border: none; border-radius: 8px;
  background: var(--olive, #5d6a34); color: #fff; font-weight: 600; cursor: pointer;
}
.cookie-banner-btn:hover { filter: brightness(1.08); }

/* ============================================
   Gallery page (2-column grid + lightbox)
   ============================================ */
.gallery-page { max-width: 1000px; margin: 0 auto; padding: 2.2rem 1.2rem 3rem; }
.gallery-header { text-align: center; margin-bottom: 1.6rem; }
.gallery-header h1 { font-family: var(--font-display); color: var(--olive-deep); margin: 0; }
.gallery-empty { text-align: center; color: var(--ink-soft); padding: 2rem 0; }

.gallery-grid { columns: 2; column-gap: 14px; }
.gallery-item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: #fff; cursor: pointer;
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .28s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Lightbox */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 16, 12, .92);
  display: flex; align-items: center; justify-content: center;
}
.gallery-lightbox[hidden] { display: none; }
.glb-img {
  max-width: 90vw; max-height: 88vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 12px 48px rgba(0, 0, 0, .55);
}
.glb-close, .glb-nav {
  position: absolute; background: rgba(255, 255, 255, .14); color: #fff;
  border: none; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; transition: background .15s;
}
.glb-close:hover, .glb-nav:hover { background: rgba(255, 255, 255, .28); }
.glb-close { top: 18px; right: 18px; font-size: 2rem; }
.glb-nav { top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.glb-prev { left: 18px; }
.glb-next { right: 18px; }

@media (max-width: 560px) {
  .gallery-grid { column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .glb-close, .glb-nav { width: 42px; height: 42px; font-size: 1.7rem; }
  .glb-close { top: 12px; right: 12px; }
  /* Move prev/next below the image so they don't cover it; shrink image to open a bottom band */
  .glb-img { max-height: 76vh; }
  .glb-nav { top: auto; bottom: 16px; transform: none; }
  .glb-prev { left: 10px; }
  .glb-next { right: 10px; }
}

/* ============================================
   Rich content inside blog article bodies
   (tables / buttons / lists / images from pasted HTML)
   ============================================ */
.article-body h2, .article-body h3 {
  font-family: var(--font-display); color: var(--olive-deep);
  margin: 1.9rem 0 0.8rem; line-height: 1.25;
}
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.4rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r); }
.article-body a { color: #c0392b; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: #a93226; }

/* Tables (e.g. the lab-results table) */
.article-body .table-wrap { overflow-x: auto; margin: 1.6rem 0; }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 1.6rem 0;
}
.article-body th, .article-body td {
  padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-body th { background: var(--olive-soft); color: var(--olive-deep); font-weight: 700; }
.article-body tr:last-child td { border-bottom: none; }

/* CTA / download buttons */
.article-body .btn, .article-body button, .article-body a.button {
  display: inline-block; padding: 0.7rem 1.5rem; margin: 0.4rem 0;
  background: var(--olive); color: #fff; border: none; border-radius: var(--r);
  text-decoration: none; font-weight: 600; cursor: pointer; transition: background .15s;
}
.article-body .btn:hover, .article-body button:hover, .article-body a.button:hover {
  background: var(--olive-deep); color: #fff;
}

@media (max-width: 560px) {
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== Compact mobile header: no top bar, no logo quote, single tidy row ===== */
@media (max-width: 860px) {
  .topbar { display: none; }                 /* drop the marketing bar on mobile */
  .logo .logo-tagline { display: none; }     /* logo = name only, no quote */
  .logo { font-size: 1.3rem; }
  .site-header .container {
    gap: 0.6rem;
    padding-top: 0.7rem;                      /* shrink header height */
    padding-bottom: 0.7rem;
  }
  .header-actions { gap: 0.7rem; margin-left: auto; }
  .cart-link { margin-right: 0.5rem; }   /* nudge cart left so the item-count badge doesn't touch the flags */
}
@media (max-width: 440px) {
  /* Tighten further so burger + logo + cart + flags fit on ONE row on phones */
  .logo { font-size: 1.1rem; }
  .site-header .container { gap: 0.45rem; }
  .header-actions { gap: 0.5rem; }
  .lang-switcher { gap: 0.4rem; }
}

/* Cream category dropdown on mobile (was white --surface, clashed with the cream header) */
@media (max-width: 860px) {
  .dropdown-panel { background: var(--bg); }
}
/* ===== 404: search + category shortcuts ===== */
.error-page .error-hint { font-size: 1rem; margin-bottom: 1rem; }
.error-search { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto 1.5rem; }
.error-search input {
  flex: 1; min-width: 0; padding: .7rem .9rem; font: inherit;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.error-categories { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.error-categories a {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.error-categories a:hover { border-color: var(--olive); color: var(--olive); }

/* ===== Unit price (per litre / per kg) ===== */
.unit-price { display: block; margin-top: .35rem; font-size: .9rem; color: var(--ink-soft); }
.success-address { white-space: pre-line; }

/* ===== Topbar with phone ===== */
.topbar { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar-phone { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.topbar-phone:hover { text-decoration: underline; }

/* ===== Hero image (real <img> so the browser loads it first) ===== */
.home-hero .hero-visual { position: relative; overflow: hidden; }
.home-hero .hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ===== Home: story + lab block ===== */
.home-about { max-width: 920px; margin: 0 auto; padding: 1rem 0 4.5rem; display: grid; gap: 2.75rem; }
.about-block h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-bottom: .8rem; }
.about-block p { color: var(--ink-soft); line-height: 1.7; margin-bottom: .8rem; max-width: 68ch; }
.about-block a { color: var(--olive); }
.about-lab { background: var(--olive-soft); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; }
.lab-stats { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lab-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.lab-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--olive-deep); line-height: 1.1; margin-bottom: .35rem; }
.lab-stats span { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; display: block; }
.lab-source { font-size: .9rem; margin: 0; }
.about-how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.video-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; cursor: pointer; background: #000;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.72); border-radius: 12px;
}
.video-play::after {
  content: ""; position: absolute; left: 27px; top: 14px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play { background: #c00; }
.video-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }
@media (max-width: 760px) {
  .lab-stats { grid-template-columns: 1fr 1fr; }
  .about-how { grid-template-columns: 1fr; }
  .about-lab { padding: 1.25rem; }
}
/* Mobile: keep only the phone in the top bar (tap to call) */
@media (max-width: 860px) {
  .topbar { display: flex; padding: .4rem 1rem; }
  .topbar-quote { display: none; }
}

/* ===== Header on one line (desktop) =====
   Menu items never wrap; space is freed step by step as the screen narrows. */
.main-nav { gap: 1.25rem; }
.main-nav > a, .nav-trigger { white-space: nowrap; }
.site-header .container { gap: 1.2rem; }
.header-actions { gap: 1rem; }
.logo .logo-tagline { max-width: 300px; }
.search-form-header input[type="search"] { width: 120px; }
@media (max-width: 1240px) and (min-width: 861px) {
  .logo .logo-tagline { display: none; }        /* quote hidden, name stays */
}
@media (max-width: 1160px) and (min-width: 861px) {
  .search-form-header { display: none; }        /* search moves out of the bar */
  .main-nav { gap: 1rem; }
}
@media (max-width: 980px) and (min-width: 861px) {
  .main-nav { gap: .8rem; }
  .main-nav > a, .nav-trigger { font-size: .85rem; }
  .logo { font-size: 1.35rem; }
  .lang-switcher { gap: .3rem; }
}

/* ===== Footer: company details ===== */
.footer-company {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  padding: .5rem 0 1.5rem;
  font-size: .86rem; line-height: 1.6; color: var(--ink-soft);
}
.footer-company strong { color: var(--ink); }
.footer-company a { color: var(--ink-soft); }
.footer-company a:hover { color: var(--olive); }
.footer-legal { text-align: center; font-size: .82rem; color: var(--ink-faint); margin: 0 0 .5rem; }
.footer-legal a { color: var(--ink-faint); text-decoration: underline; }
@media (max-width: 760px) {
  .footer-company { grid-template-columns: 1fr; text-align: center; }
}

/* ===== Cookie banner: two choices ===== */
.cookie-banner-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner-btn-secondary { background: transparent !important; color: inherit !important; border: 1px solid currentColor !important; }

/* ===== Age gate ===== */
.age-gate {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(34, 31, 23, .72); backdrop-filter: blur(6px); padding: 1rem;
}
.age-gate[hidden] { display: none; }
html.age-gate-open { overflow: hidden; }
.age-gate-box {
  background: var(--surface); border-radius: 16px; padding: 2rem 1.75rem; max-width: 440px; width: 100%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.age-gate-badge {
  display: inline-block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--olive-deep); border: 2px solid var(--olive); border-radius: 999px; padding: .2rem .9rem; margin-bottom: .8rem;
}
.age-gate-box h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.age-gate-box p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.age-gate-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.age-gate-actions a { text-decoration: none; }
.age-gate-actions .cookie-banner-btn { font: 600 .95rem var(--font-body); display: inline-flex; align-items: center; }

/* ===== Symmetric footer: links row, company, certificates — all centred ===== */
.site-footer .footer-main { display: flex; justify-content: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.site-footer .footer-nav {
  display: flex !important; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem;
  grid-auto-flow: unset; grid-template-rows: none;
}
.footer-company { text-align: center; }
.site-footer .footer-certs { align-items: center; text-align: center; margin: .5rem 0 1.25rem; }

/* ===== Home story: text uses the full column, same edges as the lab box ===== */
.home-about .about-block p { max-width: none; }
.home-about .about-block:not(.about-lab):not(.about-how) { text-align: center; }
.home-about .about-how p { max-width: none; }

/* ===== Cookie banner: centred ===== */
.cookie-banner-inner { justify-content: center; text-align: center; }
.cookie-banner-text { flex: 0 1 640px; }
@media (min-width: 1100px) {
  .cookie-banner-text { flex: 0 1 auto; white-space: nowrap; }
}
.about-lab h2, .about-lab .lab-source { text-align: center; }
@media (min-width: 1240px) {
  .cookie-banner-inner { flex-wrap: nowrap; gap: 1.5rem; }
  .cookie-banner-actions { flex-wrap: nowrap; }
}

/* ===== Product page ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--ink-faint); margin: 1.5rem 0 1.25rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--olive); }
.breadcrumbs [aria-current] { color: var(--ink-faint); }

.size-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .35rem 0 .25rem; }
.size-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 92px;
  padding: .55rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s;
}
.size-chip:hover { border-color: var(--olive); }
.size-chip.active { border-color: var(--olive); box-shadow: 0 0 0 2px var(--olive) inset; background: var(--olive-soft); }
.size-chip-size { font-weight: 700; font-size: .95rem; }
.size-chip-price { font-size: .9rem; }
.size-chip-unit { font-size: .75rem; color: var(--ink-faint); }

.pdp-shipping { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.pdp-shipping-title { font-weight: 700; color: var(--ink); margin: 0 0 .35rem; font-size: .9rem; }
.pdp-shipping ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.pdp-shipping li::before { content: "✓ "; color: var(--olive); font-weight: 700; }

.product-body h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.product-body ul { margin: 0 0 1rem 1.1rem; padding: 0; display: grid; gap: .45rem; color: var(--ink-soft); line-height: 1.6; }
.product-body li strong { color: var(--ink); }

.related-products { margin: 3rem 0 4rem; }
.related-products > h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 1.2rem; }
.related-products .product-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .related-products .product-grid { grid-template-columns: repeat(2, 1fr); } }

.sticky-buy { display: none; }
@media (max-width: 760px) {
  .sticky-buy:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: .8rem; align-items: center;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }
  .sticky-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .sticky-buy-name { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy-price { font-weight: 700; }
  .sticky-buy .add-to-cart { width: auto; padding: .7rem 1.1rem; margin: 0; }
}
#variant-select.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0; pointer-events: none; }
.size-chip:focus:not(.active) { box-shadow: none; } .size-chip:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

/* Description below the gallery + purchase box, full width, comfortable reading measure */
.product-body-full { max-width: 860px; margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.product-body-full > h2:first-child { margin-top: 0; font-size: 1.5rem; text-align: center; }

/* ===== Label information ===== */
.label-info { max-width: 860px; margin: 2rem auto 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 1.25rem; }
.label-info summary { cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.label-info summary::-webkit-details-marker { display: none; }
.label-info summary::after { content: "+"; font-size: 1.4rem; color: var(--olive); }
.label-info[open] summary::after { content: "–"; }
.label-info h3 { font-size: 1rem; margin: 1rem 0 .4rem; color: var(--ink); }
.label-info table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .92rem; margin-bottom: .5rem; }
.label-info th, .label-info td { text-align: left; padding: .45rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.label-info th { font-weight: 600; color: var(--ink); width: 45%; }
.label-info td { color: var(--ink-soft); }
.label-info tr.label-sub th { font-weight: 400; padding-left: 1.25rem; color: var(--ink-soft); }
.label-info .label-note { color: var(--ink-faint); font-size: .85rem; }
.label-info table:last-child { margin-bottom: 1.25rem; }
@media (max-width: 600px) { .label-info { padding: 0 .9rem; } .label-info table { font-size: .86rem; } .label-info th { width: 48%; } }
/* Delivery price table (Direx zones) */
.rates-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.rates-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.rates-table th, .rates-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rates-table th { font-weight: 600; color: var(--ink); background: var(--surface); }
.rates-table td { color: var(--ink-soft); }
.rates-table td.num, .rates-table th:nth-child(n+4) { text-align: right; white-space: nowrap; }
.rates-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 700px) {
  .rates-table { min-width: 0; }
  .rates-table thead { display: none; }
  .rates-table, .rates-table tbody, .rates-table tr, .rates-table td { display: block; width: 100%; }
  .rates-table tr { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; margin-bottom: .75rem; background: var(--surface); }
  .rates-table td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right !important; white-space: normal !important; }
  .rates-table td::before { content: attr(data-label); font-weight: 600; color: var(--ink); text-align: left; flex-shrink: 0; }
  .rates-table td:nth-child(2) { display: block; text-align: left !important; }
  .rates-table td:nth-child(2)::before { display: block; }
}
.page-detail-body ul { list-style: disc; padding-left: 1.3rem; margin: .5rem 0 1rem; } .page-detail-body li { margin: .2rem 0; }
.page-detail-body .page-video { display: block; width: 100%; max-width: 720px; margin: 1.5rem auto; aspect-ratio: 16 / 9; }
.page-detail-body .video-facade.page-video img { width: 100%; height: 100%; object-fit: cover; }
/* Photos inside info pages ([[img:...]] blocks) */
.page-photos { display: grid; gap: .75rem; margin: 1.25rem 0 2rem; }
.page-photos-2 { grid-template-columns: 1fr 1fr; }
.page-photos-3 { grid-template-columns: repeat(3, 1fr); }
.page-photos figure { margin: 0; }
.page-photos img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; display: block; aspect-ratio: 4 / 3; }
.page-photos-1 img { aspect-ratio: auto; max-height: 460px; }
.page-photos figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .35rem; text-align: center; }
@media (max-width: 640px) { .page-photos-3 { grid-template-columns: 1fr 1fr; } .page-photos-3 figure:first-child { grid-column: 1 / -1; } }
.page-photos + h2, .page-photos + .page-video { margin-top: 2rem; }
/* Contacts: Google map (loads after consent or on click) */
.page-map { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; margin: 1rem 0 .4rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.page-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.page-map-load { width: 100%; height: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; font: inherit; color: var(--ink);
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, rgba(85,107,47,.06) 12px, rgba(85,107,47,.06) 24px); }
.page-map-load strong { font-size: 1.05rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--olive); color: #fff; }
.page-map-load span { font-size: .85rem; color: var(--ink-faint); }
.page-map-link { margin-top: 0; font-size: .92rem; }
@media (max-width: 640px) { .page-map { aspect-ratio: 4 / 3; } }
.invoice-section .invoice-toggle { margin: 0 0 .5rem; font-weight: 600; } .invoice-section #invoice-fields { margin-top: .75rem; }
/* Admin: tracking number + shipped email */
.status-form .tracking-field { margin: .75rem 0 .5rem; }
.status-form .tracking-field label { display: block; font-size: .85rem; margin-bottom: .25rem; }
.status-form .tracking-field input { width: 100%; max-width: 280px; }
.status-form .notify-field { display: flex; gap: .4rem; align-items: flex-start; font-size: .85rem; margin: .25rem 0 .75rem; }
.flash-ok { color: #2e6b2e; } .flash-err { color: #b3261e; }

/* ---- Phones: search icon + tap targets of at least 44 px (01.10.2026) ---- */
.search-link { display: none; color: var(--ink); }
@media (max-width: 860px) {
  .search-link { display: inline-flex; }
  .menu-toggle, .search-link, .site-header .cart-link {
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin: 0;
  }
  .site-header .header-actions { gap: 0.15rem; }
  .lang-switcher { gap: 0.1rem; margin-left: 0.35rem; }
  .lang-switcher a { min-height: 44px; min-width: 38px; align-items: center; justify-content: center; padding: 0 2px; }
  .site-header .cart-badge { top: 4px; right: 2px; }
}

/* Lab results box next to the buy button */
.pdp-lab { display: block; margin-top: 1rem; padding: .75rem .95rem; border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: var(--r-sm); background: var(--olive-soft); color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.45; }
.pdp-lab:hover { border-color: var(--olive); text-decoration: none; }
.pdp-lab-title { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive-deep); }
.pdp-lab-figs { display: block; margin-top: .15rem; }
.pdp-lab-link { display: block; margin-top: .2rem; color: var(--olive); font-weight: 600; font-size: .85rem; }

/* Withdrawal function */
.withdraw-page { max-width: 720px; }
.withdraw-intro { color: var(--ink-soft); margin-bottom: 1.2rem; }
.withdraw-form small { display: block; color: var(--ink-faint); font-size: .8rem; margin-top: .25rem; }
.withdraw-form .radio-row { display: flex; gap: .5rem; align-items: center; padding: .35rem 0; cursor: pointer; }
.withdraw-form textarea { width: 100%; }
.withdraw-submit { margin-top: .5rem; }
.withdraw-info { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }
.withdraw-done { background: var(--olive-soft); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.withdraw-done h2 { margin-top: 0; }
.withdraw-summary { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1rem 0; }
.withdraw-summary dt { color: var(--ink-soft); }
.withdraw-summary dd { margin: 0; font-weight: 600; }
.withdraw-cta { margin: 1rem 0 1.4rem; }
.withdraw-cta .btn-primary { display: inline-block; text-decoration: none; }
.order-withdrawal { border: 2px solid var(--err-line); background: var(--err-bg); }
.page-detail-body .withdraw-cta a.btn-primary,
.page-detail-body .withdraw-cta a.btn-primary:hover { color: #fff; text-decoration: none; width: auto; display: inline-flex; padding: .8rem 1.4rem; font-size: .9rem; }
.withdraw-info a { color: var(--olive); font-weight: 600; }

/* Readability / tap targets (Lighthouse, 01.10.2026) */
.lab-source a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.footer-company a, .site-footer .footer-legal a { display: inline-block; padding: 4px 0; min-height: 24px; }

/* Phones: keep burger + logo + search + cart + flags on ONE row (01.10.2026) */
@media (max-width: 480px) {
  .site-header .container { gap: 0.2rem; padding-left: 12px; padding-right: 12px; }
  .logo { font-size: 1.05rem; }
  .menu-toggle, .search-link, .site-header .cart-link { min-width: 40px; min-height: 40px; }
  .site-header .header-actions { gap: 0; }
  .lang-switcher { gap: 0; margin-left: 0.15rem; }
  .lang-switcher a { min-width: 30px; min-height: 40px; }
  .lang-switcher a svg { width: 24px; height: auto; }
}
@media (max-width: 370px) {
  .logo { font-size: 0.95rem; }
  .menu-toggle, .search-link, .site-header .cart-link { min-width: 36px; }
  .lang-switcher a { min-width: 27px; }
  .lang-switcher a svg { width: 22px; }
}

/* Category page: longer text and FAQ under the products */
.category-seo { max-width: 820px; margin: 3rem auto 0; padding-top: 2.5rem; border-top: 1px solid var(--line); color: var(--ink-soft, inherit); line-height: 1.7; }
.category-seo h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.category-seo h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }
.category-seo p { margin: 0 0 0.9rem; }
.category-seo ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.category-seo li { margin-bottom: 0.45rem; }
.category-seo a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }
.category-faq { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.category-faq summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.category-faq p { margin: 0.6rem 0 0; }

/* Products sold only in the physical shop (no price, no cart) */
.product-price.store-only { font-size: 0.9rem; font-family: inherit; color: var(--ink-soft); font-weight: 600; }
.store-only-box { border: 1px solid var(--line-2); border-radius: var(--r-md, 14px); background: #fffdf8; padding: 1.4rem 1.6rem; margin-top: 1.5rem; line-height: 1.6; }
.store-only-box p { margin: 0 0 0.6rem; }
.store-only-title { font-weight: 700; font-size: 1.1rem; color: var(--olive); }
.store-only-contact { margin-bottom: 0 !important; }
.store-only-contact a { color: var(--olive); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-block; min-height: 24px; }
.pdp-alcohol-note { margin: 1rem 0 0; padding: 0.7rem 0.9rem; border-left: 3px solid var(--olive); background: #f3efe2; font-size: 0.92rem; }

/* Admin: categories list and edit */
.admin-row-link { color: var(--olive); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; margin-right: 0.9rem; }
.admin-saved { background: #eef3e2; border: 1px solid #cfdcb0; color: #3f4a22; padding: 0.7rem 1rem; border-radius: 8px; margin: 0 0 1.2rem; }
