/**
 * Bigazone foundation: original design tokens, responsive content and blocks.
 * More specific component rules live in components.css and commerce.css.
 */
:root {
    --bz-primary: #2f7d4f;
    --bz-primary-hover: #256340;
    --bz-secondary-theme: #009c9a;
    --bz-accent: #ff791a;
    --bz-success: #20b879;
    --bz-teal: #009c9a;
    --bz-ink: #22252b;
    --bz-muted: #6b717b;
    --bz-border: #e7e7e9;
    --bz-background: #fff;
    --bz-surface: #f8f9fa;
    --bz-container: 1200px;
    --bz-content: 820px;
    --bz-radius: 5px;
    --bz-shadow: 0 12px 30px rgba(20, 24, 32, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--bz-ink); background: var(--bz-background); font: 400 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: break-word; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--bz-primary); }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
/* Accessible universal focus: fields keep the exact existing border width.
 * Only the border color changes; no double outline, ring or layout shift.
 * Borderless interactive elements retain a visible keyboard focus indicator.*/
:where(a, button, [role="button"]):focus-visible {
    outline: 2px solid var(--bz-primary);
    outline-offset: 3px;
}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), textarea, select):focus,
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), textarea, select):focus-visible {
    border-color: var(--bz-primary);
    outline: none;
    box-shadow: none;
}
/* Radio buttons, ranges and file inputs keep their established keyboard focus indicator. */
:where(input[type="radio"], input[type="range"], input[type="file"]):focus-visible {
    outline: 2px solid var(--bz-primary);
    outline-offset: 2px;
}
:where(input[type="checkbox"], input[type="radio"]),
:where(input[type="range"]) { accent-color: var(--bz-primary); }
.bz-container { width: min(calc(100% - 32px), var(--bz-container)); margin-inline: auto; }
.bz-page-main { min-height: 55vh; padding-block: clamp(30px, 4.5vw, 60px) 75px; }
/* Shared post/page content shell: full container if no active sidebar. */
.bz-content-layout { display: block; width: 100%; min-width: 0; }
.bz-content-layout__main { min-width: 0; width: 100%; }
.bz-content-layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); align-items: start; gap: clamp(22px, 3vw, 36px); }
.bz-content-layout__sidebar { min-width: 0; }
.bz-content-layout__sidebar .bz-widget { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--bz-border); }
.bz-content-layout__sidebar .bz-widget__title { font-size: 1.1rem; margin: 0 0 12px; }
@media (max-width: 767px) {
    .bz-content-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
    .bz-content-layout__sidebar { width: 100%; }
}

.bz-page-title, .bz-page-heading h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.2; letter-spacing: -.025em; margin-top: 0; }
.bz-page-heading { margin-bottom: 25px; }
.bz-page-heading .bz-search { margin-top: 18px; }
/* Search results: consistent native product/post layouts, readable empty states and 320px safety. */
.bz-search-results__count { color: var(--bz-muted, #626975); font-size: .94rem; margin: 0 0 20px; }
.bz-search-results__empty { max-width: 650px; margin: clamp(24px, 4vw, 48px) auto; padding: clamp(24px, 4vw, 45px); text-align: center; border: 1px solid var(--bz-border); border-radius: var(--bz-radius); background: var(--bz-surface); overflow-wrap: anywhere; }
.bz-search-results__empty h2 { margin: 0 0 12px; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.bz-search-results__empty p { margin: 0 0 22px; }
.bz-search-results__empty .bz-button { min-height: 44px; max-width: 100%; white-space: normal; }
.bz-search-results :is(.bz-post-grid, .products, .woocommerce ul.products) { min-width: 0; }
@media (max-width: 480px) { .bz-search-results__empty { margin-inline: 0; } }

.bz-entry-content { min-width: 0; overflow-wrap: anywhere; }
.bz-entry-content > * { max-width: 100%; }
.bz-entry-content :where(p, ul, ol, blockquote) { margin-block: 0 1.3em; }
.bz-entry-content :where(h2, h3, h4) { margin-block: 1.6em .6em; line-height: 1.3; }
.bz-entry-content :where(.wp-block-image, .wp-block-gallery, .wp-block-cover, figure) { margin-block: 18px; }
.bz-entry-content :where(.wp-block-image img, .wp-block-gallery img) { max-width: 100%; height: auto; }
.bz-entry-content :where(.wp-block-image.alignwide, .wp-block-gallery.alignwide) { width: 100%; max-width: var(--bz-container); }
.bz-entry-content :where(.wp-block-image.alignfull, .wp-block-gallery.alignfull) { width: 100%; max-width: none; }
.bz-entry-content :where(.wp-block-image.alignfull img, .wp-block-image.alignwide img) { width: 100%; }
.bz-entry-content .wp-block-gallery { gap: clamp(8px, 1.6vw, 18px); }
.bz-entry-content .wp-block-gallery .wp-block-image { min-width: 0; }
.bz-entry-content blockquote { border-left: 3px solid var(--bz-primary); padding: 12px 20px; margin-inline: 0; background: var(--bz-surface); }
.bz-entry-content :where(input, textarea, select) { max-width: 100%; }
.bz-skip-link { position: absolute; z-index: 1000; top: -200px; left: 12px; background: #fff; padding: 10px 14px; }
.bz-skip-link:focus { top: 8px; }
.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; }
.bz-eyebrow { color: var(--bz-primary); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bz-welcome { padding-block: 90px 115px; }
.bz-welcome h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.bz-button { display: inline-flex; align-items: center; justify-content: center; background: var(--bz-primary); color: #fff; border: 0; padding: 12px 22px; border-radius: var(--bz-radius); text-decoration: none; font-weight: 600; }
.bz-button:hover { background: var(--bz-primary-hover); color: #fff; }
/* Built-in 404 recovery; custom Page content retains its native block layout. */
.bz-not-found { text-align: center; }
.bz-not-found__custom { text-align: start; min-width: 0; overflow-wrap: anywhere; }
.bz-not-found__search { max-width: min(100%, 540px); margin: 28px auto 22px; }
.bz-not-found__search form { max-width: 100%; }
.bz-not-found__search :where(input,button) { max-width: 100%; }
.bz-not-found__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
.bz-not-found__shop { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; text-underline-offset: 3px; }
.bz-not-found__actions :where(a):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 480px) { .bz-not-found__actions { flex-direction: column; } .bz-not-found__actions > a { max-width: 100%; } }
.bz-home-content > * { max-width: 100%; }
.bz-home-content > .alignfull { width: 100%; }
.bz-home-content > :not(.alignfull):not(.alignwide) { margin-inline: auto; }
.bz-home-content > .alignwide { max-width: var(--bz-container); margin-inline: auto; }
/* Third-party content can be wider than the parent if unbroken; ensure media reflows. */
:where(.bz-page-main, .bz-home-main) :where(table, pre) { max-width: 100%; }
:where(.bz-page-main, .bz-home-main) pre { overflow-x: auto; }
@media (max-width: 600px) {
    .bz-container { width: min(calc(100% - 24px), var(--bz-container)); }
    .bz-page-main { padding-block: 30px 52px; }
    .bz-entry-content .wp-block-gallery { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms!important; transition-duration: .01ms!important; }
}
