/* z-index: consent bars keep their plugins' own levels (Cookie Notice 100000, #tf-consent 99999); the basket bar is 99990;
   the checkout date pickers (100010) must open above all of them (Shalom test t_cosmetics). */
/* tf-ordering: the shared ordering UI for Shalom Hot Bagels and Yummies Deli (approved design, 24 Oct 2026).
   Ported from the prototype ~/work/ux-design/shared/app.css. Differences from the prototype file:
   - every class has a tfo- prefix and every rule is scoped, because Storefront and the hand-edited theme style bare
     elements (p is bold slate, h2 has 20px padding, button is a dark grey block, ul has a 3em margin, .row is a
     Bootstrap row with clearfix pseudo-elements);
   - the brand tokens are --tfo-* custom properties, printed per site from sites/<site>.php;
   - the hero is an <img> (WebP, srcset, fetchpriority) instead of a CSS background, for a faster first paint;
   - the cookie bar is the site's real consent bar (Cookie Notice on Shalom, #tf-consent on Yummies), restyled. */

/* ---------- reset inside our own markup only ---------- */
.tfo, .tfo *, .tfo *::before, .tfo *::after { box-sizing: border-box; }
.tfo { font: 400 16px/1.45 var(--tfo-font-body); color: var(--tfo-ink); -webkit-font-smoothing: antialiased; letter-spacing: normal; text-align: left; }
.tfo :is(h1, h2, h3, h4, p, ul, ol, li, address, figure, nav, output, table, td) { margin: 0; padding: 0; border: 0; color: inherit; font: inherit; letter-spacing: normal; text-transform: none; text-align: inherit; clear: none; list-style: none; background: none; }
.tfo :is(button) { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; text-shadow: none; min-height: 0; line-height: inherit; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tfo :is(button):hover { color: inherit; }
.tfo :is(a) { color: inherit; text-decoration: none; transition: none; }
.tfo :is(img) { display: block; max-width: 100%; border-radius: 0; }
.tfo :is(input) { font: inherit; color: inherit; margin: 0; box-shadow: none; }
.tfo :focus { outline: none; }
.tfo :focus-visible { outline: 3px solid var(--tfo-brand); outline-offset: 2px; border-radius: 6px; }
.tfo-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tfo-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.tfo .tfo-price { font-weight: 700; color: var(--tfo-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tfo .tfo-price .woocommerce-Price-amount { color: inherit; font: inherit; }
.tfo svg.tfo-i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tfo-stub { display: none !important; }   /* empty elements the theme's script expects (.hamburger, .custom-logo-link) */

/* room for the fixed bottom stack (cookie bar + basket bar), measured in JS so nothing ever hides under it */
body.tfo-page-shop .site-content, body.tfo-page-home .site-content, body.tfo-page-shop, body.tfo-page-home { background: var(--tfo-bg); }

/* ---------- Header (64 px; replaces Storefront's 160 px header) ---------- */
body.tfo-on #masthead.site-header { padding: 0 !important; margin: 0 !important; background: var(--tfo-surface) !important; border-bottom: 1px solid var(--tfo-line); position: relative; z-index: 30; min-height: 0; box-shadow: none; }
body.tfo-on #masthead.site-header::before, body.tfo-on #masthead.site-header::after { display: none; }
.tfo-hdr .tfo-wrap { display: flex; align-items: center; gap: 8px; height: 64px; }
.tfo-hdr-logo { display: flex; align-items: center; height: 100%; margin-right: auto; min-width: 0; }
.tfo .tfo-hdr-logo img { height: var(--tfo-logo-h); width: auto; max-width: none; }
.tfo .tfo-hdr-nav { display: none !important; }
.tfo .tfo-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px;
  border: 1px solid var(--tfo-line); background: var(--tfo-surface); color: var(--tfo-brand); text-decoration: none;
}
.tfo .tfo-icon-btn .tfo-lbl { display: none; font-weight: 700; white-space: nowrap; }
.tfo .tfo-basket-btn { position: relative; padding: 0 12px 0 10px; gap: 22px; }
.tfo .tfo-basket-btn .tfo-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tfo .tfo-basket-btn .tfo-count {
  position: absolute; top: -5px; left: 24px; min-width: 18px; height: 20px; padding: 0 3px;
  border-radius: 10px; background: var(--tfo-brand); color: var(--tfo-brand-ink);
  font: 700 12px/20px var(--tfo-font-body); text-align: center; border: 2px solid var(--tfo-surface); box-sizing: content-box;
}
.tfo .tfo-basket-btn.is-empty .tfo-count, .tfo .tfo-basket-btn.is-empty .tfo-total { display: none; }
.tfo .tfo-menu-btn { width: 44px; padding: 0; }

/* ---------- Menu drawer ---------- */
.tfo-scrim { position: fixed; inset: 0; background: rgba(15, 22, 30, .45); z-index: 100060; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tfo-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); z-index: 100061;
  background: var(--tfo-surface); transform: translateX(100%); visibility: hidden;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transition: transform .25s ease, visibility 0s .25s, box-shadow 0s .25s;
}
body.tfo-menu-open .tfo-scrim { opacity: 1; pointer-events: auto; }
body.tfo-menu-open .tfo-drawer { transform: none; visibility: visible; box-shadow: -8px 0 24px rgba(0,0,0,.15); transition: transform .25s ease; }
body.tfo-menu-open { overflow: hidden; }
.tfo-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--tfo-line); min-height: 64px; flex: none; }
.tfo .tfo-drawer-top img { height: 30px; width: auto; }
.tfo-drawer .tfo-dnav { padding: 8px 0; border-bottom: 1px solid var(--tfo-line); }
.tfo .tfo-dnav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px; text-decoration: none; font: 500 18px/1.2 var(--tfo-font-display); color: var(--tfo-ink); }
.tfo .tfo-dnav a .tfo-pill { font: 700 14px/1 var(--tfo-font-body); background: var(--tfo-brand); color: var(--tfo-brand-ink); border-radius: 14px; padding: 6px 10px; white-space: nowrap; }
.tfo-drawer .tfo-block { padding: 18px 20px; border-bottom: 1px solid var(--tfo-line); }
.tfo.tfo-drawer h3 { margin: 0 0 8px; font: 700 13px/1.2 var(--tfo-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--tfo-muted); }
.tfo .tfo-call-wide { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: var(--tfo-radius-sm); background: var(--tfo-brand); color: var(--tfo-brand-ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.tfo.tfo-drawer address { font-style: normal; color: var(--tfo-ink-2); line-height: 1.5; }
.tfo.tfo-drawer p { color: var(--tfo-ink-2); line-height: 1.45; font-size: 15px; }
.tfo .tfo-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--tfo-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tfo .tfo-textlink svg.tfo-i { width: 18px; height: 18px; }

/* ---------- Service strip (collection / delivery facts) ---------- */
.tfo-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.tfo-svc-item { display: flex; gap: 10px; align-items: flex-start; background: var(--tfo-surface); border: 1px solid var(--tfo-line); border-radius: var(--tfo-radius-sm); padding: 10px 12px; min-width: 0; }
.tfo-svc-item svg.tfo-i { color: var(--tfo-brand); margin-top: 1px; }
.tfo .tfo-svc-item b { display: block; font-size: 15px; line-height: 1.25; font-weight: 700; }
.tfo .tfo-svc-item span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--tfo-ink-2); }

