/* BJ-Containers — shell, grid, header, footer, breadcrumbs, sticky action bar.
   Verified breakpoints: 360 / 390 / 768 / 1440. No horizontal overflow at any. */

.bjc-wrap {
  width: 100%;
  max-width: var(--bjc-container);
  margin-inline: auto;
  padding-inline: var(--bjc-gutter);
}
.bjc-wrap--wide { max-width: var(--bjc-container-wide); }
.bjc-wrap--narrow { max-width: 760px; }

.bjc-section { padding-block: var(--bjc-7); }
.bjc-section--tight { padding-block: var(--bjc-5); }
.bjc-section--quiet { background: var(--bjc-neutral); }

.bjc-stack > * + * { margin-top: var(--bjc-4); }
.bjc-stack--lg > * + * { margin-top: var(--bjc-6); }

.bjc-grid { display: grid; gap: var(--bjc-5); }
@media (min-width: 640px)  { .bjc-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .bjc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .bjc-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Product page: content column + sticky purchase panel. */
.bjc-split { display: grid; gap: var(--bjc-6); }
@media (min-width: 1000px) {
  .bjc-split { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .bjc-split__aside { position: sticky; top: var(--bjc-5); }
}

/* ---- header ----------------------------------------------------------- */
.bjc-site-header {
  border-bottom: 1px solid var(--bjc-line);
  background: var(--bjc-white);
  position: relative; z-index: var(--bjc-z-header);
}
.bjc-site-header__inner {
  display: flex; align-items: center; gap: var(--bjc-4);
  min-height: 72px;
}
.bjc-logo { display: inline-flex; align-items: center; flex: none; }
.bjc-logo img { height: 40px; width: auto; }
@media (min-width: 768px) { .bjc-logo img { height: 48px; } }

.bjc-nav { margin-left: auto; }
.bjc-nav ul { display: flex; gap: var(--bjc-1); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.bjc-nav a {
  display: inline-flex; align-items: center;
  min-height: var(--bjc-target); padding-inline: var(--bjc-3);
  color: var(--bjc-navy); text-decoration: none;
  font-weight: var(--bjc-weight-medium); border-radius: var(--bjc-radius);
}
.bjc-nav a:hover { background: var(--bjc-neutral); }
.bjc-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--bjc-teal); }

.bjc-header-actions { display: flex; align-items: center; gap: var(--bjc-2); flex: none; }

/* Mobile navigation: a details/summary disclosure, so it works without JS. */
.bjc-nav-toggle { margin-left: auto; }
.bjc-nav-toggle > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bjc-2);
  min-height: var(--bjc-target); min-width: var(--bjc-target);
  padding-inline: var(--bjc-3);
  border: 1px solid var(--bjc-line-strong); border-radius: var(--bjc-radius);
  color: var(--bjc-navy); font-weight: var(--bjc-weight-medium);
  cursor: pointer; list-style: none;
}
.bjc-nav-toggle > summary::-webkit-details-marker { display: none; }
.bjc-nav-toggle[open] > summary { background: var(--bjc-neutral); }
.bjc-nav-toggle__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--bjc-4) var(--bjc-gutter);
  background: var(--bjc-white);
  border-bottom: 1px solid var(--bjc-line);
  box-shadow: var(--bjc-shadow);
}
.bjc-nav-toggle__panel ul { flex-direction: column; gap: 0; }
.bjc-nav-toggle__panel a { width: 100%; }

@media (min-width: 900px) {
  .bjc-nav-toggle { display: none; }
}
@media (max-width: 899px) {
  .bjc-nav--desktop { display: none; }
}

/* ---- breadcrumbs ------------------------------------------------------ */
.bjc-breadcrumbs { padding-block: var(--bjc-3); font-size: var(--bjc-text-sm); }
.bjc-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--bjc-2); list-style: none; margin: 0; padding: 0; }
.bjc-breadcrumbs li + li::before { content: "›"; margin-right: var(--bjc-2); color: var(--bjc-ink-muted); }
.bjc-breadcrumbs [aria-current="page"] { color: var(--bjc-ink-muted); }

