﻿/* Homepage. One layout, scoped away from legacy catalogue and product styles. */
html body.jf-shop.jf-home-v3 {
  padding-top: 80px !important;
  background: var(--jf-cream) !important;
}
html body.jf-shop.jf-home-v3 [data-qb-area="start"] { margin: 0 !important; }

/* Solid, compact header with the same 2px / 4px button system. */
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header {
  background: var(--jf-blue) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.jf-shop.jf-home-v3 #jf-site-header > header { max-width: 1280px; padding-inline: 28px; }
html body.jf-shop.jf-home-v3 #jf-site-header > header > nav > .jf-header-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  min-height: 80px !important;
  padding: 0 !important;
}
html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-brand {
  opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
  transform: none !important; min-width: 0; justify-self: start; display: flex; align-items: center;
}
html body.jf-shop.jf-home-v3 #jf-site-header > header .jf-header-brand > .font-heading,
html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-brand img {
  color: var(--jf-yellow) !important; -webkit-text-fill-color: var(--jf-yellow) !important;
  font-size: clamp(28px, 2.6vw, 52px) !important; line-height: 1 !important; letter-spacing: .02em;
  height: 52px !important; max-height: 52px !important; width: auto !important; padding: 0; white-space: nowrap;
  object-fit: contain;
}
html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-desktop-nav { grid-column: auto; width: auto; }
html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: 12px; min-width: 0;
}
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header .jf-header-action:not(:disabled):not([aria-disabled="true"]),
html body.jf-shop.jf-home-v3 #jf-site-header .jf-nav-button {
  color: var(--jf-black) !important; background: var(--jf-yellow) !important;
  border: var(--jf-ui-border) !important; box-shadow: var(--jf-ui-shadow) !important;
  transform: none !important;
}
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header .jf-header-action:not(:disabled):not([aria-disabled="true"]) {
  width: 52px !important; min-width: 52px !important; height: 52px !important; min-height: 52px !important;
  flex: 0 0 52px; display: grid !important; place-items: center !important; padding: 0 !important;
}
html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-action svg,
html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-cart svg {
  width: 26px !important; height: 26px !important;
}
html body.jf-shop.jf-home-v3 #jf-site-header .jf-nav-button { min-height: 44px; padding: 9px 18px !important; }

html body.jf-shop.jf-home-v3 #jf-storefront { color: var(--jf-black); padding: 0 0 56px; }
#jf-storefront .jf-store-width { width: min(100% - 56px, 1224px); margin-inline: auto; }
#jf-storefront .jf-store-intro {
  padding-block: 30px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
#jf-storefront .jf-store-intro h1 {
  margin: 0; max-width: none; color: var(--jf-red);
  font-family: var(--jf-heading-font-family); font-size: clamp(60px, 6.1vw, 86px);
  font-weight: 400; line-height: .97; letter-spacing: .025em;
  -webkit-text-stroke: 1px var(--jf-black); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--jf-black);
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-control {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 46px; padding: 10px 17px; border: var(--jf-ui-border) !important;
  border-radius: 0 !important; box-shadow: var(--jf-ui-shadow) !important;
  background: var(--jf-red) !important; color: #fff !important;
  font-family: var(--jf-body-font-family); font-size: 14px; font-weight: 900; line-height: 1.1;
  text-decoration: none; text-shadow: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-control-yellow { background: var(--jf-yellow) !important; color: var(--jf-black) !important; }
#jf-storefront .jf-control svg { flex: 0 0 20px; width: 20px; height: 20px; }
#jf-storefront .jf-store-intro > .jf-control { flex-shrink: 0; }

/* A short reassurance strip; no dividers, badges or nested frames. */
#jf-storefront .jf-store-benefits { background: var(--jf-blue); color: #fff; }
#jf-storefront .jf-store-benefits-inner {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px; margin: auto; padding: 7px 24px; gap: 32px;
}
#jf-storefront .jf-store-benefit { display: flex; min-height: 30px; justify-content: center; align-items: center; gap: 9px; }
#jf-storefront .jf-store-benefit > svg { flex: 0 0 23px; width: 23px; height: 23px; color: var(--jf-yellow); }
#jf-storefront .jf-store-benefit strong { display: block; font-size: 14px; line-height: 1; font-weight: 900; }
#jf-storefront .jf-store-benefit small { display: none !important; }

