/* Shopping flow: shared between regular and approved trade customers. */
textarea { font:inherit; color:var(--ink); resize:vertical; }
textarea:focus-visible { outline:3px solid var(--accent-ink); outline-offset:3px; }
.field textarea { width:100%; border:1px solid #bfc9c2; border-radius:5px; padding:12px; background:#fff; }
.field { margin-bottom:16px; }
.quiet-link { display:inline-flex; align-items:center; gap:8px; min-height:36px; font-size:.875rem; font-weight:600; text-decoration:underline; text-underline-offset:4px; padding:0; }
.quiet-link:hover { color:var(--accent-ink); }
.header-inner nav { margin-right:12px; gap:26px; }
.header-actions { gap:24px; }
.header-actions #order-link { gap:14px; white-space:nowrap; }
.order-count { display:inline-grid; place-items:center; padding:0 7px; min-width:25px; height:25px; background:#ffffffb3; color:var(--ink); border-radius:4px; font-size:.75rem!important; }
.header-actions #account-button { min-width:90px; }
.header-actions #account-button svg { width:22px; height:22px; }
.hero-trade .quiet-link { color:inherit; font-size:.8125rem; margin-top:5px; }
.hero-trade .eyebrow { font-size:.6875rem; }
.hero-trade { justify-content:center; gap:10px; }
.hero-trade h2 { margin:12px 0; }
.ordering-section { padding:36px 0 52px; border-top:1px solid var(--border); }
.ordering-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px; list-style:none; padding:0; margin:30px 0 0; }
.ordering-steps li { border-left:1px solid var(--border); padding-left:24px; }
.ordering-steps li > span { display:block; color:var(--accent-ink); font-size:.875rem; font-weight:650; margin-bottom:15px; }
.ordering-steps h3 { margin-bottom:9px; }
.ordering-steps p { color:var(--muted); font-size:.875rem; margin-bottom:0; }
.site-footer { display:grid; grid-template-columns:1fr 1fr; gap:24px 70px; align-items:start; padding-block:36px 24px; }
.site-footer > div:first-child > p { margin-top:18px; }
.site-footer nav { display:grid; grid-template-columns:1fr 1fr; gap:6px 30px; }
.site-footer nav a { font-size:.875rem; min-height:36px; display:flex; align-items:center; }
.site-footer nav a:hover { text-decoration:underline; }
.site-footer .footer-preview { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:18px; border-top:1px solid var(--border); }
.footer-preview p { font-size:.75rem; margin:0; }
.catalog-search-row { display:flex; gap:24px; align-items:flex-end; margin:28px 0 26px; }
.search-field { flex:1; }
.search-field, .sort-field { display:flex; flex-direction:column; gap:8px; font-size:.8125rem; font-weight:550; }
.search-field input,.sort-field select { width:100%; border:1px solid #bfc9c2; border-radius:5px; background:#fff; padding:12px 16px; }
.sort-field { width:225px; }
#price-context a { text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.product-bottom { gap:12px; align-items:center; }
.product-bottom .quick-add { display:inline-flex; align-items:center; gap:18px; font-size:.8125rem; font-weight:650; min-height:42px; padding:8px 13px; border:1px solid var(--border); border-radius:4px; }
.product-bottom .quick-add:hover { background:var(--accent-soft); border-color:var(--accent-border); }
.quick-add > span { font-size:1.1rem; }
.product-bottom .quiet-link { font-size:.8125rem; }
.product-grid > .empty-state { grid-column:1/-1; }
.single-product-page .product-detail { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:54px; align-items:start; }
.product-gallery { min-width:0; }
.gallery-main { display:block; position:relative; width:100%; height:auto; aspect-ratio:1/1; padding:0; overflow:hidden; background:#eceeef; border:1px solid #e6e8e7; border-radius:7px; cursor:zoom-in; }
.gallery-main img { position:absolute; inset:14px; display:block; width:calc(100% - 28px); height:calc(100% - 28px); max-width:100%; object-fit:contain; object-position:center; }
.gallery-enlarge { position:absolute; bottom:16px; right:16px; padding:7px 10px; border-radius:4px; background:#ffffffed; font-size:.75rem; font-weight:600; }
.gallery-caption { display:flex; justify-content:space-between; gap:15px; font-size:.75rem; color:var(--muted); margin:12px 0; }
.gallery-thumbnails { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.gallery-thumbnails button { width:76px; height:76px; padding:5px; background:#f2f3f2; border:1px solid var(--border); border-radius:4px; }
.gallery-thumbnails button[aria-pressed="true"] { border:2px solid var(--accent-ink); }
.gallery-thumbnails img { width:100%; height:100%; object-fit:contain; }
.dialog:has(.image-viewer) { max-width:min(980px,96vw); padding:26px; }
.image-viewer h2 { font-size:1.2rem; padding-right:35px; letter-spacing:-.3px; }
.image-viewer > img { display:block; width:100%; height:min(68vh,800px); object-fit:contain; background:#f3f4f3; }
.image-viewer-controls { display:flex; align-items:center; justify-content:center; gap:24px; margin-top:15px; font-size:.8125rem; }
.single-product-page .detail-right { min-width:0; padding-top:0; }
.single-product-page h1 { margin-top:14px; font-size:clamp(1.85rem,3.05vw,2.9rem); }
.single-product-page .detail-right .intro { margin-bottom:22px; }
.trade-login-note { font-size:.8125rem; color:var(--muted); margin-bottom:20px; }
.trade-login-note a { text-decoration:underline; text-underline-offset:3px; color:var(--ink); }
.purchase-panel { margin-top:24px; padding-top:24px; border-top:1px solid var(--border); }
.quantity-label { display:block; margin-bottom:10px; font-size:.875rem; font-weight:550; }
.purchase-controls { display:flex; gap:12px; align-items:stretch; }
.quantity-stepper { display:flex; border:1px solid #bfc9c2; border-radius:5px; overflow:hidden; flex-shrink:0; }
.quantity-stepper button { width:37px; padding:0; font-size:1.1rem; background:#f8f9f8; }
.quantity-stepper input { width:62px; border:0; border-inline:1px solid var(--border); text-align:center; padding:8px 2px; appearance:textfield; -moz-appearance:textfield; }
.quantity-stepper input::-webkit-inner-spin-button { -webkit-appearance:none; }
.purchase-controls > .button { flex:1; gap:16px; padding:13px 16px; }
.purchase-panel .line-total { margin-top:12px; }
.purchase-panel .form-note { margin:14px 0 0; }
.added-notice { margin-top:15px; padding:13px; background:#f0f6ec; color:#355628; border:1px solid #d3e0cb; border-radius:4px; font-size:.8125rem; }
.added-notice a { font-weight:650; text-decoration:underline; white-space:nowrap; }
.product-highlights { margin:24px 0 8px; padding-left:20px; font-size:.875rem; color:#4f5853; line-height:1.85; }
.product-sections-nav { display:flex; flex-wrap:wrap; gap:30px; margin-top:48px; padding:0 0 12px; border-bottom:1px solid var(--border); }
.product-sections-nav a { display:flex; min-height:44px; align-items:center; font-size:.875rem; font-weight:600; }
.product-sections-nav a:hover { color:var(--accent-ink); text-decoration:underline; }
.product-information { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px 64px; padding-top:36px; }
.product-information h2 { font-size:1.5rem; letter-spacing:-.5px; margin:10px 0 18px; }
.product-information p { font-size:.9375rem; }
.product-information .form-note { font-size:.8125rem; }
.specification-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.specification-table th,.specification-table td { padding:13px 12px; text-align:left; border-bottom:1px solid var(--border); vertical-align:top; }
.specification-table th { width:43%; font-weight:550; background:#f7f8f7; }
.document-section { grid-column:1/-1; border:1px solid var(--border); border-radius:5px; padding:22px 26px; }
.document-section p:last-child { margin-bottom:0; }
.related-products { border-top:1px solid var(--border); margin-top:46px; padding-top:36px; }
.related-products .section-heading h2 { font-size:1.6rem; }
.related-products .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.commerce-page { padding-top:35px; padding-bottom:70px; min-height:60vh; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:32px; }
.page-heading h1,.account-welcome h1,.confirmation-heading h1,.trade-application-content h1 { font-size:clamp(2rem,4vw,3.4rem); line-height:1.15; letter-spacing:-1.4px; margin:12px 0 14px; }
.page-heading p { color:var(--muted); margin:0; }
.empty-state { padding:52px 30px; text-align:center; background:#f5f7f5; border:1px solid var(--border); border-radius:6px; }
.empty-state .eyebrow { justify-content:center; }
.empty-state h2 { font-size:1.8rem; margin-top:18px; }
.empty-state p { color:var(--muted); max-width:560px; margin:0 auto 25px; }
.order-layout { display:grid; grid-template-columns:minmax(0,1fr) 355px; gap:36px; align-items:start; }
.order-summary { border:1px solid var(--border); border-radius:6px; padding:26px; background:#f7f8f6; }
.order-summary h2 { font-size:1.5rem; letter-spacing:-.7px; margin:15px 0 24px; }
.summary-row { display:flex; justify-content:space-between; gap:20px; font-size:.8125rem; margin:17px 0; }
.summary-row > :last-child { text-align:right; }
.summary-row strong { font-size:1rem; white-space:nowrap; }
.order-summary .button { font-size:.875rem; }
.order-summary .form-note { margin-top:22px; }
.order-list-labels { display:grid; grid-template-columns:1fr 100px 110px; gap:20px; font-size:.6875rem; text-transform:uppercase; letter-spacing:1px; color:var(--muted); padding:0 0 14px; }
.order-list-labels > :last-child { text-align:right; }
.order-line { display:grid; grid-template-columns:84px minmax(0,1fr) 100px 110px; gap:20px; align-items:start; border-top:1px solid var(--border); padding:22px 0; }
.order-line-image { display:block; aspect-ratio:1; background:#eceeef; border-radius:4px; overflow:hidden; }
.order-line-image img { display:block; width:100%; height:100%; object-fit:contain; }
.order-line-info h2 { font-size:1rem; letter-spacing:-.2px; line-height:1.35; margin:4px 0 8px; }
.order-line-info h2 a:hover { text-decoration:underline; }
.order-line-info p { font-size:.75rem; color:var(--muted); margin:0; }
.order-line-info .small-action { margin-top:4px; }
.order-line-quantity input { width:100%; padding:8px 10px; border:1px solid #bbc8bf; border-radius:4px; }
.order-line-quantity small { font-size:.6875rem; color:var(--muted); display:block; margin-top:5px; }
.order-line-total { text-align:right; font-size:.9375rem; padding-top:10px; white-space:nowrap; }
.order-line-quantity .form-error { font-size:.6875rem; line-height:1.4; margin:5px 0 0; }
.inline-notice,.undo-notice { padding:13px 17px; font-size:.875rem; border:1px solid var(--accent-border); background:var(--accent-soft); border-radius:5px; margin:0 0 22px; }
.undo-notice { display:flex; align-items:center; gap:16px; }
.request-section { padding-bottom:25px; margin-bottom:28px; border-bottom:1px solid var(--border); }
.request-section h2 { font-size:1.6rem; margin:13px 0 20px; }
.request-section p { font-size:.875rem; color:var(--muted); }
.request-section .field small { display:inline; }
.request-line { display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); padding:15px 0; font-size:.8125rem; }
.request-line > span { display:flex; flex-direction:column; gap:5px; }
.request-line > strong { white-space:nowrap; }
.request-line small { color:var(--muted); }
.summary-total { margin-top:24px; }
.confirmation-heading { padding:5px 0 36px; max-width:820px; }
.confirmation-heading h1 { margin-top:20px; }
.confirmation-heading p { color:var(--muted); }
.confirmation-heading .status-icon { margin-bottom:22px; }
.request-reference { display:inline-block; font-size:.8125rem; border:1px solid var(--border); background:var(--soft); border-radius:4px; padding:8px 12px; }
.account-facts { margin:0 0 30px; }
.account-facts > div { display:grid; grid-template-columns:145px minmax(0,1fr); gap:20px; padding:13px 0; border-bottom:1px solid var(--border); font-size:.875rem; }
.account-facts dt { color:var(--muted); }
.account-facts dd { margin:0; overflow-wrap:anywhere; }
.preserve-lines { white-space:pre-wrap; }
.account-welcome { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:70px; align-items:start; }
.account-welcome > div > p { max-width:640px; color:var(--muted); }
.account-login { margin:28px 0 18px; border:1px solid var(--border); padding:24px; border-radius:6px; }
.account-login > p { font-size:.8125rem; margin:15px 0; color:var(--muted); }
.auth-layout { grid-template-columns:minmax(0,580px) minmax(280px,340px); justify-content:space-between; }
.auth-heading > p { color:var(--muted); max-width:560px; }
.auth-heading h1 { font-size:clamp(2rem,4vw,3.4rem); line-height:1.15; letter-spacing:-1.4px; margin:12px 0 14px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; margin-top:30px; border-bottom:1px solid var(--border); }
.auth-tabs button { min-height:48px; padding:10px 14px; border-bottom:3px solid transparent; color:var(--muted); font-weight:650; text-align:center; }
.auth-tabs button[aria-selected="true"] { border-color:var(--accent-surface); color:var(--ink); }
.auth-tabs button:hover { background:var(--soft); color:var(--ink); }
.auth-form { margin-top:0; border-top:0; border-radius:0 0 6px 6px; }
.auth-form .field input { width:100%; }
.auth-form .button[type="submit"] { width:100%; justify-content:center; }
.auth-form-options { display:flex; justify-content:flex-end; margin:-5px 0 18px; }
.auth-form-options .quiet-link,.auth-back { font-size:.8125rem; }
.auth-back { display:flex; margin:18px auto 0; }
.guest-link { margin-top:4px; }
.auth-form button:disabled,.auth-form input:disabled { opacity:.65; cursor:wait; }
.account-side-note { background:var(--soft); padding:28px; border-radius:6px; }
.account-side-note h2 { font-size:1.7rem; margin:17px 0; }
.account-side-note p { font-size:.875rem; }
.account-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.account-cards section { border:1px solid var(--border); border-radius:5px; padding:24px; }
.account-cards h2 { font-size:1.7rem; margin:20px 0 12px; }
.account-cards p { font-size:.875rem; color:var(--muted); margin:0; }
.account-heading { align-items:flex-start; }
.account-logout-button { flex:0 0 auto; }
.current-order-card { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:28px 30px; border:1px solid var(--border); border-radius:7px; background:#fff; }
.current-order-card h2 { margin:10px 0 6px; font-size:1.85rem; }
.current-order-card p { margin:0; color:var(--muted); font-size:.9rem; }
.current-order-card .button { flex:0 0 auto; }
.trade-account-banner { display:flex; align-items:center; justify-content:space-between; gap:35px; margin-bottom:24px; padding:28px 30px; border-radius:7px; }
.trade-account-banner.approved { background:var(--accent-surface); color:var(--on-accent); }
.trade-account-banner.pending { border:1px solid #ead18b; background:#fff6d9; color:#463710; }
.trade-account-banner h2 { margin:10px 0 7px; font-size:1.65rem; }
.trade-account-banner p { margin:0; max-width:700px; font-size:.9rem; }
.trade-account-banner .button { flex:0 0 auto; }
.trade-account-banner.approved .button.dark { background:var(--ink); color:#fff; }
.previous-orders { margin-top:42px; }
.previous-orders .section-heading { align-items:flex-end; }
.previous-orders .section-heading h2 { margin:9px 0 0; }
.request-history { margin-top:48px; }
.request-history h2 { font-size:1.6rem; }
.request-history-row { display:grid; grid-template-columns:1fr auto auto auto; gap:26px; align-items:center; border-bottom:1px solid var(--border); padding:20px 0; font-size:.875rem; }
.request-history-row small { display:block; color:var(--muted); margin-top:5px; }
.empty-history { font-size:.9375rem; padding:28px; background:var(--soft); border-radius:4px; }
.account-upgrade { border-top:1px solid var(--border); margin-top:38px; padding-top:22px; font-size:.875rem; color:var(--muted); }
.account-upgrade a { text-decoration:underline; color:var(--ink); }
.trade-application-content { max-width:880px; margin:0 auto; padding-top:10px; }
.trade-application-content > .eyebrow { color:var(--accent-ink); }
.trade-application-content .form-actions .button.dark { background:var(--accent-surface); color:var(--on-accent); }
.trade-form-section { border:0; border-top:1px solid var(--border); padding:24px 0 5px; margin:26px 0 0; }
.trade-form-section legend { padding:0 14px 0 0; font-family:'Space Grotesk','DM Sans',Arial,sans-serif; font-size:1.15rem; font-weight:600; }
.trade-form-section textarea { min-height:112px; }
.trade-address-toggle { margin:22px 0 4px; padding:14px 16px; background:var(--soft); border-radius:5px; }
.help-layout { display:grid; grid-template-columns:minmax(0,1fr) 365px; gap:70px; align-items:start; }
.help-questions section { margin-bottom:38px; }
.help-questions h2 { font-size:1.55rem; margin-bottom:20px; }
.help-questions details { border-bottom:1px solid var(--border); padding:0 0 16px; margin-bottom:16px; }
.help-questions summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:550; }
.help-questions summary:focus-visible { outline:3px solid var(--accent-ink); outline-offset:3px; }
.help-questions details p { font-size:.875rem; color:var(--muted); padding-top:10px; margin-bottom:10px; }
.enquiry-panel { background:var(--soft); padding:28px; border-radius:6px; }
.enquiry-panel h2 { font-size:1.7rem; margin-top:14px; }
.enquiry-panel p { font-size:.875rem; }
@media (min-width:1101px) { .order-summary { position:sticky; top:24px; } }
@media (max-width:1100px) {
  .header-inner nav { gap:18px; margin-right:0; }
  .header-actions { gap:16px; }
  .single-product-page .product-detail { gap:32px; }
  .purchase-controls { flex-direction:column; }
  .quantity-stepper { align-self:flex-start; }
  .quantity-stepper input { min-height:46px; }
  .order-layout { grid-template-columns:minmax(0,1fr) 300px; gap:24px; }
  .order-summary { padding:22px; }
  .order-line { grid-template-columns:64px minmax(0,1fr) 80px; gap:15px; }
  .order-line-total { grid-column:3; padding-top:0; }
  .order-list-labels { display:none; }
  .account-welcome { grid-template-columns:minmax(0,1fr) 300px; gap:35px; }
  .help-layout { grid-template-columns:minmax(0,1fr) 320px; gap:35px; }
}
@media (max-width:780px) {
  .header-actions { display:contents; }
  .header-actions #account-button { grid-row:1; grid-column:2; justify-self:end; }
  .header-actions #order-link { display:inline-flex; grid-row:2; grid-column:2; justify-self:end; font-size:.8125rem; padding:10px 13px; gap:12px; }
  .header-inner nav { grid-column:1; grid-row:2; border-top:0; margin:0; gap:20px; }
  .header-inner .brand { grid-column:1; grid-row:1; width:200px; }
  .header-inner { row-gap:18px; padding-bottom:18px; }
  .single-product-page .product-detail { grid-template-columns:1fr; gap:25px; }
  .product-gallery { max-width:550px; width:100%; margin-inline:auto; }
  .single-product-page h1 { font-size:2.2rem; max-width:650px; }
  .purchase-controls { flex-direction:row; }
  .quantity-stepper { align-self:stretch; }
  .product-information { gap:28px; }
  .product-sections-nav { gap:24px; margin-top:32px; }
  .order-layout { grid-template-columns:1fr; gap:24px; }
  .order-summary { max-width:none; }
  .order-line { grid-template-columns:75px minmax(0,1fr) 100px 100px; gap:16px; }
  .order-line-total { grid-column:auto; padding-top:10px; }
  .ordering-steps { gap:22px; }
  .ordering-steps li { padding-left:16px; }
  .ordering-steps p { font-size:.8125rem; }
  .account-welcome { grid-template-columns:1fr; gap:30px; }
  .trade-account-banner,.current-order-card { align-items:flex-start; }
  .account-cards { gap:12px; }
  .account-cards section { padding:18px; }
  .account-cards h2 { font-size:1.45rem; }
  .help-layout { grid-template-columns:1fr; gap:15px; }
  .related-products .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .commerce-page { padding-top:28px; padding-bottom:45px; }
}
@media (max-width:560px) {
  .header-inner .brand { width:min(180px,48vw); }
  .header-actions #account-button { min-width:0; }
  .header-actions #account-button svg { width:18px; height:18px; }
  .header-inner nav { gap:20px; font-size:.8125rem; }
  .header-actions #order-link { min-width:124px; }
  .header-actions .account-label small { max-width:118px; }
  .concept-caption { flex-wrap:wrap; gap:6px; }
  .concept-caption > span:last-child { font-size:.6875rem; }
  .catalog-search-row { flex-direction:column; align-items:stretch; gap:14px; margin:20px 0; }
  .sort-field { width:100%; }
  .sort-field select { padding-block:10px; }
  .gallery-caption { font-size:.6875rem; }
  .gallery-main img { inset:8px; width:calc(100% - 16px); height:calc(100% - 16px); }
  .single-product-page h1 { font-size:1.95rem; }
  .single-product-page .detail-right .eyebrow { font-size:.65rem; }
  .purchase-controls { flex-wrap:wrap; }
  .purchase-controls > .button { font-size:.8125rem; padding-inline:12px; }
  .quantity-stepper button { width:31px; }
  .quantity-stepper input { width:50px; }
  .product-information { grid-template-columns:1fr; gap:24px; }
  .product-sections-nav { gap:8px 24px; }
  .product-sections-nav a { font-size:.8125rem; }
  .document-section { padding:20px; }
  .related-products .product-grid { grid-template-columns:1fr; }
  .related-products .section-heading { gap:10px; }
  .order-line { grid-template-columns:64px minmax(0,1fr) 80px; gap:12px; }
  .order-line-total { grid-column:2/4; padding-top:0; }
  .order-line-info h2 { font-size:.875rem; }
  .order-line-info .product-meta { font-size:.625rem; }
  .order-line-quantity input { padding-inline:7px; }
  .order-summary { padding:22px; }
  .page-heading { align-items:flex-start; margin-bottom:25px; }
  .account-heading { flex-direction:column; }
  .account-logout-button { width:100%; justify-content:center; }
  .trade-account-banner,.current-order-card { flex-direction:column; gap:20px; padding:22px; }
  .trade-account-banner .button,.current-order-card .button { width:100%; justify-content:center; }
  .page-heading h1,.account-welcome h1,.confirmation-heading h1,.trade-application-content h1 { font-size:2.1rem; }
  .empty-state { padding:36px 22px; }
  .empty-state h2 { font-size:1.6rem; }
  .account-cards { grid-template-columns:1fr; }
  .account-cards h2 { margin-top:12px; }
  .request-history-row { grid-template-columns:1fr auto; gap:10px 20px; font-size:.8125rem; }
  .request-history-row > .quiet-link { font-size:.8125rem; }
  .account-facts > div { grid-template-columns:1fr; gap:5px; }
  .account-login,.account-side-note,.enquiry-panel { padding:22px; }
  .ordering-steps { grid-template-columns:1fr; gap:25px; }
  .ordering-steps li { padding-left:22px; }
  .ordering-steps li > span { margin-bottom:8px; }
  .ordering-section { padding-bottom:32px; }
  .site-footer { grid-template-columns:1fr; gap:25px; }
  .site-footer .footer-preview { flex-direction:column; align-items:flex-start; gap:12px; }
  .site-footer .footer-preview .text-button { width:auto; margin-left:0; }
  .dialog:has(.image-viewer) { padding:20px; }
  .image-viewer > img { height:60vh; }
}

/* Product selection and the shared order drawer. */
.category-filter { display:grid; grid-template-columns:210px minmax(0,1fr); gap:26px; align-items:start; margin:0 0 20px; padding:22px; background:#f6f7f5; border:1px solid var(--border); border-radius:9px; }
.category-filter-heading h2 { margin:8px 0 0; font-size:1.25rem; letter-spacing:-.35px; }
.category-filter .categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; width:auto; overflow:visible; }
.category-filter .category { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:52px; padding:11px 13px; border:1px solid #dce1dc; border-radius:6px; background:#fff; text-align:left; font-size:.8125rem; white-space:normal; }
.category-filter .category:after { display:none; }
.category-filter .category:hover { border-color:#a9b2aa; }
.category-filter .category.active { color:#fff; background:var(--ink); border-color:var(--ink); }
.category-filter .category-name { display:block; margin:0; padding:0; border-radius:0; background:transparent; color:inherit; font-size:.8125rem; line-height:1.25; }
.category-filter .category-count { display:grid; place-items:center; min-width:25px; height:25px; margin:0; padding:0 6px; border-radius:50%; background:#eef1ee; color:var(--ink); font-size:.75rem; }
.category-filter .category.active .category-count { background:var(--accent-surface); color:var(--on-accent); }
.catalog-results-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 18px; color:var(--muted); font-size:.8125rem; }
.catalog-results-bar strong { color:var(--ink); font-size:.875rem; }
.product-card .product-image { aspect-ratio:1.45; border:1px solid #e5e8e4; border-radius:8px; background:#fff; }
.product-card .product-image img { box-sizing:border-box; padding:18px; object-fit:contain; object-position:center; }
.product-card .product-image:hover img { transform:none; }
.product-card { display:flex; flex-direction:column; }
.product-card .product-bottom { margin-top:auto; }
.product-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:24px; background:linear-gradient(145deg,#f3f5f2,#e7ebe7); color:#556159; text-align:center; }
.product-placeholder:before { content:'L'; display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:var(--ink); color:var(--accent-surface); font:700 1.25rem 'Space Grotesk',sans-serif; }
.product-placeholder > span { font-size:.6875rem; letter-spacing:.12em; font-weight:700; }
.product-placeholder strong { font:600 1rem 'Space Grotesk',sans-serif; color:var(--ink); }
.product-placeholder small { font-size:.75rem; }
.availability-badge { position:absolute; left:12px; top:12px; z-index:2; padding:6px 9px; border-radius:999px; background:#eef1ee; color:#425048; font-size:.6875rem; font-weight:700; box-shadow:0 1px 3px #17201814; }
.availability-badge.available { background:#e9f5df; color:#315f2c; }
.availability-badge.incoming { background:#fff1ca; color:#735619; }
.availability-badge.enquire { background:#eef1ee; color:#566158; }
.product-card .product-meta { font-size:.75rem; letter-spacing:.035em; }
.product-card .product-description { font-size:.875rem; }
.product-card .price-row { flex-wrap:wrap; gap:6px 16px; }
.product-card .price-kind { font-size:.8125rem; }
.product-bottom .quick-add { background:var(--accent-surface); border-color:var(--accent-surface); color:var(--on-accent); font-size:.875rem; }
.product-bottom .quick-add:hover { background:var(--accent-hover); }
.product-card h3 { margin-bottom:8px; }
.single-product-page .product-detail { grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:48px; }
.single-product-page h1 { font-size:clamp(2rem,2.8vw,2.65rem); margin:12px 0 22px; }
.single-product-page .detail-right > .eyebrow { font-size:.8125rem; letter-spacing:.035em; }
.gallery-main { aspect-ratio:1.45; background:#fff; border-radius:10px; }
.gallery-main img { inset:0; width:100%; height:100%; box-sizing:border-box; padding:24px; object-fit:contain; object-position:center; }
.gallery-main.gallery-placeholder { cursor:default; }
.gallery-main .product-placeholder { border-radius:9px; }
.gallery-caption,.gallery-enlarge { font-size:.875rem; }
.product-availability { display:inline-flex; align-items:center; flex-wrap:wrap; gap:7px 11px; margin:-8px 0 22px; padding:7px 11px; border-radius:999px; background:#eef1ee; color:#455149; font-size:.8125rem; font-weight:700; }
.product-availability span { color:var(--muted); font-weight:400; }
.product-availability.available { background:#e9f5df; color:#315f2c; }
.product-availability.incoming { background:#fff1ca; color:#735619; }
.key-specs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.key-specs > div { border-left:2px solid var(--accent-surface); padding-left:12px; }
.key-specs dt { color:var(--muted); font-size:.875rem; }
.key-specs dd { margin:5px 0 0; font-weight:600; font-size:1rem; overflow-wrap:anywhere; }
.buying-area { padding:24px; border:1px solid var(--border); border-radius:8px; background:#fafbf8; }
.buying-area .price-kind { font-size:.875rem; }
.buying-area .detail-price { font-size:2.5rem; }
.buying-area .tax-note,.buying-area .trade-login-note { font-size:.875rem; }
.buying-area .tax-note { margin-bottom:12px; }
.buying-area .trade-login-note { margin:12px 0 0; }
.buying-area .purchase-panel { margin-top:18px; padding-top:18px; }
.buying-area .purchase-controls { flex-direction:row; flex-wrap:wrap; }
.buying-area .purchase-controls > .button { white-space:nowrap; }
.buying-area .line-total { background:white; border:1px solid var(--border); }
.buying-area .price-table { width:100%; margin:18px 0 0; border-collapse:collapse; }
.buying-area .price-table caption { text-align:left; font-size:.875rem; margin-bottom:8px; }
.buying-area .price-table td,.buying-area .price-table th { padding:8px 12px; }
.buying-area .price-table td:last-child,.buying-area .price-table th:last-child { text-align:right; }
.buying-area .price-table .selected-row { background:var(--accent-soft); font-weight:700; box-shadow:inset 3px 0 var(--accent-ink); }
.buying-support { display:flex; flex-wrap:wrap; gap:6px 24px; padding-top:16px; }
.product-information .document-section { grid-column:auto; }
.delivery-section { border:1px solid var(--border); border-radius:5px; padding:22px 26px; }
.product-information .product-highlights { margin:18px 0; }
.mobile-purchase { display:none; }
body:has(#app-dialog[open]) { overflow:hidden; }
.dialog:has(.order-drawer) { inset:0 0 0 auto; margin:0; padding:0; width:min(520px,100%); max-width:100%; height:100dvh; max-height:100dvh; border:0; border-radius:0; box-shadow:-20px 0 80px #17201826; }
.dialog:has(.order-drawer)::backdrop { background:#17201866; }
.dialog:has(.order-drawer) .close-dialog { top:20px; right:20px; z-index:2; }
.dialog:has(.order-drawer) #dialog-content { height:100%; }
.order-drawer { display:flex; flex-direction:column; height:100%; }
.drawer-heading { padding:30px 28px 20px; border-bottom:1px solid var(--border); }
.drawer-heading .eyebrow { font-size:.75rem; }
.drawer-heading h2 { font-size:1.8rem; margin:12px 40px 8px 0; }
.drawer-heading h2 span { display:inline-grid; place-items:center; min-width:32px; padding:4px 8px; border-radius:5px; background:var(--accent-surface); font:600 .875rem 'DM Sans',Arial,sans-serif; vertical-align:middle; }
.drawer-heading p { font-size:.875rem; color:var(--muted); margin:0; }
.drawer-added { background:var(--accent-soft); padding:12px 28px; margin:0; font-size:.875rem; border-bottom:1px solid var(--accent-border); }
.drawer-body { flex:1; overflow-y:auto; padding:0 28px; min-height:0; overscroll-behavior:contain; }
.drawer-line { display:grid; grid-template-columns:76px minmax(0,1fr) auto; gap:14px; padding:24px 0; border-bottom:1px solid var(--border); align-items:start; }
.drawer-image { background:#eceeef; border-radius:6px; overflow:hidden; }
.drawer-image img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.compact-placeholder { display:grid; place-items:center; width:100%; aspect-ratio:1; background:var(--ink); color:var(--accent-surface); font:700 1.2rem 'Space Grotesk',sans-serif; }
.drawer-line .product-meta { margin:0; font-size:.75rem; }
.drawer-product h3 { font-size:1rem; margin:4px 0 8px; }
.drawer-product h3 a:hover { text-decoration:underline; }
.drawer-product p { color:var(--muted); font-size:.875rem; margin:0 0 10px; }
.drawer-line > strong { white-space:nowrap; font-size:.9375rem; }
.drawer-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:.875rem; }
.drawer-controls input { width:76px; padding:8px; border:1px solid #aab5a9; border-radius:4px; background:white; }
.drawer-controls .small-action { font-size:.875rem; text-decoration:underline; }
.drawer-product .form-error { color:#b42318; margin:8px 0 0; }
.drawer-footer { padding:20px 28px max(16px,env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:#fafbf8; }
.drawer-subtotal { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.drawer-subtotal small { display:block; color:var(--muted); font-size:.8125rem; margin-top:3px; }
.drawer-subtotal strong { font-size:1.55rem; }
.drawer-footer p { color:var(--muted); font-size:.875rem; margin:12px 0 16px; }
.drawer-continue { display:flex; margin:8px auto 0; }
.drawer-empty { padding:40px 0; }
.drawer-empty p { color:var(--muted); }
@media (max-width:900px) {
  .category-filter { grid-template-columns:1fr; }
  .category-filter .categories { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .single-product-page .product-detail { gap:28px; }
  .key-specs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .buying-area { padding:20px; }
}
@media (max-width:780px) {
  .category-filter .categories { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .single-product-page .product-detail { grid-template-columns:1fr; }
  .key-specs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body[data-page="single-product"] { padding-bottom:100px; }
  .mobile-purchase { display:flex; align-items:center; justify-content:space-between; gap:16px; position:fixed; bottom:0; left:0; right:0; z-index:20; padding:12px 20px max(12px,env(safe-area-inset-bottom)); background:#fffffff5; border-top:1px solid var(--border); box-shadow:0 -4px 24px #1720180c; }
  .mobile-purchase > div { display:flex; flex-direction:column; }
  .mobile-purchase span { font-size:1.3rem; font-weight:700; }
  .mobile-purchase small { font-size:.75rem; color:var(--muted); }
  .mobile-purchase .button { font-size:.875rem; padding:14px 18px; }
  body:has(#app-dialog[open]) .mobile-purchase { visibility:hidden; }
  body[data-page="single-product"] .toast { bottom:100px; }
}
@media (max-width:560px) {
  .category-filter { margin-inline:-6px; padding:17px; }
  .category-filter .categories { grid-template-columns:1fr 1fr; gap:7px; }
  .category-filter .category { min-height:48px; padding:9px 10px; }
  .catalog-results-bar { align-items:flex-start; }
  .catalog-results-bar span { max-width:220px; text-align:right; }
  .key-specs { gap:10px; }
  .key-specs > div { padding-left:8px; }
  .key-specs dt { font-size:.8125rem; }
  .key-specs dd { font-size:.9375rem; }
  .product-information .document-section { grid-column:1/-1; }
  .gallery-main img { inset:0; width:100%; height:100%; padding:14px; }
  .gallery-caption { font-size:.8125rem; }
  .drawer-heading { padding:26px 20px 18px; }
  .drawer-added { padding:12px 20px; }
  .drawer-body { padding:0 20px; }
  .drawer-line { grid-template-columns:60px minmax(0,1fr); gap:12px; }
  .drawer-line > strong { grid-column:2; }
  .drawer-footer { padding:16px 20px max(12px,env(safe-area-inset-bottom)); }
  .mobile-purchase { padding-inline:16px; gap:10px; }
  .mobile-purchase .button { padding-inline:12px; }
}
@media (prefers-reduced-motion:no-preference) { .dialog[open]:has(.order-drawer) { animation:drawer-in .2s ease-out; } }
@keyframes drawer-in { from { transform:translateX(100%); } to { transform:translateX(0); } }