/* ---- footer ----------------------------------------------------------- */
.bjc-site-footer {
  margin-top: var(--bjc-9);
  background: var(--bjc-navy); color: var(--bjc-white);
}
.bjc-site-footer h2 { color: var(--bjc-white); font-size: var(--bjc-text-lg); margin-bottom: var(--bjc-3); }
.bjc-site-footer ul { list-style: none; margin: 0; padding: 0; }
.bjc-site-footer p { color: rgba(255, 255, 255, 0.86); }

/* Links: readable at rest, unmistakable on hover — colour lifts to the bright
   teal, an underline draws in from the left, and the row nudges right. */
.bjc-site-footer a {
  color: rgba(255, 255, 255, 0.92); text-decoration: none;
  background-image: linear-gradient(var(--bjc-teal-bright), var(--bjc-teal-bright));
  background-repeat: no-repeat; background-size: 0 1.5px; background-position: 0 100%;
  padding-bottom: 1px;
  transition: color var(--bjc-dur-fast) var(--bjc-ease-out), background-size var(--bjc-dur-medium) var(--bjc-ease-out), transform var(--bjc-dur-fast) var(--bjc-ease-out);
}
.bjc-site-footer a:hover, .bjc-site-footer a:focus-visible { color: var(--bjc-teal-bright); background-size: 100% 1.5px; }
.bjc-site-footer a:focus-visible { outline-color: var(--bjc-teal-bright); }
.bjc-site-footer__links li { margin: 0; }
.bjc-site-footer__links a { display: inline-block; padding-block: 5px; }
.bjc-site-footer__links a:hover { transform: translateX(4px); }
.bjc-site-footer__links a::before { content: "→"; display: inline-block; width: 0; overflow: hidden; opacity: 0; color: var(--bjc-teal-bright); transition: width var(--bjc-dur-fast) var(--bjc-ease-out), opacity var(--bjc-dur-fast) var(--bjc-ease-out); }
.bjc-site-footer__links a:hover::before { width: 1.2em; opacity: 1; }

/* 1 — the film */
.bjc-footer-film {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: end;
  min-height: clamp(380px, 68vh, 820px);
  background: var(--bjc-navy-deep);
}
.bjc-footer-film__media { position: absolute; inset: 0; z-index: -1; }
.bjc-footer-film__media img, .bjc-footer-film__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bjc-footer-film__media img { transform: scale(1.02); }
.bjc-footer-film__video { opacity: 0; transition: opacity 1200ms var(--bjc-ease-out); }
.bjc-footer-film.is-playing .bjc-footer-film__video { opacity: 1; }
/* Legibility: the sea darkens into the footer's navy so the caption and the
   columns below read as one surface. */
.bjc-footer-film::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--bjc-navy) 0%, rgba(1, 32, 78, 0.78) 22%, rgba(1, 32, 78, 0.2) 55%, rgba(1, 32, 78, 0) 100%),
    linear-gradient(to right, rgba(1, 22, 57, 0.45), rgba(1, 22, 57, 0) 60%);
}
.bjc-footer-film__caption { position: relative; z-index: 1; padding-block: var(--bjc-9) var(--bjc-7); max-width: var(--bjc-container-wide); }
.bjc-footer-film__kicker { color: var(--bjc-teal-bright); }
/* Specificity note: `.bjc-site-footer h2` sets the column heading size and
   `.bjc-site-footer a` the link colour; both outrank the display and button
   utilities, so the film's heading and buttons restate theirs here. */
.bjc-site-footer .bjc-footer-film__caption h2 { font-size: var(--bjc-display-2); line-height: 1.08; color: var(--bjc-white); max-width: 16ch; margin-bottom: var(--bjc-3); text-shadow: 0 2px 24px rgba(1, 22, 57, 0.5); }
.bjc-site-footer .bjc-btn { color: var(--btn-fg); background-image: none; padding-bottom: var(--bjc-3); }
.bjc-site-footer .bjc-btn:hover, .bjc-site-footer .bjc-btn:focus-visible { color: var(--btn-fg); transform: none; }
.bjc-footer-film__text { max-width: 46ch; font-size: var(--bjc-text-lg); color: rgba(255, 255, 255, 0.9); }
.bjc-footer-film__actions { display: flex; flex-wrap: wrap; gap: var(--bjc-3); margin: var(--bjc-5) 0 0; }
@media (prefers-reduced-motion: reduce) { .bjc-footer-film__video { display: none; } }