#jf-storefront .jf-store-products { padding-top: 24px; scroll-margin-top: 96px; }
#jf-storefront .jf-store-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0 4px 4px 0;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-filters .jf-control {
  background: #ffffff !important;
  color: var(--jf-black) !important;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-filters .jf-control[aria-pressed="true"] {
  background: var(--jf-blue) !important;
  color: #ffffff !important;
}
#jf-storefront .jf-store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }

/* Clean product cards. Product artwork carries the colour; prices stay unboxed. */
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card {
  display: flex; flex-direction: column; position: relative; width: 100%; min-width: 0; height: 100%;
  margin: 0; padding: 0; border: 0 !important; background: transparent !important;
  box-shadow: none !important; transform: none !important; overflow: visible;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card::before,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card::after { content: none !important; }
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-image {
  display: block; position: relative; width: 100%; aspect-ratio: 1;
  margin: 0; padding: 0; border: 2px solid var(--jf-black);
  background: #f1f0e9; box-shadow: none !important; transform: none !important; overflow: hidden;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-image img {
  display: block; width: 100%; height: 100%; padding: 0 !important; aspect-ratio: 1;
  object-fit: contain; background: #f1f0e9; border: 0; border-radius: 0;
  opacity: 1 !important; visibility: visible; transform: none !important; transition: transform .2s ease;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-info {
  display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 14px 2px 0 !important;
  background: transparent !important; color: var(--jf-black) !important; border: 0 !important; box-shadow: none !important;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3 {
  margin: 0 0 14px; padding: 0; min-height: 2.15em;
  font-family: var(--jf-heading-font-family); font-size: 25px !important;
  font-weight: 400; line-height: 1.08 !important; letter-spacing: .02em !important;
  color: var(--jf-black) !important; -webkit-text-fill-color: var(--jf-black) !important;
  -webkit-text-stroke: 0 !important; text-shadow: none !important; transform: none !important;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card.jf-merch-short h3 { font-size: 31px !important; min-height: 1.74em; }
#jf-storefront .jf-merch-card h3 a { display: block; color: inherit; text-decoration: none; }
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-purchase { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 0 4px 4px 0; }
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; width: auto;
  min-width: 0; margin: 0; padding: 0 !important; border: 0 !important; box-shadow: none !important;
  color: var(--jf-black) !important; background: transparent !important; text-shadow: none !important;
  font-family: var(--jf-body-font-family); font-size: 23px !important; font-weight: 900; line-height: 1.2;
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-price > span {
  margin: 0; padding: 0; color: inherit; border: 0; background: transparent; box-shadow: none; font-family: var(--jf-body-font-family) !important; font-size: inherit !important; font-weight: 900 !important; line-height: 1.2; white-space: nowrap;
}
#jf-storefront .jf-merch-price del { font-size: 14px; font-weight: 600; color: #625f56; }
html body.jf-shop.jf-home-v3 #jf-storefront .jf-buy-action { min-height: 44px; padding: 9px 12px; }
#jf-storefront .jf-merch-soldout { position: absolute; left: 10px; top: 10px; padding: 5px 8px; background: var(--jf-cream); color: var(--jf-black); font-size: 12px; font-weight: 900; }
#jf-storefront .jf-store-end { display: flex; justify-content: center; margin-top: 40px; }

/* Footer mirrors the header's black-yellow-black edge at exactly the same size. */
html body.jf-shop.jf-home-v3 .jf-footer { border: 0 !important; border-top: 2px solid var(--jf-black) !important; box-shadow: 0 -4px 0 var(--jf-yellow), 0 -6px 0 var(--jf-black) !important; padding: 38px 28px 24px; }
html body.jf-shop.jf-home-v3 .jf-footer-inner { max-width: 1224px; gap: 32px; }
html body.jf-shop.jf-home-v3 .jf-footer-brand > span,
html body.jf-shop.jf-home-v3 .jf-footer-official > span { display: none; }
html body.jf-shop.jf-home-v3 .jf-footer-bottom { max-width: 1224px; border: 0 !important; margin-top: 24px; padding-top: 0; }
html body.jf-shop.jf-home-v3 .jf-footer-official { border: 0 !important; padding-top: 0; }

@media (hover: hover) and (pointer: fine) {
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-control:hover,
  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header .jf-header-action:not(:disabled):not([aria-disabled="true"]):hover,
  html body.jf-shop.jf-home-v3 #jf-site-header .jf-nav-button:hover { transform: translate(-2px, -2px) !important; box-shadow: var(--jf-ui-shadow-hover) !important; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-image:hover img { transform: scale(1.035) !important; }
}
html body.jf-shop.jf-home-v3 #jf-storefront .jf-control:active,
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header .jf-header-action:not(:disabled):not([aria-disabled="true"]):active,
html body.jf-shop.jf-home-v3 #jf-site-header .jf-nav-button:active { transform: translate(2px, 2px) !important; box-shadow: var(--jf-ui-shadow-pressed) !important; }
html body.jf-shop.jf-home-v3 #jf-storefront .jf-control:focus-visible { outline: 3px solid var(--jf-black) !important; outline-offset: 5px; }

@media (max-width: 1023px) {
  html body.jf-shop.jf-home-v3 #jf-site-header > header > nav > div { grid-template-columns: minmax(0, 1fr) auto !important; gap: 16px; }
  html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-desktop-nav { display: none !important; }
  html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-menu-wrap { display: flex !important; }
  #jf-storefront .jf-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  #jf-storefront .jf-store-intro h1 { font-size: 48px; }
}
@media (max-width: 767px) {
  html body.jf-shop.jf-home-v3 { padding-top: 68px !important; }
  html body.jf-shop.jf-home-v3 #jf-site-header > header { padding-inline: 14px; }
  html body.jf-shop.jf-home-v3 #jf-site-header > header > nav > div { min-height: 68px !important; gap: 10px; }
  html body.jf-shop.jf-home-v3 #jf-site-header > header .jf-header-brand > .font-heading { font-size: clamp(24px, 6.5vw, 33px) !important; letter-spacing: .01em; }
  html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-actions { gap: 7px; }
  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header .jf-header-action:not(:disabled):not([aria-disabled="true"]) { width: 42px !important; min-width: 42px !important; height: 42px !important; min-height: 42px !important; flex-basis: 42px; }
  #jf-storefront .jf-store-width { width: calc(100% - 28px); }
  #jf-storefront .jf-store-intro { padding-block: 21px 20px; gap: 14px; }
  #jf-storefront .jf-store-intro h1 { max-width: 100%; font-size: clamp(34px, 9.3vw, 46px); line-height: .98; }
  #jf-storefront .jf-store-benefits-inner { padding: 6px 14px; gap: 10px; }
  #jf-storefront .jf-store-benefit { justify-content: flex-start; gap: 8px; }
  #jf-storefront .jf-store-benefit > svg { flex-basis: 20px; width: 20px; height: 20px; }
  #jf-storefront .jf-store-benefit strong { font-size: 12px; }
  #jf-storefront .jf-store-products { padding-top: 18px; scroll-margin-top: 82px; }
  #jf-storefront .jf-store-filters { display: none !important; }
  #jf-storefront .jf-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-info { padding-top: 10px !important; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3 { font-size: clamp(18px, 4.9vw, 23px) !important; min-height: 3.24em; margin-bottom: 10px; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card.jf-merch-short h3 { font-size: clamp(23px, 6.1vw, 29px) !important; min-height: 2.6em; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-price { font-size: clamp(18px, 4.8vw, 22px) !important; gap: 2px; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-purchase { gap: 6px; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-buy-action { min-height: 44px; padding: 8px; font-size: 12px; gap: 6px; }
  #jf-storefront .jf-buy-action svg { width: 17px; height: 17px; flex-basis: 17px; }
  html body.jf-shop.jf-home-v3 .jf-footer { padding: 28px 18px 20px; }
}
@media (max-width: 359px) {
  html body.jf-shop.jf-home-v3 #jf-site-header > header { padding-inline: 10px; }
  html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-actions { gap: 5px; }
  html body.jf-shop.jf-home-v3 #jf-site-header > header .jf-header-brand > .font-heading { font-size: 23px !important; }
  #jf-storefront .jf-store-grid { gap: 24px 10px; }
  #jf-storefront .jf-store-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #jf-storefront .jf-buy-action svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body.jf-shop.jf-home-v3 #jf-storefront * { transition: none !important; scroll-behavior: auto !important; }
}

/* Storefront v4 â€” short illustrated hero, transparent header and comic cards. */
html body.jf-shop.jf-home-v3 {
  padding-top: 0 !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: background-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header.jf-header-scrolled {
  background: var(--jf-blue) !important;
  border-bottom: 2px solid var(--jf-black) !important;
  box-shadow: 0 4px 0 var(--jf-black) !important;
  backdrop-filter: blur(8px) !important;
}

#jf-storefront .jf-store-hero {
  position: relative;
  box-sizing: border-box;
  min-height: 230px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--jf-cream);
  background-image: var(--jf-hero-art, none);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 0;
}

#jf-storefront .jf-store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,251,237,.98) 0%, rgba(255,251,237,.9) 35%, rgba(255,251,237,.2) 58%, rgba(255,251,237,0) 72%);
}

#jf-storefront .jf-store-intro {
  box-sizing: border-box;
  width: min(100% - 56px, 1224px);
  min-height: 230px;
  padding: 82px 0 13px;
  display: flex;
  align-items: center;
}

#jf-storefront .jf-store-copy {
  width: min(760px, 65%);
}

