/**
 * BSB Platform storefront theme -- CSS custom properties layered on
 * Bootstrap 5.3, not a framework replacement. Colors sampled from the
 * real logo file. Loaded after the Bootstrap CDN stylesheet on every
 * public storefront page, so load order in <head> matters.
 *
 * Two layers:
 *   1. Bootstrap's OWN root variables, remapped -- Bootstrap 5.3's
 *      utility classes (.text-primary, .bg-primary, .text-bg-primary,
 *      default link color) read var(--bs-primary-rgb) etc. at runtime,
 *      so remapping these re-themes every existing usage of those
 *      classes across every page automatically.
 *   2. Explicit component overrides for the handful of Bootstrap
 *      components that DON'T read those variables -- verified against
 *      the real compiled CSS: .btn-primary and .form-control:focus
 *      hardcode Bootstrap's blue into their own component-scoped
 *      custom properties at compile time, so remapping --bs-primary
 *      alone does not reach them.
 */

:root {
  /* --- Brand tokens (BSB-prefixed, ours to keep meaning stable).
     Reconciled 2026-07-31 against the real Claude Design export at
     `Design System/tokens/*.css` -- every value below either matches
     that file exactly, or is a new token added to close a gap found
     during reconciliation (see the comment on each new line). --- */
  --bsb-primary: #44771E;
  --bsb-primary-rgb: 68, 119, 30;
  --bsb-primary-hover: #386318; /* accessible hover state */
  --bsb-primary-dark: #4A5A2E;
  --bsb-accent-bg: #E8F3E0;
  --bsb-accent-text: #44771E;
  --bsb-bg: #FBFAF7;
  --bsb-surface: #FFFFFF;
  --bsb-text: #2D2D2D;
  --bsb-text-muted: #66665E;
  --bsb-text-strike: #66665E; /* 5.1:1 contrast on #FBFAF7 for WCAG AA compliance */
  --bsb-success: #44771E;
  --bsb-warning: #E8A33D;
  --bsb-warning-text: #4A340F;
  --bsb-amber-dark: #C4832A; /* NEW: design's --amber-dark -- not yet used anywhere, kept available */
  --bsb-border: #E4E1D8; /* was #E5E1D8 -- matches design's --border-subtle exactly now */
  --bsb-border-hover: #C9C4B4; /* NEW: design's --border-hover -- token only, not yet wired into any hover state (that's a component-level change, deferred) */
  --bsb-border-w: 0.5px; /* NEW: design's --border-w -- was hardcoded 1px on every bordered surface */

  --bsb-font-heading: 'Lora', Georgia, serif;
  --bsb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --bsb-radius-sm: 6px;
  --bsb-radius-md: 8px; /* was 10px -- matches design's --radius-md exactly now */
  --bsb-radius-lg: 12px; /* was 16px -- matches design's --radius-lg exactly now */
  --bsb-radius-pill: 999px; /* NEW: design's --radius-pill -- chips/badges previously used --bsb-radius-sm (a rounded rect, not a pill) */
  --bsb-shadow-card: 0 1px 2px rgba(45, 45, 45, 0.05); /* was single-layer 0 2px 8px/0.08 -- matches design's --shadow-card-rest exactly now */
  --bsb-shadow-card-hover: 0 10px 24px -10px rgba(45, 45, 45, 0.16), 0 2px 6px -2px rgba(45, 45, 45, 0.07); /* was single-layer 0 8px 24px/0.14 -- matches design's --shadow-card-hover exactly now */
  --bsb-shadow-elevated: 0 20px 48px -18px rgba(30, 25, 10, 0.22), 0 4px 14px -4px rgba(30, 25, 10, 0.1); /* NEW: design's --shadow-elevated -- not yet used anywhere, kept available */
  --bsb-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1); /* NEW: design's --ease-smooth */
  --bsb-surface-tonal-warm: #F5F1E6; /* NEW: design's --surface-tonal-warm -- not yet used anywhere, kept available */
  --bsb-surface-tonal-green: #EFF4E8; /* NEW: design's --surface-tonal-green -- not yet used anywhere, kept available */

  /* --- Bootstrap variable remapping (drives .text-primary, .bg-primary,
     .text-bg-primary, default link color, .link-primary everywhere) --- */
  --bs-primary: var(--bsb-primary);
  --bs-primary-rgb: var(--bsb-primary-rgb);
  --bs-success: var(--bsb-success);
  --bs-body-bg: var(--bsb-bg);
  --bs-body-color: var(--bsb-text);
  --bs-body-font-family: var(--bsb-font-body);
  --bs-link-color: var(--bsb-primary);
  --bs-link-color-rgb: var(--bsb-primary-rgb);
  --bs-link-hover-color: var(--bsb-primary-dark);
  --bs-border-color: var(--bsb-border);
}

