/* =========================================================================
   BuyFromChina storefront  |  design tokens + components + app shell
   Direction: "Wholesale Vermilion"  (dense marketplace, one locked accent)
   ========================================================================= */
:root {
  --bfc-bg: #F5F3F1;
  --bfc-surface: #FFFFFF;
  --bfc-sunk: #EFEBE7;
  --bfc-ink: #1B1714;
  --bfc-ink-2: #3D3530;
  --bfc-muted: #6E655F;
  --bfc-line: #E8E2DD;
  --bfc-accent: #F2401C;
  --bfc-accent-press: #D63412;
  --bfc-accent-soft: #FFECE6;
  --bfc-on-accent: #FFFFFF;
  --bfc-jade: #0F7B5F;
  --bfc-jade-soft: #E3F3EC;

  --bfc-display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --bfc-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bfc-r-sm: 8px;
  --bfc-r-md: 14px;
  --bfc-r-lg: 20px;
  --bfc-r-pill: 999px;

  --bfc-s1: 4px; --bfc-s2: 8px; --bfc-s3: 12px; --bfc-s4: 16px; --bfc-s5: 24px; --bfc-s6: 32px; --bfc-s7: 48px;

  --bfc-shadow-1: 0 1px 2px rgba(58, 30, 18, .06);
  --bfc-shadow-2: 0 2px 6px rgba(58, 30, 18, .06), 0 12px 28px rgba(58, 30, 18, .09);
  --bfc-shadow-3: 0 18px 50px rgba(58, 30, 18, .18);

  --bfc-ease: cubic-bezier(.2, .8, .2, 1);
  --bfc-spring: cubic-bezier(.34, 1.56, .64, 1);
  --bfc-tabbar-h: 64px;
  --bfc-safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
body { background: var(--bfc-bg); color: var(--bfc-ink); font-family: var(--bfc-text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, .bfc-display { font-family: var(--bfc-display); letter-spacing: -.015em; line-height: 1.08; }
.bfc-locked { overflow: hidden; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--bfc-accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* View transitions between pages (progressive). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bfc-vt-out .18s var(--bfc-ease) both; }
::view-transition-new(root) { animation: bfc-vt-in .26s var(--bfc-ease) both; }
@keyframes bfc-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes bfc-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Buttons ---------- */
.bfc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--bfc-r-pill); border: 1.5px solid transparent; font: 600 15px/1 var(--bfc-text); text-decoration: none; cursor: pointer; transition: transform .12s var(--bfc-ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.bfc-btn:active { transform: scale(.97); }
.bfc-btn--primary { background: var(--bfc-accent); color: var(--bfc-on-accent); box-shadow: 0 6px 16px rgba(242, 64, 28, .28); }
.bfc-btn--primary:hover { background: var(--bfc-accent-press); color: var(--bfc-on-accent); }
.bfc-btn--ghost { background: var(--bfc-surface); color: var(--bfc-ink); border-color: var(--bfc-line); }
.bfc-btn--ghost:hover { border-color: var(--bfc-ink); }
.bfc-btn--dark { background: var(--bfc-ink); color: #fff; }
.bfc-btn--block { width: 100%; }
.bfc-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.bfc-btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Product grid + cards ---------- */
.bfc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .bfc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .bfc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bfc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1480px) { .bfc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.bfc-card { position: relative; display: flex; flex-direction: column; background: var(--bfc-surface); border-radius: var(--bfc-r-md); overflow: hidden; box-shadow: var(--bfc-shadow-1); transition: transform .35s var(--bfc-ease), box-shadow .35s var(--bfc-ease); isolation: isolate; }
@media (hover: hover) { .bfc-card:hover { transform: translateY(-4px); box-shadow: var(--bfc-shadow-2); } }
.bfc-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--bfc-sunk); overflow: hidden; }
.bfc-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--bfc-ease), transform .7s var(--bfc-ease); }
.bfc-card__alt { opacity: 0; }
@media (hover: hover) {
  .bfc-card:hover .bfc-card__img { transform: scale(1.06); }
  .bfc-card:hover .bfc-card__alt { opacity: 1; transform: scale(1.03); }
}
.bfc-card__ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bfc-sunk), #F8E4DC); }
.bfc-card__badge { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 4px 8px; border-radius: var(--bfc-r-sm); background: var(--bfc-accent); color: #fff; font: 700 12px/1 var(--bfc-text); }
.bfc-card__badge--new { background: var(--bfc-ink); }
.bfc-card__body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; flex: 1; }
.bfc-card__title { color: var(--bfc-ink-2); font: 500 13.5px/1.35 var(--bfc-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; padding-right: 30px; }
.bfc-card__title:hover { color: var(--bfc-ink); }
.bfc-card__price { color: var(--bfc-accent); font: 700 17px/1.1 var(--bfc-text); letter-spacing: -.01em; }
.bfc-card__price del { color: var(--bfc-muted); font-size: 12px; font-weight: 500; margin-right: 4px; }
.bfc-card__price ins { text-decoration: none; }
.bfc-per-unit { color: var(--bfc-muted); font-size: 12px; font-weight: 500; }
.bfc-price-request { color: var(--bfc-ink-2); font-size: 14px; font-weight: 600; }
.bfc-card__meta { display: flex; flex-wrap: wrap; gap: 4px; }
.bfc-card__meta span { padding: 3px 7px; border-radius: 6px; background: var(--bfc-sunk); color: var(--bfc-muted); font: 500 11.5px/1.2 var(--bfc-text); }
.bfc-card__add { position: absolute; right: 8px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bfc-ink); color: #fff; cursor: pointer; transition: transform .2s var(--bfc-spring), background-color .2s; }
.bfc-card__add svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bfc-card__add:hover { background: var(--bfc-accent); transform: scale(1.08); }
.bfc-card__add.is-busy { animation: bfc-spin 1s linear infinite; pointer-events: none; }
.bfc-card__add--quote { position: static; width: auto; height: 32px; padding: 0 12px; border-radius: var(--bfc-r-pill); background: var(--bfc-accent-soft); color: var(--bfc-accent-press); font: 600 12.5px/1 var(--bfc-text); margin-top: 2px; align-self: flex-start; }
.bfc-card__add--quote:hover { background: var(--bfc-accent); color: #fff; transform: none; }
.bfc-card--compact { width: 150px; flex: 0 0 auto; }
.bfc-card--compact .bfc-card__title { -webkit-line-clamp: 1; min-height: 0; font-size: 12.5px; }
.bfc-card--compact .bfc-card__add { display: none; }
@media (min-width: 768px) { .bfc-card--compact { width: 186px; } }

/* Wishlist heart */
.bfc-wish { position: absolute; right: 8px; top: 8px; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); cursor: pointer; box-shadow: var(--bfc-shadow-1); }
.bfc-wish svg { fill: none; stroke: var(--bfc-ink); stroke-width: 1.8; transition: fill .2s, stroke .2s; }
.bfc-wish.is-on svg { fill: var(--bfc-accent); stroke: var(--bfc-accent); }
.bfc-wish.is-pop svg { animation: bfc-pop .45s var(--bfc-spring); }
@keyframes bfc-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Horizontal rail ---------- */
.bfc-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px; overscroll-behavior-x: contain; }
.bfc-rail::-webkit-scrollbar { display: none; }
.bfc-rail > * { scroll-snap-align: start; }