#jf-storefront .jf-store-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--jf-blue);
  font-family: var(--jf-body-font-family);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .105em;
  text-transform: uppercase;
}

#jf-storefront .jf-store-intro h1 {
  max-width: none;
  font-size: clamp(48px, 4.8vw, 66px);
  line-height: .88;
  text-wrap: balance;
}

/* Trust strip keeps its place but reads like a pair of compact comic stamps. */
#jf-storefront .jf-store-benefits {
  position: relative;
  z-index: 2;
  background: var(--jf-blue);
  border: 0;
}

#jf-storefront .jf-store-benefits-inner {
  max-width: 680px;
  min-height: 40px;
  padding: 3px 24px;
  gap: 36px;
}

#jf-storefront .jf-store-benefit {
  justify-content: flex-start;
}

#jf-storefront .jf-store-benefit > svg {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  padding: 4px;
  color: var(--jf-black);
  background: var(--jf-yellow);
  border: 2px solid var(--jf-black);
  border-radius: 50%;
}

#jf-storefront .jf-store-benefit strong {
  font-family: var(--jf-body-font-family);
  font-size: 12px;
  letter-spacing: .01em;
}

#jf-storefront .jf-store-benefit small {
  margin-top: 1px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

/* Product cards borrow the colour blocking and hard shadow from the shop controls. */
#jf-storefront .jf-store-grid {
  gap: 30px 22px;
}

