/* Page builder blocks: layout, spacing and the few visual defaults; the theme's variables colour them. */
.b-mt-s { margin-top: .75rem; } .b-mt-m { margin-top: 1.5rem; } .b-mt-l { margin-top: 3rem; } .b-mt-xl { margin-top: 5rem; }
.b-mb-s { margin-bottom: .75rem; } .b-mb-m { margin-bottom: 1.5rem; } .b-mb-l { margin-bottom: 3rem; } .b-mb-xl { margin-bottom: 5rem; }
.b-align-center { text-align: center; } .b-align-right { text-align: right; }

.b-section { position: relative; margin-inline: calc(50% - 50vw); padding-inline: 1rem; }
.b-section-inner { width: min(100%, 68rem); margin-inline: auto; }
.b-section-narrow .b-section-inner { width: min(100%, 44rem); }
.b-section-full .b-section-inner { width: 100%; }
.b-pad-none { padding-block: 0; } .b-pad-s { padding-block: 1rem; } .b-pad-m { padding-block: 2.5rem; } .b-pad-l { padding-block: 4rem; } .b-pad-xl { padding-block: 6rem; }
.b-section-image { background-size: cover; background-position: center; }
.b-section-overlay::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.b-section-overlay .b-section-inner { position: relative; }
.site-main > .b-section:first-child { margin-top: -2rem; }

.b-columns { display: grid; grid-template-columns: var(--b-cols, 1fr 1fr); }
.b-gap-none { gap: 0; } .b-gap-s { gap: .75rem; } .b-gap-m { gap: 1.5rem; } .b-gap-l { gap: 2.5rem; } .b-gap-xl { gap: 4rem; }
.b-valign-center { align-items: center; } .b-valign-bottom { align-items: end; }
.b-column { min-width: 0; }
.b-column > * + * { margin-top: 1rem; }

.b-heading { margin: 0 0 .75rem; line-height: 1.2; text-wrap: balance; }
.b-text > :first-child { margin-top: 0; } .b-text > :last-child { margin-bottom: 0; }

.b-image { margin: 0; }
.b-image img { display: block; max-width: 100%; height: auto; }
.b-image-small img { max-width: min(20rem, 100%); } .b-image-medium img { max-width: min(34rem, 100%); } .b-image-large img { max-width: 100%; }
.b-image-full { margin-inline: calc(50% - 50vw); } .b-image-full img { width: 100%; }
.b-image.b-align-center img { margin-inline: auto; } .b-image.b-align-right img { margin-left: auto; }
.b-rounded img { border-radius: 14px; }