/* ---------- Flash deals band ---------- */
.bfc-flash { background: var(--bfc-surface); border-radius: var(--bfc-r-lg); padding: 14px 14px 10px; box-shadow: var(--bfc-shadow-1); }
.bfc-flash__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bfc-flash__title { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; }
.bfc-flash__title svg { fill: var(--bfc-accent); }
.bfc-flash__more { margin-left: auto; color: var(--bfc-ink); font: 600 13px/1 var(--bfc-text); text-decoration: none; }
.bfc-flash__more:hover { color: var(--bfc-accent); }
.bfc-countdown { display: inline-flex; align-items: center; gap: 3px; font: 700 13px/1 var(--bfc-text); font-variant-numeric: tabular-nums; }
.bfc-countdown b { min-width: 26px; padding: 5px 0; border-radius: 6px; background: var(--bfc-ink); color: #fff; text-align: center; }
.bfc-countdown i { color: var(--bfc-ink); font-style: normal; }

/* ---------- Category tiles (round) ---------- */
.bfc-cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
@media (min-width: 640px) { .bfc-cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bfc-cat-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.bfc-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--bfc-ink-2); text-align: center; }
.bfc-cat-tile__img { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bfc-surface); box-shadow: var(--bfc-shadow-1); transition: transform .3s var(--bfc-spring), box-shadow .3s; }
.bfc-cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.bfc-cat-tile:hover .bfc-cat-tile__img { transform: translateY(-3px) scale(1.04); box-shadow: var(--bfc-shadow-2); }
.bfc-cat-tile__name { font: 500 12px/1.25 var(--bfc-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Desktop mega menu ---------- */
.bfc-mega { position: relative; height: 100%; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
.bfc-mega__list { list-style: none; margin: 0; padding: 8px 0; }
.bfc-mega__item > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px; color: var(--bfc-ink-2); font: 500 14px/1.2 var(--bfc-text); text-decoration: none; }
.bfc-mega__item > a svg { fill: none; stroke: currentColor; stroke-width: 2; opacity: .4; }
.bfc-mega__item:hover > a, .bfc-mega__item:focus-within > a { background: var(--bfc-accent-soft); color: var(--bfc-accent-press); }
.bfc-mega__panel { position: absolute; left: 100%; top: 0; z-index: 50; width: min(760px, 62vw); min-height: 100%; padding: 22px 24px; background: var(--bfc-surface); border-radius: 0 var(--bfc-r-lg) var(--bfc-r-lg) 0; box-shadow: var(--bfc-shadow-3); opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .18s, transform .22s var(--bfc-ease), visibility .18s; }
.bfc-mega__item:hover .bfc-mega__panel, .bfc-mega__item:focus-within .bfc-mega__panel { opacity: 1; visibility: visible; transform: none; }
.bfc-mega__panel h4 { margin: 0 0 14px; font-size: 18px; }
.bfc-mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
.bfc-mega__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--bfc-ink-2); font: 500 12.5px/1.25 var(--bfc-text); text-decoration: none; }
.bfc-mega__grid a span { width: 72px; height: 72px; border-radius: var(--bfc-r-md); overflow: hidden; background: var(--bfc-sunk); }
.bfc-mega__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--bfc-ease); }
.bfc-mega__grid a:hover img { transform: scale(1.08); }
.bfc-mega__grid a:hover { color: var(--bfc-accent); }

