/* Catalogue: one navigation tree, compact cards and a mobile filter drawer. */
.catalog-section{--catalog-columns:2}
body .catalog-section.section{padding-top:28px;padding-bottom:40px;min-height:65vh}
.catalog-page-heading{padding:18px 24px;background:var(--olive);color:#f7f4ed;border-radius:7px}
.catalog-page-heading h1{font-family:var(--sans);font-size:var(--title-page);font-weight:650;line-height:1.25;letter-spacing:.015em;text-transform:uppercase;margin:0}
.catalog-toolbar{display:flex;align-items:center;gap:16px;margin:22px 0 26px}
.catalog-search{color:var(--ink);display:flex;align-items:center;gap:12px;flex:1;max-width:680px;min-width:0;min-height:50px;padding:0 8px 0 16px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
.catalog-search:focus-within{outline:2px solid var(--olive);outline-offset:2px}
.catalog-search>i{display:flex;color:var(--muted)}
.catalog-search input{min-width:0;flex:1;width:100%;height:48px;background:transparent;border:0;outline:0;padding:0;font-size:16px;color:var(--ink)}
.catalog-search button{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:5px;color:var(--olive)}
.catalog-search button:hover{background:var(--sage)}
.catalog-toolbar .sort-control{color:var(--ink);margin-left:auto;min-height:50px;padding:0 12px;display:flex;align-items:center;gap:10px;font-size:14px;white-space:nowrap;border:1px solid var(--line);background:var(--paper);border-radius:7px}
.catalog-toolbar .sort-control select{font-size:14px;width:auto;min-height:46px;max-width:155px;background:transparent;border:0;padding:0 6px;color:var(--ink)}
.catalog-toolbar .filter-toggle{display:none}
.catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}
.catalog-sidebar-slot{min-width:0;align-self:stretch}
.catalog-sidebar{color:var(--ink);display:block;position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.catalog-sidebar .filter-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;padding:0}
.catalog-sidebar .filter-title h2{font-family:var(--sans);font-size:18px;font-weight:650;line-height:1.4;letter-spacing:0;margin:0}
.catalog-sidebar .filter-close,.catalog-sidebar .filter-apply{display:none}
.catalog-rayons{display:flex;flex-direction:column;gap:6px}
.catalog-rayons .all-rayons,.catalog-family summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 10px;border-radius:5px;font-size:15px;font-weight:600;line-height:1.4;color:var(--ink)}
.catalog-family summary{list-style:none;cursor:pointer}
.catalog-family summary::-webkit-details-marker{display:none}
.catalog-family summary svg{width:18px;height:18px;transition:transform .18s}
.catalog-family[open]>summary svg{transform:rotate(180deg)}
.catalog-family.selected>summary{background:var(--sage);color:var(--ink)}
.catalog-family summary:hover,.catalog-rayons a:hover{background:var(--sage);color:var(--ink)}
.catalog-family-links{display:grid;gap:3px;padding:4px 0 8px 10px;margin-left:10px;border-left:2px solid var(--line)}
.catalog-family-links a{display:block;border-radius:4px;padding:9px 10px;font-size:var(--text-action);line-height:1.45;overflow-wrap:anywhere}
.catalog-rayons a.active{background:var(--olive);color:#f7f4ed;font-weight:600}
.catalog-refine{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.catalog-refine>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;list-style:none;font-size:14px;font-weight:600;min-height:40px}
.catalog-refine>summary::-webkit-details-marker{display:none}
.catalog-refine>summary i{display:flex}.catalog-refine>summary svg{width:20px;height:20px}
.catalog-refine fieldset{padding:0;margin:16px 0 0;border:0}
.catalog-refine legend{font-size:14px;font-weight:600;margin-bottom:10px}
.catalog-refine .filter-option{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.5;margin-bottom:8px}
.catalog-refine .filter-option input{flex-shrink:0;margin:4px 0 0}
.catalog-refine .reset-filters{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.4;margin-top:18px;text-decoration:underline;text-underline-offset:3px;color:var(--ink);width:auto;height:auto}
.catalog-refine .reset-filters svg{width:18px;height:18px}
.catalog-results{min-width:0}
.active-filters:empty{display:none}
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.clear-active-filters{font-size:14px;text-decoration:underline;text-underline-offset:3px;padding:6px}
.catalog-category+.catalog-category{margin-top:28px}
.catalog-category .category-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:16px 20px;background:var(--olive);color:#f7f4ed;border:0;border-radius:6px}
.catalog-category .category-heading h2{font-family:var(--sans);font-size:var(--title-section);font-weight:650;line-height:1.25;letter-spacing:.02em;text-transform:uppercase;margin:0;min-width:0;overflow-wrap:anywhere;text-wrap:balance}
.catalog-category .category-heading>.text-link{display:flex;align-items:center;gap:10px;flex-shrink:0;color:#f7f4ed;font-size:14px;line-height:1.45;margin:0;text-decoration:underline;text-underline-offset:4px}
.catalog-category .category-heading>.text-link svg{width:20px;height:20px}
.category-products{grid-template-columns:repeat(var(--catalog-columns),minmax(0,1fr));gap:18px 14px}
.product-card{border-radius:8px}
.product-card .product-image-button{width:100%;height:200px;max-height:200px;aspect-ratio:auto;align-self:stretch;padding:8px;background:#fbf7ee}
.product-card .product-image-button .product-image{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;background:#fbf7ee}
.product-card .product-title{font-size:var(--text-product);line-height:1.35;margin:12px 12px 5px;min-height:0}
.product-card .product-vendor{font-size:var(--text-meta);line-height:1.5;letter-spacing:.02em;margin:0 12px 4px;min-height:0}
.product-card .group-options{font-size:var(--text-meta);line-height:1.5;min-height:20px;margin:3px 12px 0}
.product-card .product-price-row{margin:10px 12px 12px;padding-top:10px;min-height:44px;align-items:center}
.product-card .product-price{font-size:var(--text-price);line-height:1.2}
.product-card .price-line{min-height:0;gap:4px}
.product-card .add-button{width:40px;height:40px;border-radius:7px}
.more-products{margin-top:24px}.more-products:has(button[hidden]){display:none}
.filters-dialog{width:min(380px,calc(100vw - 24px));height:100dvh;max-height:100dvh;max-width:none;margin:0 auto 0 0;padding:0;border:0;border-radius:0;background:var(--paper);color:var(--ink);overflow:auto}
.filters-dialog::backdrop{background:#17221bcc}
.filters-dialog .catalog-sidebar{display:block;position:static;max-height:none;min-height:100%;border:0;border-radius:0;overflow:visible;padding:20px}
.filters-dialog .filter-title{color:var(--ink);position:sticky;top:0;z-index:1;background:var(--paper);padding:8px 0;margin-top:-8px;border-bottom:1px solid var(--line)}
.filters-dialog .filter-close{display:inline-flex;flex-shrink:0}
.filters-dialog .filter-apply{display:flex;width:100%;margin-top:20px;justify-content:center}
@media(min-width:601px){.catalog-section{--catalog-columns:3}}
@media(min-width:1101px){.catalog-section{--catalog-columns:3}}
@media(min-width:1500px){.catalog-section{--catalog-columns:4}}
@media(min-width:1800px){.catalog-section{--catalog-columns:5}}
@media(max-width:1100px) and (min-width:851px){.catalog-section{--catalog-columns:2}.catalog-layout{grid-template-columns:225px minmax(0,1fr);gap:22px}.catalog-category .category-heading{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:850px){
 .catalog-layout{grid-template-columns:minmax(0,1fr)}
 .catalog-sidebar-slot{display:none}
 .catalog-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .catalog-search{grid-column:1/-1;max-width:none}
 .catalog-toolbar .filter-toggle{display:flex;justify-content:center;min-height:48px;gap:9px;white-space:normal;margin:0;padding:8px 10px;font-size:14px}
 .catalog-toolbar .sort-control{justify-content:space-between;width:100%;min-width:0;margin:0;font-size:13px;padding:0 10px;gap:6px}
 .catalog-toolbar .sort-control select{min-width:0;max-width:140px;font-size:13px;padding:0}
}
@media(max-width:600px){
 body .catalog-section.section{padding-top:20px;padding-bottom:30px}
 .catalog-page-heading{padding:16px}.catalog-page-heading h1{font-size:var(--title-page)}
 .catalog-toolbar{margin:16px 0 22px}
 .catalog-category .category-heading{align-items:flex-start;flex-direction:column;gap:10px;padding:16px;margin-bottom:14px}
 .catalog-category .category-heading h2{font-size:var(--title-section);line-height:1.3}
 .catalog-category .category-heading>.text-link{font-size:var(--text-secondary)}
 .category-products{gap:14px 10px}
 .product-card .product-image-button{height:150px;max-height:150px;padding:6px}
 .product-card .product-title{font-size:var(--text-product);line-height:1.35;margin:10px 10px 5px}
 .product-card .product-vendor{margin:0 10px 4px}
 .product-card .group-options{margin:3px 10px 0}
 .product-card .product-price-row{margin:9px 10px 10px;gap:5px;flex-wrap:wrap}
 .product-card .product-price{font-size:var(--text-price)}
 .product-card .add-button{width:36px;height:36px;margin-left:auto}
 .product-card .product-unit{font-size:var(--text-meta)}
 .catalog-toolbar .sort-control select{max-width:105px}
}
@media(max-width:360px){.catalog-toolbar{grid-template-columns:1fr}.catalog-search{grid-column:auto}.catalog-toolbar .sort-control select{max-width:none}.product-card .product-image-button{height:128px;max-height:128px}.product-card .product-price-row{margin-inline:6px;gap:4px}.product-card .product-price-row{flex-wrap:nowrap}.product-card .price-line{display:block}.product-card .price-prefix{display:block;margin-bottom:2px}.product-card .add-button{width:32px;height:36px}}
@media(prefers-reduced-motion:reduce){.catalog-family summary svg{transition:none}}
