/* bycelajo theme — a faithful port of the live storefront at https://www.bycelajo.com onto this
 * codebase. The reference site is soft and quiet rather than dramatic: a pale lilac header band
 * (#e0cee1) floating over an almost-white page (#f9fafb), plum (#9f217e) as the single accent used
 * for every heading and link, all-lowercase navigation, a light serif for product names against
 * Lato for everything else, and flat product cards whose call to action is a lilac-filled,
 * plum-outlined "Add To Cart" button rather than an overlay bar.
 *
 * Loaded after public/css/style.css (see src/app.js + partials/layout.ejs), so every rule below
 * either redeclares a shared :root variable or overrides a specific default-theme selector.
 * Sections that don't exist in the default theme (.store-intro, .bcj-collection, .bcj-card, the
 * .bcj-footer block) come from this theme's own view overrides — see src/views/themes/bycelajo/.
 *
 * Typography note: the live site's headings compute to "Noto Serif Devanagari", serif — a quirk of
 * its WordPress/Breakdance theme rather than a deliberate pick, but it is what the site actually
 * renders, and the face ships full Latin coverage, so it is imported here to match rather than
 * substituting a lookalike.
 *
 * @import must precede all other rules for browsers to honor it.
 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Noto+Serif+Devanagari:wght@300;400;500&display=swap');

/* Apricots — the brand's display face, self-hosted rather than pulled from a font CDN because it
 * isn't on one: it's a Creative Market face by Kaitlynn Albani, converted from the desktop
 * Apricots.otf to WOFF2 with fonttools (see the "Display font" section of Theming.md for the
 * one-liner that regenerates it). WOFF2 only, deliberately: every browser that has supported
 * @font-face for the last decade reads it, and shipping a WOFF fallback would add ~90KB to the
 * repo that essentially nothing would ever download.
 *
 * font-display: swap so a category heading is readable in the fallback face immediately rather
 * than sitting invisible while a 67KB display font loads — it is the right trade for headings,
 * which are the only thing this face is used for. */
