/* ==========================================================================
   BAS Site Header — Option B "Pantry" (v1.0.0)
   ========================================================================== */

/* ── CSS custom properties ───────────────────────────────────────────────── */
:root {
  --bas-sh-green:    #70ac43;
  --bas-sh-lime:     #c2e86b;
  --bas-sh-forest:   #1d741b;
  --bas-sh-teal:     #30b2b4;
  --bas-sh-yellow:   #ffda3d;
  --bas-sh-tomato:   #ff4c25;
  --bas-sh-coral:    #ff7660;
  --bas-sh-cream:    #fffbef;
  --bas-sh-ink:      #313131;
  --bas-sh-border:   #ece6d2;
  --bas-sh-utility-h:  42px;
  --bas-sh-main-h:     82px;
  --bas-sh-nav-h:      46px;
  --bas-sh-total-h:    calc(var(--bas-sh-utility-h) + var(--bas-sh-main-h) + var(--bas-sh-nav-h));
  --bas-sh-transition: .25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
.bas-sh, .bas-sh * { box-sizing: border-box; }
.bas-sh button { cursor: pointer; }
.bas-sh a { text-decoration: none; }

/* ── Outer wrapper ───────────────────────────────────────────────────────── */
.bas-sh {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 0 var(--bas-sh-border);
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  transition: box-shadow var(--bas-sh-transition);
}
.bas-sh.is-scrolled {
  box-shadow: 0 6px 20px rgba(20, 30, 10, 0.10);
}

/* ── Divi wrapper override — remove default padding ─────────────────────── */
.et_pb_module.bas_site_header {
  padding: 0 !important;
  margin: 0 !important;
}


/* ==========================================================================
   UTILITY STRIP
   ========================================================================== */

.bas-sh__utility {
  background: linear-gradient(95deg, #c2e86b 0%, #70ac43 35%, #30b2b4 100%);
  color: #0f3a0e;
  height: var(--bas-sh-utility-h);
  overflow: hidden;
  transition: height var(--bas-sh-transition), opacity var(--bas-sh-transition);
}
.bas-sh.is-scrolled .bas-sh__utility {
  height: 0;
  opacity: 0;
}
.bas-sh__utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bas-sh__utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.bas-sh__utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── FOMO Ticker ─────────────────────────────────────────────────────────── */

/* Single-element ticker: JS swaps content and applies keyframe classes.
   No overflow clipping needed — only one message is ever in the DOM. */
.bas-sh__ticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f3a0e;
  white-space: nowrap;
  min-width: 0;
}
.bas-sh__ticker-icon {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.bas-sh__ticker-text {
  line-height: 1;
}

/* Keyframe animations for the departure-board flip */
@keyframes bas-ticker-exit {
  from { opacity: 1; transform: translateY(0);    }
  to   { opacity: 0; transform: translateY(-11px); }
}
@keyframes bas-ticker-enter {
  from { opacity: 0; transform: translateY(11px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.bas-sh__ticker.is-exiting {
  animation: bas-ticker-exit 0.28s ease-in forwards;
}
.bas-sh__ticker.is-entering {
  animation: bas-ticker-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .bas-sh__ticker.is-exiting,
  .bas-sh__ticker.is-entering { animation: none; }
}

/* Social icons — white square bg, teal icon color */
.bas-sh__social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bas-sh__social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  color: var(--bas-sh-teal);
  transition: transform .15s ease, filter .15s ease;
  flex-shrink: 0;
}
.bas-sh__social-item:hover {
  transform: translateY(-2px);
  filter: brightness(0.9);
}
.bas-sh__social-item svg {
  width: 15px;
  height: 15px;
  display: block;
}


/* ==========================================================================
   MAIN BAR
   ========================================================================== */

.bas-sh__main {
  background: #fff;
  height: var(--bas-sh-main-h);
  transition: height var(--bas-sh-transition);
}
.bas-sh.is-scrolled .bas-sh__main {
  height: 62px;
}
.bas-sh__main-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Hamburger (mobile only) ─────────────────────────────────────────────── */
.bas-sh__hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--bas-sh-ink);
  flex-shrink: 0;
  border-radius: 6px;
  transition: background .15s;
  touch-action: manipulation;   /* removes 300 ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent;
}
.bas-sh__hamburger:hover { background: var(--bas-sh-cream); }

/* ── Logo ────────────────────────────────────────────────────────────────── */
.bas-sh__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--bas-sh-ink);
}
.bas-sh__logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: width var(--bas-sh-transition), height var(--bas-sh-transition);
}
.bas-sh.is-scrolled .bas-sh__logo-img { width: 42px; height: 42px; }
.bas-sh__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.bas-sh__logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 700;
  color: var(--bas-sh-ink);
  transition: font-size var(--bas-sh-transition);
}
.bas-sh.is-scrolled .bas-sh__logo-name { font-size: 17px; }
.bas-sh__logo-market {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--bas-sh-green);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
.bas-sh__search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}
.bas-sh__search {
  display: flex;
  align-items: center;
  background: var(--bas-sh-cream);
  border: 1.5px solid var(--bas-sh-border);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  gap: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.bas-sh__search.is-focused,
.bas-sh__search:focus-within {
  border-color: var(--bas-sh-green);
  box-shadow: 0 0 0 4px rgba(112, 172, 67, .15);
}
.bas-sh__search-icon { flex-shrink: 0; }
.bas-sh__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--bas-sh-ink);
  padding: 5px 0;
}
.bas-sh__search-input::placeholder { color: #aaa; }

/* Ask Bea button */
.bas-sh__ask-bea {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bas-sh-yellow);
  color: var(--bas-sh-ink);
  border: 0;
  border-radius: 999px;
  padding: 7px 13px 7px 6px;
  font-family: 'Lato', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: filter .15s ease;
}
.bas-sh__ask-bea:hover { filter: brightness(0.96); }
.bas-sh__ask-bea-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bas-sh__ask-bea-img {
  width: 100%;
  object-fit: contain;
  transform: translateY(3px);
}
.bas-sh__ask-bea-bee { font-size: 14px; line-height: 1; }