body {
  background-color: var(--bsb-bg);
  color: var(--bsb-text);
  font-family: var(--bsb-font-body);
}

h1, h2, h3, h4, h5, h6,
.bsb-heading-font {
  font-family: var(--bsb-font-heading);
  font-weight: 600;
  color: var(--bsb-text);
}

a {
  transition: color 0.15s ease;
}

/* --- Buttons: Bootstrap hardcodes blue at compile time here, so this
   needs explicit overrides, not just the --bs-primary remap above --- */
.btn-primary {
  --bs-btn-bg: var(--bsb-primary);
  --bs-btn-border-color: var(--bsb-primary);
  --bs-btn-hover-bg: var(--bsb-primary-hover);
  --bs-btn-hover-border-color: var(--bsb-primary-hover);
  --bs-btn-active-bg: var(--bsb-primary-dark);
  --bs-btn-active-border-color: var(--bsb-primary-dark);
  --bs-btn-disabled-bg: var(--bsb-primary);
  --bs-btn-disabled-border-color: var(--bsb-primary);
  --bs-btn-focus-shadow-rgb: var(--bsb-primary-rgb);
  border-radius: var(--bsb-radius-sm);
}

.btn-outline-primary {
  --bs-btn-color: var(--bsb-primary);
  --bs-btn-border-color: var(--bsb-primary);
  --bs-btn-hover-bg: var(--bsb-primary);
  --bs-btn-hover-border-color: var(--bsb-primary);
  --bs-btn-active-bg: var(--bsb-primary-dark);
  --bs-btn-active-border-color: var(--bsb-primary-dark);
  border-radius: var(--bsb-radius-sm);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bsb-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bsb-primary-rgb), 0.2);
}

/* --- Navbar: sticky top surface, primary-dark background, light text,
   serif brand. z-index 1030 matches Bootstrap's .sticky-top — sits above
   dropdowns (z-1000) but below modals (z-1055 Bootstrap default). --- */
.bsb-navbar {
  background-color: var(--bsb-primary-dark);
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-bottom: 0 !important; /* overrides mb-4 class; catbar provides the visual separation */
  flex-wrap: wrap !important; /* .navbar-expand-lg sets flex-wrap:nowrap at the lg+
                                  breakpoint (fine for inline nav-links, but it also
                                  applies to .bsb-nav-catbar, our own direct-child
                                  sibling of .container) -- under nowrap, catbar can
                                  never be pushed to its own row no matter what
                                  flex-basis/min-width it's given; it just shrinks to
                                  share the row instead, starving the search form. */
}

.bsb-navbar .navbar-brand {
  font-family: var(--bsb-font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: #FBFAF7;
}

.bsb-brand-icon {
  object-fit: contain;
}

/* Short brand punchline next to the wordmark -- only shown at xl+ (1200px)
   so it never competes for space with the search form at narrower
   desktop/laptop widths where the navbar row is already tight. */
.bsb-brand-logo {
  height: 42px;
  max-height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) brightness(1.08);
}

.bsb-footer-logo {
  height: 52px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) brightness(1.08);
}

.bsb-navbar .nav-link {
  color: rgba(251, 250, 247, 0.85);
}

.bsb-navbar .nav-link:hover,
.bsb-navbar .nav-link:focus {
  color: #FBFAF7;
}

/* --- Category bar: always-visible single-row horizontal-scroll strip
   beneath the main header row. Outside Bootstrap's collapse div so it
   renders on mobile and desktop alike — no wrap, tabs off-screen are
   reachable via swipe/scroll. --- */
.bsb-nav-search-form {
  max-width: 380px;
  width: 100%;
}

.bsb-nav-catbar {
  background-color: var(--bsb-primary-dark);
  border-top: 0.5px solid rgba(251, 250, 247, 0.14);
  min-width: 0;
  flex-basis: 100%;
}

.bsb-nav-catbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bsb-mega-trigger {
  background: none;
  border: none;
  cursor: pointer;
}

.bsb-mega-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1040;
  display: none;
  margin-top: 4px;
}

.bsb-mega-overlay--open {
  display: block;
}

.bsb-mega-content {
  background-color: var(--bsb-primary-dark);
  border: 1px solid rgba(251, 250, 247, 0.2);
}

