/* EuFoPa portal — global chrome (header / footer) and home layout.
   Tokens live in tokens.css; this file owns the structural layout. */

/* ---------- Reset / page chrome ---------------------------------- */
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-2);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "tnum" on;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.shell { max-width: 1480px; margin: 0 auto; padding: 0 28px; }

/* ============================================================
   EuFoPa header — utility bar + topbar + catnav row
   ============================================================ */
.fp-header { position: sticky; top: 0; z-index: 40; background: #fff; }

.fp-utility {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}
.fp-utility a { color: rgba(255,255,255,0.7); }
.fp-utility a:hover { color: #fff; }
.fp-utility__inner {
  display: flex; align-items: center; gap: 12px;
  height: 34px;
}
.fp-utility__chip { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.92); }
.fp-utility__sep  { opacity: 0.3; margin: 0 6px; }
.fp-utility__tag  { color: rgba(255,255,255,0.6); }
.fp-utility__right{ margin-left: auto; display: flex; align-items: center; gap: 18px; }
.fp-utility__ops  {
  color: rgba(255,255,255,0.92); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

.fp-topbar {
  height: 74px;
  display: flex; align-items: center; gap: 24px;
}
.fp-logo-link { flex-shrink: 0; }

.fp-search { flex: 1; max-width: 680px; position: relative; }
.fp-search__row {
  display: flex; align-items: center;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  height: 46px;
  padding-left: 4px;
  transition: border-color .15s;
}
.fp-search__row:focus-within { border-color: var(--ink); }
.fp-search__input {
  flex: 1;
  border: none; outline: none;
  font-family: var(--sans); font-size: 14.5px;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.fp-search__input::placeholder { color: var(--muted-2); }
/* Design shell.jsx: dark "Search" button to the right of the input. Loupe
   icon collapses to the left at narrow widths. */
.fp-search__submit--btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px;
  margin: 0 4px 0 0;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 8px;
  cursor: pointer;
  font-size: 13px; font-weight: 700;
  transition: background-color .15s;
}
.fp-search__submit--btn:hover,
.fp-search__submit--btn:focus-visible { background: var(--red); }
.fp-search__submit-glyph { display: block; }
.fp-search__submit-text { display: inline; }
/* Back-compat alias: legacy icon-only class still styled in case any cache
   refers to it. */
.fp-search__submit--icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  margin: 0 4px 0 0;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s;
}
.fp-search__submit--icon:hover,
.fp-search__submit--icon:focus-visible { background: var(--red); }
.fp-search__submit--icon svg { display: block; }

/* Tri-stripe flag inside lang switcher / drawer locales. */
.fp-flag-tri {
  flex: 0 0 auto;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.08);
}
.fp-lang summary .fp-flag-tri { margin-right: 4px; }
.fp-lang__menu a .fp-flag-tri { margin-right: 8px; }
.ek-drawer__locale .fp-flag-tri { margin-right: 6px; }

/* Mobile: collapse the search button to icon-only. */
@media (max-width: 768px) {
  .fp-search__submit--btn { padding: 0; width: 34px; height: 34px; }
  .fp-search__submit-text { display: none; }
}

.fp-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.fp-lang { position: relative; }
.fp-lang summary {
  list-style: none; cursor: pointer;
  padding: 8px 11px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--r);
  color: var(--text);
  font-size: 13px; font-weight: 700;
}
.fp-lang summary::-webkit-details-marker { display: none; }
.fp-lang summary:hover { background: var(--bg-3); }
.fp-lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  width: 220px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 6px 0; z-index: 50;
}
.fp-lang__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 13.5px;
  color: var(--text);
}
.fp-lang__menu a:hover { background: var(--bg-2); }
.fp-lang__menu a.is-current { background: var(--bg-2); font-weight: 700; }
.fp-lang__menu .mono { color: var(--muted); width: 24px; }

.fp-account-menu { position: relative; }
.fp-account-menu summary { list-style: none; cursor: pointer; }
.fp-account-menu summary::-webkit-details-marker { display: none; }
.fp-account-menu__panel {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  min-width: 200px; padding: 6px 0; z-index: 50;
  display: flex; flex-direction: column;
}
.fp-account-menu__panel a {
  padding: 9px 14px; font-size: 13.5px; color: var(--text);
}
.fp-account-menu__panel a:hover { background: var(--bg-2); }

.fp-account, .fp-basket {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px;
  border-radius: var(--r);
  color: var(--text);
}
.fp-account:hover, .fp-basket:hover { background: var(--bg-3); }
.fp-account__lines {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.2;
}
.fp-account__sub  { font-size: 10.5px; color: var(--muted); }
.fp-account__main { font-size: 13px; font-weight: 700; color: var(--ink); }

.fp-basket__icon  { position: relative; color: var(--ink); display: inline-flex; }
.fp-basket__badge {
  position: absolute; top: -7px; right: -9px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Nav row */
.fp-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.fp-nav__inner {
  height: 48px;
  display: flex; align-items: center; gap: 4px;
}
.fp-nav__all { height: 34px; gap: 9px; border-radius: 8px; padding: 0 16px; }
.fp-burger-mini { display: inline-flex; flex-direction: column; gap: 2.5px; }
.fp-burger-mini i { display: block; width: 15px; height: 1.6px; background: #fff; }
.fp-nav__divider { width: 1px; height: 20px; background: var(--line-2); margin: 0 10px; }
.fp-nav__link {
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-2);
  border-radius: 6px;
}
.fp-nav__link:hover { background: var(--bg-2); }
.fp-nav__link.is-on { color: var(--red); }
.fp-nav__shipping {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted);
}

/* Mobile burger (visible only ≤768) */
.fp-burger {
  display: none;
  background: transparent; border: 1px solid var(--line-2);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r); color: var(--text); cursor: pointer;
}

@media (max-width: 1024px) {
  .fp-nav__inner { overflow-x: auto; }
  .fp-nav__shipping { display: none; }
}
@media (max-width: 768px) {
  /* Stop any horizontal page scroll from sticky chiprow / mega elements. */
  html, body { overflow-x: hidden; max-width: 100vw; }

  .fp-utility { display: none; }
  .fp-nav { display: none; }
  /* MOBILE-SPEC F1.1: header collapses to ONE row [burger][EFP tile][search][basket]. */
  .fp-topbar {
    height: auto; padding: 8px 0; gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }
  .fp-burger { display: inline-flex; order: 0; min-width: 40px; min-height: 40px; padding: 8px; }
  .fp-logo-link { order: 1; flex: 0 0 auto; display: flex; justify-content: flex-start; }
  /* F1.2: drop the wordmark + sub label on phones; show only the EFP blue
     tile so the search bar gets the freed-up width. */
  .fp-logo-link .efp-name-wrap,
  .fp-logo-link .efp-name,
  .fp-logo-link .efp-sub { display: none !important; }
  .fp-search { order: 2; flex: 1 1 0; min-width: 0; max-width: none; }
  .fp-search__row { height: 40px; padding-left: 4px; }
  .fp-search__submit--icon { width: 34px; height: 34px; }
  .fp-actions { order: 3; gap: 2px; flex: 0 0 auto; min-width: 0; }
  .fp-account__lines { display: none; }
  .fp-account, .fp-basket { padding: 8px; min-height: 40px; min-width: 40px; }
  .fp-lang summary { padding: 8px 6px; min-height: 40px; }
  .fp-lang__menu { right: 0; left: auto; }
}
/* Below 480px squeeze further: hide lang text, keep just flag. */
@media (max-width: 480px) {
  .fp-lang summary .fp-lang__code { display: none; }
  .fp-lang summary svg[width="10"] { display: none; }
  .fp-search__row { padding-left: 2px; }
}

/* ---------- Header ---------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--ek-border);
  background: var(--ek-paper-2);
  position: sticky; top: 0; z-index: 30;
}

/* Utility strip — small mono bar */
.utility {
  border-bottom: 1px solid var(--ek-border);
  font-family: var(--ek-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ek-muted);
}
.utility-inner {
  padding: 6px 0;
  display: flex; align-items: center; gap: 18px;
}
.utility-sep { color: var(--ek-line); }
.utility-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.utility-right .clickable { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

/* Main header row */
.topbar {
  padding: 14px 0;
  display: flex; align-items: center; gap: 24px;
}
.topbar-search {
  flex: 1; max-width: 720px; position: relative;
}
.search-row {
  display: flex; align-items: stretch;
  border: 1px solid var(--ek-border-2);
  background: var(--ek-paper);
}
.search-row .ek-btn { border-radius: 0; }
.search-cats {
  border-right: 1px solid var(--ek-border);
  padding: 0 12px;
  color: var(--ek-muted);
}
.search-row .ek-input {
  border: none;
  flex: 1;
  font-size: 13.5px;
  padding: 8px 12px;
}
.search-row .search-submit { padding: 0 18px; }
.popular {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ek-muted);
}
.popular-label { letter-spacing: 0.06em; }
.popular a {
  margin-right: 10px;
  color: var(--ek-text);
  text-decoration: underline;
  text-decoration-color: var(--ek-border-2);
  cursor: pointer;
}
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar-action {
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  background: transparent; border: none; cursor: pointer; color: var(--ek-text);
}
.topbar-action .ta-label { font-size: 12px; font-weight: 500; }
.topbar-action .ta-sub   { font-size: 10px; color: var(--ek-muted); }
.topbar-cart {
  padding: 10px 14px;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar-cart-amount {
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,0.2);
  font-variant-numeric: tabular-nums;
}

