/* Structural layouts share brand tokens and commerce controls, not catalog markup. */
.department-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.department-tile{display:grid;grid-template-rows:280px auto;overflow:hidden;background:var(--surface);color:var(--ink);border:1px solid #d4d7d3;border-radius:var(--radius);text-decoration:none;min-width:0}
.department-tile img,.department-placeholder{width:100%;height:100%;object-fit:cover;display:block}
.department-placeholder{display:grid;place-items:center;background:var(--brand);color:var(--button-text);font-size:4rem}
.department-tile>div{padding:24px 28px}.department-tile h2{margin:0 0 12px;font-size:1.7rem}.department-tile p{margin:0 0 16px;line-height:1.7;overflow-wrap:anywhere}.department-tile>div>span{font-weight:700;text-decoration:underline;text-underline-offset:5px}
.department-tile:hover,.department-tile:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.department-all{text-align:center;margin:28px 0}
.template-departments .store-hero{grid-template-columns:1fr 1.2fr;margin-bottom:36px;min-height:360px}.template-departments .store-hero>img{height:380px}.template-departments .store-hero h2{font-size:clamp(32px,4vw,54px)}
.template-departments .department-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.template-departments .product-card{padding:18px}.template-departments .product-image,.template-departments .product-image img{height:300px}.template-departments .department-directory{margin-bottom:28px}
.structural-product-detail{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:40px;align-items:start;margin-bottom:32px;min-width:0}
.structural-product-media{min-width:0}.structural-product-media .product-gallery{padding:0;background:var(--surface);border-radius:var(--radius);overflow:hidden;display:flex;flex-wrap:wrap;gap:12px}.structural-product-media .product-gallery>a:has(.cover){flex-basis:100%}.structural-product-media .cover{width:100%;height:520px;object-fit:contain;background:var(--surface);margin:0}.structural-product-media .thumbnail{width:100px;height:90px;object-fit:cover;margin:8px}
.structural-product-information{padding:24px 0;line-height:1.8}.structural-order-panel{position:sticky;top:24px;border:1px solid #cbd2cc;background:var(--surface);border-radius:var(--radius);padding:28px;min-width:0}.structural-order-panel>h2{font-size:1.4rem;margin:0 0 20px}.structural-order-panel .price{font-size:2rem}.structural-order-panel form{margin-top:20px}.structural-order-panel form>p>button{width:100%}
.list-shopping-layout{display:grid;grid-template-columns:220px minmax(0,1fr) 270px;grid-template-areas:'categories products cart';gap:24px;align-items:start}
.template-list .store-main{max-width:1640px}.template-list .store-header-inner{max-width:1640px}.list-category-sidebar{grid-area:categories;position:sticky;top:20px;min-width:0;background:var(--surface);padding:18px;border:1px solid #d9dfe3;border-radius:var(--radius)}
.list-category-sidebar>details>summary{font-size:1.1rem;font-weight:700;padding:6px 0 14px}.list-category-sidebar .category-nav{display:flex;flex-direction:column;gap:5px;margin:0;padding:0;border:0;overflow:visible;white-space:normal}
.list-category-sidebar .category-nav a,.list-category-sidebar .category-nav summary{display:block;border:0;border-radius:6px;padding:10px 8px;font-size:.95rem;min-width:0;white-space:normal;overflow-wrap:anywhere;width:100%;text-decoration:none}
.list-category-sidebar .category-nav details{min-width:0;position:static;width:100%}.list-category-sidebar .category-nav .menu-children{position:static;min-width:0;max-width:none;box-shadow:none;border:0;border-inline-start:2px solid #d9dfe3;border-radius:0;background:transparent;margin:4px 8px 8px 0;padding:0 8px 0 0;max-height:none;overflow:visible}
.list-shopping-content{grid-area:products;min-width:0}.list-cart-sidebar{grid-area:cart;top:20px;padding:20px}.list-catalog-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-bottom:18px;overflow-wrap:anywhere}.list-catalog-heading h2{font-size:1.5rem;margin:0}.list-catalog-heading>span{white-space:nowrap;font-size:.85rem}
.list-product-group{margin-bottom:28px}.list-product-group>h2{margin:0;padding:12px 16px;background:var(--header-bg);font-size:1.1rem;line-height:1.5;overflow-wrap:anywhere;border-inline-start:4px solid var(--brand)}.list-product-group>h2 a{color:var(--header-ink)}
.list-product-rows{background:var(--surface);border:1px solid #d9dfe3;border-radius:var(--radius);overflow:hidden}.list-product-row{display:grid;grid-template-columns:76px minmax(120px,1fr) minmax(210px,1fr);gap:16px;align-items:start;min-width:0;margin:0;padding:20px 16px;border:0;border-bottom:1px solid #d9dfe3;border-radius:0;box-shadow:none;background:transparent}.list-product-row:last-child{border-bottom:0}.list-product-row:focus-within{box-shadow:inset 0 0 0 2px var(--brand)}
.list-product-image{display:block;min-width:0}.list-product-image img,.list-image-placeholder{display:block;width:76px;height:82px;object-fit:cover;border-radius:8px}.list-image-placeholder{display:grid;place-items:center;border:1px solid #d9dfe3}
.list-product-description{min-width:0}.list-product-description h3{font-size:1.05rem;line-height:1.5;margin:0 0 6px;overflow-wrap:anywhere}.list-product-description h3 a{text-decoration:none}.list-product-summary{font-size:.85rem;line-height:1.5;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.list-product-description .price,.list-product-order .price{font-size:1.2rem;line-height:1.5;margin:6px 0}.list-product-row .price-unit{font-size:.75rem;white-space:normal}
.list-product-order{min-width:0}.list-product-order form{margin:0}.list-product-order label{font-size:.85rem;margin:0 0 10px}.list-product-order select{max-width:100%;min-width:0;width:100%;padding:8px}.list-product-order .quantity-control{gap:6px;justify-content:start}.list-product-order .quantity-control input{width:66px!important;min-width:0;max-width:100%;padding:8px}.list-product-order .quantity-control button{width:38px;min-width:38px;padding:6px;height:40px;min-height:40px}.list-product-order .method-label{font-size:.75rem;margin:0 0 8px}.list-product-order .buying-hint{font-size:.8rem}.list-product-order .quantity-summary{font-size:.8rem}.list-product-order form>p{margin:8px 0 0}.list-product-order form>p>button{width:100%;padding:10px;font-size:.95rem}.list-buying-rules{margin-top:6px}.list-buying-rules summary{font-size:.8rem;min-height:24px}.list-product-order .cart-feedback{font-size:.85rem;overflow-wrap:anywhere}.list-product-order .cart-feedback:empty{display:none}.list-mobile-cart{display:none}
@media(max-width:1250px){.list-shopping-layout{grid-template-columns:180px minmax(0,1fr) 235px;gap:16px}.list-product-row{grid-template-columns:64px minmax(0,1fr);gap:12px}.list-product-image img,.list-image-placeholder{width:64px;height:74px}.list-product-order{grid-column:1/-1}.list-product-order .compact-buying-form{display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start}.list-product-order .compact-buying-form>.method-label{grid-column:1/-1}.list-product-order .compact-buying-form>.cart-feedback{grid-column:1/-1}.list-product-order form>p>button{margin:0}.list-product-order .list-buying-rules{grid-column:1/-1}}
@media(max-width:900px){.list-shopping-layout{grid-template-columns:180px minmax(0,1fr);grid-template-areas:'categories products'}.list-cart-sidebar{display:none}.list-mobile-cart{display:flex;position:fixed;inset-inline:16px;bottom:max(12px,env(safe-area-inset-bottom));z-index:15;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:var(--brand);color:var(--button-text);border-radius:var(--radius);text-decoration:none;box-shadow:0 3px 20px #0003;font-weight:700;font-size:.95rem}.template-list:has(.list-mobile-cart) .store-footer{padding-bottom:110px}.structural-product-detail{gap:24px;grid-template-columns:minmax(0,1fr) minmax(280px,1fr)}.structural-product-media .cover{height:400px}}
@media(max-width:650px){.department-grid{grid-template-columns:minmax(0,1fr);gap:20px}.department-tile{grid-template-rows:230px auto}.department-tile>div{padding:20px}.department-tile h2{font-size:1.45rem}.template-departments .store-hero{display:flex;flex-direction:column-reverse;min-height:0}.template-departments .store-hero>img{height:230px}.template-departments .store-hero>div{padding:24px}.template-departments .department-products{grid-template-columns:minmax(0,1fr)}.template-departments .product-image,.template-departments .product-image img{height:260px}.structural-product-detail{display:flex;flex-direction:column;gap:20px}.structural-product-media,.structural-order-panel{width:100%}.structural-product-media .cover{height:340px}.structural-order-panel{position:static;padding:22px}.structural-product-information{padding:20px 8px}
 .list-shopping-layout{display:block}.list-category-sidebar{position:static;padding:12px 16px;margin-bottom:20px}.list-category-sidebar>details>summary{padding:8px 0}.list-category-sidebar details:not([open])>.list-category-tree{display:none}.list-product-row{padding:16px 12px;grid-template-columns:64px minmax(0,1fr)}.list-catalog-heading h2{font-size:1.25rem}.list-mobile-cart{inset-inline:10px;font-size:.85rem;padding:14px 16px}.list-product-order .compact-buying-form{column-gap:12px}.list-product-order .quantity-control{gap:4px}.list-product-order .quantity-control input{width:55px!important}.list-product-order .quantity-control button{width:36px;min-width:36px}.list-product-row input,.list-product-row select{font-size:16px}.list-product-group>h2{font-size:1rem}}
@media(prefers-reduced-motion:reduce){.department-tile{transition:none}}

/* Keep order controls compact instead of letting the number field stretch. */
.list-product-order .quantity-control input{flex:0 0 66px}
.list-product-order .compact-buying-form{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,.8fr);gap:8px 12px;align-items:end}
.list-product-order .compact-buying-form>.method-label{display:none}
.list-product-order .compact-buying-form>label{margin:0;align-self:start}
.list-product-order .compact-buying-form>p:not(.cart-feedback){grid-column:2;order:2;margin:0}
.list-product-order .compact-buying-form>.list-buying-rules{grid-column:1/-1;order:3;margin:0}
.list-product-order .compact-buying-form>.cart-feedback{grid-column:1/-1;order:4}
.structural-product-media>.product-gallery>.product-placeholder{width:100%;min-height:340px}
@media(max-width:650px){.list-product-order .quantity-control input{flex-basis:55px}}