/* Search results dropdown */
.bas-sh__search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--bas-sh-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 30, 10, .14);
  z-index: 200;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}
.bas-sh__search-results[hidden] { display: none; }

/* ── .bas-sr__ — classes rendered by bas-header.js ─────────────────────── */

/* Result list */
.bas-sr__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

/* Individual result row — styled like article cards */
.bas-sr__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f0e6;
  transition: background .12s;
}
.bas-sr__item:last-child { border-bottom: 0; }
.bas-sr__item:hover,
.bas-sr__item.is-active { background: var(--bas-sh-cream); }
.bas-sr__item[aria-selected="true"] { background: var(--bas-sh-cream); }

/* Type badge (Post / Recipe / Event …) */
.bas-sr__item-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bas-sh-teal);
  background: rgba(48, 178, 180, .1);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Result title */
.bas-sr__item-title {
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bas-sh-ink);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer row — "Ask Bea about …" */
.bas-sr__footer {
  padding: 10px 14px;
  border-top: 1px solid #f0ebe0;
  background: #fffdf5;
}
.bas-sr__ask-bea-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bas-sh-yellow);
  color: var(--bas-sh-ink);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px 7px 7px;
  font-family: 'Lato', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: filter .15s;
}
.bas-sr__ask-bea-link:hover { filter: brightness(0.96); }
.bas-sr__ask-bea-link em { font-style: normal; color: var(--bas-sh-forest); }

/* Bea avatar in search results — constrained to 32px */
.bas-sr__bea-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 218, 61, .25);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* No-results state */
.bas-sr__no-results {
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bas-sr__bea-avatar--lg {
  width: 52px;
  height: 52px;
  background: rgba(255, 218, 61, .2);
  border-radius: 50%;
  object-fit: contain;
}
.bas-sr__no-results p {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: #555;
  margin: 0;
}
.bas-sr__no-results strong { color: var(--bas-sh-ink); }
.bas-sr__ask-bea-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bas-sh-yellow);
  color: var(--bas-sh-ink);
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  transition: filter .15s;
}
.bas-sr__ask-bea-btn:hover { filter: brightness(0.96); }

