/* Scoped design tokens; preserve the store's loaded font, logo and background. */
.fbj-discovery, body.fbj-classic {
  --fbj-primary: #b21d22;
  --fbj-foreground: #242424;
  --fbj-muted: #666666;
  --fbj-surface: #ffffff;
  --fbj-soft: #faf4f3;
  --fbj-neutral: #f5f5f5;
  --fbj-border: #dddddd;
  --fbj-radius: 5px;
  --fbj-font: inherit;
}
.fbj-discovery { color: var(--fbj-foreground); font-family: var(--fbj-font); letter-spacing: 0; margin: 0 0 30px; }
.fbj-discovery * { box-sizing: border-box; }
.fbj-intro { margin: 0 0 24px; }
.fbj-intro p { color: var(--fbj-muted); font-size: 14px; line-height: 1.8; margin: 0 0 10px; }
.fbj-intro .fbj-eyebrow { color: var(--fbj-primary); font-size: 12px; }
.fbj-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.fbj-tile { min-width: 0; display: flex; align-items: center; justify-content: space-between; min-height: 112px; border-radius: var(--fbj-radius); background: var(--fbj-neutral); color: var(--fbj-foreground); text-decoration: none; overflow: hidden; }
.fbj-tile:nth-child(even) { background: var(--fbj-soft); }
.fbj-tile:hover, .fbj-tile:focus-visible { color: var(--fbj-primary); outline: 2px solid var(--fbj-primary); outline-offset: 2px; text-decoration: none; }
.fbj-tile-copy { flex: 1; min-width: 0; padding: 16px; }
.fbj-tile-title { display: block; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.fbj-tile-action { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--fbj-muted); }
.fbj-tile img { flex: none; width: 88px; height: 112px; object-fit: contain; padding: 4px; }
.fbj-guide { border-top: 1px solid var(--fbj-border); border-bottom: 1px solid var(--fbj-border); padding: 24px 0; }
.fbj-guide-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.fbj-guide-heading h2 { color: var(--fbj-foreground); font-family: inherit; font-weight: 400; font-size: 24px; line-height: 1.4; margin: 0; }
.fbj-guide-heading p { color: var(--fbj-muted); font-size: 12px; margin: 0; }
.fbj-guide-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fbj-guide-points > div { position: relative; padding-left: 34px; }
.fbj-number { position: absolute; left: 0; top: 0; color: var(--fbj-primary); font-size: 14px; }
.fbj-guide h3 { color: var(--fbj-foreground); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.5; margin: 0 0 8px; }
.fbj-guide-points p { color: var(--fbj-muted); font-size: 13px; line-height: 1.8; margin: 0; }
/* Applied only after our own tiles render. No native navigation hidden without replacement. */
body.fbj-has-tiles #subcategories { display: none; }
/* Optional Classic presentation: never touch prices, flags, links or cart markup. */
body.fbj-classic .block-category { background: var(--fbj-surface); color: var(--fbj-foreground); border: 0; box-shadow: none; padding: 12px 0 20px; min-height: 0; }
body.fbj-classic .block-category h1 { font-family: inherit; font-size: 32px; font-weight: 400; line-height: 1.4; text-transform: none; overflow-wrap: anywhere; }
body.fbj-classic #js-product-list .products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
body.fbj-classic #js-product-list .products > .js-product { width: auto; max-width: none; padding: 0; }
body.fbj-classic #js-product-list .product-miniature { margin: 0; width: 100%; }
body.fbj-classic #js-product-list .thumbnail-container { width: 100%; height: auto; border: 1px solid var(--fbj-border); border-radius: var(--fbj-radius); box-shadow: none; }
body.fbj-classic #js-product-list .product-thumbnail img { max-width: 100%; object-fit: contain; }
body.fbj-classic #js-product-list .product-title { line-height: 1.5; padding-inline: 8px; overflow-wrap: anywhere; }
body.fbj-classic #js-product-list .product-title a { color: var(--fbj-foreground); font-family: inherit; font-size: 15px; }
body.fbj-classic #js-product-list .product-description { width: 100%; height: auto; min-height: 90px; padding-block: 12px; }
body.fbj-classic #js-product-list .product-price-and-shipping { color: var(--fbj-foreground); }
.fbj-seo-after { padding: 28px 0; border-top: 1px solid var(--fbj-border, #dddddd); margin-top: 24px; }
.fbj-seo-after #category-description { max-width: 850px; margin-inline: auto; font-size: 14px; line-height: 1.8; }
@media (max-width: 1100px) { .fbj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .fbj-tile img { width: 66px; height: 112px; }
  .fbj-tile-copy { padding: 12px; }
  .fbj-tile-title { font-size: 14px; }
  .fbj-guide-heading { display: block; }
  .fbj-guide-heading h2 { font-size: 22px; }
  .fbj-guide-heading p { margin-top: 8px; }
  .fbj-guide-points { grid-template-columns: 1fr; gap: 20px; }
  body.fbj-classic .block-category h1 { font-size: 25px; }
  body.fbj-classic #js-product-list .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 359px) { .fbj-tiles { grid-template-columns: 1fr; } }