/* ---------- App-style categories screen ---------- */
.bfc-crail { display: grid; grid-template-columns: 104px 1fr; height: calc(100dvh - 140px); background: var(--bfc-surface); border-radius: var(--bfc-r-lg); overflow: hidden; }
@media (min-width: 768px) { .bfc-crail { grid-template-columns: 220px 1fr; height: auto; min-height: 70vh; } }
.bfc-crail__rail { overflow-y: auto; background: var(--bfc-sunk); scrollbar-width: none; }
.bfc-crail__tab { display: block; width: 100%; padding: 14px 10px; border: 0; border-left: 3px solid transparent; background: none; color: var(--bfc-muted); font: 500 13px/1.25 var(--bfc-text); text-align: left; cursor: pointer; }
.bfc-crail__tab.is-active { background: var(--bfc-surface); border-left-color: var(--bfc-accent); color: var(--bfc-ink); font-weight: 700; }
.bfc-crail__panes { overflow-y: auto; padding: 14px; }
.bfc-crail__all { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--bfc-r-md); background: var(--bfc-accent-soft); color: var(--bfc-accent-press); font: 600 14px/1 var(--bfc-text); text-decoration: none; }
.bfc-crail__all svg { fill: none; stroke: currentColor; stroke-width: 2; }
.bfc-crail h4 { margin: 18px 0 10px; font-size: 15px; }
.bfc-crail h4 a { color: var(--bfc-ink); text-decoration: none; }
.bfc-crail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
@media (min-width: 768px) { .bfc-crail__grid { grid-template-columns: repeat(6, 1fr); } }
.bfc-crail__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--bfc-ink-2); font: 500 12px/1.25 var(--bfc-text); text-align: center; text-decoration: none; }
.bfc-crail__grid a span { width: 100%; max-width: 72px; aspect-ratio: 1; border-radius: var(--bfc-r-md); overflow: hidden; background: var(--bfc-sunk); }
.bfc-crail__grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Single product: tiers + facts ---------- */
.bfc-tiers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin: 12px 0 16px; border-radius: var(--bfc-r-md); overflow: hidden; background: var(--bfc-line); }
.bfc-tier { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--bfc-accent-soft); }
.bfc-tier:first-child { background: var(--bfc-accent); color: #fff; }
.bfc-tier__price { font: 800 20px/1 var(--bfc-display); }
.bfc-tier:not(:first-child) .bfc-tier__price { color: var(--bfc-accent-press); }
.bfc-tier__qty { font: 500 12px/1.2 var(--bfc-text); opacity: .85; }
.bfc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 14px; border-top: 1px solid var(--bfc-line); }
.bfc-facts > div { padding: 10px 0; border-bottom: 1px solid var(--bfc-line); }
.bfc-facts dt { color: var(--bfc-muted); font: 500 12px/1.3 var(--bfc-text); }
.bfc-facts dd { margin: 2px 0 0; color: var(--bfc-ink); font: 600 14px/1.3 var(--bfc-text); }
.bfc-assure { list-style: none; margin: 0; padding: 12px 14px; border-radius: var(--bfc-r-md); background: var(--bfc-jade-soft); color: var(--bfc-jade); font: 500 13px/1.5 var(--bfc-text); }
.bfc-assure li { padding-left: 22px; position: relative; }
.bfc-assure li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.bfc-specs { margin: 0; padding-left: 18px; }
.bfc-quote { display: grid; gap: 10px; margin: 14px 0; }

/* ---------- Switch rows (notification topics) ---------- */
.bfc-topics { display: grid; gap: 2px; margin: 12px 0; }
.bfc-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--bfc-line); cursor: pointer; }
.bfc-switch b { display: block; font: 600 14.5px/1.3 var(--bfc-text); }
.bfc-switch small { display: block; color: var(--bfc-muted); font: 400 12.5px/1.35 var(--bfc-text); }
.bfc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bfc-switch i { flex: 0 0 auto; position: relative; width: 46px; height: 28px; border-radius: 999px; background: #D8D0CA; transition: background-color .2s; }
.bfc-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--bfc-spring); }
.bfc-switch input:checked + i { background: var(--bfc-jade); }
.bfc-switch input:checked + i::after { transform: translateX(18px); }
.bfc-switch input:focus-visible + i { outline: 2px solid var(--bfc-accent); outline-offset: 2px; }
.bfc-prefs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--bfc-r-md); background: var(--bfc-sunk); font-weight: 600; }
.bfc-prefs-head.is-on { background: var(--bfc-jade-soft); color: var(--bfc-jade); }
.bfc-note { padding: 12px 14px; border-radius: var(--bfc-r-md); background: var(--bfc-sunk); color: var(--bfc-ink-2); }

