/* Shop page banner (shop.php) — "soft split": copy on the left in dark ink, the banner photo floats on
   the right and melts into a light, blurred glow of itself that runs behind the filters and fades to the
   page colour. Same idea as the homepage hero (hero-merge.css → D). Photo, crop, subtitle and the
   collection buttons: Admin → Storefront → Shop page. --tone (set inline) tints the pearl slightly. */
.shop-merge { --tone: #2a1b18; --b-h: clamp(400px, 36vw, 520px); --b-pos: center 58%; --pearl: color-mix(in srgb, var(--tone) 8%, #f7f5f1);
  position: relative; isolation: isolate; background: var(--bg); }
/* the header sits on the light pearl → dark ink until it turns solid on scroll */
.page-shop { --hdr-ink-over: #1b1b1b; --hdr-veil: transparent; }

/* banner: copy on the left, photo on the right melting into the glow on its left and lower edges */
.sm-banner { position: relative; min-height: var(--b-h); display: flex; align-items: center; padding: calc(var(--hdr-h) + 12px) 0 8px; }
.sm-banner picture { position: absolute; inset: 0 0 0 36%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 18%, #000 42%), linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 18%, #000 42%), linear-gradient(to bottom, #000 62%, transparent 100%);
          mask-composite: intersect; }
.sm-banner picture img { width: 100%; height: 100%; object-fit: cover; object-position: var(--b-pos); }
.sm-copy { position: relative; z-index: 2; width: 100%; color: var(--ink); }
.sm-copy > * { max-width: min(560px, 48%); }
.sm-copy .crumbs { margin-bottom: 14px; color: var(--dim); }
.sm-copy h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.sm-copy h1 em { font-style: italic; }
.sm-copy p { max-width: 560px; margin: 14px 0 0; color: var(--dim); }
.sm-copy .sm-chips { max-width: 52%; margin-top: clamp(18px, 2.4vw, 28px); }
.sm-chips .chip { display: inline-flex; align-items: center; background: color-mix(in srgb, #fff 55%, transparent); border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sm-chips .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sm-shop { position: relative; background: transparent; padding-top: clamp(8px, 1.2vw, 16px); }
.sm-shop .shop-bar { border-bottom-color: color-mix(in srgb, var(--ink) 12%, transparent); }

/* the glow: a pre-blurred copy of the banner photo (glow_src()), veiled in pearl, fading to the page */
.sm-glow { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--b-h) + 520px); overflow: hidden; background: var(--pearl);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(var(--b-h) - 40px), rgba(0,0,0,.55) calc(var(--b-h) + 180px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(var(--b-h) - 40px), rgba(0,0,0,.55) calc(var(--b-h) + 180px), transparent 100%); }
.sm-glow img { position: absolute; inset: -12%; width: 124%; max-width: none; height: 124%; object-fit: cover; transform: scale(1.2, 1.45); transform-origin: top; }
.sm-glow::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--pearl) 58%, transparent); }   /* pearl veil keeps dark text readable */
/* the pre-blurred glow couldn't be written (folder not writable) → blur the photo in CSS instead */
.sm-glow--raw img { filter: blur(70px) saturate(1.15) brightness(1.12); }

@media (max-width: 767px) {
  .shop-merge { --b-h: clamp(380px, 110vw, 520px); }
  /* stacks: photo across the top melting downward, copy below it */
  .sm-banner { align-items: flex-end; }
  .sm-banner picture { left: 0; bottom: 30%;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
  .sm-copy > *, .sm-copy .sm-chips { max-width: none; }
  .sm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .sm-chips::-webkit-scrollbar { display: none; }
  .sm-chips .chip { flex: none; }
}