/* Legacy classes — kept for back-compat */
.bas-sh__search-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--bas-sh-ink);
  border-bottom: 1px solid #f5f0e6;
  transition: background .12s;
}
.bas-sh__search-result:last-child { border-bottom: 0; }
.bas-sh__search-result:hover,
.bas-sh__search-result.is-active { background: var(--bas-sh-cream); }
.bas-sh__search-result-type {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bas-sh-teal);
  background: rgba(48, 178, 180, .1);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bas-sh__search-result-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bas-sh-ink);
  line-height: 1.35;
}

/* Ask Bea "no results" card */
.bas-sh__search-bea-prompt {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bas-sh__search-bea-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bas-sh-yellow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bas-sh__search-bea-avatar img { width: 90%; transform: translateY(4px); }
.bas-sh__search-bea-text { flex: 1; min-width: 0; }
.bas-sh__search-bea-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bas-sh-ink);
}
.bas-sh__search-bea-sub {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}
.bas-sh__search-bea-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bas-sh-yellow);
  color: var(--bas-sh-ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .15s;
}
.bas-sh__search-bea-btn:hover { filter: brightness(0.96); }

/* ── User cluster ────────────────────────────────────────────────────────── */
.bas-sh__user-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.bas-sh__divider {
  width: 1px;
  height: 28px;
  background: var(--bas-sh-border);
}

/* Cart integration — inherit bas-cw styles from bas-vendor-map */
.bas-sh .bas-cw__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bas-sh-forest);
  cursor: pointer;
}
.bas-sh .bas-cw__trigger-label { display: block; }

/* Auth buttons */
.bas-sh__auth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bas-sh__login-link {
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bas-sh-ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.bas-sh__login-link:hover { border-color: var(--bas-sh-ink); }

.bas-sh__become-vendor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #c2e86b 0%, #70ac43 55%, #1d741b 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 5px 0 #155210, 0 8px 16px rgba(29, 116, 27, .18);
  transition: filter .12s ease, transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
}
.bas-sh__become-vendor:hover { filter: brightness(1.05); }
.bas-sh__become-vendor:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #155210, 0 4px 10px rgba(29, 116, 27, .18);
}

/* Dashboard button — vendor shortcut (teal outlined pill) */
.bas-sh__dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #30b2b4;
  border: 2px solid #30b2b4;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.bas-sh__dashboard-btn:hover {
  background: #30b2b4;
  color: #fff;
}

/* Vendor avatar (logged in) */
.bas-sh__vendor-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bas-sh-ink);
}
.bas-sh__avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffda3d, #ff9a3d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  flex-shrink: 0;
}
.bas-sh__avatar-label {
  display: block;
  font-size: 10px;
  color: #888;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.bas-sh__avatar-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bas-sh-forest);
}


/* ==========================================================================
   NAV ROW
   ========================================================================== */

.bas-sh__nav {
  background: #fff;
  border-top: 1px solid var(--bas-sh-border);
  position: relative;
}
.bas-sh__nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  height: var(--bas-sh-nav-h);
  gap: 4px;
}
.bas-sh__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bas-sh-ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 2.5px solid transparent;
  border-top: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  position: relative;
}
.bas-sh__nav-link:hover,
.bas-sh__nav-link.is-active {
  color: var(--bas-sh-forest);
  border-bottom-color: var(--bas-sh-forest);
}
.bas-sh__nav-mega-btn .bas-sh__chevron {
  transition: transform .25s var(--bas-sh-transition);
}
.bas-sh__nav-mega-btn.is-active .bas-sh__chevron {
  transform: rotate(180deg);
}
.bas-sh__nav-spacer { flex: 1; }
.bas-sh__nav-fresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bas-sh-tomato);
  text-decoration: none;
  white-space: nowrap;
}
.bas-sh__nav-fresh:hover { color: #c43318; }


/* ==========================================================================
   MEGA MENUS
   ========================================================================== */

.bas-sh__mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--bas-sh-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 50px rgba(20, 30, 10, .14);
  z-index: 150;
}
.bas-sh__mega[hidden] { display: none; }
.bas-sh__mega.is-opening {
  animation: basShMegaIn .22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes basShMegaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bas-sh__mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px;
  display: grid;
  gap: 28px;
}