/* ---------- Bottom sheets ---------- */
.bfc-sheet[hidden], .bfc-toast[hidden], [data-bfc-install][hidden] { display: none !important; }
.bfc-sheet { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: flex-end; justify-content: center; background: rgba(27, 23, 20, 0); transition: background-color .28s; }
.bfc-sheet.is-open { background: rgba(27, 23, 20, .45); }
.bfc-sheet__panel { width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; padding: 10px 20px calc(20px + var(--bfc-safe-b)); background: var(--bfc-surface); border-radius: 22px 22px 0 0; box-shadow: var(--bfc-shadow-3); transform: translateY(100%); transition: transform .32s var(--bfc-ease); }
.bfc-sheet.is-open .bfc-sheet__panel { transform: none; }
@media (min-width: 768px) { .bfc-sheet { align-items: center; } .bfc-sheet__panel { border-radius: 22px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s var(--bfc-ease), opacity .2s; } .bfc-sheet.is-open .bfc-sheet__panel { opacity: 1; } }
.bfc-sheet__grip { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: var(--bfc-line); }
.bfc-sheet h3 { margin: 0 0 6px; font-size: 21px; }
.bfc-sheet p { margin: 0 0 8px; color: var(--bfc-muted); }
.bfc-sheet__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.bfc-install { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.bfc-install img { border-radius: 16px; box-shadow: var(--bfc-shadow-2); }
.bfc-push-hero { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px; background: var(--bfc-accent-soft); }
.bfc-push-hero svg { fill: none; stroke: var(--bfc-accent); stroke-width: 2; stroke-linecap: round; animation: bfc-ring 2.4s var(--bfc-ease) infinite; transform-origin: 50% 10%; }
@keyframes bfc-ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(14deg); } 72% { transform: rotate(-12deg); } 79% { transform: rotate(8deg); } 86% { transform: rotate(-4deg); } }
.bfc-form { display: grid; gap: 12px; }
.bfc-form label { display: grid; gap: 6px; color: var(--bfc-ink-2); font: 600 13px/1 var(--bfc-text); }
.bfc-form input, .bfc-form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--bfc-line); border-radius: var(--bfc-r-md); background: var(--bfc-surface); color: var(--bfc-ink); font: 400 16px/1.3 var(--bfc-text); }
.bfc-form input:focus, .bfc-form textarea:focus { border-color: var(--bfc-ink); outline: none; }

/* ---------- Toast ---------- */
.bfc-toast { position: fixed; left: 50%; bottom: calc(24px + var(--bfc-safe-b)); z-index: 9999; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--bfc-r-pill); background: var(--bfc-ink); color: #fff; font: 500 14px/1.3 var(--bfc-text); box-shadow: var(--bfc-shadow-3); transform: translate(-50%, 20px); opacity: 0; transition: transform .3s var(--bfc-spring), opacity .2s; }
.bfc-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Skeletons + feed ---------- */
.bfc-skel { display: block; border-radius: var(--bfc-r-md); background: linear-gradient(90deg, var(--bfc-sunk) 0, #F7F3F0 50%, var(--bfc-sunk) 100%); background-size: 200% 100%; animation: bfc-shimmer 1.2s linear infinite; }
.bfc-skel--line { height: 44px; margin: 8px 0; }
.bfc-feed-sentinel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.bfc-feed-sentinel .bfc-skel { aspect-ratio: .75; }
@media (min-width: 960px) { .bfc-feed-sentinel { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .bfc-feed-sentinel { grid-template-columns: repeat(5, 1fr); } }
@keyframes bfc-shimmer { to { background-position: -200% 0; } }
@keyframes bfc-spin { to { transform: rotate(360deg); } }
.bfc-empty { padding: 40px 20px; text-align: center; color: var(--bfc-muted); }

/* ---------- Reveal + motion ---------- */
.bfc-js [data-reveal] { opacity: 0; transform: translateY(14px); }
.bfc-js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .5s var(--bfc-ease) var(--d, 0ms), transform .6s var(--bfc-ease) var(--d, 0ms); }
.bfc-fly { position: fixed; z-index: 9998; border-radius: 12px; object-fit: cover; pointer-events: none; }
[data-bfc-cart-count].is-bump { animation: bfc-bump .5s var(--bfc-spring); }
@keyframes bfc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bfc-js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* =========================================================================
   Native app shell (phones)
   ========================================================================= */
.bfc-tabbar { display: none; }
.bfc-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bfc-accent); color: #fff; font: 700 11px/18px var(--bfc-text); text-align: center; box-shadow: 0 0 0 2px var(--bfc-surface); }
.bfc-badge[hidden] { display: none; }

@media (max-width: 767px) {
  body.bfc-app { padding-bottom: calc(var(--bfc-tabbar-h) + var(--bfc-safe-b)); overscroll-behavior-y: none; }
  .bfc-app .bfc-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bfc-tabbar-h) + var(--bfc-safe-b)); padding-bottom: var(--bfc-safe-b); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--bfc-line); transition: transform .3s var(--bfc-ease); }
  .bfc-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--bfc-muted); text-decoration: none; font: 600 10.5px/1 var(--bfc-text); }
  .bfc-tab__icon { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 99px; transition: background-color .25s, transform .2s var(--bfc-spring); }
  .bfc-tab svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .bfc-tab.is-active { color: var(--bfc-accent); }
  .bfc-tab.is-active .bfc-tab__icon { background: var(--bfc-accent-soft); }
  .bfc-tab.is-active svg { stroke-width: 2.2; }
  .bfc-tab:active .bfc-tab__icon { transform: scale(.88); }
  .bfc-app .bfc-toast { bottom: calc(var(--bfc-tabbar-h) + 14px + var(--bfc-safe-b)); }

  /* Product page: replace tab bar with a sticky buy bar. */
  .bfc-app.single-product .bfc-tabbar { transform: translateY(110%); }
  .bfc-app.single-product { padding-bottom: calc(84px + var(--bfc-safe-b)); }
  .bfc-app.single-product .bfc-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001; display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(10px + var(--bfc-safe-b)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--bfc-line); margin: 0 !important; }
  .bfc-app.single-product .bfc-buybar form.cart { display: flex; gap: 10px; width: 100%; margin: 0; }
  .bfc-app.single-product .bfc-buybar .quantity input { width: 84px; min-height: 48px; }
  .bfc-app.single-product .bfc-buybar .single_add_to_cart_button { flex: 1; min-height: 48px; border-radius: var(--bfc-r-pill); }
  .bfc-app.single-product .bfc-buybar .bfc-quote { display: flex; width: 100%; margin: 0; gap: 8px; }
  .bfc-app.single-product .bfc-buybar .bfc-quote .bfc-btn { flex: 1; }

  /* Edge-to-edge sections like a native app. */
  .bfc-app .bfc-grid { gap: 8px; }
  .bfc-app .bfc-card { border-radius: 12px; }
  .bfc-app .bfc-card__body { padding: 8px 8px 10px; }
  .bfc-app .bfc-card__price { font-size: 16px; }
  .bfc-app .bfc-flash { border-radius: 16px; padding: 12px 10px 8px; }
  .bfc-app .bfc-crail { border-radius: 0; margin: 0 -16px; height: calc(100dvh - var(--bfc-tabbar-h) - 120px - var(--bfc-safe-b)); }
}

