/*
 * BazaarMed Products Listing Preview — Phase 2 v1.5.9
 * Full-page redesign. Loaded only in the signed sitewide Preview session.
 *
 * v1.5.10 — every rule here used to be scoped only to
 * html.bm-products-listing-preview-v1-5, a class that bm-products-listing-final-v1.js
 * only adds after it finishes downloading, parsing and running (it's one of
 * ~9 deferred scripts loaded after jquery/uikit/hikashop/etc). Until then the
 * browser paints the raw, unstyled HikaShop category/listing markup, so every
 * visit showed a visible flash: plain page first, redesigned layout a moment
 * later. .bm-final-route-catalog is added server-side, straight into the
 * initial HTML's <html> tag, for exactly this route (/products,
 * /medical-*, /laboratory-*, /specialized-*) — see
 * bmed_sitewide_final_route_classes_v1() in
 * templates/netparsi/bmed-sitewide-final-bootstrap-v1.php. Matching on
 * either class makes this styling active from first paint instead of
 * waiting on JS, while leaving the JS-added class as a functional fallback.
 */

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) {
    --bm-pl15-navy: #103b61;
    --bm-pl15-navy-deep: #082b49;
    --bm-pl15-blue: #176d9a;
    --bm-pl15-green: #10936a;
    --bm-pl15-green-dark: #087c59;
    --bm-pl15-green-soft: #ebf8f3;
    --bm-pl15-cyan-soft: #eaf8fa;
    --bm-pl15-page: #f5f8fb;
    --bm-pl15-card: #fff;
    --bm-pl15-text: #17324d;
    --bm-pl15-muted: #64788b;
    --bm-pl15-border: #dbe6ee;
    --bm-pl15-border-soft: #e8eff4;
    --bm-pl15-shadow: 0 12px 34px rgba(13, 53, 93, .075);
    --bm-pl15-shadow-hover: 0 18px 42px rgba(13, 53, 93, .13);
    --bm-pl15-radius: 18px;
    color-scheme: light;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) body {
    overflow-x: hidden;
    background: var(--bm-pl15-page) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-catalog-root-v819] {
    width: min(100% - 32px, 1360px) !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 28px 0 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-catalog-root-v819],
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-catalog-root-v819] * {
    box-sizing: border-box;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_category_description,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [class*="hikashop_category_description"] {
    max-width: none !important;
}

/* Hero */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 42px;
    align-items: center;
    margin: 6px 0 28px;
    padding: 34px 38px;
    overflow: hidden;
    border: 1px solid #d9e7ef;
    border-radius: 26px;
    background:
        radial-gradient(circle at 11% 15%, rgba(20, 184, 196, .15), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f5fbfd 58%, #eef7fb 100%);
    box-shadow: var(--bm-pl15-shadow);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(16, 147, 106, .08);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero-copy,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search {
    position: relative;
    z-index: 1;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--bm-pl15-green-dark);
    font-size: 12px;
    font-weight: 800;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bm-pl15-green);
    box-shadow: 0 0 0 5px rgba(16, 147, 106, .11);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero h1 {
    margin: 0 0 10px !important;
    color: var(--bm-pl15-navy-deep) !important;
    font-size: clamp(25px, 2.4vw, 38px) !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-align: right;
    unicode-bidi: plaintext;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero p {
    max-width: 640px;
    margin: 0 !important;
    color: var(--bm-pl15-muted);
    font-size: 14px;
    line-height: 2;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid #d8e6ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(13, 53, 93, .06);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search input[type="search"] {
    min-width: 0;
    flex: 1 1 auto;
    height: 46px;
    padding: 0 14px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--bm-pl15-text);
    font-size: 13px;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search button {
    flex: 0 0 auto;
    min-width: 96px;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bm-pl15-green), var(--bm-pl15-green-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(8, 124, 89, .18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 11px 24px rgba(8, 124, 89, .24);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search:focus-within {
    border-color: rgba(23, 109, 154, .42);
    box-shadow:
        0 0 0 4px rgba(23, 109, 154, .08),
        0 12px 30px rgba(13, 53, 93, .08);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Categories */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_subcategories_listing {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 30px !important;
    padding: 26px !important;
    overflow: visible !important;
    border: 1px solid var(--bm-pl15-border);
    border-radius: 24px;
    background: var(--bm-pl15-card);
    box-shadow: var(--bm-pl15-shadow);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 0 2px;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-section-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--bm-pl15-green-dark);
    font-size: 11px;
    font-weight: 800;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-section-head h2 {
    margin: 0 !important;
    color: var(--bm-pl15-navy-deep) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-section-head p {
    margin: 0 !important;
    color: var(--bm-pl15-muted);
    font-size: 12px;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_subcategories,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .catListingSubcats,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .catListingSubcats > .uk-slider,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .catListingSubcats .uk-slider-container {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"] {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"] {
    grid-column: span 2;
    grid-row: auto;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(3) {
    grid-column: 5 / span 2;
    grid-row: 1;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(4) {
    grid-column: 7 / span 2;
    grid-row: 1;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(5) {
    grid-column: 2 / span 2;
    grid-row: 2;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(6) {
    grid-column: 4 / span 2;
    grid-row: 2;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
> [data-bm-category-card-v15="1"]:nth-child(7) {
    grid-column: 6 / span 2;
    grid-row: 2;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"] {
    position: relative;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 13px;
    min-height: 122px !important;
    padding: 14px 16px !important;
    overflow: hidden !important;
    border: 1px solid var(--bm-pl15-border) !important;
    border-radius: 17px !important;
    background:
        radial-gradient(circle at 18% 15%, rgba(20, 184, 196, .1), transparent 35%),
        #fff !important;
    box-shadow: 0 8px 22px rgba(13, 53, 93, .055) !important;
    color: var(--bm-pl15-text) !important;
    direction: rtl !important;
    isolation: isolate;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-category-link-v15="1"]::before,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-category-link-v15="1"]::after {
    content: none !important;
    display: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"]:hover {
    transform: translateY(-3px);
    border-color: rgba(23, 109, 154, .28) !important;
    box-shadow: 0 15px 34px rgba(13, 53, 93, .11) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"]:focus-visible {
    outline: 3px solid rgba(23, 109, 154, .22) !important;
    outline-offset: 3px !important;
    border-color: rgba(23, 109, 154, .38) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"] img {
    grid-column: 1;
    width: 92px !important;
    height: 92px !important;
    max-width: 92px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 14px;
    background: #f8fbfd;
    transition: transform .2s ease;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"]:hover img {
    transform: scale(1.035);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-native-title-v15="1"] {
    display: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-category-title {
    position: static !important;
    inset: auto !important;
    grid-column: 2;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bm-pl15-navy-deep);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.75;
    text-align: right;
    white-space: normal !important;
    overflow: visible !important;
    transform: none !important;
    unicode-bidi: plaintext;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-category-arrow {
    position: static !important;
    inset: auto !important;
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px;
    background: var(--bm-pl15-cyan-soft) !important;
    box-shadow: none !important;
    color: var(--bm-pl15-blue) !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1 !important;
    transform: none !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-category-link-v15="1"]:hover .bm-pl15-category-arrow {
    background: var(--bm-pl15-blue) !important;
    color: #fff !important;
    transform: translateX(-2px) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.hikashop_subcategories_listing[data-bm-categories-ready-v15="1"]
.catListingSubcats > .uk-slider > a,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.hikashop_subcategories_listing[data-bm-categories-ready-v15="1"]
.uk-slider-nav {
    display: none !important;
}

/* Listing layout */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) #hikashop_category_information_module_ {
    width: 100% !important;
    min-height: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) #hikashop_category_information_module_ > .uk-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    grid-template-areas: "products filters" !important;
    gap: 22px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
    align-items: start !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_category_information_module_ > .uk-grid > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_category_information_module_ > .uk-grid
> [data-bm-products-column-v15="1"] {
    grid-area: products !important;
    direction: rtl !important;
    align-self: start !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_category_information_module_ > .uk-grid
> [data-bm-filter-column-v15="1"] {
    grid-area: filters !important;
    direction: rtl !important;
    align-self: start !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ > form {
    position: sticky;
    top: 128px;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    overflow: hidden;
    border: 1px solid #d5e3ec !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(236, 248, 249, .72) 0, #fff 82px) !important;
    box-shadow: 0 16px 42px rgba(13, 53, 93, .09) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ > form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--bm-pl15-green), #28b7bd);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ .filtersAccordion {
    margin: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ .filtersAccordion > li {
    margin: 0 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--bm-pl15-border-soft);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ .filtersAccordion > li:last-child {
    border-bottom: 0;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_filter_main_div_hikashop_category_information_module_ .uk-accordion-title {
    color: var(--bm-pl15-text) !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productsListing.hikashop_products_listing {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

/* Sort toolbar */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productsListing > .sortWrapper {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 16px;
    min-height: 66px;
    margin: 0 0 20px !important;
    padding: 11px 14px !important;
    border: 1px solid #d7e4ed !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(13, 53, 93, .065) !important;
    overflow: hidden !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productsListing > .sortWrapper > .uk-grid {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .sortFilter {
    display: flex !important;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .sortFilter a {
    min-height: 36px;
    padding: 8px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    color: #5c7184 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease, border-color .18s ease !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .sortFilter a:hover,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .sortFilter a.active,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .sortFilter a.selected {
    border-color: #d6e9ef !important;
    background: #edf8f8 !important;
    color: var(--bm-pl15-blue) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-result-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f2f6f9;
    color: #536b7e;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* Products */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_products_switcher_hikashop_category_information_module_ {
    width: 100% !important;
    min-width: 0 !important;
}

/*
 * HikaShop appends Infinite Scroll batches as separate .uk-grid elements.
 * display:contents keeps its runtime containers intact while their product
 * columns participate in one continuous catalog grid.
 */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"]
[data-bm-product-grid-v15="1"] {
    display: contents !important;
}

/*
 * HikaShop wraps each AJAX Infinite Scroll response in a classless div.
 * Flattening that transport wrapper lets the new product columns participate
 * in the same catalog grid without moving nodes or breaking HikaShop runtime
 * initialisation.
 */
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"]
> [data-bm-product-batch-v158="1"] {
    display: contents !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-product-batch-v158="1"]
[data-bm-infinite-scroll-artifact-v158="1"] {
    display: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"] > .sortWrapper,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"]
#hikashop_category_information_module__infinite_scroll,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"] .hikashop_products_pagination,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-unified-product-flow-v157="1"] .hikashop_products_footer {
    grid-column: 1 / -1 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-grid-v15="1"] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-product-column-v15="1"]:not([data-bm-product-grid-v15="1"]) {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: auto !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productWrapper[data-bm-product-card-v15="1"] {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100% !important;
    min-height: 430px;
    margin: 0 !important;
    padding: 12px !important;
    overflow: hidden;
    border: 1px solid #d9e5ed !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow:
        0 1px 2px rgba(13, 53, 93, .035),
        0 10px 30px rgba(13, 53, 93, .055) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.productWrapper[data-bm-product-card-v15="1"]::before {
    content: "";
    position: absolute;
    inset: 0 18px auto;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, rgba(23, 109, 154, .55), transparent);
    opacity: .42;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productWrapper[data-bm-product-card-v15="1"]:hover {
    transform: translateY(-6px);
    border-color: rgba(23, 109, 154, .27) !important;
    box-shadow: 0 24px 48px rgba(13, 53, 93, .14) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.productWrapper[data-bm-product-card-v15="1"]:focus-within {
    outline: 3px solid rgba(23, 109, 154, .14);
    outline-offset: 2px;
    border-color: rgba(23, 109, 154, .30) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-media-v15="1"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    margin: 0 0 13px !important;
    padding: 14px !important;
    overflow: hidden !important;
    border: 1px solid #edf2f6;
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 38%, #fff 0, #fbfdfe 54%, #f3f7fa 100%);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-media-v15="1"] img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    transform: scale(.96) !important;
    transition: transform .28s ease !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
.productWrapper[data-bm-product-card-v15="1"]:hover
[data-bm-product-media-v15="1"] img {
    transform: scale(1.015) !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-title-block-v15="1"] {
    display: flex;
    align-items: flex-start;
    min-height: 62px;
    margin: 0 !important;
    padding: 3px 6px 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-title-v15="1"] {
    display: -webkit-box !important;
    width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--bm-pl15-text) !important;
    font-size: 13.25px !important;
    font-weight: 800 !important;
    line-height: 1.75 !important;
    text-align: start !important;
    text-decoration: none !important;
    direction: rtl;
    unicode-bidi: plaintext;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-title-v15="1"][lang="en"] {
    direction: ltr;
    text-align: left !important;
    font-family: Arial, sans-serif;
    line-height: 1.55 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-price-block-v15="1"] {
    display: flex !important;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    margin: auto 4px 10px !important;
    padding: 9px 4px 7px !important;
    border: 0 !important;
    border-top: 1px solid var(--bm-pl15-border-soft) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-product-price-mode-v15="inquiry"]
[data-bm-product-price-block-v15="1"]::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bm-pl15-green);
    box-shadow: 0 0 0 4px rgba(16, 147, 106, .10);
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_product_price_full,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_product_price_full * {
    color: #426376 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.7 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-original-action-v15="1"] {
    display: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] > a,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] button,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] input[type="button"],
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] input[type="submit"],
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] .uk-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 1px solid rgba(4, 91, 65, .12) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(135deg, #0e956c 0%, #087b59 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.7 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(8, 124, 89, .16) !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-product-action-v15="1"] > a::after,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-product-action-v15="1"] button::after,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
[data-bm-product-action-v15="1"] .uk-button::after {
    content: "←";
    margin-right: auto;
    padding-right: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    opacity: .88;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] > a:hover,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] button:hover,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] input[type="button"]:hover,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] input[type="submit"]:hover,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-action-v15="1"] .uk-button:hover {
    transform: translateY(-1px) !important;
    filter: saturate(1.07) !important;
    box-shadow: 0 9px 20px rgba(8, 124, 89, .18) !important;
}

@media (max-width: 1499px) and (min-width: 960px) {
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-grid-v15="1"],
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    [data-bm-unified-product-flow-v157="1"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_category_information_module__infinite_scroll {
    min-height: 0 !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
#hikashop_category_information_module__infinite_scroll:empty {
    display: none !important;
}

html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_products_pagination,
html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_products_footer {
    clear: both;
    min-height: 0 !important;
}

/* Responsive */
@media (max-width: 1199px) {
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-grid-v15="1"],
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    [data-bm-unified-product-flow-v157="1"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"] {
        grid-template-columns: 76px minmax(0, 1fr) 28px;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"] img {
        width: 76px !important;
        height: 76px !important;
    }
}

@media (max-width: 959px) {
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-catalog-root-v819] {
        width: min(100% - 24px, 1360px) !important;
        padding-top: 18px !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero {
        padding: 26px;
        border-radius: 20px;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    .catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    .catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"]
    > [data-bm-category-card-v15="1"] {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) #hikashop_category_information_module_ > .uk-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "filters"
            "products" !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    #hikashop_filter_main_div_hikashop_category_information_module_ > form {
        position: static;
    }
}

@media (max-width: 700px) {
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-hero {
        margin-top: 0;
        padding: 22px 18px;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search {
        flex-direction: column;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-search button {
        width: 100%;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .hikashop_subcategories_listing {
        padding: 20px 16px !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-section-head {
        display: block;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .bm-pl15-section-head p {
        margin-top: 7px !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-grid-v15="1"],
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    [data-bm-unified-product-flow-v157="1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productWrapper[data-bm-product-card-v15="1"] {
        min-height: 350px;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-media-v15="1"] {
        height: 150px !important;
        min-height: 150px !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productsListing > .sortWrapper {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    .catListingSubcats .uk-slider-items[data-bm-category-grid-v15="1"],
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-grid-v15="1"],
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog)
    [data-bm-unified-product-flow-v157="1"] {
        grid-template-columns: 1fr !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-category-link-v15="1"] {
        min-height: 108px !important;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) .productWrapper[data-bm-product-card-v15="1"] {
        min-height: 0;
    }

    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) [data-bm-product-media-v15="1"] {
        height: 190px !important;
        min-height: 190px !important;
    }
}

/* v8.17: native category columns must work without /products JS markers. */
html.bm-final-route-catalog #hikashop_category_information_module_ > .uk-grid
> .productsListing.hikashop_products_listing {
    grid-area: products !important;
    direction: rtl !important;
    align-self: start !important;
}

html.bm-final-route-catalog #hikashop_category_information_module_ > .uk-grid
> [id^="hikashop_filter_main_div_"] {
    grid-area: filters !important;
    direction: rtl !important;
    align-self: start !important;
}

/* Native category sorting must fit without relying on enhancement markers. */
html.bm-final-route-catalog body.view-category .productsListing > .sortWrapper > .uk-grid {
    width: 100%;
}
html.bm-final-route-catalog body.view-category .sortFilter,
html.bm-final-route-catalog body.view-category .sortFilter > [id^="hikashop_filter_main_div_"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
html.bm-final-route-catalog body.view-category .sortFilter .hikashop_filter_list_style {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
}
html.bm-final-route-catalog body.view-category .sortFilter .hikashop_filter_list_style a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (min-width: 960px) and (max-width: 1199px) {
    html.bm-final-route-catalog body.view-category
    .hikashop_products > .uk-grid:not([data-bm-product-grid-v15="1"])
    > [class*="column_"] {
        width: 50% !important;
    }
}

/* Keep the native slider clipped; enhanced /products grids remain untouched. */
html.bm-final-route-catalog .catListingSubcats
.uk-slider-container:has(> .uk-slider-items:not([data-bm-category-grid-v15="1"])) {
    overflow: hidden !important;
}

/* v8.18: consistent native category and product cards; no purchase logic changes. */
html.bm-final-route-catalog body.view-category .catListingSubcats
.uk-slider-items:not([data-bm-category-grid-v15="1"]) > .itemWrapper {
    width: 25% !important;
    flex: 0 0 auto;
}
html.bm-final-route-catalog body.view-category .catListingSubcats
:is(a.squareCat, a.subCat) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    height: 226px !important;
    padding: 12px !important;
    background: #fff !important;
    color: #123b60 !important;
    text-decoration: none;
    border-radius: 16px !important;
}
html.bm-final-route-catalog body.view-category .catListingSubcats
:is(a.squareCat, a.subCat) img {
    display: block !important;
    width: 100% !important;
    height: 154px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 6px !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
    background: #fff !important;
}
html.bm-final-route-catalog body.view-category .catListingSubcats
:is(a.squareCat, a.subCat) > span {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 8px 2px 0 !important;
    background: none !important;
    color: #123b60 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.7 !important;
    text-align: center;
    align-items: center;
    justify-content: center;
    white-space: normal !important;
}

html.bm-final-route-catalog body.view-category
.hikashop_products > .uk-grid:not([data-bm-product-grid-v15="1"]) > [class*="column_"] {
    width: 33.333333% !important;
    display: flex;
}
html.bm-final-route-catalog body.view-category .hikashop_products
.productWrapper:not([data-bm-product-card-v15="1"]) {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0;
    padding: 14px !important;
    gap: 10px;
    direction: rtl;
    text-align: right;
}
/* Flatten only the decorative media box so the existing action can sit last.
   Real links/buttons and all server-rendered eligibility attributes stay intact. */
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) > .uk-inline-clip {
    order: 0;
    margin: 0 !important;
}

html.bm-final-route-catalog body.view-category .productWrapper .addToCartWrapper[hidden] {
    display: none !important;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) > .uk-inline-clip > div:not(.addToCartWrapper) {
    order: 0;
    width: 100%;
    min-width: 0;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) .hikashop_product_listing_image {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 6px !important;
    object-fit: contain !important;
    background: #fff !important;
    transform: none !important;
    filter: none !important;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) > .productName {
    order: 1;
    display: block !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 !important;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) > .productName a {
    display: block;
    color: #123b60 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.85 !important;
    text-decoration: none;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) > .uk-margin-small-top {
    order: 2;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 28px;
    line-height: 1.8;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) .hikashop_product_price_full {
    display: block !important;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
    font-size: 14px !important;
    font-weight: 750 !important;
    color: #05427e !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) .addToCartWrapper {
    order: 3;
    position: static !important;
    display: block;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
html.bm-final-route-catalog body.view-category
.productWrapper:not([data-bm-product-card-v15="1"]) .addToCartWrapper :is(button, a.uk-button) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 8px !important;
    border-radius: 11px !important;
    opacity: 1 !important;
    font: inherit;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.8 !important;
    white-space: normal !important;
}
@media (max-width: 1199px) {
    html.bm-final-route-catalog body.view-category .catListingSubcats
    .uk-slider-items:not([data-bm-category-grid-v15="1"]) > .itemWrapper {
        width: 33.333333% !important;
    }
    html.bm-final-route-catalog body.view-category
    .hikashop_products > .uk-grid:not([data-bm-product-grid-v15="1"]) > [class*="column_"] {
        width: 50% !important;
    }
}
@media (max-width: 700px) {
    html.bm-final-route-catalog body.view-category .catListingSubcats
    .uk-slider-items:not([data-bm-category-grid-v15="1"]) > .itemWrapper {
        width: 50% !important;
    }
    html.bm-final-route-catalog body.view-category .catListingSubcats :is(a.squareCat, a.subCat) {
        height: 190px !important;
        padding: 8px !important;
    }
    html.bm-final-route-catalog body.view-category .catListingSubcats :is(a.squareCat, a.subCat) img {
        height: 116px !important;
    }
}
@media (max-width: 480px) {
    html.bm-final-route-catalog body.view-category
    .hikashop_products > .uk-grid:not([data-bm-product-grid-v15="1"]) > [class*="column_"] {
        width: 100% !important;
    }
}

/* v8.19: one catalog system, shared by /products and all category depths. */
html.bm-final-route-catalog {
    --bm-pl15-green: #10936a;
    --bm-pl15-green-dark: #087c59;
}
html.bm-final-route-catalog body [data-bm-catalog-root-v819] {
    width: min(100% - 32px, 1360px) !important;
    max-width: 1360px !important;
    margin-inline: auto !important;
}
html.bm-final-route-catalog body [data-bm-native-heading-v819] { display: none !important; }
html.bm-final-route-catalog body [data-bm-catalog-root-v819] .bmed-category-intro-v381 a {
    color: var(--bm-pl15-green-dark) !important;
    text-decoration: underline;
}
html.bm-final-route-catalog body [data-bm-catalog-root-v819] .sortFilter a:is(:hover,:focus-visible,.active,.selected,.hikashop_filter_list_selected) {
    color: var(--bm-pl15-green-dark) !important;
    border-color: var(--bm-pl15-green) !important;
    background: var(--bm-pl15-green-soft) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-grid-v15="1"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-grid-v15="1"] > [data-bm-category-card-v15="1"] {
    grid-column: auto !important;
    grid-row: auto !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-link-v15="1"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    height: 226px !important;
    padding: 18px !important;
    background: var(--bm-pl15-card) !important;
    border: 1px solid var(--bm-pl15-border) !important;
    border-radius: 18px !important;
    color: var(--bm-pl15-navy) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-link-v15="1"] img {
    width: 100% !important;
    height: 110px !important;
    object-fit: contain !important;
    filter: none !important;
    transform: none !important;
    background: transparent !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl15-category-title {
    text-align: center !important;
    color: var(--bm-pl15-navy) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl15-category-arrow {
    color: var(--bm-pl15-green-dark) !important;
    background: var(--bm-pl15-green-soft) !important;
}
html.bm-final-route-catalog body .hikashop_subcategories_listing .hikashop_subcategories_pagination:not([data-bm-hidden-v15]) {
    display: block !important;
}
html.bm-final-route-catalog body .productsListing .productWrapper[data-bm-product-card-v15="1"] {
    border-radius: 22px !important;
    padding: 12px !important;
    direction: rtl !important;
    transform: none !important;
}
html.bm-final-route-catalog body .productsListing [data-bm-product-title-v15="1"] {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow-wrap: anywhere;
    white-space: normal !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.85 !important;
}
html.bm-final-route-catalog body .productsListing [data-bm-product-media-v15="1"] img {
    filter: none !important;
    transform: none !important;
}
html.bm-final-route-catalog body .productsListing [data-bm-product-price-block-v15="1"] {
    min-height: 38px !important;
    direction: rtl !important;
    unicode-bidi: isolate;
}
html.bm-final-route-catalog body .productsListing [data-bm-product-action-v15="1"] :is(a,button,input[type="button"],input[type="submit"]),
html.bm-final-route-catalog body .bm-pl15-search button {
    min-height: 46px !important;
    border-radius: 12px !important;
    background: var(--bm-pl15-green-dark) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    white-space: normal !important;
}
html.bm-final-route-catalog body .productsListing [data-bm-product-action-v15="1"] :is(a,button):hover,
html.bm-final-route-catalog body .bm-pl15-search button:hover {
    background: #066749 !important;
}
html.bm-final-route-catalog body [data-bm-catalog-root-v819] :is(a,button,input,select):focus-visible {
    outline: 2px solid var(--bm-pl15-green-dark) !important;
    outline-offset: 3px !important;
}
@media (max-width: 959px) {
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-grid-v15="1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 600px) {
    html.bm-final-route-catalog body [data-bm-catalog-root-v819] { width: calc(100% - 24px) !important; }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-link-v15="1"] {
        height: 208px !important;
        padding: 10px !important;
        gap: 8px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats [data-bm-category-link-v15="1"] img { height: 80px !important; }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl15-category-title { font-size: 13px !important; }
}

/* v8.24: pixel-ratio correction against the selected image-led reference. */
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
    display: grid !important;
    grid-template-rows: 210px 66px 48px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    height: 326px !important;
    min-height: 326px !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(10, 47, 81, .07) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: 210px !important;
    min-height: 210px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(145deg, #f2faf6, #edf5fb) !important;
    object-fit: contain !important;
    transform: none !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-title {
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 10px 14px 4px !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
    grid-row: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 14px 14px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--bm-pl15-green-dark) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
@media (max-width: 600px) {
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
        grid-template-rows: 160px 58px 42px !important;
        height: 262px !important;
        min-height: 262px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
        height: 160px !important;
        min-height: 160px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-title {
        padding: 8px 10px 2px !important;
        font-size: 14px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
        padding-bottom: 12px !important;
    }
}
/* v8.20: a stable manual category rail, with no carousel runtime. */
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .hikashop_subcategories_listing {
    padding: 20px !important;
    margin-bottom: 24px !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .bm-pl15-section-head {
    margin-bottom: 14px !important;
    gap: 16px !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .bm-pl15-section-head > div > span {
    display: none !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail[data-bm-category-grid-v15="1"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 6px 4px 12px !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a4cbbf transparent;
    direction: rtl !important;
    transform: none !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"] {
    flex: 0 0 204px !important;
    width: 204px !important;
    order: 0 !important;
    scroll-snap-align: start;
    transform: none !important;
    transition: none !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
    height: 156px !important;
    min-height: 156px !important;
    padding: 14px 16px !important;
    gap: 8px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(10, 47, 81, .07) !important;
    transform: none !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
    height: 56px !important;
    width: 56px !important;
    min-height: 0 !important;
    padding: 0 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-title {
    font-size: 14px !important;
    line-height: 1.6 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    background: var(--bm-pl15-green-soft) !important;
    color: var(--bm-pl15-green-dark) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .sortFilter a::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 600px) {
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"] {
        flex-basis: 160px !important;
        width: 160px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
        height: 136px !important;
        min-height: 136px !important;
        padding: 12px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
        height: 48px !important;
        width: 48px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
        display: none !important;
    }
}
/* v8.21: center fitting rows; auto margins resolve to zero during overflow. */
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"]:first-child {
    margin-inline-start: auto !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"]:last-child {
    margin-inline-end: auto !important;
}
@media (prefers-reduced-motion: reduce) {
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) *,
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) *::before,
    html:is(.bm-products-listing-preview-v1-5, .bm-final-route-catalog) *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
}

/* v8.23: adaptive category showcase shared by /products and every descendant. */
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .hikashop_subcategories_listing {
    padding: 24px !important;
    border-radius: 24px !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .bm-pl15-section-head {
    align-items: flex-start !important;
    margin-bottom: 18px !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .bm-pl15-section-head > div > span {
    display: block !important;
    max-width: 520px;
    color: var(--bm-pl15-muted) !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail[data-bm-category-grid-v15="1"] {
    padding: 2px 2px 10px !important;
    gap: 16px !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail[data-bm-category-layout-v823="fit"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    overflow: visible !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail[data-bm-category-layout-v823="scroll"] {
    display: flex !important;
    overflow-x: auto !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"] {
    flex: 0 0 clamp(248px, 23vw, 286px) !important;
    width: auto !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail[data-bm-category-layout-v823="fit"] > [data-bm-category-card-v15="1"] {
    width: 100% !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 238px !important;
    min-height: 238px !important;
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(10, 47, 81, .08) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"]:hover {
    border-color: #8fcdbb !important;
    box-shadow: 0 14px 34px rgba(8, 124, 89, .13) !important;
    transform: translateY(-2px) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
    width: 100% !important;
    max-width: none !important;
    height: 122px !important;
    padding: 12px !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #f6fafc, #edf7f4) !important;
    object-fit: contain !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-title {
    width: 100% !important;
    min-height: 26px;
    padding-inline: 4px;
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: 800 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}
@media (max-width: 959px) {
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail[data-bm-category-layout-v823] {
        display: flex !important;
        overflow-x: auto !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"] {
        flex: 0 0 min(62vw, 242px) !important;
        width: min(62vw, 242px) !important;
    }
}
@media (max-width: 600px) {
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .hikashop_subcategories_listing {
        padding: 18px 14px !important;
        border-radius: 20px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .bm-pl15-section-head {
        display: block !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .bm-pl15-section-head > div > span {
        margin-top: 5px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail > [data-bm-category-card-v15="1"] {
        flex-basis: min(68vw, 226px) !important;
        width: min(68vw, 226px) !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
        height: 218px !important;
        min-height: 218px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
        width: 100% !important;
        height: 108px !important;
    }
}

/* v8.24 final cascade: match the selected image-led card proportions. */
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 210px 66px 48px !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    height: 326px !important;
    min-height: 326px !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(10, 47, 81, .07) !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: 210px !important;
    min-height: 210px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(145deg, #f2faf6, #edf5fb) !important;
    object-fit: contain !important;
    transform: none !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-title {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 10px 14px 4px !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}
html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 14px 14px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--bm-pl15-green-dark) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
@media (max-width: 600px) {
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] {
        grid-template-rows: 160px 58px 42px !important;
        height: 262px !important;
        min-height: 262px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail [data-bm-category-link-v15="1"] img {
        height: 160px !important;
        min-height: 160px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-title {
        padding: 8px 10px 2px !important;
        font-size: 14px !important;
    }
    html.bm-final-route-catalog body.view-category [data-bm-catalog-root-v819] .catListingSubcats .bm-pl20-category-rail .bm-pl15-category-arrow {
        padding-bottom: 12px !important;
    }
}

/* v8.25.1: keep low-count brand archives visually connected and balanced. */
html.bm-final-route-brands.bm-final-route-catalog
[data-bm-unified-product-flow-v157="1"] {
    grid-template-columns: repeat(auto-fit, 260px) !important;
    justify-content: center !important;
    align-items: start !important;
}
html.bm-final-route-brands.bm-final-route-catalog
[data-bm-unified-product-flow-v157="1"] > .sortWrapper,
html.bm-final-route-brands.bm-final-route-catalog
[data-bm-unified-product-flow-v157="1"] #hikashop_category_information_module__infinite_scroll,
html.bm-final-route-brands.bm-final-route-catalog
[data-bm-unified-product-flow-v157="1"] .hikashop_products_footer {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
html.bm-final-route-brands.bm-final-route-catalog
.hikashop_products_pagination[data-bm-brand-redundant-pagination-v8251="1"] {
    display: none !important;
}
@media (max-width: 600px) {
    html.bm-final-route-brands.bm-final-route-catalog
    [data-bm-unified-product-flow-v157="1"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
/* v8.25.2: remove the empty brand toolbar while preserving real controls. */
html.bm-final-route-brands.bm-final-route-catalog
.productsListing > .sortWrapper[data-bm-brand-redundant-toolbar-v8252="1"] {
    display: none !important;
}
/* v8.25.3: brand-detail pages do not need the catalog sort/count toolbar. */
html.bm-final-route-brands.bm-final-route-catalog body.view-category
[data-bm-catalog-root-v819] .productsListing > .sortWrapper {
    display: none !important;
}