/* Brands, brand page, catalogue and product page. Tokens from tokens.css. */

.h1 { font-family: var(--display); font-weight: 400; font-size: var(--h1); line-height: 1.02; letter-spacing: var(--display-track); }
.small { font-size: var(--t-small); color: var(--mute); }
.sec--top { padding-top: 32px; }
.sec--tight { padding-block: 16px 24px; }
.sec--flush { padding-top: 0; }
.page-head { display: flex; flex-direction: column; gap: 16px; } /* heading, then the introduction across the full width (user, 3 November 2026) */
.empty { color: var(--ink-2); }
.code { font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 20px 0 0; font-size: var(--t-small); color: var(--mute); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* brand directory */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 16px; border: 1px solid var(--control); background: #FFFFFF; color: var(--ink); font: inherit; font-size: var(--t-small); cursor: pointer; border-radius: var(--radius); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.brand-dir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.brand-dir li[hidden] { display: none; }
.brand-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.brand-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); display: block; }
.brand-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.brand-card:hover .brand-card__media img { transform: scale(1.03); }
.brand-card__media--type { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: var(--h2); }
.brand-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brand-card__name { font-family: var(--display); font-size: var(--h3); line-height: 1.1; }
.brand-card__n { font-size: var(--t-small); color: var(--mute); white-space: nowrap; }
.brand-card__cats { font-size: var(--t-small); color: var(--ink-2); }

/* brand page */
.brand-hero { padding-block: 8px 32px; }
.brand-hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.brand-hero__media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); }
.brand-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.facts-list { display: grid; gap: 0; margin: 8px 0; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--mute); font-size: var(--t-small); }
.facts-list dd { margin: 0; }
/* Brand page collections: one block per kind of product, each card with its hero products */
.bcol { padding-top: 32px; border-top: 1px solid var(--line); }
.bcol__count { color: var(--mute); }
.bsec { display: flex; flex-direction: column; gap: 20px; }
.bsec + .bsec { padding-top: 32px; border-top: 1px solid var(--line); }
.bsec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bsec__h { font-family: var(--display); font-size: var(--h3); line-height: 1.15; margin: 0; }
.bcol-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.bcard { display: flex; flex-direction: column; gap: 10px; }
.bcard__main { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.bcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph); display: block; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bcard__media--cut { background: var(--bed); }
.bcard__media--cut img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.bcard__media--type { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: var(--h4); background: var(--band); }
.bcard__main:hover .bcard__media img { transform: scale(1.03); }
.bcard__main:hover .bcard__name { color: var(--accent); }
.bcard__name { font-family: var(--display); font-size: var(--h4); line-height: 1.15; margin-top: 4px; }
.bcard__meta { font-size: var(--t-small); color: var(--ink-2); }
.bcard__heroes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bcard__heroes a { display: block; aspect-ratio: 1; background: var(--bed, #fff); border: 1px solid var(--line); }
.bcard__heroes a:hover { border-color: var(--ink); }
.bcard__heroes img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; }
.bcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.bcats a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bcats a:hover .bcats__name { color: var(--accent); }
.bcats__name { font-family: var(--display); font-size: var(--h4); }
.bcats__n { font-size: var(--t-small); color: var(--mute); }

/* listing: filters + grid */
.subcats ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--t-body); }
.subcats a { color: var(--ink-2); text-decoration: none; padding-block: 6px; display: inline-block; }
.subcats a[aria-current] { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--accent-line); }
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; font-size: var(--t-small); }
.filters__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.filters__title { font-size: var(--t-body); font-weight: 600; }
.filters__close { display: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; cursor: pointer; list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; font-weight: 400; color: var(--mute); }
.fgroup[open] summary::after { content: "−"; }
.fopts { display: flex; flex-direction: column; padding-bottom: 12px; }
.fopt-sub .fopt { padding-left: 20px; font-size: var(--t-body); }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--ink); text-decoration: none; }
.fopt:hover .fopt__l { text-decoration: underline; }
.fopt__l { flex: 1; }
.fopt__n { color: var(--mute); font-variant-numeric: tabular-nums; }
.box { width: 18px; height: 18px; border: 1px solid var(--control); background: #FFFFFF; flex: none; }
.fopt.is-on { font-weight: 600; }
.fopt.is-on .box { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ink); }
.fopt.is-on .sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.fgroup__help { font-size: var(--t-xs); color: var(--mute); padding-bottom: 12px; }
.sw { width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF center / cover; border: 1px solid var(--line); flex: none; display: inline-block; }
.sw--lg { width: 24px; height: 24px; }
.sw--xl { width: 40px; height: 40px; }

.toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar__filters { display: none; }
.toolbar__count { font-size: var(--t-small); color: var(--ink-2); }
.toolbar__sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: var(--t-small); }
.toolbar__sort select { min-height: 44px; border: 1px solid var(--control); background: #FFFFFF; font: inherit; padding: 0 8px; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: var(--t-small); }
.chip:hover { background: var(--ink); color: var(--bg); }
.chips__clear { font-size: var(--t-small); margin-left: 4px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; padding-top: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; }
/* Every product card has the same 4:5 image box; the photo is fitted inside it, never cropped or stretched. */
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bed); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.card__media img { position: absolute; top: 12%; left: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.card__noimg { font-size: var(--t-xs); color: var(--mute); }
.card__meta { font-size: var(--t-xs); color: var(--mute); letter-spacing: .01em; overflow-wrap: anywhere; } /* long model codes wrap inside the card */
.card__name { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.card__name:hover { text-decoration: underline; }
.card__spec { font-size: var(--t-small); color: var(--ink-2); }
.card__fin { display: flex; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--mute); }
.card__fin span:last-child { margin-left: 4px; }
.card__stock { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-2); }
.card__stock .avail__dot { width: 7px; height: 7px; }
.card__add { margin-top: 6px; align-self: flex-start; min-height: 40px; padding: 0 14px; border: 1px solid var(--control); background: #FFFFFF; color: var(--ink); font: inherit; font-size: var(--t-small); cursor: pointer; border-radius: var(--radius); }
.card__add:hover, .card__add.is-added { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.pages ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 32px 0 0; padding: 0; }
.pages a, .pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pages .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pages .dots { border: 0; }

/* product page */
.pdp { padding-block: 24px var(--sec-pad); }
.pdp__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pdp__main { aspect-ratio: 1 / 1; background: var(--bed); position: relative; display: flex; align-items: center; justify-content: center; }
/* The whole photo always fits inside the square, whatever its shape (tall shower columns included). */
.pdp__main img { position: absolute; inset: 8%; width: 84%; height: 84%; max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; } /* many photos scroll instead of widening the page on phones (4 Nov 2026) */
.pdp__thumbs button { flex: none; width: 72px; height: 72px; padding: 6px; border: 1px solid var(--line); background: var(--bed); cursor: pointer; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__info { display: flex; flex-direction: column; gap: 16px; }
.pdp__brand { font-size: var(--t-body); font-weight: 600; color: var(--accent); text-decoration: none; }
.pdp__h { font-family: var(--display); font-weight: 400; font-size: var(--h2); line-height: 1.08; letter-spacing: var(--display-track); }
.pdp__codes { font-size: var(--t-body); }
.pdp__cat { font-size: var(--t-small); color: var(--ink-2); }
.finishes { border: 0; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.finishes legend { padding: 0; font-weight: 600; font-size: var(--t-body); }
.finishes__row { display: flex; flex-wrap: wrap; gap: 6px; }
.finish { width: 52px; height: 52px; padding: 4px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.finish[aria-pressed="true"] { border-color: var(--ink); }
.finish .sw { width: 100%; height: 100%; }
.avail { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--band); font-size: var(--t-small); align-self: flex-start; }
.avail__dot { width: 10px; height: 10px; border-radius: 50%; background: #2F6B45; }
.avail__dot--lead { background: var(--ink-2); }
.pdp__actions { display: flex; flex-direction: column; gap: 8px; }
.btn--wide { width: 100%; min-height: 56px; }
.pdp__actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp__actions-2 .btn { padding: 0 12px; font-size: var(--t-body); }
.pdp__wa { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.pdp__desc { color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }
.specs { margin: 0; border-top: 1px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }

@media (max-width: 1020px) {
	.listing { grid-template-columns: 1fr; }
	.toolbar__filters { display: inline-flex; min-height: 44px; }
	.filters { display: none; position: fixed; inset: 0; z-index: 40; max-height: none; background: var(--bg); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px)); }
	.filters.is-open { display: block; }
	.filters__close { display: inline-flex; }
	.grid, .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.brand-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bcol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.page-head, .brand-hero__in, .pdp__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.brand-hero__media { aspect-ratio: 3 / 2; order: -1; }
	.bcol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
	.bcard__name { font-size: var(--h4); }
	.bcats { grid-template-columns: 1fr; }
	.grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
	.card__spec { display: none; }
	.card__fin .sw:nth-child(n+4) { display: none; }
	.subcats ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; white-space: nowrap; }
	.card__add { width: 100%; }
	.brand-dir { grid-template-columns: 1fr; gap: 28px; }
	.tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.tab { flex: none; }
	.toolbar__sort label { display: none; }
	.specs div { grid-template-columns: 130px 1fr; }
	.pdp__actions-2 { grid-template-columns: 1fr; }
	.facts-list div { grid-template-columns: 110px 1fr; }
}

/* Product documents and technical drawings */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #d8d5cf); }
.docs li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line, #d8d5cf); }
.drawing { margin: 0; background: #fff; padding: 1rem; }
.drawing img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }

/* Brand and brands pages (wireframes of 31 October 2026) */
.bhero, .bdhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--band); height: clamp(340px, 34vw, 440px); }
.bhero__text, .bdhero__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 32px 48px 40px max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
.bhero__text .crumbs, .bhero__text nav { margin: 0; }
.bhero__h { font-family: var(--display); font-weight: 400; font-size: var(--h1); line-height: 1; letter-spacing: var(--display-track); margin: 0; }
.bhero__kicker { color: var(--ink-2); margin: 0; }
h2.bhero__kicker { font: inherit; letter-spacing: inherit; }
.bhero__media { margin: 0; overflow: hidden; position: relative; }
.bhero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bdhero .bhero__media img { object-position: 50% 30%; } /* Brands page: keeps the top of the showroom photo (the Lusitania Casa sign) in view */
.bdhero .lede { margin: 0; }