/* Standalone (installed) tweaks */
.bfc-standalone body { user-select: none; -webkit-user-select: none; }
.bfc-standalone input, .bfc-standalone textarea, .bfc-standalone .woocommerce-product-details__short-description, .bfc-standalone .entry-content { user-select: text; -webkit-user-select: text; }

/* =========================================================================
   WooCommerce polish
   ========================================================================= */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button:not(.is-link) { border-radius: var(--bfc-r-pill) !important; font-family: var(--bfc-text); font-weight: 600; }
.woocommerce .button.alt, .woocommerce button.button.alt, .single_add_to_cart_button, .checkout-button, #place_order { background: var(--bfc-accent) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 16px rgba(242, 64, 28, .25); }
.woocommerce .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--bfc-accent-press) !important; }
.woocommerce .price, .woocommerce-Price-amount { color: var(--bfc-accent); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--bfc-r-md); border-top-color: var(--bfc-accent) !important; }
.woocommerce .quantity input.qty { min-height: 44px; border-radius: var(--bfc-r-md); border: 1.5px solid var(--bfc-line); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-radius: var(--bfc-r-md); color: var(--bfc-ink-2); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--bfc-accent-soft); color: var(--bfc-accent-press); font-weight: 700; }

/* =========================================================================
   Storefront layout (header, hero, home sections, archive, footer)
   ========================================================================= */
.bfc-wrap { width: min(1400px, 100% - 32px); margin-inline: auto; }
.bfc-section { padding-block: 10px; }
@media (min-width: 768px) { .bfc-section { padding-block: 14px; } }
.bfc-h2 { margin: 0 0 12px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 800; }