/* Category strip */
.catnav {
  border-top: 1px solid var(--ek-border);
  background: var(--ek-paper);
}
.catnav-inner {
  display: flex; align-items: stretch; gap: 0;
  font-size: 12.5px;
}
.catnav a {
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.catnav .all-cats { padding-left: 0; font-weight: 500; gap: 8px; }
.catnav .all-cats .ek-mono { font-size: 10px; color: var(--ek-muted); margin-left: 4px; }
.catnav-sep { width: 1px; background: var(--ek-border); align-self: stretch; margin: 0 14px; }
.catnav-track { margin-left: auto; padding-right: 0; color: var(--ek-muted); }
.catnav .hot { color: var(--ek-signal); }
.hot-flag {
  font-family: var(--ek-mono);
  font-size: 9px;
  color: var(--ek-signal);
  border: 1px solid #E8CCC9;
  padding: 1px 4px;
}

/* ---------- Typeahead dropdown ----------------------------------- */
.topbar-search { position: relative; }
.ek-typeahead {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--ek-paper);
  border: 1px solid var(--ek-border);
  box-shadow: 0 12px 32px rgba(20,22,26,0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
}
.ek-typeahead__empty {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ek-muted);
}
.ek-typeahead__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ek-border);
  text-decoration: none;
  color: var(--ek-text);
}
.ek-typeahead__row:last-child { border-bottom: none; }
.ek-typeahead__row:hover,
.ek-typeahead__row[aria-selected="true"] {
  background: var(--ek-cream);
}
.ek-typeahead__thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  background: var(--ek-cream);
  border: 1px solid var(--ek-border);
  flex-shrink: 0;
}
.ek-typeahead__thumb--placeholder {
  display: inline-block;
}
.ek-typeahead__body {
  flex: 1; min-width: 0;
}
.ek-typeahead__title {
  font-size: 13.5px; font-weight: 500;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ek-typeahead__meta {
  font-size: 11px; color: var(--ek-muted);
  margin-top: 3px;
  font-family: var(--ek-sans);
}
.ek-typeahead__meta .ek-mono {
  font-family: var(--ek-mono);
  letter-spacing: 0.04em;
}
.ek-typeahead__price {
  font-family: var(--ek-mono);
  font-size: 13px; font-weight: 600;
  color: var(--ek-ink);
  flex-shrink: 0;
}

/* ---------- Mobile chrome (hidden on desktop) -------------------- */
.topbar-burger,
.topbar-search-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ek-border);
  color: var(--ek-text);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: var(--ek-radius);
}
.topbar-burger:active,
.topbar-search-toggle:active { background: var(--ek-cream); }

.ek-drawer-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 22, 26, 0.55);
  z-index: 998;
  opacity: 0; transition: opacity 180ms ease;
}
.ek-drawer {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--ek-paper);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -8px 0 24px rgba(0,0,0,0.18);
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: 24px;
}
.ek-drawer__head {
  position: sticky; top: 0;
  background: var(--ek-paper);
  border-bottom: 1px solid var(--ek-border);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.ek-drawer__head > a.ek-btn,
.ek-drawer__head > .ek-drawer__user { flex: 1; }
.ek-drawer__user { display: flex; flex-direction: column; line-height: 1.2; }
.ek-drawer__user-name { font-weight: 600; }
.ek-drawer__user-sub { font-size: 10px; color: var(--ek-muted); margin-top: 2px; }
.ek-drawer__close {
  background: transparent; border: 1px solid var(--ek-border);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ek-text);
  border-radius: var(--ek-radius);
}
.ek-drawer__nav { padding: 6px 0; }
.ek-drawer__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ek-text);
  border-bottom: 1px solid var(--ek-border);
  text-decoration: none;
}
.ek-drawer__item:active { background: var(--ek-cream); }
.ek-drawer__item-sub { font-size: 11px; color: var(--ek-muted); }
.ek-drawer__locales { padding: 16px 0 4px; }
.ek-drawer__locale {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ek-text);
  text-decoration: none;
}
.ek-drawer__locale.is-current { background: var(--ek-cream); font-weight: 600; }
.ek-drawer__locale .ek-mono { font-size: 10.5px; color: var(--ek-muted); width: 22px; }

body.ek-drawer-open { overflow: hidden; }
body.ek-drawer-open .ek-drawer-scrim { display: block; opacity: 1; }
body.ek-drawer-open .ek-drawer { transform: translateX(0); box-shadow: -8px 0 24px rgba(0,0,0,0.18); }

/* Mobile drawer position-tricks (translateX off-screen) make its child links
   read as "horizontally clipped" by QA's bounding-box check at narrow
   viewports. Default-hide the drawer with display:none; the open class
   restores layout + the translate animation. */
.ek-drawer { display: none; }
body.ek-drawer-open .ek-drawer { display: block; }