.bnav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bnav__in { list-style: none; margin: 0 auto; display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.bnav a { display: block; padding: 16px 0 14px; color: var(--ink-2); text-decoration: none; font-size: var(--t-body); white-space: nowrap; border-bottom: 2px solid transparent; }
.bnav a:hover, .bnav a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
[id="overview"], [id="collections"], [id="products"], [id="finishes"], [id="downloads"] { scroll-margin-top: 64px; }

.bover__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.bover .bfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; margin: 0; border-top: 0; }
.bover .bfacts div { padding-top: 0; }
.bover__story p:last-child { margin-bottom: 0; }
.bover__story { max-width: none; }
.bover__story p { margin: 0 0 1em; }
.bfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.bfacts div { padding: 16px 16px 0 0; }
.bfacts dt { font-family: var(--display); font-size: var(--h2); line-height: 1; }
.bfacts dd { margin: 6px 0 0; font-size: var(--t-small); color: var(--ink-2); }
.bover__by { color: var(--ink-2); }

.bcol-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.ball > summary { cursor: pointer; list-style: none; display: inline-block; }
.ball > summary::-webkit-details-marker { display: none; }
.ball[open] > summary { margin-bottom: 28px; }
.ball .bsec + .bsec { margin-top: 32px; }


.bfd { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.bfd--one { grid-template-columns: 1fr; }
.bfin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 20px 12px; }
.bfin li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: var(--t-xs); line-height: 1.3; }
.bfin .sw { width: 48px; height: 48px; border-radius: 50%; }
.bfin__code { color: var(--mute); font-size: var(--t-xs); }
.ball .bfin { margin-top: 0; }
.bdl { padding-left: 40px; border-left: 1px solid var(--line); }
.bdl .docs a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.bdl .docs a:hover { color: var(--accent); }
.bdl .docs svg { flex: none; color: var(--ink-2); }
.bprod { border-top: 1px solid var(--line); }
.bprod .filters { top: 72px; max-height: calc(100vh - 88px); }

.bsupport { background: var(--ink); color: var(--bg); padding-block: 40px; }
.bsupport__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.bsupport .h2 { color: var(--bg); }
.bsupport p { margin: 0; opacity: .85; }
.bsupport__btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.bsupport__btn:hover { background: transparent; color: var(--bg); border-color: var(--bg); }

