/* BrickJunkie Blocks */
:root {
  --bj-red: #d71920;
  --bj-red-dark: #a90f15;
  --bj-yellow: #ffd500;
  --bj-blue: #006db7;
  --bj-blue-dark: #004f87;
  --bj-green: #009f62;
  --bj-ink: #152033;
  --bj-muted: #607086;
  --bj-line: #dfe5ec;
  --bj-soft: #f3f6f9;
  --bj-cream: #fffaf0;
  --bj-white: #fff;
  --bj-radius: 18px;
  --bj-radius-sm: 12px;
  --bj-shadow: 0 14px 34px rgba(21, 32, 51, .10);
  --bj-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fffdf8; color: var(--bj-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.bj-modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bj-blue-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--bj-red); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--bj-yellow); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 { color: var(--bj-ink); font-family: "Arial Black", "Segoe UI Black", Arial, sans-serif; line-height: 1.12; letter-spacing: -.035em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.35rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; }

.bj-container { width: min(calc(100% - 32px), var(--bj-container)); margin-inline: auto; }
.bj-narrow { width: min(calc(100% - 32px), 820px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; z-index: 99999; top: 10px; left: 10px; width: auto; height: auto; clip: auto; margin: 0; padding: 12px 18px; background: var(--bj-yellow); color: #111; border-radius: 8px; }
.bj-icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.bj-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bj-announcement { background: var(--bj-ink); color: #fff; font-size: .875rem; font-weight: 750; }
.bj-announcement .bj-container { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.bj-announcement p { margin: 0; }
.bj-announcement-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bj-yellow); box-shadow: 0 0 0 4px rgba(255, 213, 0, .16); }

.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--bj-line); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.admin-bar .site-header { top: 32px; }
.bj-header-main { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-width: 220px; max-height: 64px; width: auto; }
.bj-wordmark { display: inline-flex; align-items: center; text-decoration: none; color: var(--bj-ink); font-family: "Arial Black", Arial, sans-serif; font-size: clamp(1.15rem, 2.4vw, 1.75rem); letter-spacing: -.06em; }
.bj-wordmark span { background: var(--bj-red); color: #fff; padding: .22em .4em; border-radius: 7px 0 0 7px; }
.bj-wordmark strong { background: var(--bj-yellow); color: #111; padding: .22em .4em; border-radius: 0 7px 7px 0; }
.primary-navigation .menu { display: flex; align-items: center; justify-content: center; gap: 3px; list-style: none; padding: 0; margin: 0; }
.primary-navigation li { position: relative; }
.primary-navigation a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; color: var(--bj-ink); text-decoration: none; font-weight: 750; border-radius: 10px; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { background: var(--bj-yellow); color: #111; }
.primary-navigation .sub-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 230px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--bj-line); border-radius: 14px; box-shadow: var(--bj-shadow); }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
@media (min-width: 1021px) {
  .primary-navigation .menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
  }
}
.primary-navigation .sub-menu a { width: 100%; }
.bj-header-actions { display: flex; align-items: center; gap: 6px; }
.bj-icon-button { width: 46px; height: 46px; padding: 0; border: 1px solid var(--bj-line); border-radius: 12px; color: var(--bj-ink); background: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; position: relative; }
.bj-icon-button:hover { background: var(--bj-soft); color: var(--bj-red); }
.bj-menu-toggle, .bj-mobile-nav-head, .bj-submenu-toggle { display: none; }

.bj-search-panel { position: absolute; inset: 100% 0 auto; background: #fff; border-top: 1px solid var(--bj-line); border-bottom: 1px solid var(--bj-line); box-shadow: var(--bj-shadow); }
.bj-search-panel-inner { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(360px, 1.3fr) auto; align-items: center; gap: 30px; padding-block: 28px; }
.bj-search-panel h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); margin: 3px 0 0; }
.bj-search-form { width: 100%; }
.bj-search-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 6px 7px 6px 16px; background: var(--bj-soft); border: 2px solid transparent; border-radius: 14px; }
.bj-search-control:focus-within { border-color: var(--bj-blue); background: #fff; }
.bj-search-control input { width: 100%; border: 0; outline: 0; background: transparent; min-width: 0; }
.bj-search-control button { min-height: 44px; border: 0; border-radius: 10px; background: var(--bj-red); color: #fff; padding: 8px 18px; font-weight: 800; cursor: pointer; }
.bj-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(9, 18, 31, .55); backdrop-filter: blur(2px); }

.bj-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--bj-red-dark); font-size: .78rem; line-height: 1.2; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.bj-kicker::before { content: ""; width: 21px; height: 7px; border-radius: 4px; background: var(--bj-yellow); box-shadow: 7px 0 0 var(--bj-blue); margin-right: 7px; }
.bj-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border: 2px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 850; line-height: 1.2; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.bj-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,32,51,.14); }
.bj-button-primary { background: var(--bj-red); color: #fff; }
.bj-button-primary:hover { background: var(--bj-red-dark); color: #fff; }
.bj-button-secondary { background: #fff; border-color: var(--bj-line); color: var(--bj-ink); }
.bj-button-secondary:hover { border-color: var(--bj-blue); color: var(--bj-blue-dark); }
.bj-button-yellow { background: var(--bj-yellow); color: #111; }
.bj-text-link, .bj-card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--bj-ink); font-weight: 850; text-decoration: none; }
.bj-text-link:hover, .bj-card-link:hover { color: var(--bj-red); }
.bj-text-link .bj-icon, .bj-card-link .bj-icon { transition: transform .15s ease; }
.bj-text-link:hover .bj-icon, .bj-card-link:hover .bj-icon { transform: translateX(4px); }

.bj-home-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff6d0 0%, #fffdf8 42%, #e9f5ff 100%); border-bottom: 1px solid var(--bj-line); }
.bj-home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: radial-gradient(circle at center, var(--bj-ink) 0 4px, transparent 4.5px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 75%); }
.bj-home-hero-grid { position: relative; min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 50px; padding-block: 70px; }
.bj-home-hero-content { max-width: 680px; }
.bj-home-hero h1 { margin-top: 18px; max-width: 780px; }
.bj-home-hero-content > p { max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #415067; }
.bj-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bj-hero-search { margin-top: 34px; max-width: 610px; padding: 16px; background: rgba(255,255,255,.82); border: 1px solid rgba(21,32,51,.12); border-radius: 16px; box-shadow: 0 12px 28px rgba(21,32,51,.08); }
.bj-hero-search strong { display: block; margin-bottom: 8px; font-size: .9rem; }
.bj-hero-search form { display: grid; grid-template-columns: 1fr auto; background: #fff; border: 1px solid var(--bj-line); border-radius: 11px; overflow: hidden; }
.bj-hero-search input { min-width: 0; border: 0; outline: 0; padding: 13px 14px; }
.bj-hero-search button { width: 48px; border: 0; color: #fff; background: var(--bj-blue); display: grid; place-items: center; cursor: pointer; }
.bj-hero-visual { min-height: 480px; display: grid; place-items: center; perspective: 900px; }
.bj-brick-scene { position: relative; width: min(100%, 500px); aspect-ratio: 1/1; transform: rotate(-4deg); }
.bj-brick-card { position: absolute; width: 62%; aspect-ratio: 1.75/1; border-radius: 20px; box-shadow: 0 26px 42px rgba(21,32,51,.22), inset 0 -12px 0 rgba(0,0,0,.12); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px; transform-style: preserve-3d; }
.bj-brick-card span { aspect-ratio: 1; border-radius: 50%; background: currentColor; box-shadow: inset 0 6px 5px rgba(255,255,255,.35), 0 7px 0 rgba(0,0,0,.13); opacity: .82; }
.bj-brick-card strong { grid-column: 1/-1; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(1.35rem, 4vw, 2.55rem); letter-spacing: -.06em; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.14); }
.bj-brick-card-red { left: 1%; top: 10%; background: var(--bj-red); color: #f84e54; transform: rotate(-8deg) translateZ(30px); }
.bj-brick-card-yellow { right: 0; top: 39%; background: var(--bj-yellow); color: #ffe85d; transform: rotate(8deg) translateZ(60px); }
.bj-brick-card-yellow strong { color: #111; text-shadow: none; }
.bj-brick-card-blue { left: 11%; bottom: 3%; background: var(--bj-blue); color: #2e92d7; transform: rotate(-2deg) translateZ(90px); }

.bj-section { padding-block: clamp(58px, 8vw, 100px); }
.bj-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.bj-section-heading h2 { margin: 8px 0 0; }
.bj-category-section { background: #fff; }
.bj-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bj-theme-card {
  --bj-theme-bg: var(--bj-red); --bj-theme-fg: #fff; --bj-theme-stud: rgba(255,255,255,.25);
  min-height: 205px; display: grid; grid-template-columns: minmax(0, 1fr) 112px; overflow: hidden;
  position: relative; border-radius: var(--bj-radius); background: var(--bj-theme-bg); color: var(--bj-theme-fg);
  text-decoration: none; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); isolation: isolate;
  transition: transform .16s ease, box-shadow .16s ease;
}
.bj-theme-card:hover { color: var(--bj-theme-fg); transform: translateY(-3px); box-shadow: var(--bj-shadow), inset 0 -8px 0 rgba(0,0,0,.12); }
.bj-theme-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 58%); }
.bj-theme-card-copy { min-width: 0; padding: 23px 6px 26px 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.bj-theme-card-copy > span { font-size: .78rem; font-weight: 850; opacity: .82; }
.bj-theme-card h3 { margin: 5px 0 8px; color: inherit; font-size: clamp(1.35rem, 2.25vw, 2rem); overflow-wrap: normal; }
.bj-theme-card p { max-width: 30ch; margin: 0 0 15px; font-size: .82rem; line-height: 1.42; opacity: .88; }
.bj-theme-card strong { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; }
.bj-theme-card strong .bj-icon { transition: transform .15s ease; }
.bj-theme-card:hover strong .bj-icon { transform: translateX(4px); }
.bj-theme-studs { align-self: center; display: grid; grid-template-columns: repeat(2, 44px); gap: 12px; padding-right: 16px; }
.bj-theme-studs i { width: 44px; aspect-ratio: 1; border-radius: 50%; background: var(--bj-theme-stud); box-shadow: inset 0 7px 6px rgba(255,255,255,.18), 0 7px 0 rgba(0,0,0,.12); }
.bj-theme-card--icons { --bj-theme-bg: #174a73; --bj-theme-stud: #4f83ad; }
.bj-theme-card--harry-potter { --bj-theme-bg: #6b2d50; --bj-theme-stud: #9d5d80; }
.bj-theme-card--pokemon { --bj-theme-bg: #f4c900; --bj-theme-fg: #14213d; --bj-theme-stud: rgba(255,255,255,.42); }
.bj-theme-card--star-wars { --bj-theme-bg: #252a31; --bj-theme-stud: #555d68; }
.bj-theme-card--technic { --bj-theme-bg: #c51c26; --bj-theme-stud: #ed6269; }
.bj-theme-card--duplo { --bj-theme-bg: #078c66; --bj-theme-stud: #54b99c; }

.bj-products-section { background: var(--bj-cream); }
.bj-products-section .woocommerce ul.products { margin-bottom: 0; }
.bj-review-section { background: #fff; }
.bj-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bj-post-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--bj-line); border-radius: var(--bj-radius); box-shadow: 0 8px 20px rgba(21,32,51,.05); transition: transform .18s ease, box-shadow .18s ease; }
.bj-post-card:hover { transform: translateY(-4px); box-shadow: var(--bj-shadow); }
.bj-post-card-image { display: block; aspect-ratio: 1.48/1; overflow: hidden; background: var(--bj-soft); }
.bj-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.bj-post-card:hover .bj-post-card-image img { transform: scale(1.035); }
.bj-post-card-content { padding: 22px; }
.bj-post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--bj-muted); font-size: .8rem; font-weight: 700; }
.bj-post-card-meta a { color: var(--bj-red-dark); text-decoration: none; text-transform: uppercase; letter-spacing: .07em; }
.bj-post-card h3 { margin: 9px 0 10px; }
.bj-post-card h3 a { color: var(--bj-ink); text-decoration: none; }
.bj-post-card p { color: var(--bj-muted); }
.bj-image-placeholder { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(2, 56px); place-content: center; gap: 12px; background: linear-gradient(135deg, #e9f5ff, #fff6d0); }
.bj-image-placeholder span { aspect-ratio: 1; border-radius: 50%; background: var(--bj-blue); box-shadow: inset 0 5px 4px rgba(255,255,255,.3), 0 6px 0 rgba(0,0,0,.1); }
.bj-image-placeholder span:nth-child(2), .bj-image-placeholder span:nth-child(3) { background: var(--bj-red); }
.bj-image-placeholder span:nth-child(4) { background: var(--bj-yellow); }
.bj-guide-section { background: var(--bj-ink); }
.bj-guide-card { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; color: #fff; }
.bj-guide-card h2 { color: #fff; margin-top: 10px; }
.bj-guide-card p { color: #c7d1de; font-size: 1.08rem; }
.bj-guide-steps { display: grid; gap: 14px; }
.bj-guide-steps div { min-height: 76px; display: flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.06); }
.bj-guide-steps span { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: var(--bj-yellow); color: #111; font-family: "Arial Black", Arial, sans-serif; box-shadow: inset 0 -5px 0 rgba(0,0,0,.1); }
.bj-home-content { background: #fff; }

.bj-breadcrumbs, .woocommerce .woocommerce-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--bj-muted); font-size: .84rem; margin: 0 0 24px; }
.bj-breadcrumbs a, .woocommerce .woocommerce-breadcrumb a { color: var(--bj-muted); text-decoration: none; }
.bj-breadcrumbs a:hover, .woocommerce .woocommerce-breadcrumb a:hover { color: var(--bj-red); }
.bj-archive-wrap { padding-block: 50px 90px; }
.bj-archive-header { max-width: 880px; margin-bottom: 38px; }
.bj-archive-header h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-top: 10px; }
.bj-archive-description { color: var(--bj-muted); font-size: 1.08rem; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: #fff; border: 1px solid var(--bj-line); border-radius: 10px; color: var(--bj-ink); text-decoration: none; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { background: var(--bj-red); border-color: var(--bj-red); color: #fff; }

.bj-single-header { padding: 46px 0 36px; background: linear-gradient(180deg, #fff, #fffaf0); border-bottom: 1px solid var(--bj-line); }
.bj-single-header-inner { max-width: 1000px; }
.bj-single-header h1 { max-width: 1000px; font-size: clamp(2.3rem, 5vw, 4.6rem); margin: 14px 0 18px; }
.bj-entry-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--bj-muted); font-size: .9rem; }
.bj-entry-meta a { color: inherit; }
.bj-single-featured { margin-top: 34px; }
.bj-single-featured img, .bj-page-featured img { width: 100%; max-height: 700px; object-fit: cover; border-radius: 24px; box-shadow: var(--bj-shadow); }
.bj-single-layout { display: grid; grid-template-columns: minmax(0, 780px) 290px; justify-content: center; gap: 65px; padding-block: 55px 80px; }
.bj-prose { color: #29384c; font-size: 1.06rem; }
.bj-prose > *:first-child { margin-top: 0; }
.bj-prose h2 { margin-top: 2.1em; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.bj-prose h3 { margin-top: 1.8em; }
.bj-prose a { font-weight: 700; }
.bj-prose img { border-radius: 16px; }
.bj-prose blockquote { margin: 28px 0; padding: 22px 24px; background: #fff7d7; border-left: 7px solid var(--bj-yellow); border-radius: 0 14px 14px 0; }
.bj-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bj-prose th, .bj-prose td { padding: 12px; border: 1px solid var(--bj-line); text-align: left; }
.bj-prose th { background: var(--bj-ink); color: #fff; }
.bj-prose ul, .bj-prose ol { padding-left: 1.3em; }
.bj-prose li { margin-bottom: .42em; }
.bj-article-aside { min-width: 0; }
.bj-sticky-card { position: sticky; top: 130px; padding: 22px; border: 1px solid var(--bj-line); border-radius: var(--bj-radius); background: #fff; box-shadow: 0 10px 28px rgba(21,32,51,.07); }
.bj-sticky-card > strong { display: block; margin-bottom: 12px; font-family: "Arial Black", Arial, sans-serif; }
.bj-toc ol { list-style: none; padding: 0; margin: 0 0 18px; border-left: 2px solid var(--bj-line); }
.bj-toc li { margin: 0; }
.bj-toc li.is-sub a { padding-left: 24px; font-size: .85rem; }
.bj-toc a { display: block; padding: 6px 0 6px 14px; color: var(--bj-muted); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.bj-toc a:hover { color: var(--bj-red); border-left: 3px solid var(--bj-red); margin-left: -2px; }
.bj-sticky-card .bj-button { width: 100%; }
.bj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--bj-line); }
.bj-tags a { padding: 6px 11px; border-radius: 8px; background: var(--bj-soft); color: var(--bj-ink); text-decoration: none; font-size: .84rem; }
.bj-post-navigation { border-block: 1px solid var(--bj-line); background: #fff; }
.bj-post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bj-line); }
.bj-post-navigation a { min-height: 135px; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: #fff; color: var(--bj-ink); text-decoration: none; }
.bj-post-navigation .nav-next a { text-align: right; }
.bj-post-navigation a:hover { background: var(--bj-cream); }
.bj-post-navigation span { color: var(--bj-red); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.bj-related-posts { background: var(--bj-soft); }

.bj-page-header { padding: 52px 0 40px; background: linear-gradient(180deg, #fff, #fffaf0); border-bottom: 1px solid var(--bj-line); text-align: center; }
.bj-page-header .bj-breadcrumbs { justify-content: center; }
.bj-page-header h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.bj-page-header p { color: var(--bj-muted); font-size: 1.12rem; }
.bj-page-featured { margin-top: 34px; }
.bj-page-content { padding-block: 55px 90px; }

.bj-search-results { display: grid; gap: 16px; }
.bj-search-result { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--bj-line); border-radius: 16px; }
.bj-search-result-image { aspect-ratio: 1.3/1; overflow: hidden; border-radius: 12px; background: var(--bj-soft); }
.bj-search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.bj-search-result h2 { font-size: 1.45rem; margin: 5px 0 7px; }
.bj-search-result h2 a { color: var(--bj-ink); text-decoration: none; }
.bj-search-result p { color: var(--bj-muted); margin-bottom: 8px; }
.bj-empty-state { max-width: 720px; margin: 50px auto; padding: 38px; text-align: center; background: #fff; border: 1px solid var(--bj-line); border-radius: 20px; }

.bj-404 { min-height: 640px; display: grid; place-items: center; background: linear-gradient(135deg, #fff7d7, #e9f5ff); }
.bj-404-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding-block: 80px; }
.bj-404 h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.bj-404 p { color: var(--bj-muted); font-size: 1.1rem; }
.bj-404 .bj-search-form { margin: 24px 0 16px; }
.bj-404-bricks { min-height: 380px; display: grid; grid-template-columns: repeat(3, 100px); align-content: center; justify-content: center; gap: 18px; transform: rotate(-8deg); }
.bj-404-bricks i { aspect-ratio: 1; border-radius: 18px; background: var(--bj-red); box-shadow: inset 0 -12px 0 rgba(0,0,0,.1), 0 15px 25px rgba(21,32,51,.13); }
.bj-404-bricks i:nth-child(2), .bj-404-bricks i:nth-child(6) { background: var(--bj-yellow); }
.bj-404-bricks i:nth-child(3), .bj-404-bricks i:nth-child(4) { background: var(--bj-blue); }
.bj-404-bricks i:nth-child(5) { background: var(--bj-green); }

/* WooCommerce shop */
.bj-woocommerce-main { padding-block: 42px 90px; }
.bj-shop-hero { padding: 34px; margin-bottom: 26px; border-radius: 22px; background: linear-gradient(135deg, #fff7d7, #fff 48%, #e8f5ff); border: 1px solid var(--bj-line); position: relative; overflow: hidden; }
.bj-shop-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -110px; background: radial-gradient(circle, var(--bj-yellow) 0 28%, transparent 29%); background-size: 48px 48px; opacity: .5; }
.bj-shop-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; }
.bj-shop-hero h1 { margin: 8px 0 10px; font-size: clamp(2.35rem, 5vw, 4.3rem); }
.bj-shop-description { color: var(--bj-muted); max-width: 720px; }
.bj-shop-description > *:last-child { margin-bottom: 0; }
.bj-product-search label { display: block; margin-bottom: 8px; font-weight: 850; }
.bj-product-search > div { min-height: 56px; display: grid; grid-template-columns: 1fr auto; overflow: hidden; border: 2px solid var(--bj-ink); border-radius: 13px; background: #fff; }
.bj-product-search input { min-width: 0; border: 0; outline: 0; padding: 12px 14px; }
.bj-product-search button { width: 54px; border: 0; background: var(--bj-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bj-shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 28px; }
.bj-shop-sidebar { position: sticky; top: 125px; padding: 20px; border: 1px solid var(--bj-line); border-radius: var(--bj-radius); background: #fff; max-height: calc(100vh - 150px); overflow: auto; }
.bj-filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bj-filter-head > strong { font-family: "Arial Black", Arial, sans-serif; }
.bj-filter-close { display: none; }
.bj-filter-toggle { display: none; }
.widget { margin-bottom: 25px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 1rem; margin-bottom: 12px; letter-spacing: -.02em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 6px; }
.widget a { color: var(--bj-ink); text-decoration: none; }
.widget a:hover { color: var(--bj-red); }
.widget_product_categories li { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.widget_product_categories .children { grid-column: 1/-1; padding-left: 14px; margin-top: 4px; }
.widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--bj-line); }
.widget_price_filter .ui-slider .ui-slider-range, .widget_price_filter .ui-slider .ui-slider-handle { background: var(--bj-red); }
.widget_price_filter .price_slider_amount { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.widget_price_filter .price_slider_amount .button { order: 2; }
.woocommerce .woocommerce-ordering, .woocommerce .woocommerce-result-count { margin: 0; }
.woocommerce .woocommerce-result-count { color: var(--bj-muted); }
.woocommerce .woocommerce-ordering select { min-height: 46px; padding: 8px 38px 8px 12px; border: 1px solid var(--bj-line); border-radius: 10px; background: #fff; color: var(--bj-ink); }
.woocommerce .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .woocommerce-notices-wrapper + .woocommerce-result-count { margin-top: 0; }
.woocommerce .woocommerce-before-shop-loop, .bj-shop-products > .woocommerce-notices-wrapper + * { }
.bj-shop-products .woocommerce-notices-wrapper ~ .woocommerce-result-count { }
.bj-shop-products > .woocommerce-result-count, .bj-shop-products > .woocommerce-ordering { margin-bottom: 18px; }
.woocommerce .woocommerce-result-count + .woocommerce-ordering { float: right; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; clear: both; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 14px 14px 16px; border: 1px solid var(--bj-line); border-radius: var(--bj-radius); background: #fff; box-shadow: 0 7px 18px rgba(21,32,51,.055); display: flex; flex-direction: column; min-width: 0; transition: transform .18s ease, box-shadow .18s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--bj-shadow); }
.woocommerce ul.products li.product a.woocommerce-loop-product__link { color: var(--bj-ink); text-decoration: none; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1/1; object-fit: contain; margin: 0 0 13px; border-radius: 12px; background: var(--bj-soft); padding: 9px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; margin: 0 0 8px; font-family: "Arial Black", Arial, sans-serif; font-size: 1rem; line-height: 1.25; color: var(--bj-ink); }
.woocommerce ul.products li.product .star-rating { font-size: .78rem; color: #f0a500; margin-bottom: 8px; }
.woocommerce ul.products li.product .price { color: var(--bj-ink); font-size: 1.13rem; font-weight: 900; margin: auto 0 12px; }
.woocommerce ul.products li.product .price del { color: var(--bj-muted); opacity: .7; font-size: .85rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--bj-red-dark); }
.woocommerce span.onsale { min-width: auto; min-height: 0; line-height: 1; top: 24px; left: 24px; right: auto; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bj-red); color: #fff; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .bj-affiliate-button, .woocommerce ul.products li.product .bj-product-link-button { width: 100%; min-height: 44px; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bj-blue); color: #fff; font-weight: 850; text-align: center; }
.woocommerce ul.products li.product .button:hover, .woocommerce ul.products li.product .bj-affiliate-button:hover, .woocommerce ul.products li.product .bj-product-link-button:hover { background: var(--bj-blue-dark); color: #fff; }
.woocommerce ul.products li.product .bj-affiliate-button, .woocommerce ul.products li.product .bj-product-link-button { line-height: 1.2; text-decoration: none; position: relative; z-index: 3; pointer-events: auto; cursor: pointer; }
.woocommerce ul.products li.product .added_to_cart { margin-top: 8px; text-align: center; font-weight: 800; }
.bj-product-facts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.bj-product-facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; color: var(--bj-muted); font-size: .72rem; line-height: 1.3; border-bottom: 1px dashed var(--bj-line); padding-bottom: 4px; }
.bj-product-facts strong { color: var(--bj-ink); text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.woocommerce nav.woocommerce-pagination { margin-top: 35px; }
.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 7px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--bj-line); border-radius: 10px; background: #fff; color: var(--bj-ink); font-weight: 850; }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--bj-red); border-color: var(--bj-red); color: #fff; }

/* WooCommerce single product */
.woocommerce div.product { padding-top: 15px; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: 18px; overflow: hidden; background: var(--bj-soft); }
.woocommerce div.product div.images img { padding: 16px; }
.woocommerce div.product .summary { padding: 18px 0 0 20px; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 3.45rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--bj-red-dark); font-size: 1.75rem; font-weight: 900; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--bj-muted); }
.woocommerce div.product .product_meta { display: grid; gap: 5px; padding-top: 18px; border-top: 1px solid var(--bj-line); color: var(--bj-muted); font-size: .85rem; }
.bj-single-facts { margin: 18px 0; padding: 17px; border-radius: 14px; background: var(--bj-soft); }
.bj-single-facts h2 { font-size: 1rem; margin-bottom: 9px; }
.bj-single-facts dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 18px; }
.bj-single-facts dl > div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #cad3df; padding-bottom: 4px; }
.bj-single-facts dt { color: var(--bj-muted); font-size: .78rem; }
.bj-single-facts dd { margin: 0; color: var(--bj-ink); font-size: .78rem; font-weight: 800; text-align: right; }
.woocommerce div.product form.cart, .woocommerce div.product .single_add_to_cart_button, .woocommerce div.product .quantity { display: none !important; }
.bj-affiliate-cta { display: grid; gap: 7px; margin: 18px 0; }
.woocommerce div.product .bj-affiliate-cta .bj-affiliate-button { width: fit-content; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 11px; background: var(--bj-red); color: #fff; font-weight: 900; text-decoration: none; position: relative; z-index: 3; pointer-events: auto; cursor: pointer; }
.woocommerce div.product .bj-affiliate-cta .bj-affiliate-button:hover { background: var(--bj-red-dark); color: #fff; }
.bj-affiliate-cta small { color: var(--bj-muted); font-size: .74rem; }
.bj-product-reasons { margin: 18px 0 8px; }
.bj-product-reasons h2 { margin-bottom: 10px; font-size: 1rem; }
.bj-product-reasons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bj-product-reasons li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: #344257; }
.bj-product-reasons span { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; background: #dff5e9; color: #087443; font-weight: 900; }
.bj-affiliate-note { color: var(--bj-muted); font-size: .75rem; line-height: 1.45; }
.woocommerce div.product .woocommerce-tabs { padding-top: 35px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--bj-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: transparent; margin: 0 4px 0 0; border-radius: 10px 10px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--bj-yellow); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 900px; }
.woocommerce div.product .related.products, .woocommerce div.product .upsells.products { padding-top: 45px; }
.woocommerce div.product .related.products > h2, .woocommerce div.product .upsells.products > h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

.site-footer { background: #101a2b; color: #c9d3df; }
.bj-footer-top { background: var(--bj-red); color: #fff; }
.bj-footer-intro { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.bj-wordmark-footer { margin-bottom: 13px; }
.bj-footer-intro p { max-width: 650px; margin: 0; font-size: 1.05rem; }
.bj-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 52px; }
.site-footer .widget-title { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #c9d3df; text-decoration: none; }
.site-footer a:hover { color: var(--bj-yellow); }
.site-footer .widget, .site-footer li { margin-bottom: 7px; }
.bj-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.bj-footer-bottom .bj-container { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bj-footer-bottom p { margin: 0; font-size: .82rem; }
.bj-legal-menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; font-size: .82rem; }

@media (max-width: 1120px) {
  .bj-header-main { gap: 14px; }
  .primary-navigation a { padding-inline: 9px; font-size: .92rem; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bj-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bj-post-grid { grid-template-columns: repeat(2, 1fr); }
  .bj-single-layout { grid-template-columns: minmax(0, 760px); }
  .bj-article-aside { display: none; }
}

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .bj-menu-toggle { display: inline-flex; }
  .bj-header-main { grid-template-columns: auto 1fr auto; min-height: 72px; }
  .site-branding { justify-content: center; }
  .custom-logo { max-width: 185px; max-height: 54px; }
  .primary-navigation { position: fixed; top: 0; left: 0; bottom: 0; z-index: 110; width: min(88vw, 380px); padding: 16px; background: #fff; transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto; box-shadow: var(--bj-shadow); }
  .primary-navigation.is-open { transform: translateX(0); }
  .bj-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--bj-line); }
  .primary-navigation .menu { display: block; }
  .primary-navigation a { width: calc(100% - 48px); min-height: 48px; }
  .primary-navigation .sub-menu { position: static; display: none; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--bj-yellow); border-radius: 0; padding: 0 0 0 10px; }
  .primary-navigation li.submenu-open > .sub-menu { display: block; }
  .primary-navigation li:hover > .sub-menu { display: none; }
  .primary-navigation li.submenu-open:hover > .sub-menu { display: block; }
  .bj-submenu-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; position: absolute; right: 0; top: 3px; border: 0; border-radius: 9px; background: var(--bj-soft); font-weight: 900; }
  .bj-search-panel-inner { grid-template-columns: 1fr auto; }
  .bj-search-panel-inner > div:first-child { grid-column: 1/-1; }
  .bj-home-hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 60px; }
  .bj-hero-visual { display: none; }
  .bj-guide-card { grid-template-columns: 1fr; gap: 30px; }
  .bj-shop-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .bj-shop-layout { grid-template-columns: 1fr; }
  .bj-filter-toggle { width: 100%; min-height: 50px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; background: var(--bj-ink); color: #fff; font-weight: 850; }
  .bj-shop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 115; width: min(90vw, 390px); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .22s ease; padding: 20px; }
  .bj-shop-sidebar.is-open { transform: translateX(0); }
  .bj-filter-close { display: inline-flex; }
  .bj-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .bj-container, .bj-narrow { width: min(calc(100% - 24px), var(--bj-container)); }
  .bj-announcement .bj-container { justify-content: flex-start; min-height: 38px; }
  .bj-announcement p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bj-header-main { min-height: 66px; gap: 7px; }
  .bj-icon-button { width: 43px; height: 43px; }
  .bj-wordmark { font-size: 1rem; }
  .bj-search-toggle { display: none; }
  .bj-search-panel { display: none; }
  .bj-home-hero-grid { padding-block: 45px; }
  .bj-home-hero h1 { font-size: clamp(2.3rem, 12vw, 3.45rem); }
  .bj-home-hero-content > p { font-size: 1rem; }
  .bj-hero-actions { display: grid; grid-template-columns: 1fr; }
  .bj-button { width: 100%; }
  .bj-section { padding-block: 54px; }
  .bj-section-heading { align-items: flex-start; margin-bottom: 24px; }
  .bj-section-heading .bj-text-link { display: none; }
  .bj-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bj-theme-card { min-height: 168px; grid-template-columns: minmax(0, 1fr) 66px; border-radius: 15px; }
  .bj-theme-card-copy { padding: 17px 4px 20px 16px; }
  .bj-theme-card-copy > span { font-size: .68rem; }
  .bj-theme-card h3 { margin-bottom: 13px; font-size: 1.12rem; }
  .bj-theme-card p { display: none; }
  .bj-theme-card strong { font-size: .75rem; }
  .bj-theme-studs { grid-template-columns: repeat(2, 25px); gap: 8px; padding-right: 8px; }
  .bj-theme-studs i { width: 25px; box-shadow: inset 0 4px 3px rgba(255,255,255,.18), 0 4px 0 rgba(0,0,0,.12); }
  .bj-post-grid { grid-template-columns: 1fr; }
  .bj-post-card-content { padding: 19px; }
  .bj-guide-steps div { min-height: 68px; }
  .bj-single-header { padding-top: 32px; }
  .bj-single-header h1 { font-size: clamp(2.1rem, 10vw, 3.25rem); }
  .bj-single-featured { margin-top: 18px; }
  .bj-single-featured img, .bj-page-featured img { border-radius: 15px; }
  .bj-single-layout { padding-block: 38px 60px; }
  .bj-prose { font-size: 1rem; }
  .bj-prose table { display: block; overflow-x: auto; }
  .bj-post-navigation .nav-links { grid-template-columns: 1fr; }
  .bj-search-result { grid-template-columns: 100px 1fr; gap: 15px; align-items: start; }
  .bj-search-result p { display: none; }
  .bj-shop-hero { padding: 22px 18px; }
  .bj-woocommerce-main { padding-block: 24px 60px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .woocommerce ul.products li.product { padding: 9px 9px 12px; border-radius: 13px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .88rem; }
  .woocommerce ul.products li.product .price { font-size: 1rem; }
  .woocommerce ul.products li.product .button { min-height: 42px; padding: 8px 7px; font-size: .8rem; }
  .woocommerce span.onsale { top: 15px; left: 15px; padding: 6px 7px; }
  .bj-product-facts li { font-size: .66rem; }
  .bj-product-facts li:nth-child(n+3) { display: none; }
  .woocommerce .woocommerce-result-count { float: none; width: 100%; margin-bottom: 8px; }
  .woocommerce .woocommerce-ordering { float: none; width: 100%; margin-bottom: 15px; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
  .woocommerce div.product .summary { padding-left: 0; }
  .woocommerce div.product .bj-affiliate-cta .bj-affiliate-button { width: 100%; }
  .bj-single-facts dl { grid-template-columns: 1fr; }
  .bj-footer-intro { min-height: 0; flex-direction: column; align-items: flex-start; padding-block: 34px; }
  .bj-footer-intro .bj-button { width: auto; }
  .bj-footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .bj-footer-bottom .bj-container { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 20px; }
  .bj-404-grid { grid-template-columns: 1fr; }
  .bj-404-bricks { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Feed-aware product filters */
.bj-shop-layout { grid-template-columns: 280px minmax(0, 1fr); }
.bj-filter-head > div { display: flex; align-items: center; gap: 8px; }
.bj-filter-count { min-width: 24px; height: 24px; padding-inline: 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bj-yellow); color: var(--bj-ink); font-size: .75rem; font-weight: 900; }
.bj-filter-toggle-count { min-width: 24px; height: 24px; padding-inline: 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bj-yellow); color: var(--bj-ink); font-size: .75rem; font-weight: 900; line-height: 1; }
.bj-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.bj-active-filters > strong { margin-right: 2px; color: var(--bj-muted); font-size: .78rem; }
.bj-active-filter-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #cbd5df; border-radius: 999px; background: #fff; color: var(--bj-ink); font-size: .78rem; font-weight: 800; line-height: 1.2; text-decoration: none; }
.bj-active-filter-chip:hover { border-color: var(--bj-red); color: var(--bj-red-dark); }
.bj-active-filter-chip span[aria-hidden="true"] { font-size: 1rem; line-height: 1; }
.bj-shop-filter { display: grid; gap: 17px; }
.bj-filter-group { margin: 0; padding: 0; border: 0; }
.bj-filter-group > label, .bj-filter-group > legend { display: block; margin: 0 0 7px; padding: 0; color: var(--bj-ink); font-size: .82rem; font-weight: 850; }
.bj-filter-group select, .bj-price-fields input { width: 100%; min-height: 44px; padding: 9px 34px 9px 11px; border: 1px solid #bcc7d3; border-radius: 9px; background: #fff; color: var(--bj-ink); font: inherit; }
.bj-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bj-price-fields label { margin: 0; }
.bj-price-fields label span { display: block; margin-bottom: 5px; color: var(--bj-muted); font-size: .72rem; font-weight: 750; }
.bj-price-fields input { padding-right: 9px; }
.bj-filter-checks { display: grid; gap: 9px; padding-block: 2px; }
.bj-filter-checks label { display: flex; gap: 9px; align-items: flex-start; margin: 0; color: #344257; font-size: .84rem; cursor: pointer; }
.bj-filter-checks input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--bj-blue); }
.bj-filter-actions { display: grid; gap: 9px; }
.bj-filter-submit { width: 100%; min-height: 46px; margin: 0 !important; border: 0 !important; border-radius: 10px !important; background: var(--bj-red) !important; color: #fff !important; font-weight: 900 !important; }
.bj-filter-submit:hover { background: var(--bj-red-dark) !important; }
.bj-filter-reset { display: block; padding: 6px; color: var(--bj-muted); font-size: .82rem; font-weight: 800; text-align: center; text-decoration: none; }
.bj-filter-reset:hover { color: var(--bj-red); }

@media (max-width: 1020px) {
  .bj-shop-layout { grid-template-columns: 1fr; }
}

/* Responsive polish and shared price popup, version 1.3.0 */
:root { --bj-header-layer: 10000; --bj-panel-layer: 10020; --bj-modal-layer: 11000; }
html { overflow-x: clip; }
body { overflow-wrap: anywhere; }
body.bj-panel-open, body.bj-price-open { overflow: hidden; }
.site-header { z-index: var(--bj-header-layer); isolation: isolate; overflow: visible; }
.bj-overlay { z-index: calc(var(--bj-header-layer) - 1); }
.primary-navigation { min-width: 0; }
.primary-navigation .menu > li:last-child > .sub-menu { right: 0; left: auto; }
.bj-home-hero, .bj-shop-hero, .site-main { z-index: 0; }
.bj-header-main { grid-template-columns: auto minmax(0, 1fr) auto; }
.site-branding, .primary-navigation, .bj-header-actions { min-width: 0; }

/* Products stay aligned and easy to scan. */
.woocommerce ul.products { align-items: stretch; }
.woocommerce ul.products li.product { height: 100%; overflow: hidden; }
.woocommerce ul.products li.product > .woocommerce-loop-product__link { display: block; min-width: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 2.5em; overflow-wrap: anywhere; }
.woocommerce ul.products li.product .price { min-height: 1.6em; }
.bj-price-trigger, .bj-product-link-button {
  width: 100%; min-height: 46px; margin-top: auto; padding: 10px 12px; border: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--bj-red); color: #fff;
  font-weight: 900; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer;
}
.bj-price-trigger:hover, .bj-price-trigger:focus-visible { background: var(--bj-red-dark); color: #fff; }
.bj-price-trigger::after { content: "→"; margin-left: 8px; font-size: 1.05em; }
.woocommerce ul.products li.product .bj-price-trigger { position: relative; z-index: 4; }

/* Single product uses a stable two-column grid instead of WooCommerce floats. */
.single-product .bj-woocommerce-main > .bj-container { max-width: 1180px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 58px); align-items: start; }
.woocommerce div.product::before, .woocommerce div.product::after { display: none; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; min-width: 0; }
.woocommerce div.product div.images { position: sticky; top: 128px; }
.woocommerce div.product .summary { padding: 8px 0 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related.products, .woocommerce div.product .upsells.products { grid-column: 1 / -1; min-width: 0; }
.woocommerce div.product .product_title { overflow-wrap: anywhere; }
.woocommerce div.product .bj-affiliate-cta { margin: 20px 0 18px; }
.woocommerce div.product .bj-affiliate-cta .bj-price-trigger { width: fit-content; min-width: 230px; min-height: 54px; padding-inline: 24px; }
.woocommerce div.product .woocommerce-product-gallery { min-width: 0; }
.woocommerce div.product .woocommerce-product-gallery__image a { display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; }
.bj-product-breadcrumb .woocommerce-breadcrumb { overflow-wrap: anywhere; }

/* One lightweight modal is reused by every product. */
.bj-price-modal[hidden] { display: none !important; }
.bj-price-modal { position: fixed; inset: 0; z-index: var(--bj-modal-layer); display: grid; place-items: center; padding: 20px; }
.bj-price-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(9, 18, 31, .72); backdrop-filter: blur(4px); cursor: pointer; }
.bj-price-modal-dialog {
  position: relative; z-index: 1; width: min(100%, 720px); max-height: min(88vh, 760px); overflow: auto;
  display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0, 1.25fr); gap: 26px; padding: 28px;
  border: 1px solid rgba(21,32,51,.12); border-radius: 22px; background: #fffdf8; box-shadow: 0 28px 80px rgba(0,0,0,.3);
  animation: bj-modal-in .18s ease-out;
}
.bj-price-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 1px solid var(--bj-line); border-radius: 50%; background: #fff; color: var(--bj-ink); cursor: pointer;
}
.bj-price-modal-close:hover { background: var(--bj-yellow); }
.bj-price-modal-media { min-height: 220px; align-self: stretch; display: grid; place-items: center; padding: 16px; border-radius: 16px; background: var(--bj-soft); }
.bj-price-modal-media[hidden] { display: none; }
.bj-price-modal-media img { width: 100%; max-height: 290px; object-fit: contain; }
.bj-price-modal-copy { align-self: center; padding-right: 24px; }
.bj-price-modal-copy h2 { margin: 12px 0 10px; font-size: clamp(1.55rem, 4vw, 2.35rem); }
.bj-price-modal-price { margin: 0 0 12px; color: var(--bj-red-dark); font-family: "Arial Black", Arial, sans-serif; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.2; }
.bj-price-modal-price.is-placeholder { color: var(--bj-ink); font-family: inherit; font-size: 1rem; font-weight: 800; }
.bj-price-modal-text { color: var(--bj-muted); }
.bj-price-modal-link { width: 100%; min-height: 54px; margin: 6px 0 10px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--bj-red); color: #fff; font-weight: 900; text-align: center; text-decoration: none; }
.bj-price-modal-link:hover { background: var(--bj-red-dark); color: #fff; }
.bj-price-modal-copy small { display: block; color: var(--bj-muted); font-size: .75rem; line-height: 1.45; }
@keyframes bj-modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

/* Large laptop and tablet alignment. */
@media (max-width: 1240px) {
  .bj-container { width: min(calc(100% - 28px), var(--bj-container)); }
  .primary-navigation a { padding-inline: 9px; font-size: .9rem; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bj-shop-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 1020px) {
  .site-header { backdrop-filter: none; }
  .bj-menu-toggle { display: inline-flex; }
  .bj-header-main { min-height: 72px; gap: 12px; }
  .site-branding { justify-content: center; }
  .custom-logo { max-width: 190px; max-height: 54px; }
  .primary-navigation {
    position: fixed; inset: 0 auto 0 0; z-index: var(--bj-panel-layer); width: min(90vw, 400px); height: 100dvh;
    padding: 16px 16px 28px; background: #fff; transform: translateX(-105%); visibility: hidden; pointer-events: none;
    transition: transform .22s ease, visibility .22s ease; overflow-y: auto; overscroll-behavior: contain; box-shadow: 16px 0 44px rgba(9,18,31,.24);
  }
  .primary-navigation.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .bj-mobile-nav-head { display: flex; position: sticky; top: -16px; z-index: 3; align-items: center; justify-content: space-between; margin: 0 -16px 14px; padding: 16px; border-bottom: 1px solid var(--bj-line); background: #fff; }
  .primary-navigation .menu { display: block; }
  .primary-navigation .menu > li { border-bottom: 1px solid #edf0f4; }
  .primary-navigation a { width: calc(100% - 48px); min-height: 52px; padding: 10px 8px; font-size: 1rem; }
  .primary-navigation .sub-menu { position: static; display: none; min-width: 0; box-shadow: none; border: 0; border-left: 3px solid var(--bj-yellow); border-radius: 0; padding: 0 0 8px 11px; }
  .primary-navigation li.submenu-open > .sub-menu { display: block; }
  .primary-navigation li:hover > .sub-menu { display: none; }
  .primary-navigation li.submenu-open:hover > .sub-menu { display: block; }
  .bj-submenu-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; position: absolute; right: 0; top: 5px; border: 0; border-radius: 9px; background: var(--bj-soft); color: var(--bj-ink); font-size: 1.3rem; font-weight: 900; }
  .bj-overlay { position: fixed; inset: 0; }

  .bj-shop-layout { grid-template-columns: 1fr; }
  .bj-filter-toggle { width: 100%; min-height: 50px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; background: var(--bj-ink); color: #fff; font-weight: 850; }
  .bj-shop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: var(--bj-panel-layer); width: min(92vw, 410px); height: 100dvh; max-height: none; border: 0; border-radius: 0 18px 18px 0; transform: translateX(-105%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; padding: 20px; overflow-y: auto; overscroll-behavior: contain; box-shadow: 16px 0 44px rgba(9,18,31,.24); }
  .bj-shop-sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .bj-filter-close { display: inline-flex; }

  .woocommerce div.product { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
  .woocommerce div.product div.images { top: 104px; }
}

@media (max-width: 820px) {
  .bj-search-panel { position: fixed; inset: 0; z-index: var(--bj-panel-layer); overflow-y: auto; background: #fff; }
  .bj-search-panel-inner { min-height: 100dvh; grid-template-columns: 1fr auto; align-content: start; gap: 20px; padding-block: 24px; }
  .bj-search-panel-inner > div:first-child { grid-column: 1 / -1; padding-top: 50px; }
  .bj-search-panel .bj-search-form { grid-column: 1 / -1; }
  .bj-search-close { position: absolute; top: 18px; right: 18px; }
  .bj-home-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 54px; }
  .bj-hero-visual { display: none; }
  .bj-shop-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  .woocommerce div.product div.images { position: static; }
  .woocommerce div.product .summary { padding-top: 0; }
  .woocommerce div.product .woocommerce-tabs { padding-top: 20px; }
  .bj-price-modal-dialog { width: min(100%, 560px); grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 24px; }
  .bj-price-modal-media { min-height: 180px; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .bj-container, .bj-narrow { width: min(calc(100% - 24px), var(--bj-container)); }
  .bj-announcement p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bj-header-main { min-height: 64px; gap: 7px; }
  .bj-icon-button { width: 42px; height: 42px; }
  .custom-logo { max-width: 155px; max-height: 48px; }
  .bj-wordmark { font-size: .94rem; }
  .bj-search-toggle { display: inline-flex; }
  .bj-home-hero-grid { padding-block: 40px; }
  .bj-home-hero h1 { font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .bj-hero-actions { display: grid; grid-template-columns: 1fr; }
  .bj-button { width: 100%; }
  .bj-shop-hero { padding: 20px 16px; margin-bottom: 18px; border-radius: 16px; }
  .bj-shop-hero h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .bj-product-search > div { min-height: 52px; }
  .bj-woocommerce-main { padding-block: 20px 52px; }
  .woocommerce ul.products { gap: 10px; }
  .woocommerce ul.products li.product { padding: 9px 9px 11px; border-radius: 13px; }
  .woocommerce ul.products li.product a img { margin-bottom: 10px; padding: 6px; border-radius: 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 2.6em; margin-bottom: 6px; font-size: .86rem; }
  .woocommerce ul.products li.product .price { margin-bottom: 9px; font-size: .98rem; }
  .bj-product-facts { margin-bottom: 8px; }
  .bj-product-facts li { font-size: .65rem; }
  .bj-product-facts li:nth-child(n+3) { display: none; }
  .bj-price-trigger, .bj-product-link-button { min-height: 43px; padding: 8px 6px; font-size: .79rem; }
  .bj-price-trigger::after { margin-left: 5px; }
  .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none !important; width: 100%; margin-bottom: 10px; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
  .woocommerce div.product .product_title { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.45rem; }
  .woocommerce div.product .bj-affiliate-cta .bj-price-trigger { width: 100%; min-width: 0; }
  .bj-single-facts dl { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { display: grid; grid-template-columns: 1fr; border-bottom: 0; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li { width: 100%; border-radius: 9px; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li a { width: 100%; }
  .bj-price-modal { padding: 10px; align-items: end; }
  .bj-price-modal-dialog { width: 100%; max-height: 92dvh; grid-template-columns: 1fr; gap: 14px; padding: 18px; border-radius: 20px 20px 12px 12px; }
  .bj-price-modal-close { top: 10px; right: 10px; }
  .bj-price-modal-media { min-height: 150px; max-height: 210px; padding: 10px; margin-right: 48px; }
  .bj-price-modal-media img { max-height: 185px; }
  .bj-price-modal-copy { padding-right: 0; }
  .bj-price-modal-copy h2 { margin-top: 10px; padding-right: 36px; font-size: 1.45rem; }
}

@media (max-width: 380px) {
  .bj-container, .bj-narrow { width: min(calc(100% - 18px), var(--bj-container)); }
  .custom-logo { max-width: 138px; }
  .woocommerce ul.products { gap: 8px; }
  .woocommerce ul.products li.product { padding: 7px 7px 9px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .8rem; }
  .bj-product-facts li { font-size: .61rem; }
  .bj-price-trigger, .bj-product-link-button { font-size: .74rem; }
}

@media (max-width: 1020px) {
  .bj-shop-sidebar .bj-filter-head { position: sticky; top: -20px; z-index: 4; margin: -20px -20px 16px; padding: 16px 20px; border-bottom: 1px solid var(--bj-line); background: #fff; }
  .bj-shop-sidebar .bj-filter-actions { position: sticky; bottom: -20px; z-index: 3; margin: 0 -20px -20px; padding: 14px 20px 20px; border-top: 1px solid var(--bj-line); background: #fff; }
  .admin-bar .primary-navigation, .admin-bar .bj-search-panel, .admin-bar .bj-shop-sidebar { top: 32px; height: calc(100dvh - 32px); }
}
@media (max-width: 782px) {
  .admin-bar .primary-navigation, .admin-bar .bj-search-panel, .admin-bar .bj-shop-sidebar { top: 46px; height: calc(100dvh - 46px); }
}

.bj-search-panel[hidden] { display: none !important; }
@media (max-width: 820px) {
  .bj-search-toggle { display: inline-flex; }
  .bj-search-panel:not([hidden]) { display: block; }
}

/* Mobile shop grid fix, version 1.3.1 */
@media (max-width: 820px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .bj-shop-products ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .bj-shop-products ul.products li.product {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    padding: 14px 14px 16px;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img {
    width: 100%;
    max-height: 360px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 12px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    font-size: 1rem;
    line-height: 1.35;
  }

  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price {
    font-size: 1.15rem;
  }

  .woocommerce ul.products li.product .bj-price-trigger,
  .woocommerce ul.products li.product .bj-product-link-button,
  .woocommerce-page ul.products li.product .bj-price-trigger,
  .woocommerce-page ul.products li.product .bj-product-link-button {
    min-height: 48px;
    padding: 10px 14px;
    font-size: .92rem;
  }
}

@media (max-width: 380px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .bj-shop-products ul.products {
    gap: 14px;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .bj-shop-products ul.products li.product {
    padding: 12px;
  }
}


/* Feed-driven theme shortcuts and rendering performance, version 1.4.0 */
.bj-shop-theme-nav { margin: -4px 0 22px; padding: 13px 15px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--bj-line); border-radius: 13px; background: #fff; }
.bj-shop-theme-nav > strong { flex: 0 0 auto; font-size: .8rem; }
.bj-shop-theme-links { min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }
.bj-shop-theme-links a { flex: 0 0 auto; min-height: 36px; padding: 7px 12px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--bj-soft); color: var(--bj-ink); font-size: .78rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.bj-shop-theme-links a:hover { background: var(--bj-yellow); color: #111; }
.woocommerce ul.products li.product { contain: layout paint; }
@supports (content-visibility: auto) {
  .bj-products-section, .bj-review-section, .bj-guide-section, .bj-home-content { content-visibility: auto; contain-intrinsic-size: 1px 760px; }
}
@media (max-width: 820px) {
  .bj-shop-theme-nav { margin-bottom: 16px; padding: 11px 12px; display: block; }
  .bj-shop-theme-nav > strong { display: block; margin-bottom: 7px; }
  .bj-overlay, .bj-price-modal-backdrop { backdrop-filter: none; }
}
@media (max-width: 360px) {
  .bj-theme-grid { grid-template-columns: minmax(0, 1fr); }
  .bj-theme-card { min-height: 156px; }
}