.bsb-mega-link {
  background: rgba(251, 250, 247, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.bsb-mega-link:hover,
.bsb-mega-link:focus {
  background: rgba(251, 250, 247, 0.22);
  color: #fff;
}

/* --- Site-wide Page Content Top Spacing: consistent 28px breathing room
   below the sticky navigation bar across all non-hero page containers --- */
div.container.pb-5 {
  margin-top: 1.75rem;
}

.bsb-nav-catbar-inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.bsb-nav-catbar-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding: 0 17px;
  color: rgba(251, 250, 247, 0.88);
  font-family: var(--bsb-font-body);
  font-size: 0.845rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 220ms var(--bsb-ease-smooth),
              border-color 220ms var(--bsb-ease-smooth);
}

.bsb-nav-catbar-link:hover,
.bsb-nav-catbar-link:focus {
  color: #FBFAF7;
  border-bottom-color: rgba(251, 250, 247, 0.5);
  text-decoration: none;
}

.bsb-nav-catbar-link--active {
  color: #FBFAF7;
  border-bottom-color: var(--bsb-primary);
}

.bsb-nav-catbar-link--active:hover,
.bsb-nav-catbar-link--active:focus {
  border-bottom-color: var(--bsb-primary);
}

/* --- Cart link: icon + label, white, with a pill badge showing the
   server-confirmed item count. Badge is hidden (visually-hidden Bootstrap
   class) when JS has not yet updated it or when count is 0. --- */
.bsb-nav-cart {
  color: #FBFAF7;
  font-family: var(--bsb-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
  transition: opacity 180ms ease;
}

.bsb-nav-cart:hover,
.bsb-nav-cart:focus {
  color: #FBFAF7;
  opacity: 0.82;
  text-decoration: none;
}

.bsb-nav-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--bsb-radius-pill);
  background-color: var(--bsb-primary);
  color: #fff;
  font-family: var(--bsb-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

/* Remove Bootstrap's visually-hidden when the badge has been populated
   by quick-add.js — JS adds .bsb-nav-cart-badge--visible to swap it. */
.bsb-nav-cart-badge--visible {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 5px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: nowrap !important;
}

/* --- Track Order: quiet desktop-only text link, muted white. Hidden at
   <lg via d-none d-lg-inline on the element itself. --- */
.bsb-nav-track {
  color: #FBFAF7;
  font-family: var(--bsb-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
  transition: opacity 180ms ease;
}

.bsb-nav-track:hover,
.bsb-nav-track:focus {
  color: #FBFAF7;
  opacity: 0.82;
  text-decoration: none;
}



/* --- "Since 2018" trust badge: sits next to the logo on the dark-green
   navbar/footer, so it needs its own light-on-dark treatment rather
   than the light-background .bsb-chip below -- a thin gold-toned
   outline pill, echoing the logo's gold without competing with it. --- */
.bsb-since-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #E8CD7A;
  border-radius: var(--bsb-radius-pill);
  padding: 0.15rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

/* --- Accent chips: the soft-green treatment extended beyond the
   scarcity badge -- category/subcategory/tag pills sitewide --- */
.bsb-chip {
  display: inline-block;
  background-color: var(--bsb-accent-bg);
  color: var(--bsb-accent-text);
  border: none;
  border-radius: var(--bsb-radius-pill);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.bsb-chip:hover {
  background-color: var(--bsb-primary);
  color: #fff;
}

/* --- Cards: warm surface, soft shadow, gentle lift on hover --- */
.bsb-card {
  background-color: var(--bsb-surface);
  border: var(--bsb-border-w) solid var(--bsb-border);
  border-radius: var(--bsb-radius-md);
  box-shadow: var(--bsb-shadow-card);
  overflow: hidden;
  transition: box-shadow 240ms var(--bsb-ease-smooth), transform 240ms var(--bsb-ease-smooth), border-color 200ms ease;
  position: relative;
}

.bsb-card-link {
  cursor: pointer;
}

/* --- Desktop-only hover polish: 2px lift + soft shadow + a slight
   cover zoom. Gated on (hover: hover) and (pointer: fine) rather than
   a viewport-width breakpoint, so touch devices never get a "sticky"
   hover state from a tap -- the spec's "no hover effects on mobile"
   is really "no hover effects on anything without a real pointer,"
   which covers touch laptops too, not just phones. --- */
@media (hover: hover) and (pointer: fine) {
  .bsb-card-hoverable:hover {
    box-shadow: var(--bsb-shadow-card-hover);
    transform: translateY(-2px);
    border-color: var(--bsb-border-hover);
    cursor: pointer;
  }

  .bsb-card-hoverable:hover .bsb-card-cover {
    transform: scale(1.03);
  }
}

.bsb-card-title {
  font-family: var(--bsb-font-heading);
  font-weight: 600;
  color: var(--bsb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  line-height: 1.3;
}

.bsb-card-author {
  color: var(--bsb-text-muted);
  font-size: 0.75rem;
}

.bsb-condition-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--bsb-radius-pill);
  background-color: var(--bsb-primary-dark); /* #4A5A2E */
  color: #ffffff; /* Crisp white text on dark green */
  font-family: var(--bsb-font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* --- Price display: bold, consistent on cards and PDP --- */
.bsb-price {
  font-family: var(--bsb-font-heading);
  font-weight: 700;
  color: var(--bsb-text);
  font-size: 1.1rem;
}

.bsb-price-strike {
  color: var(--bsb-text-strike);
  text-decoration: line-through;
}

.bsb-price-save {
  color: var(--bsb-primary-dark); /* #4A5A2E */
  font-weight: 700;
}

.bsb-card-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bsb-price-save-text {
  font-family: var(--bsb-font-body);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--bsb-primary-dark); /* #4A5A2E - plain text, no pill/badge background */
}

/* --- Honest scarcity messaging --- */
.bsb-scarcity-text {
  font-family: var(--bsb-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--bsb-primary-dark); /* #4A5A2E - plain text immediately below condition */
  margin-top: 0.15rem;
}

.bsb-scarcity-note {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--bsb-text);
  font-size: 0.85rem;
}

.bsb-scarcity-note--compact {
  font-size: 0.78rem;
  color: var(--bsb-text-muted);
  margin-top: 0.2rem;
}

/* --- Filter/sort bar: a soft accent panel instead of a bare inline
   form, on category/collection/search pages --- */
.bsb-filter-bar {
  background-color: var(--bsb-surface);
  border: var(--bsb-border-w) solid var(--bsb-border);
  border-radius: var(--bsb-radius-md);
  padding: 0.9rem 1rem;
}

/* --- Cart tier-progress: one single achievable next-tier benefit,
   never the full tier table -- matches the Design System's
   TierProgress component (message + thin scoped bar; a neutral
   confirmation line with no bar at the top tier). --- */
.bsb-tier-progress-message {
  font-family: var(--bsb-font-body);
  font-size: 0.85rem;
  color: var(--bsb-text);
  margin-bottom: 0.5rem;
}

.bsb-tier-progress-track {
  height: 4px;
  border-radius: var(--bsb-radius-pill);
  background-color: var(--bsb-border);
  overflow: hidden;
}

.bsb-tier-progress-fill {
  height: 100%;
  background-color: var(--bsb-primary);
  border-radius: var(--bsb-radius-pill);
}

.bsb-tier-progress--complete {
  font-family: var(--bsb-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bsb-success);
}

/* --- Section dividers on the homepage collection list --- */
.bsb-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(45, 45, 45, 0.08);
}

.bsb-section-heading h2 {
  font-family: var(--bsb-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bsb-text);
  letter-spacing: -0.01em;
}

.bsb-section-subtitle {
  font-family: var(--bsb-font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--bsb-text-muted);
  letter-spacing: 0;
}

/* --- Homepage hero: solid dark-green block (no gradients/photography),
   serif headline via --bsb-font-heading (Lora, matching the real
   Claude Design token file exactly as of 2026-07-31). --- */
.bsb-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--bsb-primary-dark);
  padding: 56px 24px 52px;
}