/* ---------- Search ---------- */
.tfo .tfo-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 24px; background: var(--tfo-surface); border: 1px solid var(--tfo-line); color: var(--tfo-muted); margin: 0; font-weight: 400; }
.tfo .tfo-search input, .tfo .tfo-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--tfo-ink); height: 100%; padding: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.tfo .tfo-search input::placeholder { color: var(--tfo-muted); opacity: 1; }
.tfo .tfo-search:focus-within { border-color: var(--tfo-brand); box-shadow: 0 0 0 3px var(--tfo-brand-soft); }
.tfo .tfo-allergy { margin: 10px 2px 0; font-size: 14px; line-height: 1.4; color: var(--tfo-ink-2); }
.tfo .tfo-allergy a { color: var(--tfo-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Category chips (sticky, scroll-spy) ---------- */
.tfo-chipbar { position: sticky; top: 0; z-index: 20; background: var(--tfo-bg); border-bottom: 1px solid var(--tfo-line); margin: 0 -16px; }
.tfo-chipbar.is-stuck { box-shadow: 0 6px 14px -10px rgba(0,0,0,.35); }
.tfo .tfo-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.tfo .tfo-chips::-webkit-scrollbar { display: none; }
.tfo .tfo-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--tfo-line); background: var(--tfo-surface); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--tfo-ink); white-space: nowrap; }
.tfo .tfo-chip.is-active { background: var(--tfo-chip-active); border-color: var(--tfo-chip-active); color: var(--tfo-chip-active-ink); }