.bdtools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.bdsearch { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--control); background: #FFFFFF; min-width: min(320px, 100%); }
.bdsearch input { border: 0; outline: 0; background: transparent; font: inherit; flex: 1; min-width: 0; }
.bdsearch:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bdcard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; }
.bdcard:hover { border-color: var(--ink); }
.bdcard__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); display: block; }
.bdcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bdcard:hover .bdcard__media img { transform: scale(1.03); }
.bdcard__media--type { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: var(--h2); }
.bdcard__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.bdcard__name { font-family: var(--display); font-size: var(--h3); line-height: 1.1; }
.bdcard__meta { font-size: var(--t-small); color: var(--ink-2); }
.bdcard__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; }
.bdcard__go { font-weight: 500; font-size: var(--t-body); border-bottom: 1px solid var(--accent-line); }
.bdcard__n { font-size: var(--t-xs); color: var(--mute); }

@media (max-width: 1020px) {
		.bfd, .bover__in { grid-template-columns: 1fr; gap: 40px; }
	.bdl { padding-left: 0; border-left: 0; }
	.bfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.bhero, .bdhero { grid-template-columns: 1fr; height: auto; }
	.bhero__media { order: -1; aspect-ratio: 3 / 2; }
	.bhero__text, .bdhero__text { padding: 20px var(--gutter) 28px; }
	.bnav__in { gap: 24px; }
	.bcol-grid--3 { grid-template-columns: 1fr; }
		.bfacts dt { font-size: var(--h2); }
	.bsupport { padding-block: 40px; }
}
/* Featured products: a catalogue photo with brand and code; 4 across on a wide screen, 3 on smaller screens and phones. */
.bfeat { list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bfeat__card { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.bfeat__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--band); }
.bfeat__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
/* A product cut-out (no room photo picked) is fitted whole inside the box, like the product list. */
.bfeat__media--cut { background: var(--bed); }
.bfeat__media--cut img { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.bfeat__card:hover img { transform: scale(1.03); }
.bfeat__card:hover .card__meta { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .bfeat__media img { transition: none; } }
.bfeat .card__meta { overflow-wrap: anywhere; }
/* Three across: products that would leave a part-filled last row are left out. */
@media (max-width: 1020px) {
	.bfeat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bfeat li:nth-child(3n+1):last-child, .bfeat li:nth-child(3n+1):nth-last-child(2), .bfeat li:nth-child(3n+2):last-child { display: none; }
}
@media (max-width: 760px) { .bfeat { gap: 10px; } .bfeat .card__meta { font-size: var(--t-xs); } }
/* Brand hero: a short introduction, so the band grows with it. */
.bhero { height: auto; min-height: clamp(340px, 34vw, 440px); }
.bhero__intro { margin: 0; color: var(--ink-2); }
/* Brand and collection listings: hero products show their catalogue photo, using the whole box. */
.card__media--photo img { top: 0; left: 0; width: 100%; height: 100%; mix-blend-mode: normal; object-fit: cover; } /* fills the card, no bands (user, 10 Nov 2026) */
/* Product photos with a scene or coloured backdrop use the whole box (shown whole) instead of a small inset box. */
.pdp__main img.is-scene { inset: 0; width: 100%; height: 100%; mix-blend-mode: normal; }
.pdp__thumbs button[data-pdp-scene] { padding: 0; }
.pdp__thumbs button[data-pdp-scene] img { mix-blend-mode: normal; }
/* Brand page: compact spacing throughout, closer than the home page. */
.bnav ~ .sec { padding-block: clamp(24px, 2.6vw, 36px); }
.bnav ~ .sec--band + .sec--band { padding-top: 0; }
/* Two grey bands in a row (collections, then finishes) are parted by a line. */
.bnav ~ .sec--band + .sec--band > .wrap { border-top: 1px solid var(--line); padding-top: clamp(24px, 2.6vw, 36px); }
.bnav ~ .sec .stack-lg { gap: 20px; }
.bnav ~ .sec .stack { gap: 12px; }
.bnav ~ .bsupport { padding-block: 32px; }
.bhero { min-height: clamp(300px, 28vw, 400px); }
.bhero__text { gap: 12px; padding-block: 24px; }
.bfd { gap: 40px; }
.bfeat { padding-top: 0; }
.bprod .grid { padding-top: 12px; row-gap: 32px; }
.bprod .listing { margin-top: 16px; }
.ball { margin-top: 0; }
.link--btn { background: none; border: 0; border-bottom: 1px solid var(--accent-line); padding: 0 0 2px; font: inherit; font-weight: 500; cursor: pointer; }
.bover__logo { margin: 0 0 8px; }
.bover__logo img { display: block; width: auto; height: auto; max-width: 160px; max-height: 72px; }
/* Listings load filters and pages in place: the list dims while the next one loads. */
.listing.is-loading .listing__main { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* Projects page and project page (wireframe of 1 November 2026) */
.pfilters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.psearch input { min-height: 44px; width: min(320px, 100%); padding: 0 14px; border: 1px solid var(--control); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--t-small); border-radius: var(--radius); }
.pgroup + .pgroup { margin-top: 48px; }
.pgroup__h { font-size: var(--h3); display: flex; align-items: baseline; gap: 10px; }
.pgroup__h .small { font-family: var(--body); color: var(--mute); }
.pgroup[hidden] { display: none; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pcard__in { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); display: block; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard__in:hover .pcard__media img { transform: scale(1.03); }
.pcard__go { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg); color: var(--ink); font-size: var(--t-body); }
.pcard__name { font-family: var(--display); font-size: var(--h4); line-height: 1.1; margin-top: 6px; }
.pcard__meta { color: var(--ink-2); font-size: var(--t-small); }
.pempty { background: var(--band); padding: 40px; max-width: 760px; }
.pfeat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--band); }
.pfeat__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.pfeat__text { justify-content: center; align-items: flex-start; padding: 40px max(var(--gutter), 48px); }
.phl { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.phl li { display: grid; gap: 4px; }
.phl__big { font-family: var(--display); font-size: var(--h2); line-height: 1.05; }
.ppeople { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 4px 0 0; }
.ppeople div { display: grid; gap: 2px; }
.ppeople dt { font-size: var(--t-xs); color: var(--ink-2); }
.ppeople dd { margin: 0; font-weight: 500; }
.ppanel h2 { margin: 0; }
.pphoto { margin: 0; }
.pphoto img { width: 100%; height: auto; display: block; }
.pgallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pgallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
[id="p-overview"], [id="p-scope"], [id="p-products"], [id="p-gallery"] { scroll-margin-top: 64px; }
@media (max-width: 760px) { .pfeat { grid-template-columns: 1fr; } .pfeat__text { padding: 28px var(--gutter); } }
.ppanel[hidden], .pcard[hidden] { display: none !important; }

/* About page (user's example, 1 November 2026) */
.bhero--dark { background: var(--dark); color: var(--on-dark); }
.bhero--dark .bhero__kicker, .bhero--dark .bhero__intro { color: var(--on-dark); opacity: .85; }
.bhero--dark .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.bhero--dark .btn--ghost:hover { background: var(--on-dark); color: var(--dark); }
.abf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.abf__photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.abf__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.abf__people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.abf__people > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.abf__people h3 { font-size: var(--t-body); font-weight: 600; margin: 0; }
.abf__role { margin: 2px 0 8px; color: var(--accent); font-size: var(--t-small); }
.abf__people .small { margin: 0; }
.abj { background: var(--dark); color: var(--on-dark); padding-block: var(--sec-pad); }
.abj__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.abj__in > p { margin: 0; border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 40px; opacity: .9; }
.abj .small { color: var(--on-dark); opacity: .7; }
.aba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.aba__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aba__card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark); }
.aba__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aba__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0) 60%); }
.aba__text { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #FFFFFF; display: grid; gap: 4px; font-size: var(--t-small); line-height: 1.4; }
.aba__text b { font-size: var(--t-lead); font-weight: 500; }
.abc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #5A3A28; color: #F1E9E1; } /* warm brown, as in the example; keeps it apart from the dark footer */
.abc__media { min-height: 300px; position: relative; overflow: hidden; }
.abc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.abc__text { justify-content: center; align-items: flex-start; padding: 40px max(var(--gutter), 48px); }
.abc .h2 { color: #FFFFFF; }
.abc p { margin: 0; opacity: .85; }
@media (max-width: 900px) {
	.abf, .abj__in, .aba, .abc { grid-template-columns: 1fr; }
	.abj__in > p { border-left: 0; padding-left: 0; }
	.aba__cards { grid-template-columns: 1fr; }
	.aba__card { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.abf__people { grid-template-columns: 1fr; }
	.abf__people > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

/* Professional resources: search, brand and type filters, document table */
.res-search { display: flex; gap: 8px; max-width: 720px; }
.res-search input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--control); font: inherit; background: #fff; }
.res { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.res__group + .res__group { margin-top: 24px; }
.res__gh { font-size: var(--t-small); font-weight: 600; margin: 0 0 8px; }
.res__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.res__group a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: var(--t-body); }
.res__group a:hover { color: var(--accent); }
.res__group a[aria-current] { color: var(--ink); font-weight: 600; }
.res__list { display: grid; gap: 14px; min-width: 0; }
.res__table { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.res__table th { text-align: left; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.res__table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.res__table td:first-child { width: 42%; }
.res__codes .code { margin-right: 6px; }
.res__table td .small { display: block; }
@media (max-width: 900px) {
	.res { grid-template-columns: 1fr; }
	.res__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
	.res__group + .res__group { margin-top: 0; }
	.res__table thead { display: none; }
	.res__table tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.res__table td { padding: 0; border: 0; width: auto !important; }
	.res__table td::before { content: attr(data-label) ": "; font-size: var(--t-xs); color: var(--ink-2); }
	.res__table td:first-child::before { content: none; }
	.res__table td:first-child { font-weight: 600; }
}

/* Goes with this product (3 November 2026) */
.parts__h { font: 500 var(--t-body)/1.3 var(--body); margin: 0; }


/* Sale label on product cards and pages (3 November 2026) */
.card__flags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flag-sale { display: inline-block; font-size: var(--t-xs); font-weight: 600; line-height: 1; padding: 4px 7px 3px; color: #fff; background: var(--sale); }
.pdp__sale { display: flex; align-items: center; gap: 10px; margin: 0; }
a.flag-sale { text-decoration: none; }
a.flag-sale:hover { color: #fff; background: var(--sale-dark); text-decoration: underline; }

/* 6 Nov 2026: product cards. Text as the homepage brand-card text (14px), names kept to two lines,
   "In stock" / "Sale" shown on the photo, and every "Add to project list" button on one line across the row. */
.card { position: relative; }
.card__meta, .card__spec, .card__fin { font-size: var(--t-small); color: var(--ink-2); }
.card__name { font-size: var(--t-small); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.45em); }
.card__flags { position: absolute; top: 10px; left: 10px; z-index: 1; gap: 6px; pointer-events: none; }
.card__flags .card__stock { padding: 3px 8px; background: rgba(250, 250, 248, .92); font-size: var(--t-xs); color: var(--ink); }
.card__add { margin-top: auto; }
.card__fin + .card__add, .card__spec + .card__add, .card__name + .card__add, .card__flags + .card__add { margin-top: auto; }
.card > :nth-last-child(2) { margin-bottom: 6px; } /* a little room above the button */

/* 6 Nov 2026 (user): the brand page's text styles on every inner page. Intro lines and running text 14px grey,
   sub-category links and filter options 14px, featured project as the brand page's About block. */
/* (intro lines and running text: in base.css, which every page loads) */
.cat-desc p { margin: 0; }
.subcats ul { font-size: var(--t-small); }
.fopt__l, .fopt__n { font-size: var(--t-small); }
body .bdcard__name { font-size: var(--h4); }
.pfeat .h2 { font-size: var(--h3); }
.pfeat__text p:not(.small) { font-size: var(--t-small); color: var(--ink-2); }
/* 8 Nov 2026: description runs the full page width; sub-categories as square tags in the style of the site's buttons. */
body:not(.home) .cat-desc, body:not(.home) .cat-desc p { max-width: none; }
.subcats ul { gap: 8px; margin-top: 16px; }
.subcats a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); white-space: nowrap; transition: border-color .15s linear, color .15s linear; }
.subcats a:hover { border-color: var(--ink); color: var(--ink); }
.subcats a[aria-current], .subcats a[aria-current]:hover { border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 500; }
@media (max-width: 760px) { .subcats a { min-height: 44px; } }
