/* All rules require the opt-in body class. Existing price and variation logic remain authoritative. */
.nmd-catalogue-preview{--nmd-ink:#252529;--nmd-muted:#66645f;--nmd-paper:#faf8f3;--nmd-line:#dedbd3;--nmd-gold:#a58c58;color:var(--nmd-ink);font-family:Poppins,sans-serif}
.nmd-catalogue-preview :is(button,input,select,textarea){font:inherit}
.nmd-catalogue-preview :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--nmd-ink);outline-offset:4px}
.nmd-catalogue-preview :is(.page-header,.shop-header){background:var(--nmd-paper)!important;background-image:none!important;color:var(--nmd-ink)!important;padding-block:28px!important;min-height:0!important}
.nmd-catalogue-preview :is(.page-header,.shop-header)::before{display:none!important}
.nmd-catalogue-preview :is(.page-header,.shop-header) :is(h1,a,.breadcrumbs){color:var(--nmd-ink)!important;text-shadow:none}
.nmd-catalogue-preview .site-content{padding-top:28px}
.nmd-catalogue-preview :is(.woocommerce-ordering select,.nomad-category-navigation select){min-height:48px;border:1px solid var(--nmd-line);border-radius:8px;background:white;color:var(--nmd-ink);padding:10px 14px;max-width:100%}
.nmd-catalogue-preview ul.products li.product{min-width:0;text-align:left!important;margin-bottom:30px}
.nmd-catalogue-preview ul.products li.product :is(.product-inner,.product-summary){text-align:left!important}
.nmd-catalogue-preview ul.products li.product img{aspect-ratio:1;object-fit:contain;background:var(--nmd-paper);border-radius:10px}
.nmd-catalogue-preview ul.products li.product :is(h2,h3,.woocommerce-loop-product__title){font-size:16px!important;line-height:1.55!important;font-weight:500!important;letter-spacing:-.2px;overflow-wrap:anywhere;margin-block:14px 8px!important}
.nmd-catalogue-preview ul.products li.product .price{font-size:17px!important;line-height:1.5;display:block;color:var(--nmd-ink)!important;margin-top:12px}
.nmd-catalogue-preview .price del{font-size:.82em;color:var(--nmd-muted);opacity:1}
.nmd-catalogue-preview .price ins{text-decoration:none;font-weight:600}
.nmd-catalogue-preview .nmd-specs{display:grid;gap:8px;margin:12px 0;font-size:12px;line-height:1.6;color:var(--nmd-muted)}
.nmd-catalogue-preview .nmd-specs div{min-width:0}.nmd-catalogue-preview .nmd-specs dt{font-weight:400}.nmd-catalogue-preview .nmd-specs dd{margin:0;color:var(--nmd-ink);overflow-wrap:anywhere}
.nmd-catalogue-preview .summary .nmd-specs{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));padding-block:16px;border-block:1px solid var(--nmd-line);font-size:13px}
.nmd-catalogue-preview .product_title{font-size:clamp(24px,3vw,36px)!important;line-height:1.3!important;letter-spacing:-.7px;font-weight:500!important}
.nmd-catalogue-preview .summary{min-width:0}.nmd-catalogue-preview .summary>.price{font-size:24px!important;line-height:1.5}
.nmd-catalogue-preview .woocommerce-product-details__short-description{font-size:14px;line-height:1.8;max-width:65ch}
.nmd-catalogue-preview .variations{display:block;width:100%;border:0}.nmd-catalogue-preview .variations tbody{display:grid;gap:20px;width:100%}
.nmd-catalogue-preview .variations tr{display:grid;gap:8px}.nmd-catalogue-preview .variations :is(th,td){display:block;padding:0!important;text-align:left;border:0}
.nmd-catalogue-preview .variations select{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--nmd-line);border-radius:8px;background:white}
.nmd-catalogue-preview :is(.single_add_to_cart_button,.nmd-purchase-jump){min-height:48px;border-radius:8px!important;background:var(--nmd-ink)!important;color:white!important;padding:12px 20px!important;line-height:1.4;border:0;cursor:pointer}
.nmd-catalogue-preview .single_add_to_cart_button:disabled{opacity:.5;cursor:not-allowed}
.nmd-catalogue-preview .woocommerce-product-gallery img{border-radius:10px}.nmd-catalogue-preview .woocommerce-product-gallery__wrapper{margin:0}
.nmd-catalogue-preview .flex-control-thumbs{display:flex!important;gap:8px;overflow:auto;scroll-snap-type:x proximity;padding-bottom:6px!important}
.nmd-catalogue-preview .flex-control-thumbs li{flex:0 0 64px!important;float:none!important;scroll-snap-align:start}
.nmd-catalogue-preview .flex-control-thumbs img{aspect-ratio:1;object-fit:cover}
.nmd-catalogue-preview .nmd-details{border-top:1px solid var(--nmd-line);padding-block:18px}.nmd-catalogue-preview .nmd-details:last-child{border-bottom:1px solid var(--nmd-line)}
.nmd-catalogue-preview .nmd-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:17px;font-weight:500;list-style:none}
.nmd-catalogue-preview .nmd-details summary::-webkit-details-marker{display:none}.nmd-catalogue-preview .nmd-details summary::after{content:'+';font-size:24px;font-weight:400}.nmd-catalogue-preview .nmd-details[open] summary::after{content:'−'}
.nmd-catalogue-preview .nmd-details-content{padding-top:16px;line-height:1.8;font-size:14px;overflow-wrap:anywhere}
.nmd-catalogue-preview .nmd-details-content :is(table,img,video){max-width:100%}.nmd-catalogue-preview .nmd-details-content table{display:block;overflow:auto}
.nmd-catalogue-preview .nmd-preview-notice{position:fixed;top:0;left:0;z-index:999999;background:#252529;color:white;padding:5px 12px;font-size:11px}.nmd-catalogue-preview .nmd-preview-notice a{color:white;text-decoration:underline}
.nmd-catalogue-preview .nmd-purchase-bar{display:none}
@media(max-width:767px){
 .nmd-catalogue-preview .site-content{padding-top:18px}.nmd-catalogue-preview .woocommerce-breadcrumb{font-size:11px;line-height:1.7;margin-bottom:16px}
 .nmd-catalogue-preview ul.products:not(.owl-carousel){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px!important;margin:0!important}
 .nmd-catalogue-preview ul.products:not(.owl-carousel)::before,.nmd-catalogue-preview ul.products:not(.owl-carousel)::after{display:none!important}
 .nmd-catalogue-preview ul.products:not(.owl-carousel)>li.product{width:auto!important;float:none!important;padding:0!important;margin:0!important}
 .nmd-catalogue-preview ul.products li.product :is(h2,h3,.woocommerce-loop-product__title){font-size:14px!important;line-height:1.5!important}
 .nmd-catalogue-preview ul.products li.product .price{font-size:16px!important}.nmd-catalogue-preview .nmd-specs{font-size:11px}
 .nmd-catalogue-preview .woocommerce-product-gallery{width:100%!important;float:none!important;margin-bottom:24px!important}
 .nmd-catalogue-preview .woocommerce-product-gallery__image img{max-height:54svh;width:100%;object-fit:contain}
 .nmd-catalogue-preview .summary{width:100%!important;float:none!important;margin-bottom:32px}
 .nmd-catalogue-preview .nmd-purchase-bar:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;z-index:9990;bottom:0;inset-inline:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--nmd-line);box-shadow:0 -6px 24px #2525290c}
 .nmd-catalogue-preview .nmd-purchase-bar>div{min-width:0}.nmd-catalogue-preview .nmd-purchase-name{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:46vw;font-size:11px}.nmd-catalogue-preview .nmd-purchase-price{font-size:15px;font-weight:500;line-height:1.5}
 .nmd-catalogue-preview .nmd-purchase-jump{flex-shrink:0;font-size:12px}
 .nmd-catalogue-preview.nmd-has-purchase-bar{padding-bottom:110px}
 .nmd-catalogue-preview.nmd-has-purchase-bar :is(#qlwapp.qlwapp-bottom-right,.qlwapp__container--bottom-right,#gotop){bottom:calc(110px + env(safe-area-inset-bottom))!important}
}
@media(max-width:359px){.nmd-catalogue-preview ul.products:not(.owl-carousel){grid-template-columns:1fr}.nmd-catalogue-preview ul.products li.product :is(h2,h3,.woocommerce-loop-product__title){font-size:17px!important}}
@media(prefers-reduced-motion:reduce){.nmd-catalogue-preview *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}



/* 0.2: catalogue polish. No animated layout, hidden titles, price or form replacement. */
.nmd-catalogue-preview{--nmd-paper:#f8f6f1;--nmd-line:#e5e1d9;--nmd-muted:#64615a}
.nmd-catalogue-preview :is(.product_title,.woocommerce-loop-product__title){text-wrap:pretty}
.nmd-catalogue-preview :is(button,a,input,select,summary){touch-action:manipulation;-webkit-tap-highlight-color:#a58c5826}
.nmd-catalogue-preview :is(.price,.woocommerce-result-count){font-variant-numeric:tabular-nums}
.nmd-catalogue-preview :is(.page-header,.shop-header){padding-block:32px!important;text-align:left!important;border-bottom:1px solid var(--nmd-line)}
.nmd-catalogue-preview :is(.page-header,.shop-header) h1{font-weight:500;letter-spacing:-.8px;line-height:1.2;text-align:left!important}
.nmd-catalogue-preview .woocommerce-result-count{font-size:12px;color:var(--nmd-muted)}
.nmd-catalogue-preview .woocommerce-ordering{max-width:100%}
.nmd-catalogue-preview .woocommerce-breadcrumb{max-width:78ch;line-height:1.8;overflow-wrap:anywhere}
.nmd-catalogue-preview ul.products li.product{align-self:stretch}
.nmd-catalogue-preview ul.products li.product .product-inner{height:100%;display:flex;flex-direction:column}
.nmd-catalogue-preview ul.products li.product :is(.product-summary,.product-content){flex:1;display:flex;flex-direction:column;align-items:flex-start}
.nmd-catalogue-preview ul.products li.product :is(.product-summary,.product-content) .price{margin-top:auto;padding-top:12px}
/* Sober renders title and price as direct siblings; retain its native column widths. */
.nmd-catalogue-preview ul.products:not(.owl-carousel){display:flex;flex-wrap:wrap}
.nmd-catalogue-preview ul.products:not(.owl-carousel)::before,.nmd-catalogue-preview ul.products:not(.owl-carousel)::after{display:none}
.nmd-catalogue-preview ul.products:not(.owl-carousel)>li.product{display:flex;flex-direction:column}
.nmd-catalogue-preview ul.products:not(.owl-carousel)>li.product>.product-header{flex:none;width:100%}
.nmd-catalogue-preview ul.products:not(.owl-carousel)>li.product>.price{margin-top:auto!important;padding-top:12px}
.nmd-catalogue-preview ul.products li.product :is(.product-thumbnail,.product-image,.product-header){background:var(--nmd-paper);border-radius:12px;overflow:hidden;isolation:isolate}
.nmd-catalogue-preview ul.products li.product :is(.attachment-woocommerce_thumbnail,.woocommerce-placeholder){border-radius:12px;aspect-ratio:1;object-fit:contain}
.nmd-catalogue-preview ul.products li.product :is(.product-summary,.product-content) img{aspect-ratio:auto;background:transparent;border-radius:0}
.nmd-catalogue-preview .summary :is(input.qty,select,textarea){border-color:var(--nmd-line);min-height:48px;color:var(--nmd-ink);background:#fff}
.nmd-catalogue-preview .summary :is(.quantity,.single_add_to_cart_button){max-width:100%}
.nmd-catalogue-preview :is(.summary form.cart,.woocommerce-Tabs-panel){scroll-margin-top:120px}
.nmd-catalogue-preview .woocommerce-tabs ul.tabs{display:flex!important;gap:24px;overflow-x:auto!important;max-width:100%;scrollbar-width:thin;border-bottom:1px solid var(--nmd-line);padding:0 0 2px!important}
.nmd-catalogue-preview .woocommerce-tabs ul.tabs li{flex:0 0 auto;margin:0!important;padding:0!important;border:0;background:none}
.nmd-catalogue-preview .woocommerce-tabs ul.tabs li a{display:flex;align-items:center;min-height:48px;padding:12px 0;font-size:14px;color:var(--nmd-muted);border-bottom:2px solid transparent}
.nmd-catalogue-preview .woocommerce-tabs ul.tabs li.active a{color:var(--nmd-ink);border-color:var(--nmd-gold)}
.nmd-catalogue-preview .woocommerce-tabs :is(p,li,td,th){font-size:14px;line-height:1.8}
.nmd-catalogue-preview .woocommerce-tabs img{height:auto;max-width:100%}
.nmd-catalogue-preview .woocommerce-product-attributes{width:100%;border-collapse:collapse}
.nmd-catalogue-preview .woocommerce-product-attributes :is(th,td){text-align:left;vertical-align:top;padding:14px 12px;border-bottom:1px solid var(--nmd-line);overflow-wrap:anywhere}
.nmd-catalogue-preview :is(.awf-filter-title,.awf-filters-toggle){color:var(--nmd-ink)}
.nmd-catalogue-preview .awf-active-badge{border-radius:24px;border:1px solid var(--nmd-line);background:var(--nmd-paper);color:var(--nmd-ink)}
@media(min-width:1024px){
 .nmd-catalogue-preview ul.products li.product :is(h2,h3,.woocommerce-loop-product__title){font-size:17px!important;max-width:32ch}
 .nmd-catalogue-preview .summary{padding-inline-start:24px}
 .nmd-catalogue-preview .woocommerce-tabs{margin-top:56px}
}

/* Sober's native gallery uses .images and .thumbnails, not FlexSlider classes. */
.nmd-catalogue-preview div.product .images .woocommerce-product-gallery__slider img{border-radius:10px}
@media(max-width:767px){
 .nmd-catalogue-preview div.product .images .thumbnails{display:flex;gap:8px;width:100%;margin:12px 0 0;padding:0 0 6px;overflow-x:auto;scroll-snap-type:x proximity}
 .nmd-catalogue-preview div.product .images .thumbnails>.woocommerce-product-gallery__image{flex:0 0 64px;width:64px!important;margin:0!important;padding:0!important;float:none;scroll-snap-align:start}
 .nmd-catalogue-preview div.product .images .thumbnails img{width:64px;height:64px;object-fit:cover;border-radius:6px}
}
@media(max-width:767px){
 .nmd-catalogue-preview :is(.page-header,.shop-header){padding-block:22px!important}
 .nmd-catalogue-preview :is(.page-header,.shop-header) h1{font-size:28px!important}
 .nmd-catalogue-preview .summary :is(input,select,textarea){font-size:16px}
 .nmd-catalogue-preview .summary .single_add_to_cart_button{white-space:normal;min-height:50px}
 .nmd-catalogue-preview .woocommerce-tabs{margin-top:28px}
 .nmd-catalogue-preview .woocommerce-tabs ul.tabs{gap:20px}
 .nmd-catalogue-preview .woocommerce-product-attributes :is(th,td){padding:12px 6px;font-size:12px}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .nmd-catalogue-preview ul.products li.product .product-header .attachment-woocommerce_thumbnail{transition:transform 180ms cubic-bezier(.23,1,.32,1)}
 .nmd-catalogue-preview ul.products li.product .product-header:hover .attachment-woocommerce_thumbnail{transform:scale(1.018)}
}

/* Archive banner: the NOMAD charcoal field restores a clear branded opening. */
.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) :is(.page-header,.shop-header){background:#252529!important;color:#faf8f3!important;border-bottom:2px solid #a58c58}
.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) :is(.page-header,.shop-header) :is(h1,a,.breadcrumbs,.breadcrumb){color:#faf8f3!important}

.nmd-catalogue-preview .woocommerce-tabs ul.tabs[hidden]{display:none!important}
.nmd-catalogue-preview .nmd-details-content .container{width:100%;max-width:100%;padding-inline:0}
.nmd-catalogue-preview .summary .nmd-data-hold{clear:both}

/* Archive sort controls keep a consistent width and appearance. */
body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .term-description>p:empty{display:none}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .woocommerce-ordering .select2-container{display:block;width:100%!important;min-width:0;max-width:100%}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .woocommerce-ordering .select2-selection--single{display:block;width:100%;min-width:0;max-width:100%;height:44px;border:1px solid var(--nmd-line);border-radius:8px;background:#fff;color:var(--nmd-ink)}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .woocommerce-ordering .select2-selection__rendered{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:0 30px 0 12px;line-height:42px;color:var(--nmd-ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .woocommerce-ordering .select2-selection__arrow{height:42px;right:8px}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary :is(.shop-toolbar .toggle-filter,.woocommerce-ordering .select2-selection--single):focus-visible{outline:2px solid var(--nmd-ink);outline-offset:2px}
 /* Select2 sets the control width as min-width; stop auto-sizing to the longest option. */
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) :is(.woocommerce-ordering-select2-dropdown,.select2-container:has(>.woocommerce-ordering-select2-dropdown)){width:min-content!important;max-width:calc(100vw - 40px);box-sizing:border-box}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) .woocommerce-ordering-select2-dropdown .select2-results__option{min-height:44px;padding:10px 12px;font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .woocommerce-ordering select:not(.select2-hidden-accessible){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;padding:0 30px 0 12px;border:1px solid var(--nmd-line);border-radius:8px;background-color:#fff;color:var(--nmd-ink);text-overflow:ellipsis}

/* Mobile archives: category choice and one tools row. */
@media(max-width:991px){
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary{display:grid;grid-template-columns:108px minmax(0,1fr);column-gap:10px;row-gap:0;align-items:start}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary>*{grid-column:1/-1;min-width:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .nomad-mobile-category{margin:0 0 10px!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .nomad-mobile-category label{display:none}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .nomad-mobile-category select{min-height:44px;background:#fff}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary>.shop-toolbar.shop-toolbar{grid-column:1;min-height:0;height:44px;margin:0!important;padding:0!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .row{margin:0!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .controls{float:none!important;width:100%!important;padding:0!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control{float:none!important;display:block;width:100%;height:44px;margin:0!important;padding:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control>li{float:none!important;margin:0!important;padding:0!important;border:0!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control>li.totals{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control>li.product-size{display:none!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control>li.filter{display:block;width:100%!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toggle-filter{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:44px;min-height:44px;padding:0 8px;border:1px solid var(--nmd-line);border-radius:8px;background:#fff;color:var(--nmd-ink);font-size:13px!important;font-weight:500!important;white-space:nowrap}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toggle-filter svg{width:17px;height:17px;margin:0;fill:currentColor;stroke:currentColor;flex:none}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary>.woocommerce-ordering{grid-column:2;display:block;float:none!important;width:100%;max-width:none;height:44px;margin:0 0 14px!important;padding:0}
}

/* Desktop archives: one toolbar above the product grid. */
@media(min-width:992px){
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar__tabs::before,body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar__tabs::after{display:none}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary{display:grid;grid-template-columns:minmax(0,1fr) 280px;column-gap:20px;row-gap:0;align-items:start}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary>*{grid-column:1/-1;min-width:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary>.shop-toolbar.shop-toolbar{grid-column:1;min-width:0;min-height:44px;margin:0!important;padding:0!important;border:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar>.row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar :is(.nav-filter,.controls){float:none;width:auto!important;min-width:0;padding:0!important}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .nav-filter{flex:1 1 auto}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .controls{flex:0 0 auto}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .shop-toolbar__tabs{display:flex;align-items:center;gap:20px;min-height:44px;margin:0;padding:0;white-space:nowrap}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .shop-toolbar__tabs>li{float:none;margin:0;padding:0;font-size:14px}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .shop-toolbar__tabs>li>a{display:inline-flex;align-items:center;min-height:44px;color:var(--nmd-ink)}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control{display:flex;align-items:center;min-height:44px;float:none;margin:0;padding:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control>li{float:none;margin:0;padding:0;border:0}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .woocommerce-result-count{margin:0;font-size:12px;color:var(--nmd-muted);white-space:nowrap}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .toolbar-control>li.product-size{display:none}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product):has(#secondary.shop-sidebar) #primary .shop-toolbar .toolbar-control>li.filter{display:none}
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary>.woocommerce-ordering{grid-column:2;display:block;float:none!important;width:100%;min-width:0;max-width:100%;height:44px;margin:0 0 24px!important;padding:0}
}

/* Keep the tablet filter panel anchored to the viewport. */
@media(min-width:768px) and (max-width:991px){
 body.nmd-catalogue-preview:is(.tax-product_cat,.post-type-archive-product) #primary .shop-toolbar .filter-widgets{position:fixed;top:var(--wp-admin--admin-bar--height,0px);right:0;bottom:0;left:auto;width:min(420px,100vw);min-width:0;max-width:100%;height:auto;max-height:none;margin:0;padding:24px;overflow-y:auto;z-index:1600;transform:none}
}