/* ---------- Product list ---------- */
.tfo-cat { padding-top: 22px; scroll-margin-top: 72px; }
.tfo-cat[hidden] { display: none; }
.tfo-cat-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.tfo .tfo-cat-h h2 { margin: 0; padding: 0; font: 500 24px/1.2 var(--tfo-font-display); color: var(--tfo-brand); }
.tfo .tfo-cat-h .tfo-count { color: var(--tfo-muted); font-size: 14px; }
.tfo .tfo-note { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 4px 10px; border-radius: 14px; background: var(--tfo-brand-soft); color: var(--tfo-brand); font-size: 14px; font-weight: 700; }
.tfo .tfo-note svg.tfo-i { width: 18px; height: 18px; }
.tfo .tfo-subhead { margin: 14px 0 0; padding: 0 0 6px; font: 700 13px/1.3 var(--tfo-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--tfo-muted); border-bottom: 1px solid var(--tfo-line); }
.tfo .tfo-subhead[hidden] { display: none; }
.tfo .tfo-rows { list-style: none; margin: 0; padding: 0; }
.tfo .tfo-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 112px; column-gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--tfo-line); margin: 0;
}
.tfo .tfo-row[hidden] { display: none; }
.tfo .tfo-thumb { width: 56px; height: 56px; border-radius: var(--tfo-radius-sm); overflow: hidden; background: var(--tfo-surface-2); grid-row: 1 / span 2; align-self: start; display: block; }
.tfo .tfo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tfo .tfo-thumb.tfo-ph { display: flex; align-items: center; justify-content: center; }
.tfo .tfo-thumb.tfo-ph img { width: 26px; height: 26px; opacity: .55; object-fit: contain; }
.tfo-info { min-width: 0; }
.tfo .tfo-name { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--tfo-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tfo .tfo-detail { margin: 2px 0 0; font-size: 14px; line-height: 1.3; color: var(--tfo-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tfo .tfo-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; line-height: 1.3; }
.tfo .tfo-size { color: var(--tfo-ink-2); font-size: 14px; }
.tfo .tfo-meta .tfo-size::before { content: '·'; margin-right: 8px; color: var(--tfo-muted); }
.tfo-ctl { display: flex; justify-content: flex-end; }
.tfo-opc { display: none !important; }      /* One Page Checkout's own quantity input: kept, driven by the steppers */
.tfo .tfo-oos { font-size: 14px; color: var(--tfo-muted); font-weight: 700; text-align: right; line-height: 1.2; }

/* multi-size products: one name, a line per size, each with its own stepper */
.tfo .tfo-row.tfo-multi { grid-template-columns: 56px minmax(0, 1fr); }
.tfo .tfo-row.tfo-multi .tfo-info { grid-column: 2; }
.tfo .tfo-vars { grid-column: 2; list-style: none; margin: 6px 0 0; padding: 0; }
.tfo .tfo-var { display: grid; grid-template-columns: minmax(0, 1fr) 112px; column-gap: 12px; align-items: center; min-height: 52px; border-top: 1px dashed var(--tfo-line); }
.tfo .tfo-var .tfo-lbl { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; min-width: 0; font-size: 15px; }
.tfo .tfo-var .tfo-lbl span:first-child { color: var(--tfo-ink); }

/* steppers: 44px targets, real buttons with labels */
.tfo .tfo-add, .tfo .tfo-step button {
  width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--tfo-brand); background: var(--tfo-surface); color: var(--tfo-brand);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
/* + and - drawn in CSS (no SVG per button: /shop has 300+ of them) */
.tfo .tfo-add, .tfo .tfo-step button { position: relative; }
.tfo .tfo-add::before, .tfo .tfo-add::after, .tfo .tfo-inc::before, .tfo .tfo-inc::after, .tfo .tfo-dec::before { content: ''; display: block; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.4px; margin: -1.2px 0 0 -8px; border-radius: 2px; background: currentColor; }
.tfo .tfo-add::after, .tfo .tfo-inc::after { transform: rotate(90deg); }
/* rows off screen skip layout and paint until they come near (the lists hold 200-300 products) */
.tfo .tfo-row { content-visibility: auto; contain-intrinsic-size: auto 81px; }
.tfo .tfo-row.tfo-multi { contain-intrinsic-size: auto 200px; }
.tfo .tfo-step { display: inline-flex; align-items: center; justify-content: space-between; width: 112px; height: 44px; }
.tfo .tfo-step .tfo-inc { background: var(--tfo-brand); color: var(--tfo-brand-ink); }
.tfo .tfo-step output { min-width: 24px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.tfo .tfo-ctl.is-busy .tfo-step output { opacity: .6; }
.tfo .tfo-empty { padding: 32px 0; text-align: center; color: var(--tfo-ink-2); }

/* the One Page Checkout form that follows the list on /shop (its own layout is stage 2) */
.tfo-co-head { padding: 28px 0 8px; scroll-margin-top: 8px; }
.tfo.tfo-co-head h2 { font: 500 26px/1.2 var(--tfo-font-display); color: var(--tfo-brand); }
.tfo.tfo-co-head p { margin-top: 4px; color: var(--tfo-ink-2); font-size: 15px; }

/* ---------- Bottom stack: cookie bar + basket bar in one fixed container ---------- */
.tfo-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; flex-direction: column; pointer-events: none; }
.tfo-bottom > * { pointer-events: auto; }
.tfo .tfo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid var(--tfo-brand); white-space: nowrap; line-height: 1.1; }
.tfo .tfo-btn-primary { background: var(--tfo-brand); color: var(--tfo-brand-ink); }
.tfo .tfo-btn-ghost { background: var(--tfo-surface); color: var(--tfo-brand); }
.tfo .tfo-btn-block { width: 100%; min-height: 52px; font-size: 17px; border-radius: var(--tfo-radius-sm); }
.tfo-basketbar { background: var(--tfo-brand); color: var(--tfo-brand-ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.tfo-basketbar[hidden] { display: none; }
.tfo-basketbar .tfo-inner { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto; }
.tfo .tfo-basketbar .tfo-sum { flex: 1; min-width: 0; min-height: 44px; justify-content: center; display: flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1.2; }
.tfo .tfo-basketbar .tfo-sum b { font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 700; }
.tfo .tfo-basketbar .tfo-sum span { font-size: 14px; opacity: .9; }
.tfo .tfo-basketbar .tfo-go { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px; background: var(--tfo-cta); color: var(--tfo-cta-ink); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }

/* the site's own consent bar (Cookie Notice on Shalom), restyled to one slim line; behaviour unchanged */
body.tfo-on #cookie-notice { position: fixed !important; left: 0; right: 0; bottom: 0; min-width: 0 !important; width: 100%; background: var(--tfo-surface) !important; color: var(--tfo-ink-2) !important; font: 400 14px/1.35 var(--tfo-font-body) !important; text-align: left; z-index: 100000 !important; border-top: 1px solid var(--tfo-line); box-shadow: 0 -6px 16px -10px rgba(0,0,0,.3); animation: none !important; }
body.tfo-on #cookie-notice.cookie-notice-hidden { display: none !important; }
body.tfo-on #cookie-notice .cookie-notice-container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 16px; color: var(--tfo-ink-2) !important; text-align: left; max-width: 1240px; margin: 0 auto; }
body.tfo-on #cookie-notice #cn-notice-text { display: block; flex: 1; min-width: 0; margin: 0; font: inherit; color: inherit; }
body.tfo-on #cookie-notice #cn-notice-buttons { display: flex; flex: none; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.tfo-on #cookie-notice .cn-button.cn-set-cookie { margin: 0 !important; min-width: 88px !important; min-height: 44px; padding: 0 16px !important; border-radius: 22px !important; border: 1.5px solid var(--tfo-brand) !important; background: var(--tfo-brand) !important; color: var(--tfo-brand-ink) !important; font: 700 15px/1 var(--tfo-font-body) !important; letter-spacing: normal !important; }
body.tfo-on #cookie-notice #cn-more-info { order: -1; margin: 0 !important; padding: 0 !important; min-height: 44px; min-width: 0 !important; background: none !important; border: 0 !important; color: var(--tfo-brand) !important; font: 400 14px/1 var(--tfo-font-body) !important; text-decoration: underline !important; text-underline-offset: 3px; border-radius: 0 !important; }
/* same order as Yummies' bar: Reject, then Accept (equal size and colour; checkout/consent tests need equal prominence) */
body.tfo-on #cookie-notice #cn-refuse-cookie { order: 1; }
body.tfo-on #cookie-notice #cn-accept-cookie { order: 2; }
body.tfo-on #cookie-notice .cn-close-icon { display: none !important; }   /* it ACCEPTED while labelled "Reject" */
/* Yummies' own consent bar (#tf-consent from tf-yummies-ux.php) */
body.tfo-on #tf-consent { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 99999; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; padding: 10px 16px; background: var(--tfo-surface) !important; color: var(--tfo-ink-2) !important; border-top: 1px solid var(--tfo-line); box-shadow: 0 -6px 16px -10px rgba(0,0,0,.3); font: 400 14px/1.35 var(--tfo-font-body); }
body.tfo-on #tf-consent p { flex: 1; min-width: 0; margin: 0; color: var(--tfo-ink-2) !important; font: inherit; letter-spacing: normal; font-weight: 400; font-size: 14px; }
body.tfo-on #tf-consent a { color: var(--tfo-brand) !important; }
body.tfo-on #tf-consent .tf-consent-buttons { flex: none; display: flex; gap: 8px; }
body.tfo-on #tf-consent button, body.tfo-on #tf-consent button[data-tf-choice="necessary"] { min-width: 88px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--tfo-brand); background: var(--tfo-brand); color: var(--tfo-brand-ink); font: 700 15px/1 var(--tfo-font-body); letter-spacing: normal; text-transform: none; }
/* phones: the message on its own line, the buttons under it on the right (the shops' messages are longer than the prototype's) */
@media (max-width: 599px) {
  body.tfo-on #cookie-notice #cn-notice-text, body.tfo-on #tf-consent p { flex-basis: 100%; }
  body.tfo-on #cookie-notice #cn-notice-buttons { flex: 1; align-items: center; }
}
@media (max-width: 1023px) { ._hj_feedback_container, #_hj_feedback_container, ._hj-widget-container { display: none !important; } }  /* Hotjar tab off on phones */

/* ---------- Desktop: header links, sidebar categories + sticky basket ---------- */
.tfo-shop-layout { display: block; }
.tfo-side-cats, .tfo-side-basket { display: none; }
@media (min-width: 1024px) {
  .tfo-cat { scroll-margin-top: 24px; }
  .tfo-hdr .tfo-wrap { height: 84px; gap: 12px; }
  .tfo .tfo-hdr-logo img { height: calc(var(--tfo-logo-h) * 1.35); }
  .tfo .tfo-hdr-nav { display: flex !important; gap: 4px; margin-right: 12px; }
  .tfo .tfo-hdr-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 20px; text-decoration: none; font: 500 17px/1 var(--tfo-font-display); color: var(--tfo-ink); }
  .tfo .tfo-hdr-nav a.is-current { background: var(--tfo-brand-soft); color: var(--tfo-brand); }
  .tfo .tfo-icon-btn .tfo-lbl { display: inline; }
  .tfo .tfo-menu-btn { display: none; }
  .tfo-shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .tfo .tfo-side-cats { display: block; position: sticky; top: 16px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 18px 0; }
  .tfo .tfo-side-cats a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--tfo-radius-sm); text-decoration: none; color: var(--tfo-ink-2); font-size: 16px; }
  .tfo .tfo-side-cats a small { color: var(--tfo-muted); font-size: 14px; }
  .tfo .tfo-side-cats a.is-active { background: var(--tfo-brand); color: var(--tfo-brand-ink); font-weight: 700; }
  .tfo .tfo-side-cats a.is-active small { color: inherit; }
  .tfo-chipbar { display: none; }
  .tfo .tfo-side-basket { display: block; position: sticky; top: 16px; margin-top: 18px; background: var(--tfo-surface); border: 1px solid var(--tfo-line); border-radius: var(--tfo-radius); padding: 18px; }
  .tfo .tfo-side-basket h2 { margin: 0 0 10px; padding: 0; font: 500 22px/1.2 var(--tfo-font-display); color: var(--tfo-brand); }
  .tfo .tfo-side-basket ul { list-style: none; margin: 0; padding: 0; max-height: 42vh; overflow-y: auto; }
  .tfo .tfo-side-basket li { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--tfo-line); font-size: 15px; line-height: 1.3; }
  .tfo .tfo-side-basket li b { font-variant-numeric: tabular-nums; font-weight: 700; }
  .tfo .tfo-side-basket .tfo-tot { display: flex; justify-content: space-between; margin: 12px 0; font-size: 18px; font-weight: 700; }
  .tfo .tfo-side-basket .tfo-hint { font-size: 14px; color: var(--tfo-ink-2); margin: 10px 0 0; }
  .tfo-basketbar { display: none !important; }
  .tfo .tfo-row { grid-template-columns: 72px minmax(0, 1fr) 112px; column-gap: 16px; }
  .tfo .tfo-row.tfo-multi { grid-template-columns: 72px minmax(0, 1fr); }
  .tfo .tfo-thumb { width: 72px; height: 72px; }
  .tfo-svc { margin-top: 18px; }
  .tfo .tfo-cat-h h2 { font-size: 28px; }
  .tfo.tfo-co-head h2 { font-size: 30px; }
}

