/* Products uses the existing Batch 2 brand tokens; Catalog styles are scoped. */
body[data-page="products"] .hdr.solid{background:var(--paper)!important}
body[data-page="products"] .page-hero{padding-top:calc(var(--hh) + 2rem);padding-bottom:2.5rem;grid-template-columns:minmax(0,1fr) minmax(10rem,18rem);gap:3rem;min-height:0}
body[data-page="products"] .page-hero h1{font-size:clamp(3rem,6.25vw,6rem);max-width:14em;letter-spacing:-.02em;text-wrap:balance}
body[data-page="products"] .page-hero .lead{max-width:56ch;font-size:1rem;color:var(--ink)}
body[data-page="products"] .page-hero .product-hero{max-width:18rem;padding:0;border:0;background:none;aspect-ratio:1}
body[data-page="products"] .page-hero .product-hero img{height:100%;aspect-ratio:1}
body[data-page="products"] .page-hero .act{margin-top:1.5rem}
.products-browser{padding-top:3rem;padding-bottom:3rem;border-top:0}
.catalog-migration{font-size:.875rem;color:#514b44;margin-bottom:1rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.catalog-migration button{font:inherit;cursor:pointer;background:none;border:0;padding:.6rem 0;color:var(--ink);text-decoration:underline;text-underline-offset:.2em;min-height:44px}
#catalog-import-status:empty{display:none}#retained-selection{flex-basis:100%;padding:1rem;background:#e9e2d7;color:#38332e}
#catalog-app{--ink:#141414;--muted:#59534c;--line:#d9d4cb;--gold:#b4532a;--paper:#f5f2ec;font:400 1rem/1.55 var(--sans);color:var(--ink);background:var(--paper);min-width:0}
/* Reserve the collection viewport while its module/data arrive. The real app
   replaces this status immediately; no content or interaction is delayed. */
.js #catalog-app:has(>p[role="status"]){min-block-size:100svh}
#catalog-app .catalog-shell{max-width:none;margin:0;padding:0;background:none}
#catalog-app .catalog-shell>.hero,#catalog-app .catalog-shell>.benefits,#catalog-app .catalog-shell>footer{display:none}
#catalog-app .topbar{position:static;top:auto;min-height:0;padding:0 0 1rem;display:flex;justify-content:flex-end;border:0;background:transparent;box-shadow:none}
#catalog-app .topbar>.brand,#catalog-app .topbar>nav,#catalog-app .request-catalog-btn{display:none}
#catalog-app .topbar .header-actions{display:flex;gap:.75rem;align-items:center}
#catalog-app .catalog{padding:0;max-width:none;width:100%;background:none;scroll-margin-top:calc(var(--hh) + 1rem)}
#catalog-app .catalog-heading{margin:0 0 1.5rem;align-items:end;gap:1rem}
#catalog-app .catalog-heading .eyebrow,#catalog-app .back-home{display:none}
#catalog-app h2{font-family:var(--serif);font-size:clamp(2.125rem,3vw,3.75rem);font-weight:400;letter-spacing:-.005em;line-height:1.05;color:var(--ink)}
#catalog-app h3,#catalog-app .product-copy h3{font-family:var(--sans);font-size:1rem;line-height:1.45;letter-spacing:0;font-weight:500}
#catalog-app .catalog-heading p,#catalog-app .result-count,#catalog-app .data-note,#catalog-app .view-detail{font-size:.875rem;line-height:1.5}
#catalog-app .data-note{color:#59534c;margin-bottom:1.5rem}
#catalog-app .search-row{margin:1rem 0}
#catalog-app input,#catalog-app select,#catalog-app textarea,#catalog-app button{font-family:var(--sans);font-size:.875rem}
#catalog-app input,#catalog-app select,#catalog-app .filter-button,#catalog-app .category-tabs button{min-height:2.75rem}
#catalog-app .category-tabs{gap:.5rem;flex-wrap:wrap}
#catalog-app .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem 1rem;margin-top:1.5rem}
#catalog-app .product-card{background:transparent;box-shadow:none;min-width:0;border:1px solid var(--stone)}
#catalog-app .real-image-wrap{padding:.8rem;background:#efebe3;aspect-ratio:1}
#catalog-app .actual-photo{width:100%;height:100%;object-fit:contain;filter:none;mix-blend-mode:normal;transform:none}
#catalog-app .view-detail{padding:.6rem .75rem}
#catalog-app .product-copy{padding:.75rem;gap:.5rem}
#catalog-app .sku{font-family:var(--mono);font-size:.8rem;color:#91401f;overflow-wrap:anywhere}
#catalog-app .tags{padding:0 .75rem .75rem;gap:.35rem}
#catalog-app .tags span{font-size:.75rem;line-height:1.4;color:#514b44}
#catalog-app .card-actions{padding:.5rem;gap:.4rem;display:grid;grid-template-columns:1fr 1fr}
#catalog-app .card-actions button{font-size:.75rem;line-height:1.35;min-height:2.75rem;padding:.6rem .35rem;white-space:normal}
#catalog-app .add-button,#catalog-app .product-copy button{min-width:2.75rem;min-height:2.75rem}
#catalog-app .selection-panel{padding:2.5rem 0;margin-top:2rem;border-top:1px solid var(--stone);background:none;scroll-margin-top:calc(var(--hh) + 1rem)}
#catalog-app .selection-panel h2{font-size:2.5rem}
#catalog-app .shortlist-item{background:transparent}
#catalog-app .shortlist-item h3{font-size:1rem}
#catalog-app .shortlist-sku,#catalog-app .shortlist-notice{font-size:.875rem}
#catalog-app .modal-backdrop,#catalog-app .unlock-backdrop{z-index:1200}
#catalog-app .detail-modal,#catalog-app .unlock-modal{font-size:1rem;max-height:90dvh;overflow:auto;background:var(--paper)}
#catalog-app .detail-modal h2,#catalog-app .unlock-modal h2{font-size:2.25rem}
#catalog-app .detail-modal p,#catalog-app .unlock-modal p,#catalog-app .detail-modal dd,#catalog-app .detail-modal dt,#catalog-app .unlock-modal label{font-size:.875rem;line-height:1.6}
#catalog-app .detail-modal .close,#catalog-app .unlock-modal .close,#catalog-app .filter-sheet-title .close{font-size:1.75rem;min-width:44px;min-height:44px}
#catalog-app :focus-visible{outline:2px solid #b4532a;outline-offset:3px}
#catalog-app .toast{z-index:1500}
@media(min-width:2200px){#catalog-app .product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:3200px){#catalog-app .product-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){#catalog-app .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 body[data-page="products"] .page-hero{grid-template-columns:1fr;padding-top:calc(var(--hh) + 1.5rem);gap:1rem;padding-bottom:1.5rem}
 body[data-page="products"] .page-hero h1{font-size:clamp(2.75rem,14.4vw,3.5rem)}
 body[data-page="products"] .page-hero .product-hero{display:none}
 .products-browser{padding-top:1.5rem}.catalog-migration{gap:.25rem;font-size:.8125rem}
 #catalog-app .topbar{padding-bottom:1rem}#catalog-app .category-tabs{display:none}#catalog-app .category-select{display:grid}
 #catalog-app .catalog-heading{display:block}#catalog-app .catalog-heading p{margin-top:.6rem}
 #catalog-app .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem .6rem}
 #catalog-app .real-image-wrap{padding:.35rem}#catalog-app .view-detail{padding:.5rem;font-size:.8125rem}
 #catalog-app .product-copy{padding:.6rem .4rem}#catalog-app .product-copy h3{font-size:.875rem}
 #catalog-app .card-actions{grid-template-columns:1fr}#catalog-app .card-actions button{font-size:.8125rem}
 #catalog-app .tags{padding:0 .4rem .5rem}#catalog-app .tags span{font-size:.75rem}
 #catalog-app .curated-filters.open{z-index:1300;max-height:88dvh}#catalog-app .filter-backdrop{z-index:1250}
 #catalog-app .detail-modal,#catalog-app .unlock-modal{width:calc(100% - 1rem);max-width:none;padding:1.25rem;max-height:92dvh}
 #catalog-app input,#catalog-app select,#catalog-app textarea{font-size:1rem}
}
/* The old app's viewport gutters must not be applied inside the main site's container. */
#catalog-app:has(.catalog){--catalog-gutter:0px!important}
#catalog-app[data-public-catalog] .catalog{padding:0!important;width:100%;max-width:none}
#catalog-app[data-public-catalog] .topbar{display:flex!important;position:static!important;justify-content:flex-end;gap:1rem;padding:0 0 1rem!important;width:100%;max-width:none}
#catalog-app[data-public-catalog] .topbar>.brand,#catalog-app[data-public-catalog] .topbar>nav,#catalog-app[data-public-catalog] .request-catalog-btn{display:none!important}
#catalog-app[data-public-catalog] .topbar .header-actions{display:flex!important;flex-direction:row;gap:.75rem;width:auto;margin:0}
#catalog-app[data-public-catalog] .language-switch,#catalog-app[data-public-catalog] .selection-trigger{white-space:nowrap;min-height:44px;font-size:.8rem}
#catalog-app[data-public-catalog] .product-grid.real-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem 1rem}
#catalog-app[data-public-catalog] .product-copy h3{font:500 1rem/1.45 var(--sans)!important;letter-spacing:0}
#catalog-app[data-public-catalog] .product-copy>div>p{font:400 .8rem/1.5 var(--mono);color:#91401f!important}
#catalog-app[data-public-catalog] .selected-filters button{background:#e9e2d7;color:#38332e;font-size:.875rem}
#catalog-app[data-public-catalog] .result-count{color:#141414}
#catalog-app[data-public-catalog] .filter-apply,#catalog-app[data-public-catalog] .filter-apply-button{background:#b4532a;color:white}
@media(min-width:1441px){body[data-page="products"] #main>.products-browser{width:min(92vw,2080px);max-width:min(92vw,2080px)!important}}
@media(min-width:2200px){#catalog-app[data-public-catalog] .product-grid.real-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:3200px){#catalog-app[data-public-catalog] .product-grid.real-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){#catalog-app[data-public-catalog] .product-grid.real-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#catalog-app[data-public-catalog] .product-grid.real-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem .6rem}#catalog-app[data-public-catalog] .product-copy h3{font-size:.875rem!important}}
#catalog-app[data-public-catalog] .product-card{display:flex;flex-direction:column;grid-column:auto!important}
#catalog-app[data-public-catalog] .card-actions{margin-top:auto}
#catalog-app[data-public-catalog] .card-actions .ask-button{background:#b4532a!important;border-color:#b4532a!important;color:white!important}
#catalog-app[data-public-catalog] .view-results{background:#b4532a!important;border-color:#b4532a!important;color:white!important}
@media(max-width:700px){#catalog-app[data-public-catalog] .product-grid.real-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body:has(#catalog-app .curated-filters.open,#catalog-app .modal-backdrop,#catalog-app .unlock-backdrop)>.whatsapp{visibility:hidden}

/* Buyer actions need a readable label on both desktop and phone. */
#catalog-app[data-public-catalog] .card-actions button{font-size:max(.875rem,14px);line-height:1.45;min-height:44px}
#catalog-app[data-public-catalog] .view-detail{min-height:44px;font-size:max(.875rem,14px)}

#catalog-app[data-public-catalog] .language-switch,#catalog-app[data-public-catalog] .selection-trigger,#catalog-app .load-more button,.catalog-migration button{font-size:max(.8755rem,14px);min-height:44px}

/* One current quote list; the older catalog transfer remains a compatibility option. */
.catalog-selection-note{flex-basis:100%;margin:0;font-size:.9375rem;line-height:1.6;color:var(--mid)}
.legacy-catalog-import{flex-basis:100%;font-size:.875rem;line-height:1.6}
.legacy-catalog-import summary{cursor:pointer;min-height:44px;padding:.5rem 0;color:var(--ink)}
.legacy-catalog-import p{margin:.5rem 0;max-width:65ch}
.legacy-catalog-import summary:focus-visible{outline:2px solid var(--copper);outline-offset:3px}

/* R6: one compact collection heading and tool group; native help preserves import. */
body[data-page="products"] .page-hero{padding-top:calc(var(--hh) + 24px);padding-bottom:24px}
body[data-page="products"] .page-hero .act{margin-top:16px}
.products-browser{padding-top:24px}.catalog-migration{margin-bottom:8px;gap:8px}.legacy-catalog-import summary{padding-block:8px}.catalog-selection-note{margin-block:8px}
#catalog-app[data-public-catalog] .topbar{display:none!important}
#catalog-app .catalog-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center;margin-bottom:16px}
#catalog-app .catalog-heading>div:first-child{grid-column:1;grid-row:1}
#catalog-app .catalog-heading .header-actions{grid-column:2;grid-row:1;display:flex;align-items:center;gap:12px}
#catalog-app .catalog-heading>p{grid-column:1/-1;margin:0}
#catalog-app .catalog-heading .language-switch,#catalog-app .catalog-heading .selection-trigger{min-height:44px;white-space:nowrap;font-size:14px}
#catalog-app .search-row{margin-block:12px}#catalog-app .data-note{margin-bottom:16px}
@media(max-width:700px){
 body[data-page="products"] .page-hero{padding-top:calc(var(--hh) + 16px);padding-bottom:16px}
 .products-browser{padding-top:16px}#catalog-app .catalog-heading{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:8px}
 #catalog-app .catalog-heading>div:first-child{grid-column:1;grid-row:1}#catalog-app .catalog-heading .header-actions{grid-column:1;grid-row:2;justify-self:start}
 #catalog-app .catalog-heading>p{grid-row:3}#catalog-app .search-row{margin-block:8px}
 #catalog-app[data-public-catalog] .product-grid.real-grid{margin-top:16px}
}

/* R6: low-frequency help shares the collection tool row, expanded in normal flow. */
.catalog-migration:has(>#catalog-import-status:empty):has(>#retained-selection[hidden]){display:none}
#catalog-app .catalog-heading .header-actions{flex-wrap:wrap;min-width:0;max-width:100%;justify-content:flex-start}
#catalog-app .catalog-heading .legacy-catalog-import{flex-basis:auto;margin:0;font:400 14px/1.5 var(--sans);min-width:0}
#catalog-app .catalog-heading .legacy-catalog-import summary{min-height:44px;padding:10px 0;white-space:nowrap}
#catalog-app .catalog-heading .legacy-catalog-import[open]{flex-basis:100%}
#catalog-app .catalog-help-content{max-width:40rem;padding:12px 0;border-top:1px solid var(--stone)}
#catalog-app .catalog-help-content button{min-height:44px;font-size:14px}
#catalog-app .catalog-help-content p{margin:8px 0;font-size:14px;line-height:1.6}

/* R6.1: distinguish this published subset from the complete persisted Quote list. */
#catalog-app #catalog-scope-note{margin:8px 0 12px;font-size:14px;line-height:1.6;color:var(--muted)}
#catalog-app #catalog-scope-note button{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;font:400 14px/1.5 var(--sans);color:var(--ink);background:transparent;border:0;text-decoration:underline;text-underline-offset:.2em}

/* R12: product-page reading roles. Controls, media and catalog behavior are unchanged. */
body[data-page="products"]{--product-small:.875rem;--product-body:1rem;--product-heading:2.5rem;font-size:var(--product-body)}
body[data-page="products"] .sec{padding-block:3.5rem;border:0;font-size:var(--product-body)}
body[data-page="products"] .sec h2,
body[data-page="products"] #catalog-app h2{font-size:var(--product-heading);line-height:1.1}
body[data-page="products"] .btn,body[data-page="products"] .link{font-size:var(--product-body)}
body[data-page="products"] .hdr .btn,body[data-page="products"] .hdr .link,
body[data-page="products"] .qbtn .lbl,body[data-page="products"] .qbtn .quote-long,
body[data-page="products"] .qbtn .badge{font-size:var(--product-small)}
body[data-page="products"] #catalog-app input,body[data-page="products"] #catalog-app select{font-size:var(--product-body)}
body[data-page="products"] #catalog-app .nc-result-count{max-width:65ch}
body[data-page="products"] .spec-list{grid-template-columns:minmax(9rem,1fr) minmax(0,3fr);gap:1rem 2rem;margin-top:1.5rem}
body[data-page="products"] .spec-list dt,body[data-page="products"] .spec-list dd{padding:0;border:0;font-size:var(--product-body);line-height:1.6}
body[data-page="products"] .spec-list dt{font-family:var(--sans);font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink)}
body[data-page="products"] .spec-list dd{max-width:65ch;text-wrap:pretty}
body[data-page="products"] .send-list{gap:.75rem 2rem;margin-block:1.5rem}
body[data-page="products"] .send-list li{padding:0;border:0;line-height:1.6}
body[data-page="products"] .ftr{padding-block:3rem 1.5rem;gap:1.5rem 2rem;border:0;background:var(--tile);font-size:var(--product-body)}
body[data-page="products"] .ftr .logo{font-size:2rem}
body[data-page="products"] .ftr p{margin-top:.75rem}
body[data-page="products"] .ftr .mono,body[data-page="products"] .ftr .fine,
body[data-page="products"] .ftr .legal-name-secondary{font-size:var(--product-small);letter-spacing:0}
body[data-page="products"] .ftr .mono{font-weight:500;color:var(--ink)}
body[data-page="products"] .ftr .fine{border:0;margin-top:0;padding-top:0}
body[data-page="products"] .ftr>div:nth-child(2)>a{margin:0}
/* Reserve the desktop text row while the wider fallback serif is visible. */
@media(min-width:901px){body[data-page="products"] .page-hero{grid-auto-rows:minmax(20rem,auto)}}
@media(min-width:1100px){
 body[data-page="products"] .product-specs,
 body[data-page="products"] .product-brief{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:3rem;align-items:start}
 body[data-page="products"] .product-specs .spec-list,
 body[data-page="products"] .product-brief .send-list{margin-top:0}
 body[data-page="products"] .product-specs .spec-list{grid-template-columns:10rem minmax(0,1fr)}
 body[data-page="products"] .product-brief>.btn{grid-column:2;justify-self:start}
}
@media(max-width:900px){
 body[data-page="products"]{--product-heading:2rem}
 body[data-page="products"] .sec{padding-block:2.5rem}
 body[data-page="products"] .products-browser{padding-bottom:2rem}
 body[data-page="products"] .ftr{padding-block:2rem;gap:1.5rem}
}
@media(max-width:600px){
 body[data-page="products"] .spec-list{grid-template-columns:minmax(0,1fr);gap:.25rem}
 body[data-page="products"] .spec-list dd:not(:last-child){margin-bottom:1rem}
 body[data-page="products"] .send-list{grid-template-columns:minmax(0,1fr)}
}