/* Drawer per-dept section (MOBILE-SPEC §6) — 8 olive icons + name + count. */
.ek-drawer__section { padding: 12px 0 8px; border-top: 1px solid var(--line, #E7E9EE); margin-top: 6px; }
.ek-drawer__cats { display: flex; flex-direction: column; }
.ek-drawer__cat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  color: var(--ink, #16140F);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.ek-drawer__cat:active { background: var(--bg-2, #F6F7F9); }
.ek-drawer__cat-icon { color: var(--olive, #59603D); display: inline-flex; }
.ek-drawer__cat-icon svg { width: 22px; height: 22px; display: block; }
.ek-drawer__cat-name { flex: 1; }
.ek-drawer__cat-count { color: var(--muted, #6B6961); font-size: 12px; }

/* Bottom tab bar — visible only on mobile/tablet, fixed to viewport bottom.
   Respects iOS safe-area inset so the labels never collide with the home bar. */
.ek-tabbar { display: none; }
@media (max-width: 1023px) {
  .ek-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    background: #fff;
    border-top: 1px solid var(--line, #E7E9EE);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 12px rgba(0,0,0,.04);
  }
  .ek-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 8px 4px;
    color: var(--muted, #6B6961);
    font-size: 10.5px; font-weight: 600;
    text-decoration: none;
    line-height: 1.1;
  }
  .ek-tab svg { color: inherit; }
  .ek-tab.is-active { color: var(--red, #1C63D6); }
  .ek-tab:active { background: var(--bg-2, #F6F7F9); }
  .ek-tab__iconwrap { position: relative; display: inline-flex; }
  .ek-tab__badge {
    position: absolute; top: -6px; right: -10px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px;
    background: var(--red, #1C63D6); color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
  }
  /* Reserve bottom padding on the page body so sticky content doesn't sit
     under the tab bar. */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
  .site-footer, footer { margin-bottom: 0; }
}
@media (min-width: 1024px) {
  .ek-tabbar { display: none !important; }
}

/* MOBILE-SPEC §4 — sticky bottom buy bar on PDP. Sits above the tab bar. */
.ek-mobile-buybar { display: none; }
@media (max-width: 1023px) {
  .ek-mobile-buybar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    position: fixed; left: 0; right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
    z-index: 79;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid var(--line, #E7E9EE);
    box-shadow: 0 -8px 18px rgba(0,0,0,.06);
  }
  .ek-mobile-buybar__price {
    display: flex; flex-direction: column; gap: 2px;
    line-height: 1.1;
  }
  .ek-mobile-buybar__amount { font-size: 18px; font-weight: 800; color: var(--ink, #16140F); }
  .ek-mobile-buybar__sub { font-size: 11px; }
  .ek-mobile-buybar__form { margin: 0; flex: 0 0 auto; }
  .ek-mobile-buybar .btn { min-height: 44px; padding: 10px 18px; }
  /* Bump page bottom padding to make room for buybar + tabbar. */
  body.single-product { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0)); }
}

/* ---------- Hero ------------------------------------------------- */
.hero { position: relative; background: var(--ek-paper); }
.hero-photo {
  width: 100%; height: 520px;
  align-items: flex-end; justify-content: space-between;
  margin-top: 24px;
}
.hero-grid {
  padding: 36px 0 48px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: start;
}
.hero h1 { margin: 18px 0 0; color: var(--ek-ink); }
.hero-lead {
  font-size: 17px; line-height: 1.65;
  color: var(--ek-text-2);
  max-width: 520px;
  margin: 0;
}
.hero-right { padding-top: 12px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.hero-shipping {
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--ek-border);
}
.hero-shipping-label {
  font-family: var(--ek-mono);
  font-size: 11px; color: var(--ek-muted);
  letter-spacing: 0.12em;
}
.hero-cities {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ek-text);
}
.hero-cities span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ek-sage); }

/* ---------- Quote ------------------------------------------------ */
.quote {
  background: var(--ek-cream);
  padding: 52px 0;
  border-top: 1px solid var(--ek-border);
  border-bottom: 1px solid var(--ek-border);
}
.quote-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; text-align: center; }
.quote-text {
  font-family: var(--ek-serif); font-style: italic;
  font-size: 32px; line-height: 1.35;
  color: var(--ek-ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.quote-byline {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ek-cream-2);
  border: 1px solid var(--ek-border-2);
  display: inline-block;
}
.byline-name { font-size: 13.5px; font-weight: 600; text-align: left; }
.byline-role {
  font-family: var(--ek-mono);
  font-size: 10.5px; color: var(--ek-muted);
  letter-spacing: 0.1em; text-align: left;
}

/* ---------- Section heading -------------------------------------- */
.sec { margin-top: 72px; }
.sec--lg { margin-top: 88px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--ek-border);
  padding-bottom: 18px;
  gap: 24px;
}
.sec-head h2 { margin: 12px 0 0; color: var(--ek-ink); }
.sec-head .right { flex-shrink: 0; }
.sec-link {
  font-family: var(--ek-mono);
  font-size: 11px;
  color: var(--ek-red);
  letter-spacing: 0.12em;
  cursor: pointer;
  font-weight: 600;
  background: transparent; border: none;
}

/* ---------- Categories — marketplace style ----------------------- */
.cats-grid {
  display: grid;
  /* 4-wide on desktop matches the design's "Shop by department" grid */
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.cat-card {
  cursor: pointer;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  border-color: var(--line-2);
}
.cat-card__shot {
  height: 150px;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cat-card__glyph {
  font-size: 20px;
  color: var(--muted);
  text-align: center;
  padding: 0 14px;
}

/* ============================================================
   "All categories" mega-menu — matches shell.jsx::MegaMenu
   ============================================================ */
.fp-megamenu { position: relative; display: inline-block; }
.fp-megamenu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; border-radius: 8px; padding: 0 16px;
}
.fp-megamenu > summary::-webkit-details-marker { display: none; }
.fp-megamenu > summary::marker { display: none; }
.fp-megamenu[open] > summary { background: var(--cta-hover); }

.fp-megamenu__panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 780px;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  z-index: 60;
  overflow: hidden;
  min-height: 380px;
}
.fp-megamenu__rail {
  width: 264px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 8px 0;
  flex-shrink: 0;
}
.fp-megamenu__rail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 13.5px; color: var(--text-2);
  transition: background-color .12s, color .12s;
}
.fp-megamenu__rail-item:hover,
.fp-megamenu__rail-item.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--red);
}
.fp-megamenu__rail-count {
  margin-left: auto;
  font-size: 11px;
}
.fp-megamenu__rail-chev {
  color: var(--muted-2); font-size: 14px; margin-left: 4px;
}

.fp-megamenu__panes { flex: 1; position: relative; }
.fp-megamenu__pane {
  display: none;
  padding: 18px 22px;
}
.fp-megamenu__pane.is-active { display: block; }
.fp-megamenu__pane-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.fp-megamenu__pane-title { font-size: 20px; }
.fp-megamenu__pane-all {
  font-size: 12.5px; font-weight: 700; color: var(--red);
  text-decoration: none;
}
.fp-megamenu__pane-subs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px;
}
.fp-megamenu__sub {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
  font-size: 13.5px; color: var(--text-2);
  text-decoration: none;
  transition: color .12s;
}
.fp-megamenu__sub:hover { color: var(--red); }
.fp-megamenu__sub-count { font-size: 11px; }

/* CategoryPromo carousel (category.jsx CategoryPromo).
   3 slide types stacked into one slider: `cat` (catban + overlay), `promo`
   (full-bleed promo-<dept>.png), `offer` (reserved). 10:3 aspect on desktop,
   5:3 on phones so the title block stays legible. */
.fp-catpromo {
  position: relative;
  display: block;
  width: 100%;
  margin: 4px 0 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
  /* 10:3 banner — matches `.fp-promo` and the promo-<dept>.png source ratio.
     catban-<dept>.png is currently 5.33:1 so it crops slightly at the sides
     under object-fit:cover; re-render catban art at 10:3 (e.g. 2000×600) for
     edge-to-edge parity. */
  aspect-ratio: 10 / 3;
}
.fp-catpromo__slide {
  position: absolute; inset: 0;
  display: block;
  text-decoration: none; color: var(--ink);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.fp-catpromo__slide.is-active { opacity: 1; pointer-events: auto; }
.fp-catpromo__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* Cat-slide overlay: serif name + tagline + red Shop CTA. */
.fp-catpromo__overlay {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(22px, 4vw, 60px);
  z-index: 2;
  pointer-events: none;
}
.fp-catpromo__overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(247,244,238,0.85) 0%,
    rgba(247,244,238,0.55) 30%,
    rgba(247,244,238,0.0)  62%);
  z-index: -1;
}
.fp-catpromo__name {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 8px;
  max-width: 60%;
}
.fp-catpromo__tag {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 16px;
  max-width: 50%;
}
.fp-catpromo__cta {
  align-self: flex-start;
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
}
/* Arrows: hover-only, white-translucent 40px circles. */
.fp-catpromo__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); color: var(--ink);
  font-size: 22px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  opacity: 0;
  transition: opacity .15s, background-color .12s;
  z-index: 4;
}
.fp-catpromo:hover .fp-catpromo__arrow,
.fp-catpromo:focus-within .fp-catpromo__arrow { opacity: 1; }
.fp-catpromo__arrow:hover { background: #fff; }
.fp-catpromo__arrow--prev { left: 14px; }
.fp-catpromo__arrow--next { right: 14px; }
/* Dots: red active pill bottom-left. */
.fp-catpromo__dots {
  position: absolute; left: clamp(22px, 4vw, 52px); bottom: 14px;
  display: flex; gap: 8px; z-index: 4;
}
.fp-catpromo__dot {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
}
.fp-catpromo__dot::after {
  content: '';
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(40,40,40,.35);
  transition: width .2s ease, background-color .15s;
}
.fp-catpromo__dot:hover::after { background: rgba(40,40,40,.60); }
.fp-catpromo__dot.is-active::after { width: 22px; background: var(--red); }
@media (max-width: 768px) {
  .fp-catpromo { aspect-ratio: 5 / 3; border-radius: 14px; margin: 4px 0 14px; }
  /* Promo art has its title + discount badge baked in on the LEFT side of
     the source image. With object-fit:cover in a 5:3 container the centre
     would crop off the headline — anchor to the left so the text stays
     visible. */
  .fp-catpromo__img { object-position: left center; }
  .fp-catpromo__overlay { padding: 0 18px; }
  /* Stronger cream wash on mobile so the title + tagline stay readable
     where the image content sits behind them. */
  .fp-catpromo__overlay::before {
    background: linear-gradient(170deg,
      rgba(247,244,238,0.92) 0%,
      rgba(247,244,238,0.78) 38%,
      rgba(247,244,238,0.20) 75%,
      rgba(247,244,238,0.05) 100%);
  }
  .fp-catpromo__name { font-size: 22px; max-width: 80%; }
  .fp-catpromo__tag  { font-size: 12px; max-width: 80%; margin-bottom: 12px; }
  .fp-catpromo__cta  { padding: 9px 14px; font-size: 12.5px; }
  .fp-catpromo__arrow { opacity: 1; width: 32px; height: 32px; font-size: 18px; }
  .fp-catpromo__dots { left: 18px; bottom: 10px; }
}

/* ============================================================
   PromoSlider — 10:3 banner carousel (SPEC-components §5)
   ============================================================ */
.fp-promo {
  position: relative;
  aspect-ratio: 10 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
}
.fp-promo__slide {
  position: absolute; inset: 0;
  display: block;
  text-decoration: none; color: var(--ink);
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.fp-promo__slide.is-active { opacity: 1; pointer-events: auto; }
.fp-promo__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Design catalog.jsx PromoSlider: arrows are hover-only (not visible by
   default), dots centred at bottom, active dot is a 22-px pill, all overlays
   sit on the baked-in banner art. No CTA button — the art has the call-to-
   action text baked in. */
.fp-promo__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.85); color: var(--ink);
  font-size: 22px; line-height: 1; font-weight: 700;
  cursor: pointer; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  opacity: 0;
  transition: opacity .15s, background-color .12s;
}
.fp-promo:hover .fp-promo__arrow,
.fp-promo:focus-within .fp-promo__arrow { opacity: 1; }
.fp-promo__arrow:hover { background: #fff; }
.fp-promo__arrow--prev { left: 14px; }
.fp-promo__arrow--next { right: 14px; }
.fp-promo__arrow svg { display: none; }       /* fallback glyphs are enough */

.fp-promo__dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 4;
}
/* WCAG 2.5.8 — 24x24 minimum tap target; the visible dot is centered inside
   a transparent square that gives the click area enough room. */
.fp-promo__dot {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
}
.fp-promo__dot::after {
  content: '';
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(40,40,40,.30);
  transition: width .2s ease, background-color .15s;
}
.fp-promo__dot:hover::after { background: rgba(40,40,40,.60); }
.fp-promo__dot.is-active::after { width: 22px; background: var(--ink); }

@media (max-width: 768px) {
  /* Stay close to the design's 10:3 banner aspect so the title + pricing
     blocks aren't clipped on the way down. Anchor to LEFT so the baked-in
     headline ("Meat Offers", "Bakery Specials", …) stays visible after
     the cover-crop. */
  .fp-promo { aspect-ratio: 5 / 3; border-radius: 16px; }
  .fp-promo__slide { border-radius: 16px; }
  .fp-promo__img { object-position: left center; }
  .fp-promo__arrow { width: 32px; height: 32px; font-size: 18px; opacity: 1; }
  .fp-promo__dots { bottom: 10px; left: 50%; transform: translateX(-50%); }
  /* Outer wrap padding so the banner doesn't kiss the viewport edge. */
  .fp-home__hero-wrap { padding-left: 14px; padding-right: 14px; }
}
.cat-body { padding: 8px 2px 0; text-align: center; }
.cat-name {
  font-family: var(--ek-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ek-ink);
  letter-spacing: -0.005em;
}
.cat-subs { display: none; }                /* drop the sub-categories list — too dense for a tile */
.cat-count {
  font-family: var(--ek-mono);
  font-size: 9.5px;
  color: var(--ek-muted);
  margin-top: 3px;
  letter-spacing: 0.06em;
}

/* Tinted category photo gradients (still used as fallback when image missing) */
.cat-photo--olive { background: linear-gradient(180deg, #EDE4C8 0%, #9CA975 100%); }
.cat-photo--plum  { background: linear-gradient(180deg, #F2D6CF 0%, #9C5A4F 100%); }
.cat-photo--blue  { background: linear-gradient(180deg, #DBE5EC 0%, #7C95A8 100%); }
.cat-photo--amber { background: linear-gradient(180deg, #F4E3C0 0%, #B5853D 100%); }

/* ---------- Routes ----------------------------------------------- */
.routes-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 18px; margin-top: 32px;
}
.route-card { overflow: hidden; }
.route-card .ek-photo { height: 200px; border-radius: 0; border: none; }
.route-body { padding: 22px; }
.route-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.route-name { font-family: var(--ek-serif); font-size: 22px; line-height: 1.2; }
.route-desc { font-size: 13.5px; color: var(--ek-muted); margin: 10px 0 0; line-height: 1.55; }
.route-schedule {
  display: inline-block; margin-top: 12px;
  font-family: var(--ek-mono);
  font-size: 11px; color: var(--ek-red);
  letter-spacing: 0.12em; font-weight: 600;
  cursor: pointer;
}

/* ---------- Brands ----------------------------------------------- */
.brands-card {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--ek-border);
  border-radius: 12px;
  overflow: hidden;
}
.brands-grid {
  display: grid; grid-template-columns: repeat(6,1fr);
}
.brand-cell {
  padding: 26px 20px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  background: #fff;
  border-right: 1px solid var(--ek-border);
  border-bottom: 1px solid var(--ek-border);
}
.brand-cell:nth-child(6n) { border-right: none; }
.brand-cell:nth-last-child(-n+6) { border-bottom: none; }
.brand-name { font-family: var(--ek-serif); font-size: 22px; line-height: 1.1; }
.brand-meta {
  font-family: var(--ek-mono);
  font-size: 10px; color: var(--ek-muted);
  margin-top: 6px; letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 5px;
}
.brand-chev { color: var(--ek-line); }

/* ---------- What we handle --------------------------------------- */
.handle-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.handle-photo {
  aspect-ratio: 0.95;
  align-items: flex-end; justify-content: flex-start;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(122,111,94,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #DEE6E9 0%, #C3B998 55%, #5E4F38 100%);
}
.handle-eyebrow { color: var(--ek-red); }
.handle h2 { margin: 14px 0 0; color: var(--ek-ink); }
.handle-lead {
  font-size: 15px; color: var(--ek-muted);
  margin: 16px 0 0; line-height: 1.65;
  max-width: 520px;
}
.handle-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.handle-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px;
}
.handle-list svg { flex-shrink: 0; margin-top: 2px; color: var(--ek-sage); }

/* ---------- Languages -------------------------------------------- */
.langs {
  background: var(--ek-cream);
  padding: 72px 0;
  margin-top: 88px;
}
.langs-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; margin-top: 32px;
}
.lang-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ek-border);
  border-radius: 10px;
}
.lang-head { display: flex; align-items: center; gap: 10px; }
.lang-code {
  font-family: var(--ek-mono);
  font-size: 10px; color: var(--ek-muted);
  letter-spacing: 0.14em;
}
.lang-name {
  font-family: var(--ek-serif);
  font-size: 22px; margin-top: 12px;
  line-height: 1.15;
}
.lang-sub { font-size: 12.5px; color: var(--ek-muted); margin-top: 4px; }

/* ---------- Final CTA -------------------------------------------- */
.cta-final { margin-top: 88px; }
.cta-photo {
  min-height: 360px;
  padding: 56px;
  align-items: center; justify-content: flex-start;
}
.cta-body { position: relative; max-width: 620px; }
.cta-eyebrow {
  font-family: var(--ek-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
}
.cta-title {
  margin: 14px 0 0; color: #fff;
}
.cta-actions { display: flex; gap: 12px; margin-top: 28px; }
.cta-actions .ek-btn--white {
  background: rgba(255,255,255,0.92);
  color: var(--ek-ink);
}
.cta-note {
  font-family: var(--ek-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 24px;
  letter-spacing: 0.1em;
}

/* ---------- EuFoPa Footer ----------------------------------------- */
.fp-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.fp-footer__grid {
  padding: 40px 28px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.fp-footer__about .eufopa-lock { margin-bottom: 16px; }
.fp-footer__lede {
  font-size: 12.5px; color: var(--muted);
  max-width: 240px; margin: 16px 0 0; line-height: 1.6;
}
.fp-footer__flags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.fp-flag {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border: 1px solid var(--line-2); border-radius: 3px;
  background: var(--bg-2); color: var(--muted);
  line-height: 1.2;
}
.fp-footer__col .fp-footer__heading { display: block; margin-bottom: 14px; }
.fp-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.fp-footer__list a {
  font-size: 12.5px; color: var(--muted);
  cursor: pointer; transition: color .12s;
}
.fp-footer__list a:hover { color: var(--red); }
.fp-footer__list .menu-item a { color: var(--muted); }
.fp-footer__legal { border-top: 1px solid var(--line); }
.fp-footer__legal-inner {
  padding: 16px 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px;
}
.fp-footer__legal-tag { margin-left: auto; }

@media (max-width: 1024px) {
  .fp-footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .fp-footer__about { grid-column: span 3; }
}
@media (max-width: 640px) {
  .fp-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 16px 20px; }
  .fp-footer__about { grid-column: span 2; }
  .fp-footer__legal-inner { padding: 14px 16px; }
  .fp-footer__legal-tag { margin-left: 0; }
}

/* ============================================================
   EuFoPa Home — hero / departments / bestsellers
   ============================================================ */
.fp-home { padding: 0 0 24px; background: var(--bg-2); }
.fp-home__hero-wrap { padding-top: 24px; }

.fp-hero {
  background: linear-gradient(120deg, #1B1A16 0%, #2E2A20 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  min-height: 240px;
}
/* Promo-banner variant — the banner art IS the visual; we only put a soft
   left-side scrim down so the title + CTAs stay legible, and we shift the
   text block to the bottom-left corner the way PromoSlider does. */
.fp-hero--banner {
  background:
    linear-gradient(105deg, rgba(20, 80, 176, 0.55) 0%, rgba(20, 80, 176, 0.10) 45%, rgba(20, 80, 176, 0) 70%),
    var(--hero-art) center right/cover no-repeat,
    linear-gradient(120deg, #1450B0 0%, #1C63D6 100%);
  min-height: 280px;
  justify-content: flex-end;
  padding: 0 0 28px 36px;
}
.fp-hero--banner .fp-hero__eyebrow { color: rgba(255,255,255,0.85); }
.fp-hero--banner .fp-hero__title    {
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  font-size: 30px; margin-bottom: 8px; max-width: 18ch;
}
.fp-hero--banner .fp-hero__lead     {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  max-width: 36ch;
  font-size: 14px;
}
.fp-hero--banner .fp-hero__cta { margin-top: 16px; }
.fp-hero--banner .fp-hero__cta .btn--cta {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
  font-weight: 800;
}
.fp-hero--banner .fp-hero__cta .btn--cta:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.fp-hero__eyebrow { color: rgba(255,255,255,0.55); }
.fp-hero__title {
  font-size: 40px; line-height: 1.05;
  margin: 14px 0 12px;
  max-width: 15ch;
  color: #fff;
}
.fp-hero__lead {
  font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin: 0;
}
.fp-hero__cta {
  display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap;
}
.fp-hero__cta-ghost { background: rgba(255,255,255,0.12); color: #fff; }
.fp-hero__cta-ghost:hover { background: rgba(255,255,255,0.18); }

.fp-home__section { padding-top: 36px; }
.fp-home__section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.fp-home__h2 { font-size: 24px; margin: 0; }
.fp-home__more { font-size: 13px; color: var(--red); font-weight: 700; }
.fp-home__more:hover { text-decoration: underline; }

/* Departments grid */
.fp-depts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.fp-dept {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
  color: var(--ink);
}
.fp-dept:hover {
  box-shadow: var(--shadow-pop);
  border-color: var(--line-2);
}
/* Design dept tile (catalog.jsx PageHome): 3:2 image card with name +
   tagline overlaid on a warm cream gradient in the top-left. No body card. */
.fp-dept--overlay {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  aspect-ratio: 3 / 2;
}
.fp-dept--overlay .fp-dept__shot {
  position: absolute; inset: 0; height: auto;
}
.fp-dept--overlay { position: relative; display: block; }
.fp-dept__shot {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background-size: cover; background-position: center;
}
.fp-dept__glyph {
  font-family: var(--serif); font-size: 20px;
  color: var(--ink-soft); opacity: 0.42;
  text-align: center; line-height: 1.1;
  white-space: nowrap; max-width: 86%;
  overflow: hidden; text-overflow: ellipsis;
  padding: 0 10px;
}
.fp-dept__popular {
  position: absolute; top: 12px; right: 12px;
  z-index: 3;
  color: var(--red);
  border-color: var(--red-border);
  background: var(--red-pale);
}
/* Cream gradient overlay (top-left → transparent) + name + tagline on image. */
.fp-dept__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(247,244,238,0.82) 0%,
    rgba(247,244,238,0.5)  30%,
    rgba(247,244,238,0)    56%);
  display: flex;
  z-index: 2;
}
.fp-dept__overlay-inner {
  padding: 18px 22px;
  max-width: 60%;
}
.fp-dept__overlay-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 6px;
}
.fp-dept__overlay-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
  margin: 0;
  max-width: 100%;
}
/* Hover state */
.fp-dept {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
}
.fp-dept:hover {
  box-shadow: var(--shadow-pop);
  border-color: var(--line-2);
}
.fp-dept__body { display: none; } /* legacy two-section card removed */
.fp-dept__name { font-weight: 700; font-size: 15px; }
.fp-dept__count { font-size: 11.5px; margin-top: 3px; }

/* Product card grid */
.fp-products { display: grid; gap: 14px; }
.fp-products--cols5 { grid-template-columns: repeat(5, 1fr); }
.fp-products--cols4 { grid-template-columns: repeat(4, 1fr); }
.fp-products--cols3 { grid-template-columns: repeat(3, 1fr); }
.fp-products--list  { grid-template-columns: 1fr; gap: 8px; }
.fp-products--list .fp-card { flex-direction: row; align-items: center; }
.fp-products--list .fp-card__shot { width: 96px; aspect-ratio: 1; margin: 12px 0 12px 12px; flex-shrink: 0; }
.fp-products--list .fp-card__body { padding: 12px 14px; flex: 1; }

/* Product card. Wrapper is a <div> (not <a>) because a card contains
   a <form> for "Add to order" — nesting a form inside an anchor is
   invalid HTML and the browser silently splits the card. Inner photo +
   title are their own anchors. */
.fp-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
  min-width: 0;
}
.fp-card:hover { box-shadow: var(--shadow-pop); border-color: var(--line-2); }
.fp-card__media { display: block; color: inherit; text-decoration: none; }
.fp-card__name {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600; font-size: 14px; line-height: 1.3;
}
.fp-card__name:hover { color: var(--red); }
.fp-card__shot {
  position: relative; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin: 12px 12px 0;
  border-radius: var(--r);
}
.fp-card__tag {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.fp-card__tag--bestseller { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.fp-card__tag--new        { background: var(--gold-pale); color: var(--gold-deep); border: 1px solid var(--gold-border); }
.fp-card__price-strike {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}
.fp-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8%;
}
.fp-card__glyph {
  text-align: center; padding: 0 12%;
  display: flex; flex-direction: column; gap: 6px;
}
.fp-card__glyph .serif {
  font-family: var(--serif); font-size: 15px;
  color: var(--ink-soft); line-height: 1.1; opacity: .85;
}
.fp-card__glyph .mono {
  font-size: 9px; letter-spacing: .08em;
  color: var(--muted);
}
.fp-card__sku {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 8.5px; color: var(--muted-2);
  letter-spacing: .06em;
}
.fp-card__body {
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.fp-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
}
.fp-card__brand {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.fp-flag-mini {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  padding: 1px 4px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--muted); border-radius: 3px;
  letter-spacing: .04em; line-height: 1.4;
}
.fp-card__name {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  color: var(--ink); min-height: 38px;
}
.fp-card__meta {
  font-size: 11.5px; color: var(--muted);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.fp-card__sep { opacity: 0.4; }
.fp-card__price {
  margin-top: auto;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.fp-card__price-amount {
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
  color: var(--ink);
}
.fp-card__price-quote {
  font-weight: 800; font-size: 15px; color: var(--quote);
}
.fp-card__cta { margin-top: 6px; }
.fp-card__cta button { width: 100%; }

/* Mobile + responsive */
@media (max-width: 1200px) {
  .fp-products--cols5 { grid-template-columns: repeat(4, 1fr); }
  .fp-products--cols4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .fp-depts { grid-template-columns: repeat(2, 1fr); }
  .fp-products--cols5,
  .fp-products--cols4 { grid-template-columns: repeat(2, 1fr); }
  .fp-hero { padding: 32px 28px; }
  .fp-hero__title { font-size: 32px; }
}
@media (max-width: 540px) {
  .fp-hero { padding: 24px 20px; min-height: 200px; }
  .fp-hero__title { font-size: 26px; }
  .fp-home__h2 { font-size: 20px; }
  .fp-products--cols5,
  .fp-products--cols4,
  .fp-products--cols3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* /shop/ landing with filter sidebar + featured products */
.fp-shop-grid {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 24px;
  align-items: start;
}
.fp-shop-filters {
  padding: 14px 16px;
  position: sticky; top: 170px;
}
.fp-shop-main { min-width: 0; }
@media (max-width: 900px) {
  .fp-shop-grid { grid-template-columns: 1fr; }
  .fp-shop-filters { position: static; }
}

/* ============================================================
   EuFoPa Category landing
   ============================================================ */
.fp-category { background: var(--bg-2); padding: 18px 0 32px; }
.fp-category .crumb { margin-bottom: 14px; }

/* Subcategory chip nav — mobile only; on desktop the sidebar DEPARTMENTS
   rail (with the active dept expanded) covers this navigation. */
.fp-category__subrail--mobile { display: none; }
@media (max-width: 1023px) {
  .fp-category__subrail--mobile {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 0 0 6px;
    scrollbar-width: none;
  }
  .fp-category__subrail--mobile::-webkit-scrollbar { display: none; }
  .fp-category__subrail--mobile .fp-category__subchip { flex-shrink: 0; }
}
.fp-category__subrail {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px 0 16px;
}
.fp-category__subchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px; color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.fp-category__subchip:hover { border-color: var(--ink); }
.fp-category__subchip.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.fp-category__subchip.is-active .muted { color: rgba(255,255,255,.7); }

/* Rozetka-style subcategory tile grid — shown on parent terms in place of
   the product list. Each tile pulls one product image from its subtree as
   the artwork. */
/* Design subcat tile (category.jsx SubTile): 6-col grid of 3:2 photo tiles
   with the title overlaid on the image (no body section). */
.fp-category__subgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 1240px) { .fp-category__subgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .fp-category__subgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .fp-category__subgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.fp-category__subtile {
  display: block;
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.fp-category__subtile:hover { box-shadow: var(--shadow-pop); border-color: var(--line-2); }
.fp-category__subtile-shot {
  position: relative;
  width: 100%; aspect-ratio: 3 / 2;
  display: block;
  background: var(--bg-2);
  overflow: hidden;
}
.fp-category__subtile-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fp-category__subtile-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px;
  color: var(--muted-2); padding: 0 14px;
}
.fp-category__subtile-overlay {
  position: absolute; top: 12px; left: 13px; right: 40%;
  z-index: 2;
  background: linear-gradient(95deg, rgba(247,244,238,0.8) 0%, rgba(247,244,238,0.4) 32%, rgba(247,244,238,0) 60%);
  display: none; /* gradient is on the image; overlay just hosts the title */
}
.fp-category__subtile-overlay { display: block; background: none; }
.fp-category__subtile-shot::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(247,244,238,0.78) 0%, rgba(247,244,238,0.4) 32%, rgba(247,244,238,0) 60%);
  pointer-events: none;
  z-index: 1;
}
.fp-category__subtile-name {
  font-family: var(--serif);
  font-size: 16.5px; font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  position: relative; z-index: 2;
}
.fp-category__subtile-body { display: none; }
.fp-category__subtile-count { display: none; }

/* Design-aligned filter row (category.jsx Check component): 17 px red square,
   white check glyph when checked, name + count on the right. */
.fp-check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  user-select: none;
  border-radius: 6px;
  transition: background-color .12s;
}
.fp-check-row:hover { background: var(--bg-2); }
.fp-check {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px;
  border: 1.5px solid var(--line-3);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex: 0 0 17px;
  transition: background-color .12s, border-color .12s;
}
.fp-check:hover { border-color: var(--red); }
.fp-check:checked {
  background: var(--red);
  border-color: var(--red);
}
.fp-check:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fp-check:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.fp-check-label { flex: 1; }
.fp-check-count { font-size: 11px; }

/* Departments rail + Filters stack inside one sidebar column instead of
   sitting in two parallel columns. */
.fp-category__grid {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 24px;
  align-items: start;
}
.fp-category__sidebar {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 170px;
}
.fp-category__sidebar .fp-category__rail,
.fp-category__sidebar .fp-category__filters { position: static; }
.fp-category__filters { padding: 14px 16px; position: sticky; top: 170px; }
.fp-category__filter-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.fp-category__filter-head h2 { font-size: 13px; margin: 0; }
.fp-category__filter-head a { font-size: 12px; cursor: pointer; }
.fp-category__filter-group {
  border: none; padding: 0; margin: 8px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.fp-category__filter-group legend {
  font-size: 12px; font-weight: 700; color: var(--ink);
  padding: 0; margin-bottom: 4px;
}
.fp-category__filter-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.fp-category__filter-apply {
  margin-top: 8px; width: 100%; justify-content: center;
}
.fp-category__filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .fp-category__grid { grid-template-columns: 1fr; }
  .fp-category__filters { position: static; }
}

/* Mobile: the desktop filter sidebar is hidden — buyers reach filters and
   subcategory navigation through the 3-button filtrow (Categories / Filters /
   Sort) which opens a bottom sheet. The sidebar stays for tablet (≤1100px,
   ≥769px) so an in-between viewport still has a usable filter strip. */
@media (max-width: 768px) {
  .fp-category__grid {
    display: flex; flex-direction: column; gap: 12px;
  }
  .fp-category__sidebar,
  .fp-category__rail,
  .fp-category__filters { display: none !important; }
  .fp-category__main { order: 2; width: 100%; }
}

.fp-category__rail {
  padding: 8px 0;
  position: sticky;
  top: 170px;
  overflow: hidden;
}
.fp-category__rail-head { padding: 10px 16px 8px; }
.fp-category__rail-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-2);
}
.fp-category__rail-item:hover { background: var(--bg-2); }
.fp-category__rail-item.is-active {
  background: var(--bg-2);
  box-shadow: inset 3px 0 0 var(--red);
  font-weight: 700;
  color: var(--ink);
}
.fp-category__rail-name { flex: 1; }
.fp-category__rail-count { font-size: 10.5px; }

.fp-category__main { min-width: 0; }
.fp-category__title { font-size: 30px; margin: 0; }
.fp-category__lead {
  font-size: 13.5px; color: var(--muted);
  margin: 6px 0 22px;
  max-width: 64ch;
}

.fp-category__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.fp-category__toolbar-right {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.fp-category__toolbar-right .inp { padding: 7px 10px; font-size: 13px; max-width: 100%; }
@media (max-width: 480px) {
  .fp-category__toolbar { padding: 10px 12px; }
  .fp-category__toolbar-right { gap: 6px; }
  .fp-category__toolbar-right .inp { font-size: 12.5px; padding: 6px 8px; }
  .fp-category__toolbar .btn--sm { padding: 5px 9px; font-size: 11.5px; }
  /* Result count + sort/grid/list each take their own line if needed. */
  .fp-category__toolbar > [data-testid="result-count"] { flex: 1 1 100%; }
}

.fp-category__pagination {
  margin-top: 28px;
  display: flex; justify-content: center; gap: 6px;
}
.fp-category__pagination a,
.fp-category__pagination span {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.fp-category__pagination .current {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

@media (max-width: 900px) {
  .fp-category__grid { grid-template-columns: 1fr; }
  .fp-category__rail {
    position: static; padding: 6px 0;
  }
  .fp-category__rail-item { padding: 8px 14px; font-size: 12.5px; }
  .fp-category__title { font-size: 24px; }
}
/* Mobile only: when a CategoryPromo carousel is rendered above, the page
   title is already shown inside the cat-slide overlay AND in the
   breadcrumb tail. Hide the main h1 to avoid 3× "Cream Cheese". */
@media (max-width: 768px) {
  .fp-category:has(.fp-catpromo) .fp-category__title { display: none; }
}

/* ============================================================
   EuFoPa Product detail
   ============================================================ */
.fp-product { background: var(--bg-2); padding: 18px 0 32px; }
.fp-product .crumb { margin-bottom: 16px; }

.fp-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}
.fp-product__left { min-width: 0; }

/* Gallery */
.fp-product__gallery { padding: 18px; display: flex; gap: 16px; }
.fp-product__thumbs { display: flex; flex-direction: column; gap: 8px; }
.fp-product__thumb {
  width: 62px; height: 62px; border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; overflow: hidden;
  padding: 0;
}
.fp-product__thumb.is-active { border-color: var(--red); }
.fp-product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.fp-product__main-shot {
  flex: 1; position: relative;
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fp-product__img {
  width: 100%; height: 100%; object-fit: contain; padding: 8%;
}
.fp-product__glyph {
  font-size: 32px;
  color: var(--ink-soft); opacity: 0.4; text-align: center;
  padding: 0 12%;
}

/* Header block under gallery */
.fp-product__header { margin-top: 22px; }
.fp-product__brandrow {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.fp-product__brand {
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.fp-product__title {
  font-size: 28px; line-height: 1.15;
  max-width: 22ch;
  margin: 0;
}
.fp-product__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px;
  font-size: 12.5px; color: var(--muted);
  flex-wrap: wrap;
}
.fp-product__sep { opacity: 0.4; }

/* Description block */
.fp-product__desc {
  padding: 18px 22px;
  margin-top: 22px;
}
.fp-product__desc .eyebrow { margin-bottom: 8px; display: block; }
.fp-product__desc-body { font-size: 14px; line-height: 1.6; color: var(--text); }
.fp-product__desc-body p { margin: 0 0 12px; }
.fp-product__desc-body p:last-child { margin-bottom: 0; }

/* Specs accordion */
.fp-product__specs { margin-top: 22px; overflow: hidden; }
.fp-product__spec-grp { border-bottom: 1px solid var(--line); }
.fp-product__spec-grp:last-of-type { border-bottom: none; }
.fp-product__spec-summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px; cursor: pointer;
  font-weight: 700; font-size: 14px;
  color: var(--ink);
}
.fp-product__spec-summary::-webkit-details-marker { display: none; }
.fp-product__spec-summary svg {
  color: var(--muted);
  transition: transform .15s;
}
.fp-product__spec-grp[open] .fp-product__spec-summary svg { transform: rotate(180deg); }
.fp-product__spec-table {
  width: 100%; border-collapse: collapse;
  padding: 0 20px 16px;
}
.fp-product__spec-table tr { border-top: 1px solid var(--line); }
.fp-product__spec-table td {
  padding: 9px 20px; font-size: 13px;
}
.fp-product__spec-table td:first-child { width: 46%; }
.fp-product__spec-table td:last-child  { font-weight: 600; }

/* ---- RIGHT: sticky purchase panel ---- */
.fp-product__right { position: sticky; top: 170px; }
.fp-product__panel { padding: 22px; }
.fp-product__panel-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.fp-product__amount {
  font-size: 30px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink);
}
.fp-product__panel-divider {
  height: 1px; background: var(--line); margin: 18px 0;
}

/* UOM selector — native <select> is screen-reader / QA accessible,
   visible button group is the click affordance. */
.fp-product__uom-native {
  /* Native <select> stays in layout but visually small + transparent so it
     does not duplicate the button group. Still satisfies Playwright's
     toBeVisible() (width/height > 0, not display:none, not visibility:hidden). */
  display: block;
  width: 100%; height: 22px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 11px; color: var(--muted);
  margin-bottom: 6px;
  padding: 0 6px;
  border-radius: var(--r-sm);
}
.fp-product__uoms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 6px;
}
.fp-product__uom {
  border: 1.5px solid var(--line-2);
  background: #fff; border-radius: 10px;
  padding: 11px 8px;
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 5px;
  transition: border-color .12s, background .12s, color .12s;
}
.fp-product__uom.is-active {
  border-color: var(--red);
  background: var(--red-pale);
}
.fp-product__uom-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.fp-product__uom.is-active .fp-product__uom-name { color: var(--red); }
.fp-product__uom-conv { font-size: 10.5px; }

/* Quantity row */
.fp-product__qty-row {
  display: flex; align-items: flex-end; gap: 14px;
  margin-top: 18px;
}
.fp-product__stepper {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid var(--line-2);
  border-radius: 9px; overflow: hidden;
  height: 46px;
}
.fp-product__stepper button {
  width: 46px; border: none; background: #fff; cursor: pointer;
  color: var(--text); font-size: 18px;
}
.fp-product__stepper button:first-child { border-right: 1px solid var(--line); }
.fp-product__stepper button:last-child  { border-left: 1px solid var(--line); }
.fp-product__stepper input {
  width: 60px; border: none;
  text-align: center; font-size: 16px; font-weight: 700;
  font-family: var(--mono);
}
.fp-product__norm {
  flex: 1; padding-bottom: 2px;
  display: flex; flex-direction: column; gap: 2px;
}
.fp-product__norm-big { font-size: 14px; font-weight: 700; color: var(--ink); }

/* Truck impact */
.fp-product__truck {
  margin-top: 16px;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 13px 14px;
}
.fp-product__truck-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 9px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
}
.fp-product__truck-head svg { vertical-align: middle; }
.fp-product__bar-head {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-2);
  margin-bottom: 4px;
}
.fp-product__bar-track {
  height: 7px; border-radius: 4px;
  background: var(--bg-3); overflow: hidden;
}
.fp-product__bar-fill {
  display: block; height: 100%;
  background: var(--green);
  transition: width .25s;
}

.fp-product__cta { margin-top: 18px; }
.fp-product__panel-note {
  font-size: 11.5px; color: var(--muted);
  text-align: center; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.fp-product__volume-hint {
  font-size: 11.5px; color: var(--muted);
  text-align: center; margin-top: 12px; padding: 0 12px;
}

.fp-product__zoom {
  position: absolute; right: 12px; bottom: 12px;
  gap: 6px;
}
.fp-product__zoom-dialog {
  position: fixed; inset: 0;
  background: rgba(20, 18, 12, 0.6);
  display: none;
  z-index: 80;
  align-items: center; justify-content: center;
  padding: 40px;
}
.fp-product__zoom-dialog.is-open { display: flex; }
.fp-product__zoom-dialog[hidden] { display: none !important; }
.fp-product__zoom-inner {
  background: #fff;
  width: 560px; max-width: 90%;
  padding: 24px;
  position: relative;
  border-radius: var(--r-lg);
}
.fp-product__zoom-img { width: 100%; height: auto; display: block; }
.fp-product__zoom-caption {
  text-align: center; margin-top: 14px; font-weight: 700;
}
.fp-product__zoom-close {
  position: absolute; right: 12px; top: 12px;
  padding: 8px 12px;
  font-size: 18px;
  background: transparent; border: none; cursor: pointer;
}
.fp-product__dq .pill { font-size: 11.5px; }

@media (max-width: 1100px) {
  .fp-product__grid { grid-template-columns: 1fr; }
  .fp-product__right { position: static; }
}
@media (max-width: 600px) {
  .fp-product__gallery { padding: 12px; flex-direction: column; }
  .fp-product__thumbs { flex-direction: row; }
  .fp-product__title { font-size: 22px; }
  .fp-product__amount { font-size: 26px; }
}

/* ============================================================
   EuFoPa Basket — server-rendered summary above the WC blocks
   ============================================================ */
.fp-basket__section {
  padding: 18px 22px;
  margin-bottom: 16px;
}
.fp-basket__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.fp-basket__head h2 { font-size: 19px; margin: 0; }
.fp-basket__lines { display: grid; gap: 12px; }
.fp-basket__line {
  display: grid;
  grid-template-columns: 1fr 110px 100px 80px;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fp-basket__line:first-child { border-top: none; padding-top: 4px; }
.fp-basket__line-info strong { color: var(--ink); display: block; }
.fp-basket__line-qty input { width: 100%; text-align: center; font-family: var(--mono); }
.fp-basket__line-qty input[aria-invalid="true"] { border-color: var(--red); }
.fp-basket__line-total { font-weight: 800; font-family: var(--mono); }
.fp-basket__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.fp-basket__footer .price { font-size: 22px; }

.fp-basket__truck { margin-top: 18px; padding: 16px; background: var(--bg-2); border-radius: var(--r); }
.fp-basket__truck-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fp-basket__bar { margin-top: 10px; }
.fp-basket__bar-head {
  display: flex; justify-content: space-between;
  font-size: 12px; margin-bottom: 5px;
}
.fp-basket__bar-track {
  height: 7px; border-radius: 4px;
  background: var(--bg-3); overflow: hidden;
}
.fp-basket__bar-fill {
  display: block; height: 100%;
  background: var(--green); transition: width .25s;
}
.fp-basket__binding {
  margin-top: 14px; padding: 10px 12px;
  background: var(--green-pale); border: 1px solid var(--green-border);
  border-radius: var(--r);
  font-size: 13px; color: var(--green); font-weight: 600;
}
.fp-basket__cta {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.fp-basket__cta .btn { flex: 1; justify-content: center; }

@media (max-width: 640px) {
  .fp-basket__line { grid-template-columns: 1fr; }
  .fp-basket__line-qty { max-width: 140px; }
}

/* WC core block "Add to cart" buttons (cross-sells on /cart/) inherit
   WordPress core block styles with #2a2824 text on #32373c bg — failing
   AA contrast. Force them onto our brand red CTA palette. */
a.wp-block-button__link.add_to_cart_button,
.wp-block-woocommerce-product-collection a.wp-block-button__link {
  background: var(--cta) !important;
  color: #fff !important;
  border-color: var(--cta) !important;
}
a.wp-block-button__link.add_to_cart_button:hover,
.wp-block-woocommerce-product-collection a.wp-block-button__link:hover {
  background: var(--cta-hover) !important;
  color: #fff !important;
}

/* ============================================================
   EuFoPa Cart polish — WC Cart blocks layered with our tokens
   ============================================================ */
.fp-cart-quote-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  margin: 0 0 22px;
  background: var(--quote-pale);
  border: 1px solid var(--quote-border);
  border-radius: var(--r-lg);
}
.fp-cart-quote-banner__icon {
  color: var(--quote);
  background: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fp-cart-quote-banner__body { flex: 1; min-width: 0; }
.fp-cart-quote-banner__title {
  font-size: 14px; font-weight: 700; color: var(--quote);
}
.fp-cart-quote-banner__hint {
  font-size: 12.5px; margin-top: 3px;
}

/* WC Cart / Checkout block visuals — bring them onto the EuFoPa palette. */
.woocommerce-cart .ek-page__head h1,
.woocommerce-checkout .ek-page__head h1 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}
.wp-block-woocommerce-cart .wc-block-cart {
  font-family: var(--sans);
  color: var(--text);
}
.wp-block-woocommerce-cart .wc-block-cart-item__product-name,
.wp-block-woocommerce-cart .wc-block-components-product-name {
  font-weight: 600;
  color: var(--ink);
}
.wp-block-woocommerce-cart .wc-block-cart-item__total {
  font-weight: 800;
  font-family: var(--mono);
  font-feature-settings: "tnum" on;
}
.wp-block-woocommerce-cart .wc-block-components-totals-item,
.wp-block-woocommerce-cart .wc-block-components-product-price {
  font-family: var(--sans);
}
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button {
  background: var(--cta) !important;
  color: #fff !important;
  border-radius: var(--r) !important;
  font-weight: 700;
  font-family: var(--sans);
}
.wp-block-woocommerce-cart .wc-block-components-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-button:hover {
  background: var(--cta-hover) !important;
}
.wp-block-woocommerce-cart .wc-block-cart-items {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 8px 14px;
}
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper,
.wp-block-woocommerce-cart .wc-block-cart__sidebar > * {
  border-color: var(--line) !important;
  border-radius: var(--r-lg) !important;
}

/* ============================================================
   EuFoPa Confirmation page
   ============================================================ */
.fp-confirm { background: var(--bg-2); min-height: 560px; padding: 48px 0; }
.fp-confirm__wrap { max-width: 720px; padding: 0 28px; }
.fp-confirm__panel {
  padding: 40px 44px; text-align: center;
}
.fp-confirm__medal {
  width: 60px; height: 60px; border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid;
}
.fp-confirm__medal--order {
  color: var(--green); background: var(--green-pale); border-color: var(--green-border);
}
.fp-confirm__medal--quote {
  color: var(--quote); background: var(--quote-pale); border-color: var(--quote-border);
}
.fp-confirm__title { font-size: 27px; margin: 0; }
.fp-confirm__lead {
  font-size: 14px; max-width: 48ch; margin: 8px auto 0;
}
.fp-confirm__ref {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; margin: 20px 0;
}
.fp-confirm__ref-num { font-size: 16px; font-weight: 700; color: var(--ink); }
.fp-confirm__total {
  font-size: 12.5px; margin: 4px 0 12px;
}
.fp-confirm__actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.fp-confirm__next {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.fp-confirm__next-head { display: block; margin-bottom: 12px; }
.fp-confirm__next-list { list-style: none; margin: 0; padding: 0; }
.fp-confirm__next-list li {
  display: flex; gap: 11px; margin-bottom: 10px; align-items: flex-start;
}
.fp-confirm__step-no {
  font-size: 11px; font-weight: 700; color: var(--red);
  margin-top: 2px; min-width: 14px;
}
.fp-confirm__step-body { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

.fp-confirm__lines {
  margin: 24px 0 6px; text-align: left;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.fp-confirm__lines summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700;
}
.fp-confirm__lines summary::-webkit-details-marker { display: none; }
.fp-confirm__lines summary svg { color: var(--muted); transition: transform .15s; }
.fp-confirm__lines[open] summary svg { transform: rotate(180deg); }
.fp-confirm__lines-table {
  width: 100%; margin-top: 12px;
  border-collapse: collapse;
}
.fp-confirm__lines-table th {
  text-align: left; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.fp-confirm__lines-table td {
  padding: 10px 0; font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fp-confirm__continue {
  display: inline-block; margin-top: 18px;
  font-size: 13px; color: var(--red); font-weight: 700;
}
.fp-confirm__continue:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .fp-confirm__panel { padding: 28px 22px; }
  .fp-confirm__title { font-size: 22px; }
  .fp-confirm__lines-table th:nth-child(2),
  .fp-confirm__lines-table td:nth-child(2) { display: none; }
}

/* ---------- Flags ------------------------------------------------ */
/* 3-stripe gradient flags — abstract placeholders, not authoritative */
.flag {
  display: inline-block;
  width: 14px; height: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  vertical-align: middle;
}
.flag--20 { width: 20px; height: 14px; }
.flag--10 { width: 10px; height: 7px; }
.flag--EU { background: linear-gradient(#003399 33%, #FFCC00 33% 66%, #003399 66%); }
.flag--DE { background: linear-gradient(#000 33%, #D00 33% 66%, #FFCE00 66%); }
.flag--IT { background: linear-gradient(#009246 33%, #fff 33% 66%, #CE2B37 66%); }
.flag--FR { background: linear-gradient(#0055A4 33%, #fff 33% 66%, #EF4135 66%); }
.flag--NL { background: linear-gradient(#AE1C28 33%, #fff 33% 66%, #21468B 66%); }
.flag--ES { background: linear-gradient(#AA151B 33%, #F1BF00 33% 66%, #AA151B 66%); }
.flag--PL { background: linear-gradient(#fff 33%, #fff 33% 66%, #DC143C 66%); }
.flag--CZ { background: linear-gradient(#11457E 33%, #fff 33% 66%, #D7141A 66%); }
.flag--AT { background: linear-gradient(#ED2939 33%, #fff 33% 66%, #ED2939 66%); }
.flag--BE { background: linear-gradient(#000 33%, #FAE042 33% 66%, #ED2939 66%); }
.flag--GE { background: linear-gradient(#fff 33%, #FF0000 33% 66%, #fff 66%); }
.flag--AM { background: linear-gradient(#D90012 33%, #0033A0 33% 66%, #F2A800 66%); }
.flag--AZ { background: linear-gradient(#00B5E2 33%, #ED2939 33% 66%, #509E2F 66%); }
.flag--KZ { background: linear-gradient(#00AFCA 33%, #FEC50C 33% 66%, #00AFCA 66%); }
.flag--UZ { background: linear-gradient(#0099B5 33%, #fff 33% 66%, #1EB53A 66%); }
.flag--MN { background: linear-gradient(#C4272F 33%, #015197 33% 66%, #C4272F 66%); }
.flag--RU { background: linear-gradient(#fff 33%, #0039A6 33% 66%, #D52B1E 66%); }
.flag--GB { background: linear-gradient(#012169 33%, #fff 33% 66%, #C8102E 66%); }

/* ─── Responsive — tablet (≤1024px) ───────────────────────────── */
@media (max-width: 1024px) {
  .shell { padding: 0 16px; }
  .utility-inner { flex-wrap: wrap; gap: 8px; padding: 6px 0; }
  .utility-right { width: 100%; justify-content: flex-end; gap: 10px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 0; }
  .topbar-search { max-width: 100%; }
  .topbar-actions { justify-content: flex-end; gap: 8px; }
  .catnav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                  /* hide scrollbar (Firefox) */
    white-space: nowrap;
  }
  .catnav-inner::-webkit-scrollbar { display: none; } /* Webkit */
  .catnav-inner a { flex-shrink: 0; }
  .catnav-sep { display: none; }

  /* Mobile chrome appears. Drawer is hidden by default (display:none) and
     toggled to block when body.ek-drawer-open is set. This keeps its off-
     canvas children out of the bounding-box / scrollWidth checks at narrow
     viewports. */
  /* (no rule here — the global :not(.ek-drawer-open) display:none wins) */

  .hero-photo { height: 320px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 40px; }
  .ek-h1 { font-size: 48px; }
  .ek-h2 { font-size: 36px; }

  /* Categories — tablet: 4 across */
  .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat-name { font-size: 12.5px; }

  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-cell:nth-child(6n) { border-right: 1px solid var(--ek-border); }
  .brand-cell:nth-child(3n) { border-right: none; }
  .brand-cell:nth-last-child(-n+6) { border-bottom: 1px solid var(--ek-border); }
  .brand-cell:nth-last-child(-n+3) { border-bottom: none; }
  .brand-name { font-size: 18px; }

  .handle-grid { grid-template-columns: 1fr; gap: 24px; }
  .handle-list { grid-template-columns: 1fr 1fr; }
  .langs-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-legal { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cta-photo { padding: 36px 28px; min-height: 280px; }
}

/* ─── Responsive — mobile (≤768px) ─────────────────────────────── */
@media (max-width: 768px) {
  .ek-h1 { font-size: 32px; line-height: 1.08; }
  .ek-h2 { font-size: 26px; }
  .ek-h3 { font-size: 20px; }
  .ek-eyebrow { font-size: 10px; }

  .hero-photo { height: 200px; }
  .hero-lead { font-size: 15px; }
  .hero-shipping { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Categories — mobile: 3 across, marketplace-style */
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-photo { border-radius: var(--ek-radius); }
  .cat-name { font-size: 11.5px; line-height: 1.2; }
  .cat-count { display: none; }

  /* Brands — mobile: 2 across (was 1) */
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cell { padding: 18px 14px; }
  .brand-cell:nth-child(3n) { border-right: none; }
  .brand-cell:nth-child(2n) { border-right: none; }
  .brand-cell:nth-child(odd) { border-right: 1px solid var(--ek-border); }
  .brand-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--ek-border); }
  .brand-cell:nth-last-child(-n+2) { border-bottom: none; }
  .brand-name { font-size: 16px; }

  .handle-list { grid-template-columns: 1fr; }
  .langs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lang-card { padding: 14px; }
  .lang-name { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .cta-photo { padding: 28px 20px; min-height: 240px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .ek-btn { width: 100%; justify-content: center; }

  /* ─── Compact mobile header ──────────────────────────────── */
  /* Hide utility strip, category nav, and large account chip on phones.
     Locale switching and full menu move into the slide-in drawer. */
  .site-header .utility { display: none; }
  .site-header .catnav { display: none; }

  /* Row 1 (always visible): [burger] [logo (center)] [search-loupe] [cart]
     Row 2 (toggled in by tapping the loupe): full-width search field. */
  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
  }
  .topbar-burger,
  .topbar-search-toggle { display: inline-flex; }
  .topbar-burger { order: 0; }
  .ek-logo--lg { order: 1; flex: 1; display: flex; justify-content: center; }
  .ek-logo--lg .ek-logo-img { height: 28px; }
  .topbar-search-toggle { order: 2; }
  .topbar-actions { order: 3; margin-left: 0; }
  .topbar-action { display: none; }                     /* hide saved/account text buttons */
  .topbar-cart { padding: 8px 10px; }
  .topbar-cart .topbar-cart-amount { display: none; }
  .topbar-cart .ek-mono { display: none; }              /* hide "0 items" label */

  /* Search row hidden by default; loupe button expands it to full width below. */
  .topbar-search {
    order: 10;                                          /* drops onto a new wrapped row */
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease;
  }
  body.ek-search-open .topbar-search { max-height: 200px; margin-top: 4px; }
  .topbar-search .popular { display: none; }
  .search-row .search-cats { display: none; }
  .search-row .ek-input { font-size: 13px; padding: 8px 10px; }
  .search-row .search-submit { padding: 0 12px; }
}

/* Tighten section vertical spacing on smaller screens */
@media (max-width: 1024px) {
  .sec { margin-top: 48px; }
  .sec--lg { margin-top: 56px; }
  .langs { padding: 48px 0; margin-top: 56px; }
  .cta-final { margin-top: 56px; }
  .site-footer { padding: 36px 28px 24px; margin-top: 44px; }
}
@media (max-width: 768px) {
  .sec { margin-top: 36px; }
  .sec--lg { margin-top: 40px; }
  .sec-head { flex-direction: column; gap: 10px; align-items: flex-start; padding-bottom: 12px; }
  .sec-head .right { width: 100%; }
  .langs { padding: 36px 0; margin-top: 40px; }
  .cta-final { margin-top: 40px; }
  .cta-title { font-size: 28px; }
  .site-footer { padding: 28px 16px 20px; }
}

/* ─── Responsive — small phones (≤480px) ──────────────────────── */
@media (max-width: 480px) {
  .ek-h1 { font-size: 28px; }
  .ek-h2 { font-size: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .ek-btn { width: 100%; justify-content: center; }

  /* Categories — small mobile: 2 across (slightly bigger thumbs at this width) */
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-name { font-size: 13px; }
  .cat-count { display: block; }

  .topbar { gap: 8px; }
  .ek-logo--lg .ek-logo-img { height: 36px; }
}

/* ─── Locale switcher (header utility strip) ─────────────────── */
.ek-locale-switch { position: relative; display: inline-block; }
.ek-locale-switch summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--ek-mono);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ek-muted);
}
.ek-locale-switch summary::-webkit-details-marker { display: none; }
.ek-locale-switch__menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  min-width: 200px; padding: 6px;
  background: #fff;
  border: 1px solid var(--ek-border-2);
  border-radius: var(--ek-radius);
  box-shadow: 0 4px 18px rgba(20,18,12,0.10);
  z-index: 100;
  display: grid; gap: 2px;
}
.ek-locale-switch__menu a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px;
  font-family: var(--ek-sans);
  font-size: 13px;
  color: var(--ek-text);
  border-radius: 4px;
  text-decoration: none;
}
.ek-locale-switch__menu a:hover { background: var(--ek-paper-2); }
.ek-locale-switch__menu a.is-current { background: var(--ek-panel); font-weight: 500; }
.ek-locale-switch__menu .ek-mono { font-size: 10px; color: var(--ek-muted); width: 26px; }

/* CTA section — left-leaning darkening overlay so white text stays legible */
.cta-final .cta-photo { position: relative; }
.cta-final .cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(20,18,12,0.78) 0%,
    rgba(20,18,12,0.62) 45%,
    rgba(20,18,12,0.20) 100%);
  z-index: 1;
  pointer-events: none;
}
.cta-final .cta-body { position: relative; z-index: 2; }

/* ============================================================ */
/* MOBILE DESIGN-PARITY BLOCK                                    */
/* EuFoPa Mobile.html / MOBILE-SPEC.md                           */
/* ============================================================ */

/* Sticky chip row directly under the mobile header.
   Renders only at ≤1023px (desktop has the .fp-nav strip). */
.fp-chiprow { display: none; }
@media (max-width: 1023px) {
  .fp-chiprow {
    display: flex; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 56px;
    z-index: 30;
    scrollbar-width: none;
  }
  .fp-chiprow::-webkit-scrollbar { display: none; }
  .fp-chip {
    flex-shrink: 0;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    min-height: 32px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .fp-chip:active { background: var(--bg-2); }
  .fp-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* Mobile dept tile — hide busy bits, position name on the image. */
@media (max-width: 768px) {
  .fp-depts { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .fp-dept--overlay { aspect-ratio: 3 / 2; }
  .fp-dept__overlay-inner { padding: 10px 11px; max-width: 65%; }
  .fp-dept__overlay-name { font-size: 15px; line-height: 1.15; }
  .fp-dept__overlay-tag { display: none; }
  .fp-dept__popular { display: none; }
  /* Section heading + "All →" text-only on mobile */
  .fp-home__section-head .fp-home__more,
  .fp-home__section-head .btn {
    border: none; padding: 0; background: transparent;
    color: var(--red); font-size: 12.5px; font-weight: 700;
  }
}

/* Mobile bestsellers + product cards: 2-col compact.
   minmax(0, 1fr) (not just 1fr) so unbreakable strings inside cards
   (long brand names, SKUs, "12 / case") can't blow out the column width
   and force the grid into uneven columns. */
@media (max-width: 768px) {
  .fp-products--cols5,
  .fp-products--cols4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 12px; }
  .fp-card { min-width: 0; border-radius: 12px; flex-direction: column !important; }
  .fp-card__shot { margin: 8px 8px 0; width: auto !important; aspect-ratio: 1; }
  .fp-card__body { padding: 8px 10px 10px; gap: 6px; min-width: 0; }
  .fp-card__name { font-size: 12.5px; line-height: 1.3; min-height: 32px; word-break: break-word; }
  .fp-card__meta { font-size: 10.5px; flex-wrap: wrap; word-break: break-word; }
  .fp-card__price-amount { font-size: 16px; }
  .fp-card__cta,
  .fp-card__cta .btn { font-size: 12px; padding: 8px 10px; min-height: 38px; width: 100%; }
}

/* 3-button row above the category grid: [Categories] [Filters] [Sort]. */
.fp-filtrow { display: none; }
@media (max-width: 1023px) {
  .fp-filtrow {
    display: flex; gap: 10px;
    padding: 12px 14px;
    background: #fff;
  }
  .fp-filtbtn {
    flex: 1;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    cursor: pointer;
    min-height: 40px;
  }
  .fp-filtbtn--sort { flex: 0 0 46px; padding: 0; }
  .fp-filtbtn:active { background: var(--bg-2); }
  .fp-filtbtn .fp-filtbtn__badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px;
    background: var(--red); color: #fff;
    font-size: 10.5px; font-weight: 700;
  }
}

/* Bottom sheet primitive — used by filters / sort / subcats on mobile. */
.fp-sheet-scrim { display: none; }
.fp-sheet { display: none; }
.fp-sheet[hidden] { display: none !important; }
@media (max-width: 1023px) {
  .fp-sheet-scrim {
    position: fixed; inset: 0;
    background: rgba(20, 20, 24, .5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }
  body.fp-sheet-open .fp-sheet-scrim { opacity: 1; pointer-events: auto; display: block; }
  /* Hide by default even at mobile — only the active sheet flips to flex.
     Prevents the sort/filters/subcats panels from rendering inline at the
     bottom of the page when no sheet is open. */
  .fp-sheet {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 101;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 36px rgba(0,0,0,.18);
    max-height: 78vh;
    display: none;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .25s;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  body.fp-sheet-open .fp-sheet[data-fp-sheet-active] {
    display: flex;
    transform: translateY(0);
  }
  .fp-sheet__grab {
    width: 36px; height: 4px;
    background: var(--line-3);
    border-radius: 2px;
    margin: 10px auto 8px;
    flex: 0 0 auto;
  }
  .fp-sheet__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 18px 12px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
  }
  .fp-sheet__title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0; }
  .fp-sheet__clear { color: var(--red); font-size: 13px; font-weight: 600; text-decoration: none; }
  .fp-sheet__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 18px;
    flex: 1;
  }
  .fp-sheet__foot {
    display: flex; gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: #fff;
    flex: 0 0 auto;
  }
  .fp-sheet__foot .btn { min-height: 44px; }
  .fp-sheet__foot .btn--cta { flex: 1; }
}

/* Cart sticky bottombar on mobile (parallels PDP buybar). */
.ek-cart-bottombar { display: none; }
@media (max-width: 1023px) {
  .ek-cart-bottombar {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; left: 0; right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
    z-index: 79;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 18px rgba(0,0,0,.06);
  }
  .ek-cart-bottombar__row {
    display: flex; align-items: center; justify-content: space-between;
    line-height: 1.1;
  }
  .ek-cart-bottombar__label { font-size: 11px; color: var(--muted); }
  .ek-cart-bottombar__amount { font-size: 17px; font-weight: 800; color: var(--ink); }
  .ek-cart-bottombar .btn { min-height: 48px; width: 100%; }
  body.woocommerce-cart { padding-bottom: calc(180px + env(safe-area-inset-bottom, 0)) !important; }
}

/* Drawer width + active-item highlight + mono count. */
@media (max-width: 1023px) {
  .ek-drawer { width: 300px !important; max-width: 86vw; }
  .ek-drawer__cat-count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted-2);
  }
  .ek-drawer__cat.is-active {
    background: var(--bg-2);
    box-shadow: inset 3px 0 0 var(--red);
  }
  .ek-drawer__cat.is-active .ek-drawer__cat-icon { color: var(--red); }
  .ek-drawer__cat.is-active .ek-drawer__cat-name { color: var(--ink); font-weight: 600; }
}

/* PDP gallery: thumbnails BELOW the main image (mobile). */
@media (max-width: 768px) {
  .fp-product__gallery { display: flex; flex-direction: column-reverse; gap: 8px; }
  .fp-product__thumbs {
    display: flex; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 4px 0;
  }
  .fp-product__thumb {
    flex: 0 0 62px; width: 62px; height: 62px;
    border-radius: 8px;
  }
  .fp-product__main-shot,
  .fp-product__shot { border-radius: 16px; }
}

/* Single-row mobile header anchor (used by chiprow sticky top). */
@media (max-width: 1023px) {
  .fp-header.is-sticky,
  .fp-header { z-index: 31; }
}

/* ============================================================ */
/* CART DESIGN-PARITY BLOCK (cart.jsx)                           */
/* ============================================================ */

/* Section head: title + status pill + subtitle below */
.fp-cart__section-head {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 4px;
  margin-bottom: 10px;
  border-bottom: 0;
}
.fp-cart__section-headtxt { flex: 1; }
.fp-cart__section-titlerow {
  display: flex; align-items: center; gap: 10px;
}
.fp-cart__section-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.pill--in    { background: var(--green-pale);  color: var(--green);  border: 1px solid var(--green-border); }
.pill--quote { background: var(--quote-pale);  color: var(--quote);  border: 1px solid var(--quote-border); }
.fp-cart__section-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
}

/* LoadMeter design head (truck icon + capacity tag) */
.fp-cart__loadmeter {
  border: 1px solid var(--line);
  transition: border-color .15s;
}
.fp-cart__loadmeter--over { border-color: var(--red-border, var(--red)); }
.fp-cart__loadmeter-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.fp-cart__loadmeter-icon { color: var(--ink); display: inline-flex; }
.fp-cart__loadmeter-title { font-weight: 700; font-size: 14px; flex: 1; }
.fp-cart__loadmeter-cap { font-size: 11px; }
.fp-loadmeter__callout {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}
.fp-loadmeter__callout--ok {
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.fp-loadmeter__callout--over {
  background: var(--red-pale);
  color: var(--red);
  border: 1px solid var(--red-border);
}
.fp-loadmeter__callout svg { flex: 0 0 16px; margin-top: 1px; }

/* Totals card: rows (no table) + footer note */
.fp-cart__totals-rows {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.fp-cart__totals-row {
  display: flex; align-items: center; justify-content: space-between;
}
.fp-cart__totals-row .price { font-weight: 800; color: var(--ink); }
.fp-cart__totals-note {
  margin: 14px 0 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.fp-cart__continue {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.fp-cart__continue:hover { color: var(--ink); }

/* Empty-state design layout */
.fp-cart__empty--design {
  background: var(--bg-2);
  border: 0;
  border-radius: 14px;
  padding: 56px 22px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.fp-cart__empty-shot {
  width: 90px; height: 90px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fp-cart__empty-title { font-family: var(--serif); font-size: 24px; margin: 0; }
.fp-cart__empty-sub { font-size: 13.5px; max-width: 40ch; margin: 0; }

/* ============================================================ */
/* CATEGORY SIDEBAR: DEPARTMENTS rail with expanded children      */
/* category.jsx CatalogSidebar                                    */
/* ============================================================ */
.fp-category__rail {
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.fp-category__rail-eyebrow {
  padding: 4px 16px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.fp-category__rail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  transition: background-color .12s, color .12s;
}
.fp-category__rail-item:hover { background: var(--bg-2); color: var(--ink); }
.fp-category__rail-item.is-active {
  background: var(--bg-2);
  box-shadow: inset 3px 0 0 var(--red);
  color: var(--ink);
  font-weight: 600;
}
.fp-category__rail-icon { color: var(--olive, #59603D); display: inline-flex; }
.fp-category__rail-item.is-active .fp-category__rail-icon { color: var(--red); }
.fp-category__rail-icon svg { width: 18px; height: 18px; display: block; }
.fp-category__rail-name { flex: 1; }
.fp-category__rail-count { font-size: 11px; }

/* Expanded sub-children directly below the active dept row. */
.fp-category__rail-subs {
  padding: 4px 0 8px 44px;
  display: flex; flex-direction: column;
  gap: 1px;
}
.fp-category__rail-sub {
  display: block;
  padding: 6px 14px 6px 0;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
}
.fp-category__rail-sub:hover { color: var(--red); }
.fp-category__rail-sub.is-active { color: var(--red); font-weight: 600; }

/* Shop-by-subcategory heading above the photo-tile grid. */
.fp-category__subhead {
  margin: 4px 0 10px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.fp-category__subhead-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* Drop the stray border on the desktop subrail wrap — was leaving a grey
   horizontal line under the carousel before the dept rail moved into the
   sidebar. */
@media (min-width: 1024px) {
  .fp-category__subrail { display: none; }
}