/* /shop: the list breaks out of the theme's .col-full (66em, centred) to the full window width; the checkout form
   that follows keeps the theme's width. --tfo-vw = the window width without a scrollbar (set on .tfo-shop in JS). */
.tfo-shop { width: var(--tfo-vw, 100vw); margin-left: calc(50% - var(--tfo-vw, 100vw) / 2); }
/* the theme's own postcode banner, quick-search bar and allergy box: replaced by the facts row, search and note
   (the elements stay in the page because the theme's checkout script keeps its hidden total up to date) */
body.tfo-page-shop .before-order-info, body.tfo-page-shop .form_search_bar, body.tfo-page-shop #main .col-full > .woocommerce-info:first-child { display: none !important; }
body.tfo-page-shop #opc-product-selection, body.tfo-page-shop .entry-content { margin-top: 0; padding-top: 0; }

/* ---------- Home ---------- */
.tfo-hero { position: relative; color: #fff; background: #223; overflow: hidden; }
.tfo .tfo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.tfo-hero::before { content: ''; position: absolute; inset: 0; background: var(--tfo-hero-overlay); z-index: 1; }
.tfo-hero .tfo-wrap { position: relative; z-index: 2; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 32px; padding-bottom: 24px; }
.tfo .tfo-hero h1 { margin: 0 0 10px; padding: 0; font: 500 30px/1.15 var(--tfo-font-display); max-width: 18ch; text-wrap: balance; color: inherit; letter-spacing: normal; }
.tfo .tfo-hero p { margin: 0 0 18px; font-size: 17px; line-height: 1.4; max-width: 36ch; opacity: .95; color: inherit; }
.tfo-hero .tfo-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.tfo .tfo-hero .tfo-btn-primary { background: var(--tfo-cta); color: var(--tfo-cta-ink); border-color: var(--tfo-cta); min-height: 50px; padding: 0 22px; font-size: 17px; }
.tfo .tfo-hero .tfo-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); min-height: 50px; }
.tfo-facts { background: var(--tfo-surface); border-bottom: 1px solid var(--tfo-line); }
.tfo-facts .tfo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 14px; padding-bottom: 14px; }
.tfo .tfo-fact { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; color: var(--tfo-ink-2); min-width: 0; }
.tfo .tfo-fact b { display: block; color: var(--tfo-ink); font-size: 15px; font-weight: 700; }
.tfo .tfo-fact svg.tfo-i { color: var(--tfo-brand); }
.tfo a.tfo-fact { min-height: 44px; }
.tfo a.tfo-fact .tfo-link { color: var(--tfo-brand); text-decoration: underline; text-underline-offset: 2px; }
.tfo-sec-h { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.tfo .tfo-sec-h h2 { margin: 0; padding: 0; font: 500 24px/1.2 var(--tfo-font-display); color: var(--tfo-brand); }
.tfo .tfo-sec-h a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tfo-brand); font-weight: 700; text-decoration: none; }
.tfo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 28px; }
.tfo .tfo-tile { position: relative; display: block; border-radius: var(--tfo-radius); overflow: hidden; aspect-ratio: 1 / 1; text-decoration: none; color: #fff; background: var(--tfo-surface-2); }
.tfo .tfo-tile img { width: 100%; height: 100%; object-fit: cover; }
.tfo .tfo-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(180deg, transparent, rgba(10,18,26,.78)); font: 500 17px/1.2 var(--tfo-font-display); color: #fff; }
/* newsletter sign-up (Yummies' Mailchimp shortcode, restyled) */
.tfo-news { background: var(--tfo-brand-soft); border-top: 1px solid var(--tfo-line); }
.tfo-news .tfo-wrap { display: grid; gap: 12px; padding-top: 24px; padding-bottom: 28px; }
.tfo .tfo-news h2 { font: 500 24px/1.2 var(--tfo-font-display); color: var(--tfo-brand); }
.tfo .tfo-news-txt p { margin-top: 4px; color: var(--tfo-ink-2); }
.tfo .tfo-news form { display: flex; gap: 8px; margin: 0; }
.tfo .tfo-news form p { margin: 0; }
.tfo .tfo-news form p:first-of-type { flex: 1; min-width: 0; }
.tfo .tfo-news label { display: block; margin: 0; }
.tfo .tfo-news input[type="email"] { display: block; width: 100%; height: 48px; padding: 0 14px; border-radius: 24px; border: 1.5px solid var(--tfo-line); background: var(--tfo-surface); font-size: 16px; color: var(--tfo-ink); box-shadow: none; }
.tfo .tfo-news input[type="email"]:focus { outline: none; border-color: var(--tfo-brand); box-shadow: 0 0 0 3px var(--tfo-surface); }
.tfo .tfo-news input[type="submit"] { height: 48px; padding: 0 20px; border-radius: 24px; border: 0; background: var(--tfo-brand); color: var(--tfo-brand-ink); font: 700 15px/1 var(--tfo-font-body); letter-spacing: .02em; cursor: pointer; }
@media (min-width: 1024px) { .tfo-news .tfo-wrap { grid-template-columns: 1fr minmax(0, 520px); align-items: center; } }
@media (min-width: 1024px) {
  .tfo-hero .tfo-wrap { min-height: 520px; padding-bottom: 56px; }
  .tfo .tfo-hero h1 { font-size: 48px; }
  .tfo .tfo-hero p { font-size: 20px; }
  .tfo-facts .tfo-wrap { grid-template-columns: repeat(4, 1fr); }
  .tfo-tiles { grid-template-columns: repeat(6, 1fr); }
}

/* Light hero: a photo with its own white space (Shalom's original salt beef sandwich).
   Phone: the photo is a band on top and the text sits below it on the photo's own grey-white.
   Desktop: the photo fills the hero, anchored right, and the text sits in its empty left side. No dark overlay. */
.tfo-hero.tfo-hero-light { color: var(--tfo-brand); background: #ecebed; }
.tfo-hero-light::before { display: none; }
.tfo .tfo-hero-light .tfo-hero-img { position: static; height: auto; aspect-ratio: var(--tfo-hero-ratio); object-position: right top; }
.tfo-hero-light .tfo-wrap { min-height: 0; padding-top: 8px; }
.tfo .tfo-hero-light p { opacity: 1; color: var(--tfo-ink); }
.tfo .tfo-hero-light .tfo-btn-ghost { background: #fff; color: var(--tfo-brand); border-color: var(--tfo-brand); }
@media (min-width: 1024px) {
  .tfo .tfo-hero-light .tfo-hero-img { position: absolute; height: 100%; aspect-ratio: auto; object-position: right center; }
  .tfo-hero-light .tfo-wrap { min-height: 560px; padding-top: 32px; justify-content: center; padding-bottom: 32px; }
  .tfo .tfo-hero-light h1 { max-width: 15ch; }
  .tfo .tfo-hero-light p { max-width: 30ch; }
}