/* Header */
.bfc-hdr { position: sticky; top: 0; z-index: 800; background: var(--bfc-surface); box-shadow: 0 1px 0 var(--bfc-line); transition: box-shadow .25s; }
.admin-bar .bfc-hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .bfc-hdr { top: 0; } }
.bfc-scrolled .bfc-hdr { box-shadow: 0 6px 24px rgba(58, 30, 18, .08); }
.bfc-hdr__top { background: var(--bfc-ink); color: #EDE6E1; font: 500 12.5px/1 var(--bfc-text); }
.bfc-hdr__top .bfc-wrap { display: flex; align-items: center; gap: 18px; min-height: 34px; }
.bfc-hdr__top a { color: inherit; text-decoration: none; opacity: .85; }
.bfc-hdr__top a:hover { opacity: 1; }
.bfc-hdr__top .bfc-hdr__msg { margin-right: auto; }
.bfc-hdr__main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 76px; }
.bfc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--bfc-ink); text-decoration: none; }
.bfc-logo img { width: 40px; height: 40px; border-radius: 11px; }
.bfc-logo b { font: 800 22px/1 var(--bfc-display); letter-spacing: -.03em; }
.bfc-logo b span { color: var(--bfc-accent); }
.bfc-search { position: relative; display: flex; align-items: center; height: 46px; border: 2px solid var(--bfc-ink); border-radius: var(--bfc-r-pill); background: var(--bfc-surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.bfc-search:focus-within { border-color: var(--bfc-accent); box-shadow: 0 0 0 4px var(--bfc-accent-soft); }
.bfc-search__icon { margin-left: 16px; fill: none; stroke: var(--bfc-muted); stroke-width: 2; flex: 0 0 auto; }
.bfc-search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0 !important; background: transparent; color: var(--bfc-ink); font: 400 15px/1 var(--bfc-text); outline: none !important; box-shadow: none !important; }
.bfc-search__go { height: calc(100% - 8px); margin-right: 4px; padding: 0 22px; border: 0; border-radius: var(--bfc-r-pill); background: var(--bfc-ink); color: #fff; font: 600 14px/1 var(--bfc-text); cursor: pointer; transition: background-color .2s; }
.bfc-search__go:hover { background: var(--bfc-accent); }
.bfc-hots { display: flex; gap: 14px; margin-top: 6px; padding-left: 18px; overflow: hidden; white-space: nowrap; }
.bfc-hots a { color: var(--bfc-muted); font: 400 12px/1.2 var(--bfc-text); text-decoration: none; }
.bfc-hots a:hover { color: var(--bfc-accent); }
.bfc-hactions { display: flex; align-items: center; gap: 6px; }
.bfc-hact { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: var(--bfc-r-md); background: none; color: var(--bfc-ink); font: 600 13.5px/1.1 var(--bfc-text); text-decoration: none; cursor: pointer; transition: background-color .2s; }
.bfc-hact:hover { background: var(--bfc-sunk); color: var(--bfc-ink); }
.bfc-hact svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bfc-hact small { display: block; color: var(--bfc-muted); font-weight: 500; font-size: 11.5px; }
.bfc-hact__ico { position: relative; display: grid; }
.bfc-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 10px; }
.bfc-strip::-webkit-scrollbar { display: none; }
.bfc-strip a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--bfc-r-pill); color: var(--bfc-ink-2); font: 500 13.5px/1 var(--bfc-text); text-decoration: none; transition: background-color .2s, color .2s; }
.bfc-strip a:hover, .bfc-strip a[aria-current] { background: var(--bfc-sunk); color: var(--bfc-ink); }
.bfc-strip svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bfc-strip__all { background: var(--bfc-ink) !important; color: #fff !important; font-weight: 600 !important; }
.bfc-strip__hot { color: var(--bfc-accent) !important; font-weight: 700 !important; }

/* Hero row */
.bfc-hero { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 14px; align-items: stretch; }
.bfc-hero > * { min-width: 0; }
@media (max-width: 1199px) { .bfc-hero { grid-template-columns: 230px minmax(0, 1fr); } .bfc-hero .bfc-welcome { display: none; } }
@media (max-width: 899px) { .bfc-hero { grid-template-columns: 1fr; } .bfc-hero .bfc-mega { display: none; } }

/* Promo carousel */
.bfc-promos { position: relative; height: 100%; min-height: 340px; border-radius: var(--bfc-r-lg); overflow: hidden; }
.bfc-promos__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bfc-promos__track::-webkit-scrollbar { display: none; }
.bfc-promo { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 12px; padding: 34px 40px; min-height: 340px; position: relative; overflow: hidden; }
.bfc-promo--ink { background: var(--bfc-ink); color: #fff; }
.bfc-promo--accent { background: var(--bfc-accent); color: #fff; }
.bfc-promo--sunk { background: #FBE3D8; color: var(--bfc-ink); }
.bfc-promo__eyebrow { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border-radius: var(--bfc-r-pill); background: rgba(255, 255, 255, .14); font: 600 12px/1 var(--bfc-text); }
.bfc-promo--sunk .bfc-promo__eyebrow { background: rgba(27, 23, 20, .08); }
.bfc-promo h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 40px); font-weight: 800; line-height: 1.04; color: inherit; max-width: 14ch; }
.bfc-promo p { margin: 0 0 20px; opacity: .85; max-width: 36ch; }
.bfc-promo__art { position: relative; height: 100%; min-height: 240px; }
.bfc-promo__art img { position: absolute; width: 56%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transition: transform .8s var(--bfc-ease); }
.bfc-promo__art img:nth-child(1) { right: 34%; top: 6%; transform: rotate(-6deg); z-index: 2; }
.bfc-promo__art img:nth-child(2) { right: 0; top: 0; width: 46%; transform: rotate(5deg); }
.bfc-promo__art img:nth-child(3) { right: 8%; bottom: -4%; width: 42%; transform: rotate(-2deg); z-index: 3; }
.bfc-promo:hover .bfc-promo__art img:nth-child(1) { transform: rotate(-3deg) translateY(-6px); }
.bfc-promo:hover .bfc-promo__art img:nth-child(2) { transform: rotate(8deg) translateY(4px); }
.bfc-promos__dots { position: absolute; left: 40px; bottom: 18px; display: flex; gap: 6px; }
.bfc-promos__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s var(--bfc-ease), background-color .3s; }
.bfc-promos__dots button[aria-selected="true"] { width: 26px; background: #fff; }
@media (max-width: 767px) {
  .bfc-promos { min-height: 0; border-radius: 16px; }
  .bfc-promo { grid-template-columns: 1fr .8fr; padding: 20px 18px 34px; min-height: 200px; }
  .bfc-promo h2 { font-size: 21px; }
  .bfc-promo p { display: none; }
  .bfc-promo .bfc-btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
  .bfc-promo__art { min-height: 150px; }
  .bfc-promos__dots { left: 18px; bottom: 12px; }
}

/* Welcome column */
.bfc-welcome { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
.bfc-welcome__hi { display: flex; align-items: center; gap: 12px; }
.bfc-welcome__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bfc-accent-soft); color: var(--bfc-accent-press); font: 800 18px/1 var(--bfc-display); }
.bfc-welcome__hi small { display: block; color: var(--bfc-muted); font-size: 12px; }
.bfc-welcome__hi strong { font: 700 15px/1.2 var(--bfc-text); }
.bfc-welcome__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfc-welcome__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bfc-welcome__links a { padding: 10px 4px; border-radius: var(--bfc-r-md); background: var(--bfc-sunk); color: var(--bfc-ink); font: 600 12.5px/1 var(--bfc-text); text-align: center; text-decoration: none; }
.bfc-welcome__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bfc-welcome__perks li { padding: 10px 12px; border-radius: var(--bfc-r-md); background: var(--bfc-bg); color: var(--bfc-muted); font: 400 12px/1.35 var(--bfc-text); }
.bfc-welcome__perks b { display: block; color: var(--bfc-ink); font-size: 13px; }

/* Shelves */
.bfc-shelf { padding: 14px 14px 8px; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
.bfc-shelf__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.bfc-shelf__head h2 { margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 800; }
.bfc-shelf__head a { color: var(--bfc-ink); font: 600 13px/1 var(--bfc-text); text-decoration: none; }
.bfc-shelf__head a:hover { color: var(--bfc-accent); }
.bfc-shelves { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1100px) { .bfc-shelves { grid-template-columns: 1fr 1fr; } .bfc-shelves .bfc-card--compact { width: 160px; } }

/* How it works */
.bfc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 22px 8px; background: var(--bfc-ink); color: #fff; border-radius: var(--bfc-r-lg); }
.bfc-step { display: flex; gap: 12px; align-items: flex-start; padding: 4px 18px; border-left: 1px solid rgba(255, 255, 255, .12); }
.bfc-step:first-child { border-left: 0; }
.bfc-step svg { flex: 0 0 auto; fill: none; stroke: var(--bfc-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bfc-step h3 { margin: 0 0 4px; font-size: 16px; color: #fff; }
.bfc-step p { margin: 0; color: #CFC5BF; font-size: 13px; line-height: 1.45; }
@media (max-width: 899px) { .bfc-steps { grid-template-columns: 1fr 1fr; gap: 16px 0; } .bfc-step:nth-child(3) { border-left: 0; } }
@media (max-width: 520px) { .bfc-steps { grid-template-columns: 1fr; } .bfc-step { border-left: 0; } }

/* Archive */
.bfc-archive__head h1 { margin: 6px 0 12px; font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.bfc-subcats { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 8px; }
.bfc-subcats a { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--bfc-ink-2); font: 500 12px/1.25 var(--bfc-text); text-align: center; text-decoration: none; }
.bfc-subcats span { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bfc-surface); box-shadow: var(--bfc-shadow-1); }
.bfc-subcats img { width: 100%; height: 100%; object-fit: cover; }
.bfc-sort { position: sticky; top: var(--bfc-hdr-h, 0px); z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin-bottom: 8px; background: var(--bfc-bg); }
.bfc-sort a { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--bfc-r-pill); color: var(--bfc-ink-2); font: 500 13.5px/1 var(--bfc-text); text-decoration: none; }
.bfc-sort a[aria-current] { background: var(--bfc-ink); color: #fff; font-weight: 600; }

/* Single product layout helpers */
.bfc-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.bfc-pdp__summary { position: sticky; top: 140px; padding: 24px; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
.bfc-pdp__gallery { padding: 16px; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
.bfc-pdp__summary .product_title, .bfc-pdp__summary h1 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; margin: 0 0 10px; }
.bfc-pdp__summary .price { font: 800 28px/1.1 var(--bfc-display) !important; margin: 0 0 6px; }
.bfc-pdp__head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.bfc-pdp__head .bfc-wish { position: static; flex: 0 0 auto; }
.bfc-buybar { margin-top: 14px; }
.bfc-buybar form.cart { display: flex; gap: 10px; align-items: stretch; }
.bfc-buybar .single_add_to_cart_button { flex: 1; min-height: 50px; font-size: 16px !important; }
.bfc-pdp-more { padding: 22px; background: var(--bfc-surface); border-radius: var(--bfc-r-lg); box-shadow: var(--bfc-shadow-1); }
@media (max-width: 899px) { .bfc-pdp { grid-template-columns: 1fr; gap: 12px; } .bfc-pdp__summary { position: static; padding: 16px; } .bfc-pdp__gallery { padding: 0; border-radius: 0; margin: 0 -16px; box-shadow: none; } }

/* Footer */
.bfc-ftr { margin-top: 32px; padding: 40px 0 24px; background: var(--bfc-ink); color: #CFC5BF; font-size: 14px; }
.bfc-ftr a { color: #EDE6E1; text-decoration: none; }
.bfc-ftr a:hover { color: #fff; text-decoration: underline; }
.bfc-ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.bfc-ftr h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.bfc-ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bfc-ftr__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }
@media (max-width: 899px) { .bfc-ftr__grid { grid-template-columns: 1fr 1fr; } }

/* Phone header: native app bar */
@media (max-width: 767px) {
  .bfc-hdr__top, .bfc-hots, .bfc-hact span:not(.bfc-hact__ico), .bfc-hact--wish, .bfc-hact--acc, .bfc-hact--cart { display: none !important; }
  .bfc-hdr__main { grid-template-columns: auto 1fr auto; gap: 10px; min-height: 0; padding-block: 8px 4px; }
  .bfc-logo b { display: none; }
  .bfc-logo img { width: 34px; height: 34px; border-radius: 10px; }
  .bfc-search { height: 40px; border-width: 0; background: var(--bfc-sunk); }
  .bfc-search__go { display: none; }
  .bfc-search__input { font-size: 16px; }
  .bfc-strip { padding: 4px 0 8px; }
  .bfc-strip a { padding: 6px 12px; font-size: 13px; background: var(--bfc-sunk); }
  .bfc-app .bfc-ftr { display: none; }
  .bfc-wrap { width: calc(100% - 24px); }
  .bfc-shelf { border-radius: 16px; padding: 12px 10px 6px; }
}

/* Unit / Pack / Carton order form */
form.cart.bfc-qf-on .quantity { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
form.cart.bfc-qf-on { flex-wrap: wrap; }
.bfc-qf { display: grid; gap: 10px; width: 100%; margin: 4px 0 12px; }
.bfc-qf__row { display: grid; grid-template-columns: 64px auto 1fr; align-items: center; gap: 12px; }
.bfc-qf__label { color: var(--bfc-ink-2); font: 600 14px/1 var(--bfc-text); text-align: right; }
.bfc-qf__stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--bfc-line); border-radius: var(--bfc-r-pill); overflow: hidden; background: var(--bfc-surface); }
.bfc-qf__btn { width: 40px; height: 40px; border: 0; background: none; color: var(--bfc-ink); font: 500 20px/1 var(--bfc-text); cursor: pointer; }
.bfc-qf__btn:hover { background: var(--bfc-sunk); }
.bfc-qf__stepper input { width: 64px; height: 40px; border: 0 !important; border-inline: 1.5px solid var(--bfc-line) !important; text-align: center; font: 600 16px/1 var(--bfc-text); color: var(--bfc-ink); background: none; -moz-appearance: textfield; box-shadow: none !important; }
.bfc-qf__stepper input::-webkit-outer-spin-button, .bfc-qf__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bfc-qf__hint { color: var(--bfc-muted); font: 400 12.5px/1.3 var(--bfc-text); }
.bfc-qf__moq { margin: 2px 0 0; padding: 8px 12px; border-radius: var(--bfc-r-sm); background: var(--bfc-accent-soft); color: var(--bfc-accent-press); font: 600 13px/1.3 var(--bfc-text); }
.bfc-qf__total { margin: 0; font: 500 14px/1.3 var(--bfc-text); }
.bfc-qf__total b { font-size: 17px; }
.bfc-qf.is-below .bfc-qf__total { color: var(--bfc-accent-press); }
.bfc-qf__remarks { display: grid; gap: 6px; font: 600 13px/1 var(--bfc-text); color: var(--bfc-ink-2); }
.bfc-qf__remarks input { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--bfc-line); border-radius: var(--bfc-r-md); font: 400 16px/1.3 var(--bfc-text); }
.single_add_to_cart_button[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 767px) {
  /* With the packing form, keep the buy block inline so buyers can set units/packs/cartons. */
  .bfc-app.single-product .bfc-buybar:has(.bfc-qf) { position: static; padding: 0; background: none; border: 0; backdrop-filter: none; margin-top: 14px !important; }
  .bfc-app.single-product:has(.bfc-qf) { padding-bottom: calc(var(--bfc-tabbar-h) + var(--bfc-safe-b)); }
  .bfc-app.single-product:has(.bfc-qf) .bfc-tabbar { transform: none; }
  .bfc-app.single-product .bfc-buybar:has(.bfc-qf) form.cart { flex-wrap: wrap; }
  .bfc-qf__row { grid-template-columns: 56px auto; } .bfc-qf__hint { grid-column: 2; margin-top: -6px; }
}