.bsb-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bsb-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bsb-hero-copy {
  width: 100%;
}

.bsb-hero-title {
  font-family: var(--bsb-font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
}

.bsb-hero-subhead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
  margin: 20px auto 30px;
  max-width: 560px;
}

.bsb-hero-cta {
  margin-bottom: 0;
}

.bsb-hero-cta .btn {
  padding: 0.75rem 2.1rem;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.bsb-hero-collage-wrap {
  flex: 1 1 48%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Trust strip: its own section directly below the hero (not
   inside it), four short truths rather than a promotional feature
   list. Separated by a thin rule, not pills/icons -- the copy alone
   is meant to carry it. --- */
.bsb-trust-strip {
  background-color: var(--bsb-surface);
  border-bottom: var(--bsb-border-w) solid var(--bsb-border);
}

.bsb-trust-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
}

.bsb-trust-strip-item {
  font-family: var(--bsb-font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bsb-text);
  white-space: nowrap;
  position: relative;
}

.bsb-trust-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--bsb-border-hover);
}

@media (max-width: 575.98px) {
  .bsb-trust-strip-item {
    font-size: 12.5px;
  }

  .bsb-trust-strip-inner {
    gap: 8px 20px;
    padding: 12px 16px;
  }
}

.bsb-hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* --- Hero cover collage: real live catalog covers, physically arranged
   (varied size/rotation/depth), not a flat stack. Fixed pixel layout
   at two breakpoints, same numbers as the approved design. --- */