/* Picture shape and fit (image and products blocks): a fixed shape lines pictures up; "contain" shows all of each inside it. */
.b-shape-square { --b-shape: 1; } .b-shape-landscape { --b-shape: 4 / 3; } .b-shape-portrait { --b-shape: 3 / 4; } .b-shape-wide { --b-shape: 16 / 9; }
.b-image.b-shaped img { width: 100%; aspect-ratio: var(--b-shape); object-fit: cover; }
.b-image.b-fit-contain img { object-fit: contain; }
.b-image figcaption, .b-gallery figcaption { margin-top: .4rem; font-size: .875rem; color: var(--rz-text-secondary-color, #666); }

.b-button-wrap { margin-block: .5rem; }
.b-button { display: inline-block; text-decoration: none; font-weight: 600; border-radius: var(--rz-border-radius, 6px); border: 2px solid transparent; transition: filter .15s; }
.b-button:hover { filter: brightness(1.08); }
.b-button-primary { background: var(--rz-primary, #3f51b5); color: var(--rz-on-primary, #fff); }
.b-button-secondary { background: var(--rz-secondary, #555); color: #fff; }
.b-button-outline { background: transparent; color: var(--rz-primary, #3f51b5); border-color: var(--rz-primary, #3f51b5); }
.b-button-link { background: transparent; color: var(--rz-primary, #3f51b5); padding-inline: 0 !important; text-decoration: underline; }
.b-button-s { padding: .4rem .9rem; font-size: .9rem; } .b-button-m { padding: .65rem 1.4rem; } .b-button-l { padding: .9rem 2rem; font-size: 1.1rem; }

.b-divider { border: 0; border-top: 1px solid var(--rz-base-300, #ddd); margin-block: 1.5rem; }
.b-divider-thick { border-top-width: 4px; } .b-divider-dots { border-top-style: dotted; border-top-width: 3px; }
.b-divider-short { width: 6rem; margin-inline: auto; }

.b-gallery { display: grid; gap: .75rem; }
.b-gallery-2 { grid-template-columns: repeat(2, 1fr); } .b-gallery-3 { grid-template-columns: repeat(3, 1fr); } .b-gallery-4 { grid-template-columns: repeat(4, 1fr); } .b-gallery-5 { grid-template-columns: repeat(5, 1fr); } .b-gallery-6 { grid-template-columns: repeat(6, 1fr); }
.b-gallery-item { margin: 0; } .b-gallery-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rz-border-radius, 6px); }

.b-embed { position: relative; width: 100%; overflow: hidden; border-radius: var(--rz-border-radius, 6px); background: #000; }
.b-ratio-16x9 { aspect-ratio: 16 / 9; } .b-ratio-4x3 { aspect-ratio: 4 / 3; } .b-ratio-1x1 { aspect-ratio: 1; }
.b-embed iframe, .b-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.b-products { display: grid; gap: 1.5rem; }
.b-product { border: 1px solid var(--rz-base-300, #e5e5e5); border-radius: var(--rz-border-radius, 8px); overflow: hidden; display: flex; flex-direction: column; }
.b-product-image { display: block; position: relative; aspect-ratio: var(--b-shape, 4 / 3); overflow: hidden; background: var(--rz-base-200, #f3f3f3); }
/* Two classes deep: the site layout's ".content-body img { height: auto }" would otherwise let a tall picture stretch the card. */
.b-products .b-product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.b-products.b-fit-contain .b-product-image img { object-fit: contain; }
.b-products.b-shape-original .b-product-image { aspect-ratio: auto; } .b-products.b-shape-original .b-product-image img { position: static; height: auto; }
.b-product-title { margin: .6rem 1rem .2rem; font-size: 1.05rem; } .b-product-title a { text-decoration: none; color: inherit; }
.b-product-price { margin: 0 1rem .3rem; font-weight: 700; } .b-product-price s { font-weight: 400; color: var(--rz-text-secondary-color, #777); }
.b-product-detail { margin: 0 1rem .3rem; color: var(--rz-text-secondary-color, #666); font-size: .9rem; }
.b-product-categories { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 1rem .3rem; }
.b-product-categories a { font-size: .75rem; padding: .1rem .5rem; border: 1px solid var(--rz-base-300, #e5e5e5); border-radius: 999px; color: var(--rz-text-secondary-color, #666); text-decoration: none; }
.b-product-categories a:hover { border-color: var(--rz-primary, #3f51b5); color: var(--rz-primary, #3f51b5); }
.b-product-soldout { margin: 0 1rem .3rem; color: var(--rz-danger, #c62828); font-size: .9rem; }
.b-product > :last-child { margin-bottom: .9rem; }
.b-link-cards { display: grid; gap: 1.25rem; }
.b-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: inherit; text-decoration: none; text-align: center; }
.b-card-image { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--rz-border-radius, 8px); background: var(--rz-base-200, #f3f3f3); }
.b-card .b-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
a.b-card:hover .b-card-image img, a.b-card:focus-visible .b-card-image img { transform: scale(1.04); }
a.b-card:focus-visible { outline: none; } a.b-card:focus-visible .b-card-image { outline: 2px solid var(--rz-primary, #3f51b5); outline-offset: 3px; }
a.b-card:hover .b-card-title { text-decoration: underline; }
.b-cards-portrait .b-card-image { aspect-ratio: 3 / 4; }
.b-cards-round .b-card-image { border-radius: 50%; }
.b-card-title { font-weight: 600; line-height: 1.3; }
.b-posts-grid { display: grid; gap: 1.5rem; }
.b-posts-list .b-post { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: start; margin-bottom: 1.5rem; }
.b-post-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rz-border-radius, 6px); }
.b-post-title { margin: .6rem 0 .2rem; font-size: 1.15rem; } .b-post-title a { text-decoration: none; color: inherit; }
.b-post-date { font-size: .85rem; color: var(--rz-text-secondary-color, #666); }
.b-post-excerpt { margin: .4rem 0 0; }
.b-empty, .b-placeholder { padding: 1rem; border: 1px dashed var(--rz-base-400, #bbb); border-radius: var(--rz-border-radius, 6px); color: var(--rz-text-secondary-color, #666); text-align: center; }

.b-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.b-menu-vertical ul { flex-direction: column; gap: .5rem; }
.b-menu.b-align-center ul { justify-content: center; } .b-menu.b-align-right ul { justify-content: flex-end; }
.b-menu ul ul { display: none; }
.b-menu a { text-decoration: none; color: inherit; font-weight: 500; }
.b-menu-switch { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.b-menu-button { display: none; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid currentColor; border-radius: var(--rz-border-radius, 6px); cursor: pointer; font-size: 1.25rem; line-height: 1; user-select: none; }
.b-menu-button-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.b-menu-switch:focus-visible + .b-menu-button { outline: 2px solid var(--rz-primary, #3f51b5); outline-offset: 2px; }
.b-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; font-weight: 700; font-size: 1.3rem; }
.b-brand-logo { height: 2.4rem; width: auto; }
.b-brand.b-align-center { display: flex; justify-content: center; }

.site-layout-header, .site-layout-footer { padding-block: 1rem; }

/* Hide on phones / tablets / desktops. Not inside the page builder's canvas, which shows them faded for the device it previews. */
@media (max-width: 46rem) { .b-hide-mobile:not(.pb-canvas *) { display: none !important; } }
@media (min-width: 46.01rem) and (max-width: 64rem) { .b-hide-tablet:not(.pb-canvas *) { display: none !important; } }
@media (min-width: 64.01rem) { .b-hide-desktop:not(.pb-canvas *) { display: none !important; } }

@media (max-width: 46rem) {
    .b-columns { grid-template-columns: 1fr !important; }
    .b-gallery-4, .b-gallery-5, .b-gallery-6 { grid-template-columns: repeat(2, 1fr); }
    .b-gallery-3 { grid-template-columns: repeat(2, 1fr); }
    .b-posts-list .b-post { grid-template-columns: 1fr; }
    .b-pad-l { padding-block: 2.5rem; } .b-pad-xl { padding-block: 3.5rem; }
    .b-menu-toggle { display: flex; flex-direction: column; }
    .b-menu-toggle.b-align-center { align-items: center; } .b-menu-toggle.b-align-right { align-items: flex-end; }
    .b-menu-toggle .b-menu-button { display: inline-flex; }
    .b-menu-toggle > ul { display: none; flex-direction: column; gap: .6rem; width: 100%; padding-top: .75rem; }
    .b-menu-toggle .b-menu-switch:checked ~ ul { display: flex; }
    .b-menu-toggle ul ul { display: flex; flex-direction: column; gap: .5rem; padding: .5rem 0 0 1rem; }
}