/* 2 — identity and columns */
.bjc-site-footer__body { display: grid; gap: var(--bjc-7); padding-block: var(--bjc-8) var(--bjc-6); }
@media (min-width: 1000px) { .bjc-site-footer__body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--bjc-9); } }
.bjc-site-footer__logo { display: inline-block; margin-bottom: var(--bjc-5); background: none; padding: 0; }
.bjc-site-footer__logo:hover { transform: none; }
.bjc-site-footer__logo img { height: 64px; width: auto; display: block; }
.bjc-site-footer__intro { max-width: 40ch; font-size: var(--bjc-text-lg); }
.bjc-site-footer__address { margin-bottom: var(--bjc-3); font-family: var(--bjc-font-mono); font-size: var(--bjc-text-sm); color: rgba(255, 255, 255, 0.86); }
.bjc-site-footer__contact li + li { margin-top: var(--bjc-1); }
.bjc-site-footer__cols { display: grid; gap: var(--bjc-6); }
@media (min-width: 600px) { .bjc-site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bjc-site-footer__hours li { padding-block: 5px; color: rgba(255, 255, 255, 0.86); }
.bjc-site-footer__hours li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 0; }

/* 3 — paying safely */
.bjc-site-footer__trust { padding-block: var(--bjc-6); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.bjc-site-footer__trust > h2 { font-family: var(--bjc-font-mono); font-size: var(--bjc-text-xs); font-weight: var(--bjc-weight-medium); letter-spacing: var(--bjc-tracking-label); text-transform: uppercase; color: var(--bjc-teal-bright); margin-bottom: var(--bjc-5); }
.bjc-trust { display: grid; gap: var(--bjc-5) var(--bjc-6); }
@media (min-width: 640px)  { .bjc-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bjc-trust { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.bjc-trust__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--bjc-3); align-items: start; margin: 0; }
.bjc-trust__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--bjc-radius-lg); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--bjc-teal-bright); }
.bjc-trust__icon svg { width: 26px; height: 26px; }
.bjc-trust__body { display: grid; gap: var(--bjc-1); font-size: var(--bjc-text-sm); color: rgba(255, 255, 255, 0.8); }
.bjc-trust__body strong { color: var(--bjc-white); font-weight: var(--bjc-weight-semibold); }
.bjc-trust__body a { justify-self: start; font-weight: var(--bjc-weight-medium); }
.bjc-trust__banks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--bjc-1); }
.bjc-trust__bank { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); font-family: var(--bjc-font-mono); font-size: 11px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.9); }

