.sf-brand-detail {
  --bc-dark: #163c31;
  --bc-accent: #dfefa5;
  --bc-pale: #edf2d9;
  --bc-tone: #396141;
}
.sf-brand-detail[data-brand="brand-fern-hollow-demo"] {
  --bc-dark: #532e2d;
  --bc-accent: #ffdbac;
  --bc-pale: #f8ecdb;
  --bc-tone: #814737;
}
.sf-brand-detail[data-brand="brand-cascadia-spore-demo"] {
  --bc-dark: #183e47;
  --bc-accent: #c5e7dd;
  --bc-pale: #e2eee8;
  --bc-tone: #30646a;
}
.sf-brand-detail .bc-hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: clamp(300px, 33vw, 440px);
  overflow: hidden;
  isolation: isolate;
  color: #fffcf1;
  background: var(--bc-dark);
  border-radius: 22px;
}
.bc-hero-copy {
  position: relative;
  isolation: isolate;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 66px);
}
.bc-hero-copy::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 105% 124%, transparent 0 20px, rgb(251 245 204 / 5%) 21px 22px, transparent 23px 41px);
}
.bc-label {
  font: 730 10px/1.4 "DM Sans", system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bc-tone, var(--forest));
}
.bc-hero-copy .bc-label {
  color: var(--bc-accent);
}
.bc-hero .bc-sample {
  position: absolute;
  top: 15px;
  right: 17px;
  font: 560 10px/1.2 "DM Sans", sans-serif;
  color: #e0e5d9;
}
.sf-brand-detail .bc-hero h1 {
  margin: 14px 0 3px;
  max-width: 12ch;
  overflow-wrap: anywhere;
  color: #fff9e8;
  font: 550 clamp(54px, 6.8vw, 98px) / 0.88 Cormorant, Georgia, serif;
  letter-spacing: -0.062em;
}
.sf-brand-detail[data-brand="brand-fern-hollow-demo"] .bc-hero h1 {
  font-style: italic;
}
.bc-hero-copy p {
  max-width: 43ch;
  margin: 14px 0 22px;
  color: #f3f0e4;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.52;
  text-wrap: pretty;
}
.sf-brand-detail .bc-hero figure {
  height: 100%;
  margin: 0;
  border-radius: 0;
  min-height: 250px;
}
.bc-hero figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bc-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px 13px;
  flex-wrap: wrap;
}
.bc-hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
  min-height: 36px;
}
.bc-hero-actions a:first-child {
  background: var(--bc-accent);
  color: var(--bc-dark);
  padding: 9px 15px;
  border-radius: 25px;
}
.bc-hero-actions a + a {
  color: #fff8e8;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bc-meta,
.bc-section-nav {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.bc-meta .sf-source, .bc-meta > details { margin-inline-start: auto; }
.bc-meta summary { cursor: pointer; }
.bc-section-nav { padding: 0; gap: 0 20px; }
.bc-section-nav a {
  color: var(--bc-dark);
  padding: 12px 1px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
}
.bc-section-nav a:hover,
.bc-section-nav a:focus-visible { border-color: var(--bc-tone); }
.bc-catalog { margin: 30px 0 42px; scroll-margin-top: 18px; }
.bc-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 0 0 19px;
}
.bc-catalog-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font: 650 clamp(33px, 3.7vw, 52px) / 1 Cormorant, Georgia, serif;
  letter-spacing: -0.055em;
}
.bc-cart-link, .bc-stock-count {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 680;
  text-underline-offset: 3px;
}
.bc-cart-link {
  min-height: 35px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 25px;
}
.bc-cart-link:hover { background: var(--bc-pale, var(--tint)); }
.bc-layout {
  display: grid;
  grid-template-columns: minmax(185px, 0.255fr) minmax(0, 1fr);
  gap: clamp(17px, 2.2vw, 34px);
  align-items: start;
}
.bc-grid-main { min-width: 0; }
/* Side menu: same look and behaviour as the retailer menu (Browse menu rail). */
.bc-browse { display: none; }
.bc-side {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 14px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  scrollbar-width: thin;
  padding: 14px;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.bc-rail-title {
  display: block;
  margin: 0 0 10px;
  color: #627063;
  font: 740 11px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}
.bc-side nav { display: block; }
.bc-side button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 2px 0;
  padding: 8px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1e3025;
  font: 610 12px/1.3 "DM Sans", sans-serif;
  text-align: left;
  cursor: pointer;
}
.bc-side button > .bc-name { flex: 1; }
.bc-side button > small {
  font-size: 10px;
  color: #627063;
  font-variant-numeric: tabular-nums;
}
.bc-side nav > button[aria-pressed="true"],
.bc-side nav > button:hover {
  background: #e8efdd;
  color: #244b38;
}
.bc-side-sub {
  display: grid;
  gap: 3px;
  margin: 2px 0 7px 15px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
.bc-side-sub button {
  margin: 0;
  padding: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #627063;
}
.bc-side-sub button:hover { color: #244b38; }
.bc-side-sub button[aria-pressed="true"] { color: #244b38; font-weight: 740; }
.bc-facets {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.bc-facets > label:first-child { display: block; font-size: 11px; font-weight: 670; }
.bc-facets select {
  width: 100%;
  margin: 6px 0 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffef9;
  font-size: 12px;
}
.bc-check { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.bc-check input { accent-color: #244b38; }
.bc-filters, .bc-branch {
  display: flex; align-items: center; gap: 9px 12px; flex-wrap: wrap;
}
.bc-search, .bc-sort select, .bc-branch select {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.bc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
  padding: 5px 12px;
  color: var(--muted);
}
.bc-search:focus-within { outline: 2px solid var(--bc-tone, var(--forest)); outline-offset: 1px; }
.bc-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 14px "DM Sans", sans-serif;
  padding: 0;
}
.bc-search input:focus { outline: none; }
.bc-sort, .bc-branch label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.bc-sort select, .bc-branch select {
  max-width: 100%; padding: 5px 8px; color: var(--ink); font: 560 13px "DM Sans", sans-serif;
}
.bc-branch { margin-top: 9px; }
.bc-top-nav { margin: 12px 0 0; }
.bc-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.bc-filter-row > span, .bc-filter-row > strong {
  color: var(--muted); font: 670 11px/1.3 "DM Sans", sans-serif;
}
.bc-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-filter-chips button, .bc-top-nav > button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 33px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  color: var(--ink);
  font: 620 12px/1.25 "DM Sans", sans-serif;
}
.bc-filter-chips button[aria-pressed="true"], .bc-top-nav > button[aria-pressed="true"] {
  background: var(--bc-pale, var(--tint));
  color: var(--bc-dark, var(--forest));
  border-color: var(--bc-tone, var(--forest));
}
.bc-count { padding: 12px 0; font-size: 12px; color: var(--muted); }
.bc-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.bc-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.bc-product { display: block; min-width: 0; color: var(--ink); }
.bc-product-image { overflow: hidden; aspect-ratio: 1.44; background: var(--tint); }
.bc-product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-product-body { padding: 12px 14px 5px; }
.bc-product-body small { font: 680 10px/1.3 "DM Sans", sans-serif; color: var(--bc-tone, var(--muted)); }
.bc-product-body h3 {
  font: 680 clamp(16px, 1.55vw, 23px)/1.12 "DM Sans", sans-serif;
  letter-spacing: -0.04em; margin: 6px 0 5px; overflow-wrap: anywhere;
}
.bc-product-body p { margin: 4px 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.bc-purchase {
  padding: 2px 14px 13px;
  display: flex; gap: 5px 10px; align-items: center; flex-wrap: wrap;
}
.bc-stock-count { font-size: 11px; text-decoration: underline; }
.bc-brand-price { font: 680 14px/1.2 "DM Sans", sans-serif; }
.bc-brand-price small { font-weight: 500; font-size: 11px; color: var(--muted); }
.bc-no-direct { font-size: 11px; color: var(--muted); }
.bc-purchase .shop-add { background: var(--bc-dark, var(--forest)); border-color: var(--bc-dark, var(--forest)); }
.bc-card:focus-within { outline: 2px solid var(--bc-tone, var(--forest)); outline-offset: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bc-product-image img { transition: transform 240ms ease; }
  .bc-product:hover .bc-product-image img { transform: scale(1.035); }
}
.bc-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 10px; }
@media (max-width: 960px) {
  .bc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sf-brand-detail .bc-hero { grid-template-columns: 1.1fr 0.9fr; min-height: 265px; }
  .bc-hero-copy { padding: 24px 18px; }
  .bc-hero .bc-sample { position: static; margin: 4px 0 0; }
  .sf-brand-detail .bc-hero h1 { font-size: 46px; }
  .bc-hero-copy p { font-size: 13px; margin: 11px 0 16px; }
}
@media (max-width: 600px) {
  .sf-brand-detail .bc-hero { display: flex; flex-direction: column-reverse; border-radius: 14px; }
  .sf-brand-detail .bc-hero figure { min-height: 0; height: clamp(136px, 36vw, 190px); }
  .bc-hero-copy { padding: 22px; }
  .bc-hero .bc-sample { position: absolute; top: 18px; right: 16px; }
  .bc-hero-copy .bc-label { max-width: calc(100% - 64px); }
  .sf-brand-detail .bc-hero h1 { max-width: 100%; font-size: clamp(44px, 10.7vw, 62px); }
  .bc-hero-copy p { max-width: 50ch; }
  .bc-catalog { margin-top: 22px; }
  .bc-catalog-head { align-items: start; }
  .bc-cart-link { max-width: 46%; padding: 6px 9px; font-size: 11px; }
  .bc-layout { display: block; }
  .bc-browse {
    display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 8px 11px;
    border: 1px solid var(--line); border-radius: 7px; background: #fffef9;
    font: 650 12px/1.2 "DM Sans", sans-serif; color: #1e3025; text-align: left;
  }
  .bc-side { display: none; position: static; max-height: none; overflow: visible; margin-bottom: 10px; }
  .bc-side.open { display: block; }
  .bc-side button { margin: 0; }
  .bc-sort span { display: none; }
  .bc-products { gap: 8px; }
  .bc-product-image { aspect-ratio: 1.2; }
  .bc-product-body { padding: 8px 9px 3px; }
  .bc-purchase { padding: 2px 9px 10px; }
  .bc-meta { padding: 10px 0; }
  .bc-meta .sf-source, .bc-meta > details { margin-inline-start: 0; }
  .bc-filter-row { align-items: start; }
}
.bc-retail-shopping {
  margin: 22px 0;
}
.rp-item-sale {
  position: relative;
  min-width: 0;
}
.rp-item-sale .product-card {
  width: 100%;
  height: auto;
}
.rp-item-sale > .shop-add {
  margin: 3px 0 6px;
}
.sf-stockline {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sf-stockline .sf-stock {
  border-bottom: none;
}
.sf-stockline > button {
  margin: 0 0 5px;
}
.bc-archive-buy {
  padding: 0 11px 9px;
}
.bc-archive-buy:empty,
.bc-purchase:empty {
  display: none;
}
.site-cart-shell {
  display: flex;
  align-items: center;
  justify-content: end;
  flex: none;
}
@media (max-width: 620px) {
  .head-inner {
    grid-template-columns: minmax(85px, 1fr) auto auto 29px;
    grid-template-areas: "brand location cart saved" "search search account account";
  }
  .site-cart-shell {
    grid-area: cart;
  }
  .head-inner .account-nav {
    justify-self: end;
  }
}
.bc-hero .bc-house { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 4px 10px; border-radius: 999px; background: #f1ecdf; color: #2e2a20; font-size: 13px; font-weight: 600; text-decoration: none; width: fit-content; }
.bc-hero .bc-house:hover { text-decoration: underline; }
/* Online offers a brand runs on its own site (v1.24.12) */
.bo-offers { margin: 30px 0 10px; scroll-margin-top: 18px; }
.bo-offers h2 { font-family: var(--serif, Georgia, serif); font-size: 30px; font-weight: 500; margin: 0 0 4px; }
.bo-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.bo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bo-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.bo-value { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 800; }
.bo-card h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.3; color: var(--ink); }
.bo-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.bo-card .bo-meta { color: var(--muted); font-size: 12px; }
.bo-link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* v1.25.0 — Brand + delivery pages share the retailer Classic layout (cover, About under it, section tabs)
   and the retailer menu rows: one carousel row per category on "All products". */
body .uni-page {
  --paper: #f7f8f2; --surface: #fffef9; --ink: #1e3025; --muted: #627063; --line: #d6decf;
  --brand: #244b38; --forest: var(--brand); --soft: #e8efdd; --tint: var(--soft); --accent: #9cae52; --section-offset: 54px;
  color: var(--ink);
}
.uni-page .bc-catalog-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.uni-page .bc-catalog-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); }
.uni-page .bc-head-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.uni-page .bc-catalog-head .bc-cart-link { margin-left: auto; }
.uni-page .bc-catalog { margin-top: 26px; }
.uni-page .uni-sources { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.uni-page .shop-copy .bc-sample, .uni-page .shop-copy .bc-house { display: inline-flex; align-self: flex-start; margin: 4px 0 2px; }
.bc-group { margin: 0 0 26px; }
.bc-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.bc-group-title h3 { margin: 0; font-size: 17px; }
.bc-group-title h3 button { all: unset; cursor: pointer; font: inherit; font-weight: 800; color: var(--ink, #1f2a22); }
.bc-group-title h3 button:hover, .bc-group-title h3 button:focus-visible { text-decoration: underline; }
.bc-group-title small { font-size: 12px; color: var(--muted); }
.uni-page .bc-group-pic, .bc-group-pic { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.bc-rail-arrows { margin-left: auto; display: inline-flex; gap: 6px; }
.bc-rail-arrows button { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line, #d9dccb); background: var(--surface, #fffdf4); color: var(--ink, #1f2a22); cursor: pointer; }
.bc-rail-arrows button:hover { border-color: var(--forest, #2e503b); }
.bc-products.bc-rail { --rail-cols: 4; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--rail-cols) - 1) * 11px) / var(--rail-cols)); gap: 11px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 1px 4px; }
.bc-products.bc-rail::-webkit-scrollbar { display: none; }
.bc-rail > .bc-card { scroll-snap-align: start; }
.bc-rail .bc-product-body h3 { font-size: 14px; line-height: 1.22; }
.bc-rail .bc-product-body small, .bc-rail .bc-product-body p { font-size: 11px; }
@media (max-width: 1100px) { .bc-products.bc-rail { --rail-cols: 4; } }
.bc-rail .bc-purchase { flex-wrap: wrap; gap: 6px; }
@media (max-width: 820px) { .bc-products.bc-rail { --rail-cols: 3; } }
@media (max-width: 560px) { .bc-products.bc-rail { --rail-cols: 2.2; } }
/* v1.33.5: menu items from brands a shop carries */
.rp-carried{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:5px 9px;border-radius:999px;background:#eef3e6;color:#2f6b4a;font-size:11.5px;font-weight:600}

/* v1.33.11 — Brand catalogs and delivery menus use the same card size and count per row as retailer menus:
   6 per row on desktop, 4 at ≤1180px, 3 at ≤960px, 2.2 at ≤620px (app/menu-rows.css). On desktop the catalog
   section spans the same page width as the retailer menu, so the sidebar and cards come out the same size. */
.bc-products.bc-rail { --rail-cols: 6; }
@media (max-width: 1180px) { .bc-products.bc-rail { --rail-cols: 4; } }
@media (max-width: 960px) { .bc-products.bc-rail { --rail-cols: 3; } }
@media (max-width: 620px) { .bc-products.bc-rail { --rail-cols: 2.2; gap: 9px; grid-auto-columns: calc((100% - 1.2 * 9px) / 2.2); } }
#main:has(> .uni-page > .bc-catalog) { container-type: inline-size; }
@media (min-width: 1181px) {
  .uni-page > .bc-catalog { width: 100cqw; max-width: none; margin-inline: calc((100% - 100cqw) / 2); }
}
@media (max-width: 960px) and (min-width: 721px) { .bc-catalog .bc-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 16px; } }