/* Articles layout: cards left (wider), featured right */
.bas-sh__mega-inner--articles {
  grid-template-columns: 1.55fr 1fr;
}
/* Tools layout: tool cards left (wider), Bea promo right */
.bas-sh__mega-inner--tools {
  grid-template-columns: 1.4fr 1fr;
}
/* Farms & Markets layout: cards left (wider), rotating featured panel right */
.bas-sh__mega-inner--farms {
  grid-template-columns: 1.55fr 1fr;
}

.bas-sh__mega-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bas-sh-forest);
  margin-bottom: 14px;
}

/* ── Articles cards grid ─────────────────────────────────────────────────── */
.bas-sh__mega-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bas-sh__mega-article-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--bas-sh-border);
  border-radius: 12px;
  background: var(--bas-sh-cream);
  text-decoration: none;
  color: var(--bas-sh-ink);
  transition: border-color .15s, transform .15s;
}
.bas-sh__mega-article-card:hover {
  border-color: var(--card-accent, var(--bas-sh-green));
  transform: translateY(-1px);
}
.bas-sh__mega-article-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--card-accent, var(--bas-sh-green)) 35%, transparent);
}
.bas-sh__mega-article-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--bas-sh-ink);
  line-height: 1.15;
}
.bas-sh__mega-article-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  margin-top: 3px;
}
.bas-sh__mega-article-card--all {
  justify-content: space-between;
  border-style: dashed;
  background: #fff;
}

/* ── Featured article card ───────────────────────────────────────────────── */
.bas-sh__mega-featured {
  background: var(--bas-sh-cream);
  border: 1px solid var(--bas-sh-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bas-sh__mega-feat-eyebrow {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bas-sh-tomato);
}
.bas-sh__mega-feat-thumb,
.bas-sh__mega-feat-placeholder {
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffda3d 0%, #ffae3d 100%);
}
.bas-sh__mega-feat-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bas-sh__mega-feat-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bas-sh-ink);
  line-height: 1.2;
}
.bas-sh__mega-feat-cats { font-size: 11px; color: #888; }
.bas-sh__mega-feat-cats a { color: var(--bas-sh-green); text-decoration: none; }
.bas-sh__mega-feat-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--bas-sh-forest);
  text-decoration: none;
  margin-top: auto;
}
.bas-sh__mega-feat-link:hover { color: var(--bas-sh-green); }

/* ── Tool cards grid ─────────────────────────────────────────────────────── */
.bas-sh__mega-tool-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bas-sh__mega-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--bas-sh-ink);
  transition: background .12s;
}
.bas-sh__mega-tool-card:hover { background: var(--bas-sh-cream); }
.bas-sh__mega-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bas-sh__mega-tool-name {
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bas-sh-ink);
  line-height: 1.2;
}
.bas-sh__mega-tool-desc {
  font-size: 11.5px;
  color: #666;
  line-height: 1.4;
  margin-top: 3px;
}

/* ── Bea promo card ──────────────────────────────────────────────────────── */
.bas-sh__mega-bea-promo {
  background: linear-gradient(135deg, #c2e86b 0%, #70ac43 60%, #1d741b 100%);
  border-radius: 14px;
  padding: 20px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.bas-sh__mega-bea-img {
  position: absolute;
  right: -14px;
  bottom: -8px;
  width: 120px;
  opacity: .92;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.18));
  pointer-events: none;
}
.bas-sh__mega-bea-eyebrow {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .88;
}
.bas-sh__mega-bea-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 170px;
  margin-top: 4px;
}
.bas-sh__mega-bea-body {
  font-size: 12px;
  line-height: 1.45;
  color: #f5fbe6;
  max-width: 160px;
}
.bas-sh__mega-bea-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bas-sh-yellow);
  color: var(--bas-sh-ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: filter .15s;
}
.bas-sh__mega-bea-cta:hover { filter: brightness(0.96); }


/* ── Farms featured rotating panel ──────────────────────────────────────── */
.bas-sh__mega-farms-featured {
  background: linear-gradient(135deg, #c2e86b 0%, #70ac43 55%, #30b2b4 100%);
  border-radius: 14px;
  padding: 20px 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.bas-sh__mega-farms-feat-circle {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.bas-sh__mega-farms-feat-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}
.bas-sh__mega-farms-feat-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 180px;
  margin-top: 4px;
}
.bas-sh__mega-farms-feat-count {
  font-family: 'Lato', sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-top: 6px;
  letter-spacing: -.5px;
}
.bas-sh__mega-farms-feat-sub {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, .85);
  margin-top: 2px;
}