#jf-storefront .jf-home-product-slot {
  display: flex;
  min-width: 0;
  height: 100%;
}

#jf-storefront .jf-home-product-slot > [data-qb-selector="product-item"] {
  width: 100%;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"][data-jf-card-tone="yellow"] :is(.jf-card-details, .jf-card-summary, h3, [data-qb-setting="product_lists_show_price"], [data-qb-setting="product_lists_show_price"] span) {
  color: var(--jf-black) !important;
  -webkit-text-fill-color: var(--jf-black) !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card {
  --jf-card-panel: var(--jf-blue);
  --jf-card-ink: #fff;
  border: 2px solid var(--jf-black) !important;
  background: var(--jf-card-panel) !important;
  box-shadow: 5px 5px 0 var(--jf-black) !important;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card:nth-child(3n + 2) {
  --jf-card-panel: var(--jf-red);
  --jf-card-ink: #fff;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card:nth-child(3n) {
  --jf-card-panel: var(--jf-yellow);
  --jf-card-ink: var(--jf-black);
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-image {
  border: 0;
  border-bottom: 2px solid var(--jf-black);
  background: #f4f2e9;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-info {
  padding: 15px 15px 14px !important;
  background: var(--jf-card-panel) !important;
  color: var(--jf-card-ink) !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3 {
  color: var(--jf-card-ink) !important;
  -webkit-text-fill-color: var(--jf-card-ink) !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-purchase {
  padding: 0 !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-price,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-price > span {
  color: var(--jf-card-ink) !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-price del {
  color: inherit;
  opacity: .72;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-buy-action {
  background: var(--jf-cream) !important;
  color: var(--jf-black) !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 7px 7px 0 var(--jf-black) !important;
  }
}

@media (max-width: 1023px) {
  #jf-storefront .jf-store-hero,
  #jf-storefront .jf-store-intro { min-height: 224px; }
  #jf-storefront .jf-store-intro { padding-top: 75px; }
  #jf-storefront .jf-store-copy { width: min(560px, 70%); }
  #jf-storefront .jf-store-intro h1 { max-width: 100%; font-size: 42px; }
}

@media (max-width: 767px) {
  #jf-storefront .jf-store-hero {
    min-height: 218px;
    background-position: 68% center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  #jf-storefront .jf-store-hero::after {
    background: linear-gradient(90deg, rgba(255,251,237,.98) 0%, rgba(255,251,237,.91) 48%, rgba(255,251,237,.28) 73%, rgba(255,251,237,0) 100%);
  }
  #jf-storefront .jf-store-intro {
    min-height: 218px;
    padding: 65px 0 8px;
    align-items: center;
  }
  #jf-storefront .jf-store-copy { width: 71%; }
  #jf-storefront .jf-store-kicker { display: none; }
  #jf-storefront .jf-store-intro h1 { max-width: 10ch; font-size: clamp(28px, 8.4vw, 36px); line-height: .9; }
  #jf-storefront .jf-store-benefits-inner { min-height: 36px; padding: 3px 12px; gap: 8px; }
  #jf-storefront .jf-store-benefit { gap: 6px; }
  #jf-storefront .jf-store-benefit > svg { width: 20px; height: 20px; flex-basis: 20px; padding: 3px; }
  #jf-storefront .jf-store-benefit strong { font-size: 10px; }
  #jf-storefront .jf-store-benefit small { font-size: 9px; }
  #jf-storefront .jf-store-grid { gap: 19px 12px; padding-right: 5px; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card { box-shadow: 4px 4px 0 var(--jf-black) !important; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-info { padding: 11px 10px 10px !important; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3 { min-height: 3.1em; margin-bottom: 9px; }
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card.jf-merch-short h3 { min-height: 2.5em; }
}

/* Header palette: red over the hero, yellow once the page has moved. */
html body.jf-shop.jf-home-v3 #jf-site-header:not(.jf-header-scrolled) .jf-header-brand > .font-heading {
  color: var(--jf-red) !important;
  -webkit-text-fill-color: var(--jf-red) !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header:not(.jf-header-scrolled) .jf-header-action:not(:disabled):not([aria-disabled="true"]),
html body.jf-shop.jf-home-v3 #jf-site-header:not(.jf-header-scrolled) .jf-nav-button,
html body.jf-shop.jf-home-v3 #jf-site-header:not(.jf-header-scrolled) > header nav ul.font-heading > li > a,
html body.jf-shop.jf-home-v3 #jf-site-header:not(.jf-header-scrolled) > header nav ul.font-heading > li > div > a {
  color: #fff !important;
  background: var(--jf-red) !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header:not(.jf-header-scrolled) > header nav ul.font-heading > li > a.jf-nav-current {
  color: #fff !important;
  background: var(--jf-red) !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled .jf-header-brand > .font-heading {
  color: var(--jf-yellow) !important;
  -webkit-text-fill-color: var(--jf-yellow) !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled .jf-header-action:not(:disabled):not([aria-disabled="true"]),
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled .jf-nav-button,
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header nav ul.font-heading > li > a,
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header nav ul.font-heading > li > div > a {
  color: var(--jf-black) !important;
  background: var(--jf-yellow) !important;
}

/* Once scrolled, use the exact chrome dimensions and double underline from product pages. */
html body.jf-shop.jf-home-v3 #jf-site-header.jf-header.jf-header-scrolled {
  box-shadow: 0 4px 0 var(--jf-yellow), 0 6px 0 var(--jf-black) !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 28px;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header > nav > div {
  min-height: 88px !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header .jf-header-brand > .font-heading {
  height: 52px !important;
  padding-block: 8px !important;
  font-size: 42px !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled .jf-header-action:not(:disabled):not([aria-disabled="true"]) {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  flex-basis: 48px;
}

@media (max-width: 767px) {
  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header { padding-inline: 12px; }
  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header > nav > div { min-height: 76px !important; }
  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header .jf-header-brand > .font-heading {
    height: 48px !important;
    padding-block: 8px !important;
    font-size: 34px !important;
  }
}

/* Every card purchase control uses the requested white/black treatment. */
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card .jf-buy-action.jf-control,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card button.jf-buy-action,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card a.jf-buy-action {
  color: var(--jf-black) !important;
  background: #fff !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card .jf-buy-action svg {
  display: block !important;
  color: var(--jf-black) !important;
  stroke: currentColor !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"] [data-qb-setting="product_lists_show_buy_functionality"] > :is(a, button):not(:disabled),
html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"] button.qs-cart-submit:not(:disabled) {
  color: var(--jf-black) !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"] [data-qb-setting="product_lists_show_buy_functionality"] > :is(a, button) svg {
  color: var(--jf-black) !important;
  stroke: currentColor !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"] [data-qb-setting="product_lists_show_buy_functionality"] svg [fill="white"] {
  fill: currentColor !important;
}

@media (max-width: 359px) {
  #jf-storefront .jf-store-copy { width: 75%; }
  #jf-storefront .jf-store-intro h1 { font-size: 31px; }
  #jf-storefront .jf-store-benefit small { display: none; }
  #jf-storefront .jf-store-benefit strong { font-size: 10px; }
}

/* Canonical home composition: compact hero, left wordmark and consistent controls. */
html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-hero {
  height: 264px;
  min-height: 264px;
  max-height: 264px;
  background: var(--jf-blue) !important;
  background-image: none !important;
  border-bottom: 2px solid var(--jf-black);
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-hero::after {
  content: none !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-intro {
  height: 264px;
  min-height: 264px;
  max-height: 264px;
  padding-top: 88px;
  padding-bottom: 12px;
  justify-content: center;
  text-align: center;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(900px, 100%);
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-intro h1 {
  display: grid;
  gap: 8px;
  max-width: 15ch;
  margin-inline: auto;
  color: var(--jf-yellow) !important;
  -webkit-text-fill-color: var(--jf-yellow) !important;
  font-size: clamp(54px, 5.3vw, 70px);
  font-weight: 400 !important;
  line-height: .96;
  letter-spacing: .045em !important;
  -webkit-text-stroke: 2px var(--jf-black) !important;
  paint-order: stroke fill;
  text-shadow: 1px 1px 0 var(--jf-black), 2px 2px 0 var(--jf-black),
    3px 3px 0 var(--jf-black), 4px 4px 0 var(--jf-black), 5px 5px 0 var(--jf-black) !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-intro h1 > span {
  display: block;
  white-space: nowrap;
}

/* Two-column header: brand left, utility actions right. */
html body.jf-shop.jf-home-v3 #jf-site-header > header > nav > .jf-header-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 24px;
  min-height: 88px !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-brand {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-actions {
  grid-column: 2;
  justify-self: end;
}

html body.jf-shop.jf-home-v3 #jf-site-header > header .jf-header-brand > .font-heading {
  height: 56px !important;
  max-height: 56px !important;
  padding: 4px 0 !important;
  font-size: 46px !important;
  white-space: nowrap;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header > nav > .jf-header-layout {
  min-height: 88px !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header .jf-header-brand > .font-heading {
  height: 56px !important;
  max-height: 56px !important;
  padding: 4px 0 !important;
  font-size: 46px !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled .jf-header-action:not(:disabled):not([aria-disabled="true"]) {
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  flex-basis: 48px !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header:not(.jf-header-scrolled) .jf-header-brand > .font-heading {
  color: var(--jf-yellow) !important;
  -webkit-text-fill-color: var(--jf-yellow) !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header.jf-header:not(.jf-header-scrolled) .jf-header-action:not(:disabled):not([aria-disabled="true"]) {
  color: var(--jf-black) !important;
  background: var(--jf-yellow) !important;
}

/* Red reassurance band with a hard comic outline. */
html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-benefits {
  color: #fff !important;
  background: var(--jf-red) !important;
  border-top: 0 !important;
  border-bottom: 2px solid var(--jf-black) !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-benefit {
  color: #fff !important;
}

/* Filter controls: white by default, blue when selected. */
html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-filters .jf-control {
  min-height: 48px;
  padding: 10px 18px;
  color: var(--jf-black) !important;
  background: #ffffff !important;
}

html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-filters .jf-control[aria-pressed="true"] {
  color: #fff !important;
  background: var(--jf-blue) !important;
}

/* Every coloured card, including yellow, uses the same white title and black shadow. */
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3 *,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"][data-jf-card-tone="yellow"] .jf-card-summary h3,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-home-product-slot [data-qb-selector="product-item"][data-jf-card-tone="yellow"] .jf-card-summary h3 * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-text-stroke: var(--jf-card-title-stroke-width, 1px) var(--jf-black) !important;
  paint-order: stroke fill;
  text-shadow: none !important;
}

/* One control rhythm and one interaction model across header, filters, hero and cards. */
html body.jf-shop.jf-home-v3 :is(
  #jf-site-header .jf-header-action,
  #jf-storefront .jf-control,
  #jf-storefront .jf-buy-action
) {
  min-height: 48px !important;
  border: 2px solid var(--jf-black) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--jf-black) !important;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}

html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-action,
html body.jf-shop.jf-home-v3 #jf-storefront .jf-buy-action {
  width: 48px !important;
  min-width: 48px !important;
  padding: 8px !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.jf-shop.jf-home-v3 :is(
    #jf-site-header .jf-header-action,
    #jf-storefront .jf-control,
    #jf-storefront .jf-buy-action
  ):hover:not(:disabled):not([aria-disabled="true"]) {
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0 var(--jf-black) !important;
  }
}

html body.jf-shop.jf-home-v3 :is(
  #jf-site-header .jf-header-action,
  #jf-storefront .jf-control,
  #jf-storefront .jf-buy-action
):active:not(:disabled):not([aria-disabled="true"]) {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 var(--jf-black) !important;
}

@media (max-width: 767px) {
  html body.jf-shop.jf-home-v3 #jf-site-header > header > nav > .jf-header-layout {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px;
    min-height: 76px !important;
  }

  html body.jf-shop.jf-home-v3 #jf-site-header > header .jf-header-brand > .font-heading {
    height: 48px !important;
    max-height: 48px !important;
    padding: 3px 0 !important;
    font-size: clamp(29px, 9vw, 36px) !important;
  }

  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header > nav > .jf-header-layout {
    min-height: 76px !important;
  }

  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled > header .jf-header-brand > .font-heading {
    height: 48px !important;
    max-height: 48px !important;
    padding: 3px 0 !important;
    font-size: clamp(29px, 9vw, 36px) !important;
  }

  html body.jf-shop.jf-home-v3 #jf-site-header.jf-header-scrolled .jf-header-action:not(:disabled):not([aria-disabled="true"]) {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    flex-basis: 44px !important;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-hero,
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-intro {
    height: 228px;
    min-height: 228px;
    max-height: 228px;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-intro {
    padding-top: 76px;
    padding-bottom: 8px;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-copy { width: 100%; }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-intro h1 {
    max-width: none;
    gap: 5px;
    font-size: clamp(40px, 11vw, 50px);
    line-height: .98;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-right: 4px;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-filters .jf-control {
    width: 100%;
    min-height: 44px !important;
    padding: 8px 7px;
    font-size: 12px;
    white-space: normal;
  }

  html body.jf-shop.jf-home-v3 #jf-site-header .jf-header-action,
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-buy-action {
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding-right: 4px;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card h3,
  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-card.jf-merch-short h3 {
    min-height: 3.15em;
    font-size: clamp(18px, 5.2vw, 22px) !important;
    line-height: 1.05 !important;
  }

  html body.jf-shop.jf-home-v3 #jf-storefront .jf-merch-info {
    min-height: 150px;
    padding: 11px 9px 10px !important;
  }
}

@media (max-width: 359px) {
  html body.jf-shop.jf-home-v3 #jf-site-header > header { padding-inline: 8px; }
  html body.jf-shop.jf-home-v3 #jf-site-header > header .jf-header-brand > .font-heading {
    font-size: 27px !important;
  }
}