.bsb-hero-collage {
  position: relative;
  width: 440px;
  height: 300px;
}

.bsb-hero-cover {
  position: absolute;
  aspect-ratio: 2 / 3;
  background: #fdfcf9;
  padding: 6px;
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(30, 20, 5, 0.12), 0 18px 30px -12px rgba(20, 15, 5, 0.5);
}

.bsb-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bsb-hero-cover-1 { width: 92px; left: 0; top: 118px; transform: rotate(-11deg); z-index: 1; }
.bsb-hero-cover-2 { width: 96px; left: 66px; top: 8px; transform: rotate(7deg); z-index: 2; }
.bsb-hero-cover-3 { width: 190px; left: 118px; top: 46px; transform: rotate(-2deg); z-index: 4; }
.bsb-hero-cover-4 { width: 104px; left: 316px; top: 2px; transform: rotate(9deg); z-index: 3; }
.bsb-hero-cover-5 { width: 88px; left: 336px; top: 138px; transform: rotate(-6deg); z-index: 2; }

@media (max-width: 767.98px) {
  .bsb-hero {
    padding: 36px 16px 32px;
  }

  .bsb-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .bsb-hero-title {
    font-size: 26px;
  }

  .bsb-hero-subhead {
    font-size: 15px;
    margin: 14px auto 22px;
  }

  .bsb-hero-cta {
    margin-bottom: 0;
  }

  .bsb-hero-collage-wrap {
    margin-top: 0;
  }

  .bsb-hero-collage {
    width: 320px;
    height: 230px;
    margin: 0 auto;
  }

  .bsb-hero-cover-1 { width: 66px; left: 0; top: 85px; }
  .bsb-hero-cover-2 { width: 69px; left: 48px; top: 8px; }
  .bsb-hero-cover-3 { width: 137px; left: 85px; top: 33px; }
  .bsb-hero-cover-4 { width: 75px; left: 228px; top: 2px; }
  .bsb-hero-cover-5 { width: 63px; left: 242px; top: 99px; }
}

/* --- Trust row: a quiet, real trust statement (not a promotional
   banner) -- small muted text + a tiny accent-green checkmark dot,
   reusing the same accent tokens as .bsb-chip rather than inventing a
   new color. --- */
.bsb-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  font-size: 0.82rem;
  color: var(--bsb-text-muted);
}

.bsb-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.bsb-trust-dot {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background-color: var(--bsb-accent-bg);
  color: var(--bsb-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

/* --- Book card quick-add / quick-view: small affordances added to the
   existing card without changing its base layout --- */
.bsb-card-quick-add {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  border-top: var(--bsb-border-w) solid var(--bsb-border);
  padding: 0.5rem;
}

/* --- Quick View: a secondary, icon-only touch target -- Add to Cart
   (flex-grow-1, filled) stays visually dominant. --- */
.bsb-quick-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  padding: 0;
}

.bsb-card-cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: #FBFAF7;
  border-bottom: 1px solid var(--bsb-border);
}

.bsb-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background-color: #FBFAF7;
  transition: transform 240ms var(--bsb-ease-smooth);
}

.bsb-card-cover-placeholder {
  background-color: #f4f3ef;
  color: #7d8276;
  font-weight: 500;
  font-size: 0.85rem;
}

.bsb-card-cover-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

/* --- Site footer: same primary-dark surface as the navbar, for visual
   symmetry top and bottom of every storefront page --- */
.bsb-footer {
  background-color: var(--bsb-primary-dark);
  color: #F0F2EB;
  margin-top: 2.25rem;
  padding: 1.5rem 0 0.85rem;
  font-size: 0.85rem;
}

/* --- Footer 4-Column Explicit CSS Grid Layout --- */
.bsb-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .bsb-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }
}