/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */

.bas-sh__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 10, .45);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.bas-sh__mobile-overlay.is-open { display: block; }

.bas-sh__mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 8px 0 32px rgba(20, 30, 10, .14);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bas-sh__mobile-drawer.is-open { transform: translateX(0); }
.bas-sh__mobile-drawer[hidden] { display: none; }
.bas-sh__mobile-drawer.is-open[hidden] { display: flex; }

/* Drawer head */
.bas-sh__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bas-sh-border);
  background: var(--bas-sh-cream);
  flex-shrink: 0;
}
.bas-sh__drawer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.bas-sh__drawer-logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  color: var(--bas-sh-ink);
}
.bas-sh__drawer-logo-market {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bas-sh-green);
  margin-top: 3px;
}
.bas-sh__drawer-close {
  background: none;
  border: none;
  padding: 6px;
  color: var(--bas-sh-ink);
  border-radius: 6px;
}

/* Drawer nav */
.bas-sh__drawer-nav {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.bas-sh__drawer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bas-sh-ink);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
}
.bas-sh__drawer-link:hover { background: var(--bas-sh-cream); border-left-color: var(--bas-sh-green); }
.bas-sh__drawer-link--fresh { color: var(--bas-sh-tomato); }
.bas-sh__drawer-expand { justify-content: space-between; }
.bas-sh__drawer-expand .bas-sh__chevron { transition: transform .25s; }
.bas-sh__drawer-expand.is-open .bas-sh__chevron { transform: rotate(180deg); }

/* Drawer sub-section */
.bas-sh__drawer-section {
  background: var(--bas-sh-cream);
  border-top: 1px solid var(--bas-sh-border);
  border-bottom: 1px solid var(--bas-sh-border);
  padding: 6px 0;
}
.bas-sh__drawer-section[hidden] { display: none; }
.bas-sh__drawer-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  transition: background .12s;
}
.bas-sh__drawer-sub-link:hover { background: rgba(112, 172, 67, .08); }
.bas-sh__drawer-sub-link svg { flex-shrink: 0; }

/* Drawer footer */
.bas-sh__drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--bas-sh-border);
  background: var(--bas-sh-cream);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.bas-sh__drawer-become-vendor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, #c2e86b 0%, #70ac43 55%, #1d741b 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 0 #155210;
}


/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

/* Pulsing orange dot for the "Shop Local" highlight nav item */
@keyframes bsHighlightDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: .55; transform: scale(.7); }
}

/* Horizontal sheen sweep for the vendor hero CTA card */
@keyframes bsHighlightSheen {
  0%   { left: -40%; }
  60%  { left: 110%; }
  100% { left: 110%; }
}


/* ==========================================================================
   NAV — HIGHLIGHT (Shop Local) BUTTON
   ========================================================================== */

.bas-sh__nav-mega-btn--highlight {
  font-weight: 700;
}
.bas-sh__nav-highlight-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff4c25;
  flex-shrink: 0;
  animation: bsHighlightDot 1.9s ease-in-out infinite;
}


/* ==========================================================================
   VENDOR MEGA MENU (Shop Local)
   ========================================================================== */

/* Grid: hero CTA left, category tiles right */
.bas-sh__mega-inner--vendors {
  grid-template-columns: 1fr 1.25fr;
  align-items: stretch;
}

/* ── Hero CTA card ── */
.bas-sh__mega-vendor-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 22px 20px;
  background: radial-gradient(120% 90% at 15% 20%, #ffe27a 0%, #ffda3d 38%, #ff8a3d 78%, #ff4c25 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  color: #2a1a08;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: transform .15s ease;
}
.bas-sh__mega-vendor-hero:hover { transform: translateY(-2px); }

/* Animated sheen overlay */
.bas-sh__mega-vendor-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.bas-sh__mega-vendor-sheen::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  animation: bsHighlightSheen 3.6s ease-in-out infinite;
}

/* Dot-grid texture SVG */
.bas-sh__mega-vendor-dots {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 220px;
  opacity: .22;
  pointer-events: none;
}