/* 4 — identity line */
.bjc-site-footer__legal-wrap { padding-block: var(--bjc-4) var(--bjc-6); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.bjc-site-footer__legal { margin: 0; font-size: var(--bjc-text-sm); color: rgba(255, 255, 255, 0.85); }

/* ---- sticky action bar (mobile) --------------------------------------- */
/* Must never cover errors, consent controls or content: the body gets padding
   equal to the bar's height, and the bar hides itself while a dialog is open. */
.bjc-sticky-bar {
  position: fixed; inset-inline: 0; bottom: 0;
  z-index: var(--bjc-z-sticky);
  display: flex; align-items: center; gap: var(--bjc-3);
  padding: var(--bjc-3) var(--bjc-gutter);
  padding-bottom: calc(var(--bjc-3) + env(safe-area-inset-bottom, 0px));
  background: var(--bjc-white);
  border-top: 1px solid var(--bjc-line);
  box-shadow: 0 -2px 12px rgba(1, 32, 78, 0.10);
}
.bjc-sticky-bar .bjc-btn { flex: 1; }
body:has(dialog[open]) .bjc-sticky-bar,
body[data-drawer-open="true"] .bjc-sticky-bar { display: none; }
@media (min-width: 1000px) { .bjc-sticky-bar { display: none; } }
body[data-has-sticky-bar="true"] { padding-bottom: 88px; }
@media (min-width: 1000px) { body[data-has-sticky-bar="true"] { padding-bottom: 0; } }

/* ---- navigation added with the content pack ---------------------------- */

/* The "Containers" group opens on hover and on focus, and is always reachable
   with the keyboard because it is a plain nested list. */
.bjc-nav__item--parent { position: relative; }
.bjc-nav__sub {
  display: none;
  position: absolute; left: 0; top: 100%; z-index: var(--bjc-z-header);
  min-width: 14rem;
  margin: 0; padding: var(--bjc-2);
  flex-direction: column; gap: 0;
  background: var(--bjc-white);
  border: 1px solid var(--bjc-line);
  border-radius: var(--bjc-radius);
  box-shadow: var(--bjc-shadow);
}
.bjc-nav__item--parent:hover .bjc-nav__sub,
.bjc-nav__item--parent:focus-within .bjc-nav__sub { display: flex; }

/* In the mobile panel the group is simply indented; nothing floats. */
.bjc-nav-toggle__panel .bjc-nav__sub {
  display: flex; position: static; box-shadow: none; border: 0;
  padding: 0 0 0 var(--bjc-4);
}

.bjc-nav--utility ul { gap: var(--bjc-1); }
.bjc-nav--utility a { font-size: var(--bjc-text-sm); }
.bjc-nav__count {
  display: inline-block; min-width: 1.4em;
  margin-left: var(--bjc-1); padding: 0 0.35em;
  border-radius: 999px;
  background: var(--bjc-teal); color: var(--bjc-white);
  font-size: var(--bjc-text-xs); text-align: center;
}

.bjc-site-footer__closing {
  margin: var(--bjc-2) 0 0;
  font-size: var(--bjc-text-sm);
  color: rgba(255, 255, 255, 0.72);
}

/* ---- cards ------------------------------------------------------------- */
/* Shared component: catalogue listings, homepage routes and products, the
   knowledge-base index and the product page's alternatives all use it, so it
   lives in the stylesheet every page loads. */

.bjc-card-grid {
  display: grid; gap: var(--bjc-5);
  list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.bjc-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--bjc-line); border-radius: var(--bjc-radius-lg);
  overflow: hidden; background: var(--bjc-white);
}
.bjc-card:hover { border-color: var(--bjc-navy-70); box-shadow: var(--bjc-shadow-sm); }
.bjc-card__link { text-decoration: none; color: inherit; }
.bjc-card__link:focus-visible { outline-offset: -2px; }
.bjc-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bjc-neutral); }
.bjc-card__img { width: 100%; height: 100%; object-fit: cover; }
.bjc-card__title { margin: var(--bjc-3) var(--bjc-4) 0; font-size: var(--bjc-text-base); }
.bjc-card__meta { margin: var(--bjc-1) var(--bjc-4) 0; font-size: var(--bjc-text-sm); color: var(--bjc-ink-muted); }
.bjc-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--bjc-2); margin: var(--bjc-3) var(--bjc-4) 0; }
.bjc-card__price .bjc-price__gross { font-size: var(--bjc-text-xl); }
.bjc-card__delivery { flex-basis: 100%; font-size: var(--bjc-text-sm); color: var(--bjc-ink-muted); }
.bjc-card__action { margin: auto var(--bjc-4) var(--bjc-4); padding-top: var(--bjc-3); }
.bjc-card__action .bjc-btn { width: 100%; }

/* ---- brand illustration ------------------------------------------------- */
/* Generated marks (assets/art/cat-*): one per category, used where a
   photograph would otherwise be missing or shared with a sibling storefront.
   They are illustrations and are styled to read as illustrations — flat, on the
   neutral, never framed like a photograph. */

.bjc-art { display: block; }
.bjc-art img { display: block; width: 100%; height: auto; }

.bjc-art--category {
  max-width: 420px;
  margin-inline: auto;
}

.bjc-card__media--art,
.bjc-card__media--mark {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--bjc-4);
  background: var(--bjc-neutral);
}
.bjc-card__media--art .bjc-art img { max-height: 100%; width: auto; }

/* An empty slot keeps the grid regular when one category has no illustration.
   It is empty on purpose — a placeholder graphic would be a picture of nothing
   claiming to be a picture of something. */
.bjc-card__media--empty { background: var(--bjc-neutral); }

.bjc-category-art {
  margin: 0 0 var(--bjc-5);
  padding: var(--bjc-5);
  background: var(--bjc-neutral);
  border-radius: var(--bjc-radius-lg);
}

/* ---- type marks --------------------------------------------------------- */
/* Drawn in PHP from the product record (inc/silhouette.php), so they exist for
   every product including the ones with no photograph at all. */

.bjc-mark { display: block; width: 100%; height: auto; }
.bjc-mark--card { max-width: 220px; }
.bjc-mark--inline { width: 2.5rem; display: inline-block; vertical-align: middle; }