@media (max-width: 575px) {
  .bsb-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.bsb-footer-brand img {
  max-width: 135px;
  height: auto;
}

.bsb-footer-tagline {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #E5E8DC; /* 6.8:1 contrast on #4A5A2E */
}

.bsb-footer h2 {
  font-size: 0.88rem;
  color: #FBFAF7;
  margin-bottom: 0.55rem;
}

.bsb-footer a {
  color: #F0F2EB; /* 7.5:1 contrast on #4A5A2E */
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  min-height: 24px;
}

.bsb-footer nav li {
  margin-bottom: 4px;
}

.bsb-footer a:hover,
.bsb-footer a:focus {
  color: #FFFFFF;
  text-decoration: underline;
}

.bsb-footer .bsb-footer-bottom {
  border-top: var(--bsb-border-w) solid rgba(251, 250, 247, 0.1);
  margin-top: 1rem;
  padding: 0.85rem 0;
  font-size: 0.8rem;
  color: rgba(251, 250, 247, 0.5);
}

.bsb-footer .bsb-footer-bottom p {
  margin-bottom: 0.35rem;
}

.bsb-footer .bsb-footer-bottom p:last-child {
  margin-bottom: 0;
}

.bsb-footer-grievance {
  font-size: 0.78rem;
  color: rgba(251, 250, 247, 0.5);
}

.bsb-footer-grievance a {
  color: rgba(251, 250, 247, 0.6);
}

/* --- PDP Redesign Styles --- */
.bsb-pdp-body {
  background-color: var(--bsb-bg);
}

.bsb-pdp-cover-wrap {
  background-color: #FBFAF7;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: none;
}

.bsb-pdp-cover-img {
  max-height: 420px;
  object-fit: contain;
}

.bsb-pdp-photo-subtext {
  font-size: 0.8rem;
  color: #888888;
  letter-spacing: 0.01em;
}

.bsb-pdp-photo-divider {
  border-bottom: 1px solid #EAEAEA;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem !important;
}

.bsb-authenticity-card {
  background-color: #FBFAF7;
  border: 1px solid var(--bsb-border);
}

.bsb-auth-check-icon {
  width: 28px;
  height: 28px;
  background-color: var(--bsb-primary-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
}

.bsb-pdp-title {
  font-family: var(--bsb-font-heading);
  font-weight: 700;
  color: var(--bsb-text);
  font-size: 1.85rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bsb-pdp-author {
  font-family: var(--bsb-font-body);
  font-size: 1.02rem;
  color: #666666;
}

.bsb-pdp-price {
  font-family: var(--bsb-font-heading);
  color: var(--bsb-text);
}

.bsb-pdp-save-quiet {
  font-family: var(--bsb-font-body);
  color: #555555; /* 6.8:1 contrast on #FBFAF7 */
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.15rem;
}

.bsb-pdp-scarcity-text {
  background-color: #E8F3E0; /* soft green bg */
  color: var(--bsb-primary-dark); /* #4A5A2E */
  font-family: var(--bsb-font-body);
  font-size: 0.88rem;
  line-height: 1.4;
}

.bsb-btn-pdp-add-to-cart {
  background-color: var(--bsb-primary); /* accessible primary green */
  border-color: var(--bsb-primary);
  color: #ffffff;
  font-family: var(--bsb-font-body);
  letter-spacing: 0.02em;
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--bsb-radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bsb-btn-pdp-add-to-cart:hover,
.bsb-btn-pdp-add-to-cart:focus {
  background-color: #4A5A2E; /* dark green */
  border-color: #4A5A2E;
  color: #ffffff;
  box-shadow: 0 0 0 0.25rem rgba(91, 154, 44, 0.35);
}

.bsb-pdp-trust-strip {
  background-color: #FBFAF7;
  border: 1px solid var(--bsb-border);
  color: var(--bsb-text);
}

.bsb-specs-heading,
.bsb-desc-heading {
  font-family: var(--bsb-font-heading);
  color: var(--bsb-text);
}

.bsb-specs-grid {
  background-color: #FBFAF7;
  border: 1px solid var(--bsb-border);
}

.bsb-spec-row {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #F0F0F0;
}

.bsb-spec-row:last-child {
  border-bottom: none !important;
}

.bsb-spec-label {
  color: #666666;
  font-size: 0.85rem;
  font-family: var(--bsb-font-body);
}

/* --- Homepage Redesign 9.8 Editorial Bookstore Architecture --- */
body.bsb-home-body {
  background-color: #FAF8F4;
}

.bsb-editorial-fluid-search-trust {
  background-color: #FAF8F4;
}

.bsb-editorial-search-form {
  background-color: #FFFFFF;
  border: 1px solid #E2DEC9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bsb-btn-editorial-search {
  background-color: #5B9A2C;
  color: #FFFFFF;
  transition: background-color 0.2s ease;
}

.bsb-btn-editorial-search:hover,
.bsb-btn-editorial-search:focus {
  background-color: #4A5A2E;
  color: #FFFFFF;
}

.bsb-editorial-trust-heading {
  font-family: var(--bsb-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bsb-text);
}

.bsb-editorial-pillar-icon {
  color: var(--bsb-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.bsb-pillar-title {
  font-size: 0.95rem;
  color: #111111;
  font-family: var(--bsb-font-body);
}

.bsb-editorial-grid-section {
  background-color: #FAF8F4;
}

.bsb-home-grid-title {
  font-family: var(--bsb-font-heading);
  font-weight: 700;
  color: var(--bsb-text);
  font-size: 1.6rem;
}

.bsb-home-grid-subtitle {
  font-family: var(--bsb-font-body);
  color: #666666;
}

.bsb-home-view-all-link {
  color: var(--bsb-primary-dark);
  font-weight: 500;
}

.bsb-home-view-all-link:hover,
.bsb-home-view-all-link:focus {
  color: var(--bsb-primary);
  text-decoration: underline !important;
}

/* Kinokuniya Kinfolk Editorial Photographic Product Card (Stabilized & Safe Action Bar) */
.bsb-editorial-card {
  background-color: #FFFFFF;
  border: 1px solid #E8E5DE;
  border-radius: var(--bsb-radius-md);
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsb-editorial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 90, 46, 0.35) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.bsb-editorial-cover-wrap {
  background-color: #F4F1EA;
  padding: 1.25rem 0.85rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  overflow: hidden;
}

.bsb-editorial-cover {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  transition: transform 0.2s ease;
}

.bsb-editorial-card:hover .bsb-editorial-cover {
  transform: scale(1.02);
}

/* Strict Vertical Badge Stacking Container */
.bsb-badges-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.bsb-condition-badge {
  background-color: #F2F0EB;
  color: #444444;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  font-family: var(--bsb-font-body);
}

.bsb-scarcity-badge {
  background-color: transparent;
  border: 1px solid var(--bsb-primary-dark);
  color: var(--bsb-primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  font-family: var(--bsb-font-body);
}

.bsb-editorial-title {
  font-family: var(--bsb-font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.65em;
  text-align: left;
}

.bsb-editorial-author {
  color: #666666;
  font-size: 0.85rem;
  font-family: var(--bsb-font-body);
  text-align: left;
}

.bsb-editorial-price {
  font-family: var(--bsb-font-heading);
  color: #111111;
  font-size: 1.15rem;
}

.bsb-editorial-mrp {
  color: #888888;
  font-size: 0.85rem;
}

/* Action Bar Foundation */
.bsb-card-action-bar {
  background-color: #FAFAFA;
  border-top: 1px solid #EAEAEA;
  padding: 0.85rem 1rem;
}

.bsb-btn-card-add {
  background-color: transparent;
  border: 1px solid var(--bsb-primary);
  color: var(--bsb-primary);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--bsb-radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bsb-editorial-card:hover .bsb-btn-card-add,
.bsb-btn-card-add:hover,
.bsb-btn-card-add:focus {
  background-color: var(--bsb-primary);
  border-color: var(--bsb-primary);
  color: #ffffff;
}

.bsb-btn-card-quickview {
  background-color: transparent;
  border: 1px solid #D1D5DB;
  color: #555555;
  border-radius: var(--bsb-radius-md);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bsb-btn-card-quickview:hover,
.bsb-btn-card-quickview:focus {
  background-color: #F3F4F6;
  border-color: #9CA3AF;
  color: #111111;
}

.bsb-home-view-all-link {
  color: var(--bsb-primary-dark);
  font-weight: 500;
  font-size: 0.92rem;
}

.bsb-home-view-all-link .bsb-arrow {
  display: inline-block;
  transition: transform 200ms ease-in-out;
}

.bsb-home-view-all-link:hover .bsb-arrow,
.bsb-home-view-all-link:focus .bsb-arrow {
  transform: translateX(2px);
}

.bsb-home-view-all-link {
  color: var(--bsb-primary-dark);
  font-weight: 500;
  font-size: 0.92rem;
}

.bsb-home-view-all-link:hover,
.bsb-home-view-all-link:focus {
  color: var(--bsb-primary);
  text-decoration: underline !important;
}

/* Full-Width Editorial Banner Diet (Reduced Height by 25%) */
.bsb-editorial-banner {
  background-color: #4A5A2E;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bsb-banner-heading {
  font-family: var(--bsb-font-heading);
  line-height: 1.25;
}

/* Category Cards */
.bsb-home-categories-section {
  background-color: #FAF8F4;
}

.bsb-category-card {
  background-color: #FFFFFF;
  border: 1px solid #E8E5DE !important;
  color: var(--bsb-text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsb-category-card:hover,
.bsb-category-card:focus {
  transform: translateY(-2px);
  border-color: var(--bsb-primary-dark) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.bsb-category-card-all {
  background-color: #E8F3E0;
  border-color: #D2E7C4 !important;
}

.bsb-cat-card-arrow {
  color: var(--bsb-primary-dark);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.bsb-category-card:hover .bsb-cat-card-arrow {
  transform: translateX(4px);
}

.bsb-home-footer-override .bsb-footer {
  margin-top: 48px;
  padding-top: 24px !important;
}

/* Category & Collection Page Editorial Header & Apple-Style Toolbar */
.bsb-page-title {
  font-family: var(--bsb-font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.bsb-page-subtitle {
  color: #666666;
  font-size: 0.98rem;
  font-family: var(--bsb-font-body);
}

.bsb-heading-accent-line {
  width: 40px;
  height: 2px;
  background-color: var(--bsb-primary-dark);
  border-radius: 2px;
  opacity: 0.85;
}

.bsb-sticky-toolbar-wrap {
  position: sticky;
  top: 60px;
  z-index: 40;
  background-color: #FAF8F4;
  border-top: 1px solid #EAEAEA !important;
  border-bottom: 1px solid #EAEAEA !important;
  box-shadow: none !important;
}

.bsb-toolbar-select,
.bsb-price-input-wrap input {
  height: 38px;
  border: 1px solid #E5E7EB;
  border-radius: var(--bsb-radius-md);
  font-size: 0.85rem;
  color: #374151;
  background-color: #FFFFFF;
}

.bsb-price-input-wrap .input-group-text {
  border: 1px solid #E5E7EB;
  border-end-0: 0;
  background-color: #FAFAFA;
  color: #6B7280;
  border-radius: var(--bsb-radius-md) 0 0 var(--bsb-radius-md);
}

.bsb-toolbar-select:focus,
.bsb-price-input-wrap input:focus {
  border-color: var(--bsb-primary-dark);
  box-shadow: 0 0 0 3px rgba(74, 90, 46, 0.12);
}

/* De-emphasized Ghost Apply Button */
.bsb-btn-toolbar-ghost {
  height: 38px;
  background-color: transparent !important;
  border: 1px solid #D1D5DB;
  color: #374151;
  border-radius: var(--bsb-radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bsb-btn-toolbar-ghost:hover,
.bsb-btn-toolbar-ghost:focus {
  background-color: #F3F4F6 !important;
  border-color: #9CA3AF;
  color: #111111;
}

.bsb-toolbar-clear-link {
  color: #666666;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bsb-toolbar-clear-link:hover {
  color: var(--bsb-primary-dark);
  text-decoration: underline !important;
}

/* Balanced 3-Column Footer Bottom Row (High-Contrast Accessibility) */
.bsb-footer-bottom-grid {
  color: rgba(255, 255, 255, 0.7);
}

.bsb-footer-bottom-grid a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bsb-footer-bottom-grid a:hover,
.bsb-footer-bottom-grid a:focus {
  color: #FFFFFF;
  text-decoration: underline !important;
}

@media (min-width: 992px) {
  .bsb-footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .bsb-footer-bottom-left {
    text-align: left;
  }
  .bsb-footer-bottom-center {
    text-align: center;
  }
  .bsb-footer-bottom-right {
    text-align: right;
  }
}

@media (max-width: 991.98px) {
  .bsb-footer-bottom-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
.bsb-footer-bottom-left,
  .bsb-footer-bottom-center,
  .bsb-footer-bottom-right {
    text-align: center;
  }
}

/* 2-Column Cart Page Styling */
.bsb-reservation-notice {
  background-color: #E8F3E0;
  border: 1px solid #D2E7C4;
}

.bsb-cart-cover-wrap {
  width: 64px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F4F1EA;
  overflow: hidden;
}

.bsb-cart-cover {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.bsb-cart-cover-placeholder {
  width: 64px;
  height: 86px;
  font-size: 0.72rem;
  background-color: #E8E5DE;
}

.bsb-cart-item-title {
  font-family: var(--bsb-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.bsb-cart-item-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.bsb-cart-action-group {
  width: 100%;
}

@media (min-width: 576px) {
  .bsb-cart-action-group {
    width: auto;
  }
}

.bsb-cart-tier-progress-card {
  background-color: #FBFAF7;
  border: 1px solid #E4E1D8;
}

.bsb-btn-checkout {
  background-color: #5B9A2C;
  border-color: #5B9A2C;
  border-radius: var(--bsb-radius-md);
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bsb-btn-checkout:hover,
.bsb-btn-checkout:focus {
  background-color: #4A5A2E;
  border-color: #4A5A2E;
}

.bsb-stepper-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.extra-small {
  font-size: 0.75rem;
}
