/* Category composition. Product pages and the shared header keep their own owners. */
body.p-category {
    --catalog-gutter: var(--site-gutter, 32px);
    --catalog-width: var(--site-page-width, 1560px);
    --catalog-gap: 16px;
    --catalog-sidebar: 272px;
    color: var(--p-text);
}
body.p-category .l-site__sections,
body.p-category #content { font-family: var(--p-font-family); }
/* The off-screen disclaimer must not start the legacy Montserrat download. */
body.p-category:not(.mp-storefront) .mp-footer-disclaimer { font-family: var(--p-font-family, Arial, Helvetica, sans-serif); }
/* Lower-section type must be final before their deferred layout styles arrive. */
body.p-category:not(.mp-storefront) .p-category-description__text p,
body.p-category:not(.mp-storefront) .p-category-description__text a,
body.p-category:not(.mp-storefront) .p-category-description__text li,
body.p-category:not(.mp-storefront) .mp-category-faq .content-inner p,
body.p-category:not(.mp-storefront) .mp-category-faq .content-inner a,
body.p-category:not(.mp-storefront) .mp-category-faq .content-inner li,
body.p-category:not(.mp-storefront) .mp-site-footer .mp-footer-list-item,
body.p-category:not(.mp-storefront) .mp-site-footer .mp-footer-link,
body.p-category:not(.mp-storefront) .mp-site-footer .bttn { font-family: var(--p-font-family, Arial, Helvetica, sans-serif); }
body.p-category .l-site__sections { padding-top: 0; }
body.p-category .l-site__sections > .base-container,
body.p-category .l-site__sections > .row,
body.p-category .l-site__sections > .l-content-top {
    width: 100%; max-width: var(--catalog-width); margin: 0 auto; padding-inline: var(--catalog-gutter);
}
body.p-category .l-site__sections > .base-container { padding-top: 20px; }
body.p-category .category-stories:has([id^="widster-"]:empty) { margin-bottom: 0; }
body.p-category .l-site__sections > .l-content-top { overflow: visible; border: 0; }
body.p-category .l-breadcrumb-wrap { margin: 0 0 16px; padding: 0; border: 0; }
body.p-category .l-breadcrumb-wrap::after,
body.p-category .l-breadcrumb-wrap::before { display: none; }
body.p-category .l-breadcrumb { font: 12px/18px var(--p-font-family); text-transform: none; letter-spacing: 0; color: var(--p-text-muted); }
body.p-category .l-breadcrumb a { color: inherit; }
body.p-category .l-heading-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 20px; padding: 0; }
body.p-category .l-heading-wrap h1,
body.p-category .b-content-nav h1 { margin: 0; font: 700 32px/1.2 var(--p-font-family); letter-spacing: -.5px; color: var(--p-text); text-transform: none; }
body.p-category .mp-catalog-count { font: 400 13px/20px var(--p-font-family); color: var(--p-text-muted); letter-spacing: 0; white-space: nowrap; }
body.p-category .l-site__sections > .row { display: flex; flex-wrap: nowrap; gap: 24px; align-items: flex-start; border: 0; }
/* The legacy sibling rule has an ID and otherwise restores its decorative top border. */
body.p-category.mp-storefront .l-site__sections > #notification ~ .row { border-top: 0; }
body.p-category .l-column-left { flex: 0 0 var(--catalog-sidebar); max-width: var(--catalog-sidebar); min-width: 0; padding: 0; border: 0; }
body.p-category .l-main-section { flex: 1 1 0; max-width: none; min-width: 0; padding: 0; border: 0; }
body.p-category #product-container { padding: 0; margin: 0; border: 0; }
body.p-category #product-data { padding: 0; min-width: 0; }
body.p-category .p-category__top { margin: 0 0 18px; padding: 0; border: 0; }
body.p-category .p-category__actions { padding: 0; margin: 0; border: 0; min-height: 44px; }
body.p-category .p-category__actions > .row { margin: 0; gap: 8px; align-items: center; flex-wrap: wrap; }
body.p-category .p-category__actions > .row > .col-7 { padding: 0; flex: 1 1 auto; max-width: none; width: auto; gap: 10px; }
body.p-category .p-category__actions > .row > .col-5 { padding: 0; flex: 0 1 auto; max-width: none; width: auto; margin-left: auto; }
body.p-category .l-sorts { margin: 0; }
body.p-category .l-sorts .selectize-control { min-width: 182px; }
body.p-category .l-sorts--limit .selectize-control { min-width: 132px; }
body.p-category .l-sorts .selectize-input { padding: 11px 32px 11px 13px; border: 1px solid var(--p-border); border-radius: 10px; min-height: 42px; background: var(--p-white); box-shadow: none; font: 13px/18px var(--p-font-family); text-transform: none; letter-spacing: 0; color: var(--p-text); }
body.p-category .l-sorts .selectize-dropdown { border: 1px solid var(--p-border); border-radius: 10px; padding: 5px; box-shadow: 0 8px 24px #17232e14; font: 13px/20px var(--p-font-family); text-transform: none; letter-spacing: 0; }
body.p-category .l-sorts .selectize-dropdown .option,
body.p-category .l-sorts .selectize-dropdown [data-selectable] { padding: 8px; border-radius: 6px; font: inherit; }
body.p-category .l-sorts .selectize-dropdown .active { background: var(--p-green-soft); color: var(--p-green-strong); }
body.p-category .l-sorts .selectize-dropdown { top: 100% !important; margin-top: 6px; max-height: 320px; }
body.p-category .l-sorts .selectize-input:not(.dropdown-active) + .selectize-dropdown { display: none !important; }
body.p-category .l-sorts .selectize-input.dropdown-active + .selectize-dropdown { display: block !important; }
body.p-category .mp-category-list-controls { flex-wrap: wrap; }
body.p-category .mp-category-list-controls .l-sorts { min-width: 224px; max-width: 100%; }
body.p-category .mp-category-list-controls .l-sorts--limit { min-width: 156px; }
body.p-category .p-category-view-switcher { display: flex; gap: 4px; padding: 3px; background: var(--p-surface); border-radius: 10px; }
body.p-category .p-category-view-switcher .item { padding: 8px 10px; border: 0; border-radius: 7px; font: 13px/18px var(--p-font-family); color: var(--p-text-muted); }
body.p-category .p-category-view-switcher .item.active { color: var(--p-green-strong); background: white; }
body.p-category #products.row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--catalog-gap); margin: 0; padding: 0; border: 0; align-items: stretch; }
body.p-category #products > .mp-catalog-card { width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; }
body.p-category.mp-storefront #products > .mp-catalog-card:not(.mp-catalog-card--banner):not(.mp-catalog-card--separator) > .mp-card { padding: 6px; }
body.p-category.mp-storefront #products > .mp-catalog-card:not(.mp-catalog-card--banner):not(.mp-catalog-card--separator) .mp-card__content { padding-inline: 5px; }
body.p-category #products > .category-ajax-separator { grid-column: 1/-1; }
body.p-category .mp-catalog-intro { margin: 28px 0 0; }
body.p-category .mp-catalog-intro:empty { display: none; }
body.p-category .p-category__teaser { padding: 0; margin: 0; color: var(--p-text-muted); font: 14px/1.6 var(--p-font-family); }
body.p-category .p-category__teaser .row { margin: 0; }
body.p-category .p-category__teaser .col-md-9 { padding: 0; max-width: 75ch; flex-basis: auto; }
body.p-category .p-category__teaser p { margin: 0; }
/* The short category introduction belongs to its heading; the full article stays below the products. */
body.p-category .mp-catalog-intro.mp-catalog-intro--top { flex: 0 0 100%; box-sizing: border-box; width: 100%; min-width: 0; margin: 0 0 20px; padding: 0; font: 400 15px/25px var(--p-font-family); }
body.p-category .mp-catalog-intro.mp-catalog-intro--top[hidden] { display: none !important; }
body.p-category .l-heading-wrap:has(+ .mp-catalog-intro--top:not([hidden])) { margin-bottom: 12px; }
body.p-category .mp-catalog-intro--top .p-category__teaser { max-width: none; margin: 0; padding: 0; color: var(--p-text-secondary, #34434b); font: inherit; overflow-wrap: anywhere; }
body.p-category .mp-catalog-intro--top .p-category__teaser .col-md-9 { flex-basis: 100%; max-width: none; }
body.p-category .mp-catalog-intro--top .p-category__teaser a { color: var(--p-green-strong, #0b7c69); text-decoration: underline; text-underline-offset: 3px; }
body.p-category .p-category__subs { margin: 0 0 18px; padding: 0; }
body.p-category .p-category__subs .row { gap: 10px; margin: 0; }
body.p-category .p-category__subs .row > div { padding: 0; flex: 1 1 120px; max-width: 200px; }
body.p-category .p-category__subs .split-card-item { height: 100%; border: 1px solid var(--p-border); padding: 12px; border-radius: 12px; background: var(--p-surface); }
body.p-category .p-category__subs .split-card-item__image { height: 50px; margin: 0 0 8px; }
body.p-category .p-category__subs .split-card-item__image img { max-height: 50px; object-fit: contain; }
body.p-category .p-category__subs .split-card-item__title { font: 600 13px/18px var(--p-font-family); color: var(--p-text); text-transform: none; }
body.p-category .p-category__subs .split-card-sub-text { font: 12px/18px var(--p-font-family); color: var(--p-text-muted); }
body.p-category .l-pagination-wrap { padding: 28px 0; margin: 0; border: 0; }
body.p-category .l-pagintaion-ajax { margin: 0 0 18px; }
body.p-category .l-pagintaion-ajax .js-link { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--p-border-strong); border-radius: 10px; color: var(--p-green-strong); font: 600 14px/20px var(--p-font-family); text-transform: none; letter-spacing: 0; background: white; }
body.p-category .l-pagination { font-family: var(--p-font-family); }
body.p-category .p-category-empty-results { margin: 24px 0; padding: 40px 20px; border-radius: 14px; background: var(--p-surface); }
body.p-category .p-category-empty-results__title { font: 600 22px/28px var(--p-font-family); }
body.p-category .l-content-bottom { margin-top: 32px; }
body.p-category .l-site__sections :focus-visible { outline: 2px solid var(--p-green-hover); outline-offset: 3px; }
body.p-category .l-site__sections ::selection { color: var(--p-text); background: var(--p-selection); }
@media (min-width: 1500px) {
    body.p-category { --catalog-sidebar: 288px; }
    body.p-category #products.row { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
    body.p-category { --catalog-gap: 12px; }
    body.p-category .l-site__sections > .row { gap: 20px; }
    body.p-category { --catalog-sidebar: 248px; }
    body.p-category #products.row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* Mobile is its own composition, with the native filter drawer. */
body.p-category:not(.mp-storefront) { --catalog-gutter: 16px; --catalog-card-edge: 8px; --catalog-gap: 6px; font-family: var(--p-font-family); }
body.p-category:not(.mp-storefront) .b-content-nav { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin: 0; padding: 8px 16px 16px; }
body.p-category:not(.mp-storefront) .b-content-nav h1 { font-size: 26px; line-height: 32px; letter-spacing: -.3px; }
body.p-category:not(.mp-storefront) .b-content-nav .mp-catalog-count { font-size: 12px; }
body.p-category:not(.mp-storefront) .l-highlighted .mp-catalog-discovery { padding-inline: var(--catalog-gutter); }
body.p-category:not(.mp-storefront) .l-content > .base-container { padding-inline: var(--catalog-gutter); }
body.p-category:not(.mp-storefront) #products .products-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px var(--catalog-gap); width: auto; max-width: none; margin: 0 calc(var(--catalog-card-edge) - var(--catalog-gutter)); padding: 0; }
body.p-category:not(.mp-storefront) #products .products-inner > .mp-catalog-card { min-width: 0; width: auto; padding: 0; }
body.p-category:not(.mp-storefront) #products .products-inner > .mp-catalog-card:not(.mp-catalog-card--banner):not(.mp-catalog-card--separator) > .mp-card { padding: 3px; }
body.p-category:not(.mp-storefront) #products .products-inner > .mp-catalog-card:not(.mp-catalog-card--banner):not(.mp-catalog-card--separator) .mp-card__content { padding: 8px 5px 4px; }
body.p-category:not(.mp-storefront) .p-category-actions { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: stretch; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; width: 100%; }
body.p-category:not(.mp-storefront) .l-catalog-sorts { width: 100%; min-width: 0; height: 46px; box-sizing: border-box; border: 1px solid var(--p-border); border-radius: 10px; background: white; }
body.p-category:not(.mp-storefront) .l-catalog-sorts label { display: block; margin: 0; }
body.p-category:not(.mp-storefront) .l-catalog-sorts select { box-sizing: border-box; width: 100%; height: 44px; min-height: 44px; padding: 10px 28px 10px 12px; font: 13px/20px var(--p-font-family); color: var(--p-text); letter-spacing: 0; text-transform: none; background-color: transparent; border: 0; }
body.p-category:not(.mp-storefront) .l-catalog-sorts:has(> .p-calc-select) { height: auto; border: 0; }
body.p-category:not(.mp-storefront) .l-catalog-sorts .p-calc-select__trigger { min-height: 46px; font-size: 13px; }
/* Keep menu options actionable when they cross the floating support button. */
body.p-category:not(.mp-storefront) .p-category-actions .p-calc-select__list { z-index: 1101; }
body.p-category:not(.mp-storefront) .l-catalog-sorts .p-calc-select__list { min-width: 208px; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-action { position: static; flex: none; width: 112px; min-width: 0; height: 46px; border: 0; padding: 0; margin: 0; transform: none; }
body.p-category:not(.mp-storefront) .catalog-view-switcher__filter-link.mp-catalog-filter-link { box-sizing: border-box; position: static; inset: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; height: 46px; min-height: 46px; max-height: none; padding: 0 10px; margin: 0; border: 1px solid var(--p-border); border-radius: 10px; background: white; color: var(--p-green-strong); font: 600 13px/20px var(--p-font-family); text-transform: none; letter-spacing: 0; text-decoration: none; transform: none; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-link::before,
body.p-category:not(.mp-storefront) .mp-catalog-filter-link::after { content: none; display: none; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-label { display: block; flex: none; position: static; padding: 0; margin: 0; white-space: nowrap; font: inherit; line-height: 20px; color: inherit; letter-spacing: 0; text-transform: none; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-icon { position: relative; display: block; flex: 0 0 20px; width: 20px; height: 20px; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-icon > svg { display: block; width: 20px; height: 20px; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-icon .m-results-active { position: absolute; inset: -7px -8px auto auto; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 3px; color: white; background: var(--p-green-strong); font: 600 10px/16px var(--p-font-family); text-align: center; }
body.p-category:not(.mp-storefront) .mp-catalog-filter-icon .m-results-active[data-active="0"] { display: none; }
body.p-category:not(.mp-storefront) .mp-catalog-intro { margin-top: 24px; }
body.p-category:not(.mp-storefront) .mp-catalog-intro.mp-catalog-intro--top { margin: 6px 0 0; }
body.p-category:not(.mp-storefront) .p-category__subs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
body.p-category:not(.mp-storefront) .p-category__subs > a { flex: 0 0 144px; }
body.p-category:not(.mp-storefront) .p-category__subs .split-card-item { padding: 10px; }
@media (max-width: 359px) {
    body.p-category:not(.mp-storefront) { --catalog-gutter: 12px; --catalog-card-edge: 6px; }
    body.p-category:not(.mp-storefront) .b-content-nav { padding-inline: 12px; }
    body.p-category:not(.mp-storefront) .p-category-actions { grid-template-columns: minmax(0, 1fr) 94px; }
    body.p-category:not(.mp-storefront) .mp-catalog-filter-action { width: 94px; }
}

/* Sort and filter remain in the page flow while the product list scrolls. */
@supports (overflow: clip) {
    /* Preserve the horizontal boundary independently of toolbar positioning. */
    body.p-category:not(.mp-storefront) .l-site-wrapper { overflow: clip; }
}
body.p-category:not(.mp-storefront) .p-category-actions {
    position: static;
    top: auto;
    z-index: auto;
    padding-block: 4px;
    background: var(--p-white, #fff);
    transition: none;
}
body.p-category:not(.mp-storefront) .p-category-actions:not(:has(.mp-catalog-filter-action)) { grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) {
    body.p-category:not(.mp-storefront) .p-category-actions { transition: none; }
}