/* "Near you" badge */
.bas-sh__mega-vendor-hero-content { position: relative; z-index: 2; }
.bas-sh__mega-vendor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.7);
  color: #a82a06;
  font-family: 'Lato', sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.bas-sh__mega-vendor-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff4c25;
  animation: bsHighlightDot 1.9s ease-in-out infinite;
}
.bas-sh__mega-vendor-hero-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.02;
  margin-top: 14px;
  max-width: 280px;
  color: #2a1a08;
}
.bas-sh__mega-vendor-hero-sub {
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 10px;
  max-width: 280px;
  color: #3a2410;
}

/* Search Vendors CTA button inside the hero */
.bas-sh__mega-vendor-hero-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2a1a08;
  color: #ffda3d;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  margin-top: 18px;
  align-self: flex-start;
}

/* ── Category tiles column ── */
.bas-sh__mega-vendor-cats-col {
  display: flex;
  flex-direction: column;
}
.bas-sh__mega-vendor-cats-eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1d741b;
  margin-bottom: 12px;
}
.bas-sh__mega-vendor-cats-tag {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #8a7a4a;
}

/* 2×3 grid of category tiles */
.bas-sh__mega-vendor-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

/* Individual category tile */
.bas-sh__mega-vendor-cat {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ece6d2;
  background: #fffbef;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.bas-sh__mega-vendor-cat:hover {
  border-color: var(--cat-accent, #70ac43);
  background: #fff;
  transform: translateY(-1px);
}
.bas-sh__mega-vendor-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat-accent, #70ac43) 12%, transparent);
  color: var(--cat-accent, #70ac43);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bas-sh__mega-vendor-cat-name {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #313131;
  line-height: 1.15;
}
.bas-sh__mega-vendor-cat-sub {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  margin-top: 2px;
}

/* "See all vendors →" footer link */
.bas-sh__mega-vendor-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 0;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1d741b;
  text-decoration: none;
}
.bas-sh__mega-vendor-all:hover { color: #1a5e19; }

/* Fallback for browsers without color-mix() (Safari < 16.2, Firefox < 113) */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .bas-sh__mega-vendor-cat-icon {
    background: rgba(112, 172, 67, .12);
  }
}


/* ==========================================================================
   RESPONSIVE — TABLET + MOBILE
   ========================================================================== */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .bas-sh__utility-inner,
  .bas-sh__main-inner,
  .bas-sh__nav-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .bas-sh__search-wrap { max-width: 400px; }
}

/* Mobile ≤ 767px — hamburger layout */
@media (max-width: 767px) {
  :root {
    --bas-sh-main-h: 64px;
    --bas-sh-nav-h:  0px;
  }

  /* Hide desktop-only elements */
  .bas-sh__utility { display: none; }
  .bas-sh__nav     { display: none; }
  .bas-sh__logo-text { display: none; }
  .bas-sh__user-cluster .bas-sh__divider,
  .bas-sh__user-cluster .bas-sh__auth,
  .bas-sh__user-cluster .bas-sh__vendor-avatar { display: none; }
  .bas-sh .bas-cw__trigger-label { display: none; }

  /* Show hamburger */
  .bas-sh__hamburger { display: flex; }

  /* Main bar layout */
  .bas-sh__main-inner {
    padding: 0 16px;
    gap: 12px;
    justify-content: space-between;
  }
  .bas-sh__search-wrap {
    flex: 1;
    max-width: none;
  }
  .bas-sh__ask-bea span:not(.bas-sh__ask-bea-avatar) {
    display: none; /* hide "Ask Bea" text on mobile, keep avatar */
  }
  .bas-sh__ask-bea {
    padding: 7px 8px;
  }
  .bas-sh__logo-img { width: 40px; height: 40px; }
}

/* Very small ≤ 480px */
@media (max-width: 480px) {
  .bas-sh__search-wrap { display: none; } /* search moved into drawer on tiny screens */
  .bas-sh__main-inner { justify-content: space-between; }
}


/* ==========================================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .bas-sh, .bas-sh *, .bas-sh__mobile-drawer,
  .bas-sh__mega.is-opening { transition: none !important; animation: none !important; }
}

/* Screen reader only */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