@font-face {
  font-family: 'Apricots';
  src: url('/public/fonts/Apricots.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-border: #e6dbe8;
  --color-text: #131313;
  --color-text-muted: #6f6472;
  --color-primary: #9f217e;
  --color-primary-dark: #7a1861;
  --color-primary-light: #c05fa4;
  --color-danger: #b3413a;
  --color-danger-dark: #922f29;
  --color-success: #9f217e;
  /* The theme's three faces, defined once here so a component never has to name a family itself:
   *   --font-body    everything that isn't a heading
   *   --font-heading headings, and anything that should read as one
   *   --font-display the Apricots brush script, for collection/category names specifically
   * --font-display keeps its fallback stack explicit so the swap-in period (and any browser that
   * refuses the WOFF2) still renders in the theme's serif. */
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Noto Serif Devanagari', Georgia, 'Times New Roman', serif;
  --font-display: 'Apricots', var(--font-heading);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(120, 30, 100, 0.05), 0 6px 18px rgba(120, 30, 100, 0.06);

  /* Theme-only tokens, used by the overrides below and by this theme's view partials. */
  --bcj-band: #e0cee1;
  --bcj-band-deep: #d3bcd5;
  /* Same hue as --color-primary (#9f217e is hsl(316 66% 38%)) lifted to 52% lightness. Used as the
   * nav's selected/hover state, which brightens rather than underlines. */
  --bcj-accent-bright: #d534aa;
  /* The same hue again, lifted all the way to 94% lightness — a pale pink wash, light enough to sit
   * behind a photograph without competing with it. Used as the featured piece's frame. */
  --bcj-primary-pale: #fae6f4;

  font-family: var(--font-body);
}

body {
  font-size: 18px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 400;
}
h1 { font-size: 2rem; letter-spacing: -0.005em; }
h2 { font-size: 1.35rem; }

/* ---------------------------------------------------------------------------
 * Header — the lilac band. The base stylesheet hardcodes navy (#073269) in a
 * handful of nav rules instead of reading the shared variables, so those exact
 * selectors are re-declared here (same specificity, loaded later) rather than
 * edited in public/css/style.css.
 * ------------------------------------------------------------------------ */
.site-header {
  background: var(--bcj-band);
  border-bottom: none;
}
/* Band height matched to the live site at www.bycelajo.com: its header section's .section-container
 * carries 20px of vertical padding around a row whose tallest child is the 110px logo, giving a
 * 150px band. (Verified against the live page: with the logo image failing to load the same section
 * measures exactly 96px — 20 + the 56px nav row + 20.) The row is centred in the band by
 * .header-inner's existing align-items:center. Not sticky, matching the live header, which is
 * position:relative and scrolls away with the page. */
.header-inner { padding: 10px 24px; gap: 12px; min-height: 150px; }
/* The live site sizes its wordmark `max-width:275px; width:275px; height:auto`, so the same
 * declaration is used here rather than a fixed height. Note the two assets are different crops of
 * the wordmark — the live SVG is 500x200 (rendering 275x110), this app's by-cela-jo.svg is a
 * tighter 280x86.5 (rendering 275x85) — so matching the declared width reproduces the live logo's
 * footprint, while its height differs by however much whitespace each crop includes. */
.logo img { width: 275px; height: auto; max-width: 100%; }
.logo { min-width: 0; }
/* Under 640px public/css/style.css re-lays .header-inner out as a three-row grid (logo / search /
 * nav). Grid rows stretch to fill spare space by default, which would push those rows to opposite
 * ends of the band — group them in the middle instead, matching the desktop centring. */
@media (max-width: 640px) {
  .header-inner { align-content: center; }
  /* The live site can hold its wordmark at a full 275px on a phone because its header columns
   * stack below 1024px, giving the logo a row to itself. Here the logo still shares row 1 of the
   * small-screen grid with the menu button and the cart, so 275px pushes the cart into the gutter
   * — cap it to keep that row intact. Desktop keeps the live site's exact 275px. */
  .logo img { width: 200px; }
}

/* Every top-bar control is laid out as a centred flex box on one shared centre line. The base
 * stylesheet marks the current page with an underline, built out of `padding-bottom: 2px` +
 * `border-bottom: 1px` on each link. That padding is asymmetric — it adds 3px below the text and
 * nothing above — so it pushed the nav text 1.9px above the true centre of the band while the
 * search field (which has none) sat dead centre, and it stole the same 3px from the cart anchor,
 * pinning its icon to the top of its box. Dropping the underline treatment therefore fixes the
 * ragged alignment and delivers the brighten-instead-of-underline state in one move. */
.nav-link,
.nav-user,
.header-inner .link-button,
.nav-link-cart {
  color: var(--color-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.2;
  text-decoration: none;
}
/* Selected and hovered both brighten. Active also goes semibold so the current page is still
 * distinguishable from whatever the pointer happens to be over. */
.nav-link:hover,
.nav-user:hover,
.header-inner .link-button:hover,
.nav-link-cart:hover { color: var(--bcj-accent-bright); border-bottom-color: transparent; }
.nav-link-active,
.nav-user-active {
  color: var(--bcj-accent-bright);
  font-weight: 600;
  border-bottom-color: transparent;
}
/* The base sheet killed the focus ring on the sign-out button and relied on the underline to show
 * focus instead; with the underline gone that state needs a real ring back. */
.header-inner .link-button:focus { border-bottom-color: transparent; }
.nav-link:focus-visible,
.nav-user:focus-visible,
.nav-link-cart:focus-visible,
.header-inner .link-button:focus-visible {
  outline: 2px solid var(--bcj-accent-bright);
  outline-offset: 3px;
  border-bottom-color: transparent;
}
/* <details> is a block box, and here it lays out ~11px taller than its own <summary>; the summary
 * sits at the top of it, which left "shop" ~1.5px below the line every other item shares.
 * Centring the details element itself puts the trigger back on that line. */
/* The sign-out control is a <form> wrapping a <button>. As a block-level flex item it put its
 * button 1px below the line every other control shares; making it a centred inline-flex box puts
 * the button back on that line. */
.header-inner .inline-form { display: inline-flex; align-items: center; }
.nav-dropdown { display: inline-flex; align-items: center; }
.nav-dropdown-trigger { line-height: 1.2; }
.nav-toggle { color: var(--color-primary); }

/* The dropdown panel is dark navy by default; on the lilac band a plum panel reads as part of the
 * same palette. Its links are hardcoded #fff in the base sheet, which still works here. */
.nav-dropdown-panel { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.nav-dropdown-heading { color: rgba(255, 255, 255, 0.65); }
.nav-dropdown-link:hover { color: #fff; text-decoration: underline; }

.search-form input {
  font-family: inherit;
  font-size: 0.875rem;
  background: #fff;
  border-color: var(--bcj-band-deep);
}
.search-form button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.search-form button:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

.badge, .nav-link-cart .badge { background: var(--color-primary); color: #fff; }

/* ---------------------------------------------------------------------------
 * Buttons — the reference site's signature control: lilac fill, plum hairline
 * border, black label, barely-there 3px corners.
 * ------------------------------------------------------------------------ */
.btn {
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 11px 18px;
}
.btn-primary {
  background: var(--bcj-band);
  border-color: var(--color-primary);
  color: var(--color-text);
}
.btn-primary:hover { background: var(--bcj-band-deep); color: var(--color-text); }
.btn-secondary { border-color: var(--bcj-band-deep); }
.btn-disabled { background: #efeaf0; border-color: var(--color-border); color: var(--color-text-muted); }

.flash-success { background: #f6ecf4; color: var(--color-primary-dark); border-color: #e6cfe0; }

/* ---------------------------------------------------------------------------
 * Homepage — intro blurb, collection sections, catalog rail.
 * ------------------------------------------------------------------------ */
.store-intro {
  max-width: 68ch;
  margin: 26px auto 8px;
  text-align: center;
}
.bcj-intro-logo { display: block; width: 100%; max-width: 275px; height: auto; margin: 0 auto 16px; }
.store-intro p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--color-text); }

.bcj-catalog-head { text-align: center; margin: 34px 0 4px; }
/* The base .catalog-header-row is a space-between flex row (heading left, mobile toggle right);
 * centered here so the heading sits over the centered collection rail, with the toggle — which
 * only appears under 640px — beside it rather than pinned to the far edge. */
.bcj-catalog-head .catalog-header-row { justify-content: center; gap: 10px; }
.bcj-catalog-head h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  text-transform: lowercase;
}
/* A collection's own page is titled with the collection name, so it gets the same display face as
 * the collection headings on the home page — a little larger, since this one is the page's h1
 * rather than a section heading. The generic "shop the collections" h1 keeps the serif: it is
 * page furniture, not a name. */
.bcj-catalog-head h1.bcj-category-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
}

/* The catalog filter rail, restyled as the reference site's lowercase collection nav. Scoped to
 * .category-filters so admin-side .pill uses keep the default look. */
.category-filters { justify-content: center; gap: 6px 22px; margin-bottom: 14px; }
.category-filters .pill {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-transform: lowercase;
  padding: 4px 0;
}
.category-filters .pill:hover { color: var(--color-primary-dark); text-decoration: none; }
.category-filters .pill-active {
  background: none;
  border-color: transparent;
  border-bottom: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.category-filters .pill img { width: 24px; height: 24px; }
.category-toggle { color: var(--color-primary); }

/* About page (themes/bycelajo/about.ejs) — a port of the live site's /about-me/. That page is
 * deliberately plainer than this site's policy pages: no dark banner, just a plum heading on the
 * page background with the story beneath it, then a centred photo. Measured off the live page:
 * heading ~29px plum, body Lato 18px at a 1.4 line-height, and the photo sitting around 480px
 * wide in the middle of the column. */
.bcj-about { max-width: 1080px; margin: 34px auto 48px; }
.bcj-about h1 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
}
.bcj-about p {
  margin: 0 0 1.1em;
  line-height: 1.4;
  color: var(--color-text);
}
.bcj-about-figure {
  margin: 30px auto 0;
  max-width: 480px;
  text-align: center;
}
.bcj-about-figure img {
  display: block;
  width: 100%;
  /* The intrinsic width/height on the <img> hold the space while it loads, so the caption below
   * doesn't jump once the photo arrives. */
  height: auto;
}
.bcj-about-figure figcaption {
  margin-top: 12px;
  /* Reads as a heading, so it takes the theme's heading face. Stated rather than inherited
   * because a <figcaption> otherwise picks up the body face. */
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}
@media (max-width: 700px) {
  .bcj-about { margin: 22px auto 34px; }
  .bcj-about h1, .bcj-about-figure figcaption { font-size: 1.45rem; }
}

/* "As seen on…" — the pieces out in the world, below the collections. A plain wrapping grid rather
 * than a scrolling rail: this is a handful of photos to browse at a glance, not a catalog, and the
 * shots are portrait and landscape mixed, so each tile crops to a common square. */
.bcj-asseen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.bcj-asseen-item {
  display: block;
  overflow: hidden;
  background: var(--bcj-primary-pale);
}
.bcj-asseen-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bcj-asseen-item:hover img { transform: scale(1.04); }
.bcj-asseen-item:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}
@media (max-width: 900px) { .bcj-asseen-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 520px) { .bcj-asseen-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* The featured slot, above the collection rail. Reuses .bcj-collection-head for its title so it
 * reads as a peer of the collections below it, but the piece itself is a spotlight band rather
 * than a catalog card: a large photo beside the name, price, short description and call to action.
 * A single standard card centred in a full-width row just reads as a gap in the page. */
.bcj-featured { margin: 26px 0 0; }

.bcj-featured-item {
  display: grid;
  /* A capped photo column rather than a share of the width: at full width an even split made the
   * square photo ~530px and the band nearly 600px tall, which dwarfed the rail beneath it. */
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 26px 30px;
  margin-top: 14px;
  background: linear-gradient(120deg, var(--bcj-primary-pale), #fffaf6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
/* With more than one featured piece the photo alternates sides, so a run of bands reads as a
 * designed sequence instead of the same block repeated. Driven by a class the view sets from its
 * loop index — :nth-child here would count the section's "featured" heading as a sibling and flip
 * a single featured piece. */
.bcj-featured-item-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.bcj-featured-item-flip .bcj-featured-photo { order: 2; }

/* The pale pink is the whole band's ground, so the photo sits directly on it with no frame of its
 * own — the wash surrounds the piece, its name and its price together rather than just the picture.
 * The background here is only what shows while the image loads. */
.bcj-featured-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bcj-primary-pale);
}
.bcj-featured-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
/* No hover zoom here, unlike .bcj-card-photo: scaling the image up would swallow the frame that is
 * the whole point of this treatment. */

.bcj-featured-body { min-width: 0; padding: 8px 0; }
.bcj-featured-title { margin: 0; }
.bcj-featured-story { margin: 18px 0 0; font-size: 1.15rem; color: var(--color-text); }
.bcj-featured-photo { border-radius: 6px; }
.bcj-featured-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.bcj-featured-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--color-primary);
}
.bcj-featured-name:hover { text-decoration: none; color: var(--color-primary-dark); }
.bcj-featured-price {
  margin: 10px 0 0;
  font-size: 1.15rem;
  color: var(--color-text);
}
.bcj-featured-desc {
  margin-top: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.bcj-featured-desc ul { margin: 6px 0 0; padding-left: 1.1em; }
.bcj-featured-desc li { margin-bottom: 2px; }
.bcj-featured-desc p { margin: 0 0 6px; }

.bcj-featured-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
/* .bcj-card-cta is full-width inside a grid card; here it sits in a row, so it only takes the
   width its label needs. */
.bcj-featured-actions .bcj-card-cta { width: auto; padding-left: 26px; padding-right: 26px; }
.bcj-featured-actions .bcj-card-form { margin: 0; }
.bcj-featured-link { font-size: 0.9rem; color: var(--color-text-muted); }

@media (max-width: 780px) {
  .bcj-featured-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  /* Stacked, the photo always leads — alternating sides means nothing in one column. */
  .bcj-featured-item-flip { grid-template-columns: 1fr; }
  .bcj-featured-item-flip .bcj-featured-photo { order: 0; }
  .bcj-featured-name { font-size: 1.5rem; }
}

/* A collection section: its name (or the admin-uploaded collection image, when one is set) sitting
 * above that collection's own grid — the reference site's script wordmarks, done with whatever
 * artwork the category actually has. */
.bcj-collection { margin: 34px 0 0; }
.bcj-collection-head { text-align: center; margin-bottom: 6px; }
.bcj-collection-head img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto 6px;
}
/* Apricots is a hand-drawn face: it needs more size than the 1.55rem serif it replaces to read at
 * the same optical weight, its own drawn letterforms already carry the lowercase look (so the
 * text-transform stays only as a guard for a category typed in Title Case), and letter-spacing is
 * dropped back to normal because positive tracking pulls a handwritten face's letters apart. */
.bcj-collection-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: lowercase;
  letter-spacing: normal;
}
.bcj-collection-head a { color: inherit; }
.bcj-collection-head a:hover { text-decoration: none; color: var(--color-primary-dark); }
.bcj-collection-count {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------------
 * Product grid + flat card. Four across at the reference site's ~34px gutter,
 * replacing the default three-up overlay-bar card.
 * ------------------------------------------------------------------------ */
.product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin: 14px 0 26px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * Collection gallery. Inside a collection section the grid becomes a single
 * horizontally scrolling row instead of wrapping: exactly 4 pieces fit, and the
 * 5th is cut in half at the right edge so the row visibly continues — the peek
 * *is* the affordance, which is why there are no arrow buttons.
 *
 * The width falls out of one identity. For n whole cards plus a half-card peek,
 * the visible width holds n cards, n gaps and half a card:
 *
 *     n*card + n*gap + card/2 = 100%   ->   card = (100% - n*gap) / (n + 0.5)
 *
 * `100%` resolves against the scroll container's own content box, so the grid
 * has to be the scroller itself — wrapping it in a scrolling parent would make
 * the percentage resolve against a content-sized box and collapse.
 *
 * Scoped to `.bcj-collection` (two classes) so it beats the single-class
 * .product-grid rules above regardless of source order, and so the filtered and
 * search views — where you want every result wrapped onto as many rows as it
 * takes, not a rail — keep the ordinary grid.
 * ------------------------------------------------------------------------ */
/* Positioning context for the rail's prev/next arrows (.scroll-arrow in style.css). They sit just
 * outside the rail's edges, the same offsets the related-products carousel uses. */
.bcj-rail { position: relative; }

.bcj-collection .product-rail {
  --gallery-gap: 34px;
  --gallery-visible: 4;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc(
    (100% - var(--gallery-visible) * var(--gallery-gap)) / (var(--gallery-visible) + 0.5)
  );
  gap: var(--gallery-gap);
  overflow-x: auto;
  /* Keeps a horizontal flick from also triggering the browser's back gesture. */
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* Room for the scrollbar so it never sits on top of the card captions. */
  padding-bottom: 10px;
}
.bcj-collection .product-rail > * { scroll-snap-align: start; }

/* A slim, low-contrast scrollbar rather than none at all: it's the only cue a
 * trackpad-less mouse user gets that the row is draggable. */
.bcj-collection .product-rail {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.bcj-collection .product-rail::-webkit-scrollbar { height: 6px; }
.bcj-collection .product-rail::-webkit-scrollbar-track { background: transparent; }
.bcj-collection .product-rail::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* The region is focusable so it can be panned with the arrow keys; give that
 * focus a visible ring rather than relying on the browser's default outline
 * landing somewhere ambiguous on a wide element. */
.bcj-collection .product-rail:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 4px;
}

/* Fewer cards as the viewport narrows — the half-card peek is kept at every
 * size, since that is what says the row scrolls. Four across on a phone would
 * be four unreadable slivers. */
@media (max-width: 900px) {
  .bcj-collection .product-rail { --gallery-gap: 22px; --gallery-visible: 2; }
}
@media (max-width: 520px) {
  .bcj-collection .product-rail { --gallery-gap: 16px; --gallery-visible: 1; }
}

.bcj-card {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.bcj-card-photo { position: relative; display: block; overflow: hidden; background: #f1ecf2; }
.bcj-card-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bcj-card-photo:hover img { transform: scale(1.04); }
.bcj-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(159, 33, 126, 0.92);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: var(--radius);
}
.bcj-card-badge.out { background: rgba(179, 65, 58, 0.92); }
.bcj-card-badge.low { background: rgba(165, 115, 15, 0.92); }

.bcj-card-name {
  display: block;
  margin: 12px 0 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-primary);
  text-transform: lowercase;
}
.bcj-card-name:hover { color: var(--color-primary-dark); text-decoration: none; }
.bcj-card-price {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.bcj-card-price .bcj-card-price-note {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.bcj-card-cta {
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--bcj-band);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 10px;
  cursor: pointer;
}
.bcj-card-cta:hover { background: var(--bcj-band-deep); color: var(--color-text); text-decoration: none; }
.bcj-card-cta[disabled] {
  background: #efeaf0;
  border-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}
/* The add-to-cart CTA is wrapped in a form, so the form — not the button — is the flex child that
 * has to carry the auto top margin; without it a card with a one-line name leaves its button
 * floating above the buttons of taller cards in the same row. */
.bcj-card-form { margin: auto 0 0; }

/* ---------------------------------------------------------------------------
 * Footer — the reference site's is a plain centered line of policy links over
 * the page background, with no rule above it and no social row.
 * ------------------------------------------------------------------------ */
.bcj-footer {
  border-top: none;
  background: var(--color-bg);
  text-align: center;
  padding: 34px 0 26px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--color-text);
}
.bcj-footer-links { margin: 0 0 8px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }
.bcj-footer-links a { color: var(--color-primary); }
.bcj-footer-social { display: flex; justify-content: center; gap: 14px; margin: 12px 0 10px; }
.bcj-footer-social a { color: var(--color-primary); display: inline-flex; }
.bcj-footer-social svg { width: 19px; height: 19px; }
.bcj-footer-copy { margin: 0; color: var(--color-text-muted); font-size: 0.85rem; }

/* ---------------------------------------------------------------------------
 * Carry the palette into the shared pages this theme doesn't override, so
 * /about, /cart, /checkout and the policy pages read as the same site.
 * These selectors hardcode the default navy in public/css/style.css.
 * ------------------------------------------------------------------------ */
.about-hero { background: var(--color-primary-dark); }

/* Content pages (FAQ, Returns, Privacy, Accessibility, the /blog posts and their index) drop the
 * full-bleed plum band the default theme gives them: the reference site's interior pages are quiet,
 * a heading on the page ground rather than a coloured header. Undoing it means reversing the three
 * things .policy-header does in style.css — the negative side margins that make it full-bleed, the
 * gradient, and the white-on-dark text colours — and then setting the heading in the brand's own
 * display face, the same treatment collection names get. */
.policy-header {
  margin-left: 0;
  margin-right: 0;
  padding: 30px 24px 14px;
  background: none;
  color: var(--color-text);
}
.policy-header h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
  color: var(--color-primary);
}
.policy-eyebrow { color: var(--color-text-muted); }
.policy-header .updated { color: var(--color-text-muted); }

@media (max-width: 640px) {
  .policy-header { padding: 22px 18px 10px; }
  .policy-header h1 { font-size: 1.9rem; }
}
.policy-jumpnav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.about-signature { color: var(--color-primary); }
.hero-cta { border-color: var(--color-primary); }
.product-detail-info h1 { text-transform: lowercase; }
