/*
 * BazaarMed Sitewide Final v1
 * Agent 01 — products, brands, vendors and seller workspace visual layer
 *
 * Safety contract:
 * - Every selector is scoped below html.bm-sitewide-final-v1.
 * - No element is hidden and no DOM order is changed.
 * - Native HikaShop/HikaMarket class names are preserved.
 * - Motion is transform/opacity/shadow only and reduced-motion is respected.
 */

html.bm-sitewide-final-v1 {
    --bmsw-primary: #05427e;
    --bmsw-primary-dark: #032f5b;
    --bmsw-primary-soft: #edf5fb;
    --bmsw-secondary: #01affd;
    --bmsw-green: #23ad77;
    --bmsw-green-dark: #16835a;
    --bmsw-green-soft: #eaf8f2;
    --bmsw-ink: #10233b;
    --bmsw-text: #3e5065;
    --bmsw-muted: #697a8d;
    --bmsw-line: #dce6ef;
    --bmsw-line-strong: #c7d7e4;
    --bmsw-page: #f4f8fc;
    --bmsw-surface: #fff;
    --bmsw-danger: #b42318;
    --bmsw-warning: #9a6700;
    --bmsw-radius-control: 12px;
    --bmsw-radius-card: 18px;
    --bmsw-radius-panel: 24px;
    --bmsw-shadow-sm: 0 7px 22px rgba(5, 47, 91, .055);
    --bmsw-shadow-card: 0 14px 38px rgba(5, 47, 91, .08);
    --bmsw-shadow-hover: 0 20px 48px rgba(5, 47, 91, .13);
    --bmsw-focus: 0 0 0 3px rgba(1, 175, 253, .24);
    color-scheme: light;
}

html.bm-sitewide-final-v1:has(.hikashop_products_listing) body,
html.bm-sitewide-final-v1:has(.hikashop_product_page) body,
html.bm-sitewide-final-v1:has(.hikamarket_vendor_listing) body,
html.bm-sitewide-final-v1:has(.hikamarket_vendor_edit_page) body,
html.bm-sitewide-final-v1:has(#hikamarket_cpanel_main) body,
html.bm-sitewide-final-v1:has(#hikamarket_product_listing) body,
html.bm-sitewide-final-v1:has(#hikam_product_listing) body,
html.bm-sitewide-final-v1:has(#bmed-profile-vendor-panel) body {
    overflow-x: clip;
    background:
        radial-gradient(circle at 90% 5%, rgba(1, 175, 253, .075), transparent 28rem),
        radial-gradient(circle at 8% 22%, rgba(35, 173, 119, .065), transparent 26rem),
        var(--bmsw-page) !important;
    color: var(--bmsw-text);
}

html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) {
    direction: rtl;
    color: var(--bmsw-text);
    font-family: "IRANYekanXVF", "IRANYekanX", Tahoma, Arial, sans-serif;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) *,
html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) *::before,
html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) *::after {
    box-sizing: border-box;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) :is(h1, h2, h3, h4, .bigTitle, .profileTitle) {
    color: var(--bmsw-ink) !important;
    font-weight: 800 !important;
    letter-spacing: -.018em;
    line-height: 1.5;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--bmsw-secondary) !important;
    outline-offset: 3px !important;
    box-shadow: var(--bmsw-focus) !important;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_products_listing,
    .hikashop_subcategories_listing,
    .hikashop_product_page,
    .hikamarket_vendor_listing,
    .hikamarket_vendor_edit_page,
    #hikamarket_vendor_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) :is(a, button, input[type="button"], input[type="submit"], summary) {
    touch-action: manipulation;
}

/* Native controls shared by product and seller flows */
html.bm-sitewide-final-v1 :is(
    .hikashop_product_page,
    .hikamarket_vendor_edit_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
    select,
    textarea
) {
    min-height: 46px;
    border: 1px solid var(--bmsw-line-strong) !important;
    border-radius: var(--bmsw-radius-control) !important;
    background: #fff !important;
    color: var(--bmsw-ink) !important;
    font: inherit;
    line-height: 1.6;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_product_page,
    .hikamarket_vendor_edit_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
    select,
    textarea
):hover {
    border-color: #a9bfd1 !important;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_product_page,
    .hikamarket_vendor_edit_page,
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.uk-button-primary, .hikabtn-primary, .hikashop_cart_button) {
    min-height: 46px;
    border: 1px solid transparent !important;
    border-radius: var(--bmsw-radius-control) !important;
    background: var(--bmsw-primary) !important;
    color: #fff !important;
    font-weight: 750 !important;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(5, 66, 126, .18);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    html.bm-sitewide-final-v1 :is(
        .hikashop_product_page,
        .hikamarket_vendor_edit_page,
        #hikamarket_cpanel_main,
        #hikamarket_product_listing,
        #hikam_product_listing
    ) :is(.uk-button-primary, .hikabtn-primary, .hikashop_cart_button):hover {
        transform: translateY(-1px);
        background: var(--bmsw-primary-dark) !important;
        box-shadow: 0 13px 28px rgba(5, 66, 126, .24);
    }
}

/* Product and category listings */
html.bm-sitewide-final-v1 .hikashop_subcategories_listing,
html.bm-sitewide-final-v1 .hikashop_products_listing {
    width: min(100% - 32px, 1380px);
    max-width: 1380px;
    margin-inline: auto !important;
}

html.bm-sitewide-final-v1 .hikashop_subcategories_listing {
    padding: 24px !important;
    border: 1px solid var(--bmsw-line);
    border-radius: var(--bmsw-radius-panel);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--bmsw-shadow-card);
}

html.bm-sitewide-final-v1 .hikashop_subcategories > :is(.uk-grid, [class*="hk-row"]),
html.bm-sitewide-final-v1 .hikashop_products > :is(.uk-grid, [class*="hk-row"]) {
    align-items: stretch;
}

html.bm-sitewide-final-v1 .hikashop_subcategories :is(.itemWrapper, [class*="column_"]) {
    display: flex;
}

html.bm-sitewide-final-v1 .hikashop_subcategories :is(.itemWrapper, [class*="column_"]) > div,
html.bm-sitewide-final-v1 .hikashop_subcategories :is(.itemWrapper, [class*="column_"]) > div > div {
    width: 100%;
}

html.bm-sitewide-final-v1 .hikashop_subcategories :is(.hikashop_container, .hikashop_subcontainer),
html.bm-sitewide-final-v1 .hikashop_subcategories :is(.itemWrapper, [class*="column_"]) > div > div {
    overflow: hidden;
    border: 1px solid var(--bmsw-line) !important;
    border-radius: var(--bmsw-radius-card) !important;
    background: #fff !important;
    box-shadow: var(--bmsw-shadow-sm);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

html.bm-sitewide-final-v1 .hikashop_subcategories img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 14px;
    background: linear-gradient(145deg, #fff, #f5f9fc);
}

html.bm-sitewide-final-v1 .hikashop_subcategories :is(.hikashop_category_name, .hikashop_category_name a) {
    color: var(--bmsw-ink) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.75;
    text-decoration: none;
}

html.bm-sitewide-final-v1 .hikashop_products > :is(.uk-grid, [class*="hk-row"]) > [class*="column_"] {
    display: flex;
}

html.bm-sitewide-final-v1 .hikashop_products > :is(.uk-grid, [class*="hk-row"]) > [class*="column_"] > div,
html.bm-sitewide-final-v1 .hikashop_products > :is(.uk-grid, [class*="hk-row"]) > [class*="column_"] > div > div,
html.bm-sitewide-final-v1 .hikashop_products .productWrapper,
html.bm-sitewide-final-v1 .hikashop_products [data-bm-product-card-v15="1"] {
    width: 100%;
    height: 100%;
}

html.bm-sitewide-final-v1 .hikashop_products .productWrapper,
html.bm-sitewide-final-v1 .hikashop_products [data-bm-product-card-v15="1"],
html.bm-sitewide-final-v1 .hikashop_products .hikashop_subcontainer {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bmsw-line) !important;
    border-radius: var(--bmsw-radius-card) !important;
    background: #fff !important;
    box-shadow: var(--bmsw-shadow-card);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

html.bm-sitewide-final-v1 .hikashop_products :is(
    .hikashop_product_image,
    .hikashop_product_listing_image,
    [data-bm-product-media-v15="1"]
) {
    overflow: hidden;
    min-height: 230px;
    padding: 14px;
    background: linear-gradient(145deg, #fff 0%, #f5f9fc 100%);
}

html.bm-sitewide-final-v1 .hikashop_products :is(
    .hikashop_product_image,
    .hikashop_product_listing_image,
    [data-bm-product-media-v15="1"]
) img {
    display: block;
    width: 100% !important;
    height: 230px !important;
    object-fit: contain !important;
    transition: transform 280ms ease;
}

html.bm-sitewide-final-v1 .hikashop_products :is(
    .hikashop_product_name,
    .hikashop_product_name a,
    [data-bm-product-title-v15="1"]
) {
    color: var(--bmsw-ink) !important;
    font-size: 15px !important;
    font-weight: 780 !important;
    line-height: 1.8 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

html.bm-sitewide-final-v1 .hikashop_products :is(
    .hikashop_product_price,
    .hikashop_product_price_per_unit
) {
    color: var(--bmsw-primary-dark) !important;
    font-weight: 850 !important;
    font-variant-numeric: tabular-nums;
}

html.bm-sitewide-final-v1 .hikashop_products :is(
    .hikashop_product_stock,
    .hikashop_product_price_full,
    .hikashop_product_quantity_div
) {
    margin-top: auto;
}

html.bm-sitewide-final-v1 .hikashop_products :is(
    .hikashop_cart_button,
    .hikashop_view_button,
    [data-bm-product-action-v15="1"] a,
    [data-bm-product-action-v15="1"] button
) {
    min-height: 44px;
    border-radius: 11px !important;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    html.bm-sitewide-final-v1 .hikashop_subcategories :is(.hikashop_container, .hikashop_subcontainer):hover,
    html.bm-sitewide-final-v1 .hikashop_subcategories :is(.itemWrapper, [class*="column_"]) > div > div:hover,
    html.bm-sitewide-final-v1 .hikashop_products :is(.productWrapper, [data-bm-product-card-v15="1"], .hikashop_subcontainer):hover {
        transform: translateY(-4px);
        border-color: #b9cfdf !important;
        box-shadow: var(--bmsw-shadow-hover);
    }

    html.bm-sitewide-final-v1 .hikashop_products :is(
        .productWrapper,
        [data-bm-product-card-v15="1"],
        .hikashop_subcontainer
    ):hover :is(
        .hikashop_product_image,
        .hikashop_product_listing_image,
        [data-bm-product-media-v15="1"]
    ) img {
        transform: scale(1.025);
    }
}

/* Product filters and sorting */
html.bm-sitewide-final-v1 :is(
    .filtersListing,
    .hikashop_filter_main,
    .productsListing > .sortWrapper,
    .hikam_sort_zone
) {
    border: 1px solid var(--bmsw-line) !important;
    border-radius: var(--bmsw-radius-card) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--bmsw-shadow-sm);
}

html.bm-sitewide-final-v1 .hikashop_filter_main {
    padding: 18px !important;
}

html.bm-sitewide-final-v1 .sortFilter a {
    min-height: 40px;
    border-radius: 10px;
    color: var(--bmsw-text) !important;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

html.bm-sitewide-final-v1 .sortFilter a:is(:hover, .active, .selected) {
    background: var(--bmsw-primary-soft);
    color: var(--bmsw-primary) !important;
}

/* Product detail */
html.bm-sitewide-final-v1 .hikashop_product_page {
    width: min(100% - 32px, 1220px);
    margin: 24px auto 48px;
}

html.bm-sitewide-final-v1 .hikashop_product_page .mainContent > .uk-container {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 0 !important;
}

html.bm-sitewide-final-v1 .hikashop_product_page .mainContent > .uk-container > .uk-grid-column-large {
    align-items: stretch;
    gap: 22px;
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_right_part,
html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_top_part,
html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_bottom_part {
    border: 1px solid var(--bmsw-line);
    border-radius: var(--bmsw-radius-panel);
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--bmsw-shadow-card);
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_right_part {
    overflow: hidden;
    min-height: 520px;
    padding: 22px;
    background:
        radial-gradient(circle at 85% 8%, rgba(1, 175, 253, .08), transparent 38%),
        #fff;
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_right_part img {
    display: block;
    width: 100% !important;
    max-width: 520px !important;
    height: auto !important;
    max-height: 500px;
    margin-inline: auto;
    object-fit: contain !important;
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_top_part {
    padding: clamp(22px, 3vw, 34px);
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_name_main {
    display: block;
    margin-bottom: 14px;
    color: var(--bmsw-ink) !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    font-weight: 850 !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_price_main {
    color: var(--bmsw-primary-dark);
    font-variant-numeric: tabular-nums;
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_price_main :is(
    .hikashop_product_price,
    .hikashop_product_price_per_unit,
    .bm-main-price-fallback
) {
    color: var(--bmsw-primary-dark) !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    font-weight: 850 !important;
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_bottom_part {
    margin-top: 22px;
    padding: clamp(22px, 3vw, 34px);
}

html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_description_main {
    max-width: 78ch;
    color: var(--bmsw-text);
    font-size: 15px;
    line-height: 2;
}

html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-offers-card {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #cfe3d9;
    border-radius: var(--bmsw-radius-card);
    background: linear-gradient(145deg, #fff, #f2fbf7);
}

html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-offer-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 12px 14px;
    border: 1px solid var(--bmsw-line);
    border-radius: 14px;
    background: #fff;
}

html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-price {
    color: var(--bmsw-primary-dark);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-select {
    min-height: 44px;
    border-radius: 11px;
    background: var(--bmsw-green-dark);
    color: #fff !important;
    font-weight: 750;
}

/* Public vendors directory and vendor detail */
html.bm-sitewide-final-v1 .hikamarket_vendor_listing,
html.bm-sitewide-final-v1 #hikamarket_vendor_page,
html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page,
html.bm-sitewide-final-v1 #hikamarket_cpanel_main,
html.bm-sitewide-final-v1 #hikamarket_product_listing,
html.bm-sitewide-final-v1 #hikam_product_listing,
html.bm-sitewide-final-v1 #bmed-profile-vendor-panel {
    width: min(100% - 32px, 1220px);
    margin-inline: auto;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_listing .hikamarket_vendors > :is(.uk-grid, [class*="hk-row"]) {
    align-items: stretch;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_listing .hikamarket_vendors > :is(.uk-grid, [class*="hk-row"]) > div {
    display: flex;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_listing .hikamarket_vendors > :is(.uk-grid, [class*="hk-row"]) > div > div {
    width: 100%;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--bmsw-line);
    border-radius: var(--bmsw-radius-card);
    background: #fff;
    box-shadow: var(--bmsw-shadow-card);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_listing .hikamarket_vendors img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f3f8fb);
}

html.bm-sitewide-final-v1 .hikamarket_vendor_listing .hikamarket_vendors a {
    color: var(--bmsw-ink) !important;
    font-weight: 750;
    line-height: 1.7;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    html.bm-sitewide-final-v1 .hikamarket_vendor_listing .hikamarket_vendors > :is(.uk-grid, [class*="hk-row"]) > div > div:hover {
        transform: translateY(-4px);
        border-color: #b9cfdf;
        box-shadow: var(--bmsw-shadow-hover);
    }
}

html.bm-sitewide-final-v1 #hikamarket_vendor_top,
html.bm-sitewide-final-v1 #hikamarket_vendor_page .hikamarket_vendor_description,
html.bm-sitewide-final-v1 #hikamarket_vendor_page .hikamarket_vendor_fields,
html.bm-sitewide-final-v1 #hikamarket_vendor_page .hikamarket_submodules {
    margin-bottom: 18px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--bmsw-line);
    border-radius: var(--bmsw-radius-panel);
    background: #fff;
    box-shadow: var(--bmsw-shadow-card);
}

html.bm-sitewide-final-v1 #hikamarket_vendor_top img {
    border: 1px solid var(--bmsw-line);
    border-radius: 16px;
    background: #fff;
    object-fit: contain;
}

html.bm-sitewide-final-v1 #hikamarket_vendor_description {
    max-width: 78ch;
    color: var(--bmsw-text);
    line-height: 2;
}

/* Become-a-vendor and seller data forms */
html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page {
    margin-top: 24px;
    margin-bottom: 48px;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid var(--bmsw-line);
    border-radius: var(--bmsw-radius-panel);
    background:
        radial-gradient(circle at 94% 0, rgba(35, 173, 119, .08), transparent 24rem),
        #fff;
    box-shadow: var(--bmsw-shadow-card);
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .bigTitle {
    margin-bottom: 28px !important;
    font-size: clamp(25px, 3vw, 36px) !important;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .hikamarket_vendor_registration_page {
    row-gap: 18px;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .hikam_options {
    margin-bottom: 16px;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .uk-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--bmsw-ink);
    font-size: 13px;
    font-weight: 700;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .formRequired {
    color: var(--bmsw-danger);
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page :is(
    .hikashop_registration_vendor_info_title,
    .hikashop_registration_address_info_title
) {
    grid-column: 1 / -1;
    margin: 10px 0 2px;
    padding: 13px 16px;
    border-right: 4px solid var(--bmsw-green);
    border-radius: 12px;
    background: var(--bmsw-green-soft);
    color: var(--bmsw-green-dark);
    font-weight: 800;
}

html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* Seller dashboard, products and orders */
html.bm-sitewide-final-v1 :is(
    #hikamarket_cpanel_main,
    #hikamarket_product_listing,
    #hikam_product_listing,
    #bmed-profile-vendor-panel
) {
    margin-top: 24px;
    margin-bottom: 48px;
}

html.bm-sitewide-final-v1 :is(.bm-profile-panel-hero, .bmed-profile-vendor-hero) {
    overflow: hidden;
    padding: clamp(22px, 3vw, 32px) !important;
    border: 0 !important;
    border-radius: var(--bmsw-radius-panel) !important;
    background:
        radial-gradient(circle at 10% 0, rgba(1, 175, 253, .22), transparent 17rem),
        linear-gradient(135deg, var(--bmsw-primary-dark), var(--bmsw-primary)) !important;
    color: #fff !important;
    box-shadow: 0 18px 44px rgba(3, 47, 91, .18) !important;
}

html.bm-sitewide-final-v1 :is(.bm-profile-panel-hero, .bmed-profile-vendor-hero) :is(h1, h2, h3, p, span) {
    color: #fff !important;
}

html.bm-sitewide-final-v1 :is(.bm-profile-panel-grid, .bmed-profile-vendor-grid) {
    align-items: stretch;
    gap: 14px !important;
}

html.bm-sitewide-final-v1 :is(.bm-profile-panel-grid a, .bmed-profile-vendor-card) {
    min-height: 112px;
    border: 1px solid var(--bmsw-line) !important;
    border-radius: var(--bmsw-radius-card) !important;
    background: #fff !important;
    color: var(--bmsw-ink) !important;
    box-shadow: var(--bmsw-shadow-card) !important;
    cursor: pointer;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

html.bm-sitewide-final-v1 :is(.bm-profile-panel-grid a, .bmed-profile-vendor-card).active {
    border-color: #8eb8d8 !important;
    background: var(--bmsw-primary-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(5, 66, 126, .12), var(--bmsw-shadow-card) !important;
}

@media (hover: hover) and (pointer: fine) {
    html.bm-sitewide-final-v1 :is(.bm-profile-panel-grid a, .bmed-profile-vendor-card):hover {
        transform: translateY(-3px);
        border-color: #b9cfdf !important;
        box-shadow: var(--bmsw-shadow-hover) !important;
    }
}

html.bm-sitewide-final-v1 .bm-profile-panel-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
}

html.bm-sitewide-final-v1 .bm-profile-panel-frame {
    width: 100%;
    border: 1px solid var(--bmsw-line) !important;
    border-radius: var(--bmsw-radius-card) !important;
    background: #fff;
    box-shadow: var(--bmsw-shadow-sm);
}

html.bm-sitewide-final-v1 :is(
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.uk-border, .ordersTable, .hikamarket_section_container) {
    border-color: var(--bmsw-line) !important;
    border-radius: var(--bmsw-radius-card) !important;
    background: #fff;
    box-shadow: var(--bmsw-shadow-sm);
}

html.bm-sitewide-final-v1 :is(
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.uk-border, .ordersTable) {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    html.bm-sitewide-final-v1 :is(
        #hikamarket_product_listing,
        #hikam_product_listing
    ) :is(.uk-border, .ordersTable):hover {
        border-color: #b9cfdf !important;
        box-shadow: var(--bmsw-shadow-card);
    }
}

html.bm-sitewide-final-v1 :is(
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.header, th) {
    background: var(--bmsw-primary-soft) !important;
    color: var(--bmsw-primary-dark) !important;
    font-weight: 800 !important;
}

html.bm-sitewide-final-v1 :is(
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.row, tr) {
    transition: background-color 160ms ease;
}

html.bm-sitewide-final-v1 :is(
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.row, tbody tr):hover {
    background: #f5f9fc;
}

html.bm-sitewide-final-v1 :is(
    #hikamarket_product_listing,
    #hikam_product_listing
) :is(.hk-label, .uk-label, .order-label) {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding-inline: 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

html.bm-sitewide-final-v1 :is(
    .hikashop_products_pagination,
    .hikashop_subcategories_pagination,
    .hikamarket_listing_pagination,
    .hikamarket_pagination
) a {
    display: inline-grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--bmsw-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bmsw-primary) !important;
    text-decoration: none;
}

/* Responsive layout */
@media (max-width: 1199px) {
    html.bm-sitewide-final-v1 .hikashop_products :is(
        .hikashop_product_image,
        .hikashop_product_listing_image,
        [data-bm-product-media-v15="1"]
    ),
    html.bm-sitewide-final-v1 .hikashop_products :is(
        .hikashop_product_image,
        .hikashop_product_listing_image,
        [data-bm-product-media-v15="1"]
    ) img {
        min-height: 200px;
        height: 200px !important;
    }
}

@media (max-width: 959px) {
    html.bm-sitewide-final-v1 .hikashop_subcategories_listing,
    html.bm-sitewide-final-v1 .hikashop_products_listing,
    html.bm-sitewide-final-v1 .hikashop_product_page,
    html.bm-sitewide-final-v1 .hikamarket_vendor_listing,
    html.bm-sitewide-final-v1 #hikamarket_vendor_page,
    html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page,
    html.bm-sitewide-final-v1 #hikamarket_cpanel_main,
    html.bm-sitewide-final-v1 #hikamarket_product_listing,
    html.bm-sitewide-final-v1 #hikam_product_listing,
    html.bm-sitewide-final-v1 #bmed-profile-vendor-panel {
        width: min(100% - 24px, 100%);
    }

    html.bm-sitewide-final-v1 .hikashop_product_page .mainContent > .uk-container > .uk-grid-column-large {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_right_part {
        min-height: 420px;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-offer-row {
        grid-template-columns: 1fr auto;
    }

    html.bm-sitewide-final-v1 :is(.bm-profile-panel-grid, .bmed-profile-vendor-grid) {
        grid-template-columns: 1fr !important;
    }

    html.bm-sitewide-final-v1 :is(
        #hikamarket_product_listing,
        #hikam_product_listing
    ) :is(.ordersTable, table) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }
}

@media (max-width: 700px) {
    html.bm-sitewide-final-v1 .hikashop_subcategories_listing {
        padding: 14px !important;
        border-radius: 18px;
    }

    html.bm-sitewide-final-v1 .hikashop_products :is(
        .hikashop_product_image,
        .hikashop_product_listing_image,
        [data-bm-product-media-v15="1"]
    ),
    html.bm-sitewide-final-v1 .hikashop_products :is(
        .hikashop_product_image,
        .hikashop_product_listing_image,
        [data-bm-product-media-v15="1"]
    ) img {
        min-height: 180px;
        height: 180px !important;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page {
        margin-top: 14px;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_right_part {
        min-height: 330px;
        padding: 14px;
        border-radius: 18px;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_top_part,
    html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_bottom_part,
    html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page {
        padding: 18px;
        border-radius: 18px;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page #hikashop_product_name_main {
        font-size: 25px !important;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-offer-row {
        grid-template-columns: 1fr;
    }

    html.bm-sitewide-final-v1 .hikashop_product_page .bm-vendor-select {
        width: 100%;
    }

    html.bm-sitewide-final-v1 .hikamarket_vendor_edit_page .form-actions > * {
        width: 100%;
    }
}

/* v1.5.4 — exact Joomla/HikaShop brands footer contract. */
html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom > .list-footer.pagination-toolbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "limit pages counter";
    align-items: center;
    gap: 12px 18px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom > .list-footer .limit {
    grid-area: limit;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom > .list-footer > ul.hikashop_pagination {
    grid-area: pages;
    justify-content: center !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom > .list-footer > .counter {
    grid-area: counter;
    margin: 0 !important;
    color: var(--bmsw-text);
    font-size: 13px;
    line-height: 1.8;
    white-space: nowrap;
}

/* Do not depend on Font Awesome: Joomla emits empty FA spans on this route. */
html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom .page-link > .fas {
    display: inline-grid !important;
    width: 1em;
    height: 1em;
    place-items: center;
    overflow: visible;
    color: currentColor;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 0 !important;
    font-style: normal !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom .fa-angle-double-left::before {
    content: "«" !important;
    font-size: 18px !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom .fa-angle-left::before {
    content: "‹" !important;
    font-size: 20px !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom .fa-angle-right::before {
    content: "›" !important;
    font-size: 20px !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands
.hikashop_subcategories_pagination_bottom .fa-angle-double-right::before {
    content: "»" !important;
    font-size: 18px !important;
}

@media (max-width: 700px) {
    html.bm-sitewide-final-v1.bm-final-route-brands
    .hikashop_subcategories_pagination_bottom > .list-footer.pagination-toolbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "limit"
            "pages"
            "counter";
        justify-items: center;
        gap: 12px;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands
    .hikashop_subcategories_pagination_bottom > .list-footer > ul.hikashop_pagination {
        max-width: 100%;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands
    .hikashop_subcategories_pagination_bottom > .list-footer > .counter {
        white-space: normal;
        text-align: center;
    }
}

/* v1.5.3 — brands directory pagination: RTL, accessible and mobile-safe. */
html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "pages limit"
        "counter counter";
    align-items: center;
    gap: 14px 20px;
    width: 100%;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--bmsw-line);
    border-radius: 16px;
    background: #f8fbfd;
    direction: rtl;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(
    .pagination__wrapper,
    .pagination-wrapper,
    .pages-links,
    nav
) {
    grid-area: pages;
    min-width: 0;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(
    ul.pagination,
    ul.pagination-list,
    .pagination ul,
    nav ul
) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(li, li::marker) {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    content: "";
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(
    .page-link,
    .pagenav,
    ul.pagination a,
    ul.pagination span
) {
    display: inline-grid !important;
    min-width: 44px;
    min-height: 44px;
    padding: 7px 11px !important;
    place-items: center;
    border: 1px solid var(--bmsw-line-strong) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--bmsw-primary) !important;
    font: inherit;
    font-weight: 750;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(
    li.active .page-link,
    li.active .pagenav,
    li.active > span,
    .page-item.active .page-link
) {
    border-color: var(--bmsw-primary) !important;
    background: var(--bmsw-primary) !important;
    color: #fff !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(
    li.disabled .page-link,
    li.disabled .pagenav,
    li.disabled > span
) {
    opacity: .46;
    pointer-events: none;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(.limit, .pagination-limit) {
    grid-area: limit;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 0 !important;
    color: var(--bmsw-text);
    white-space: nowrap;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom select {
    width: auto !important;
    min-width: 88px;
    min-height: 44px;
    margin: 0 !important;
    padding: 7px 34px 7px 12px !important;
    border: 1px solid var(--bmsw-line-strong) !important;
    border-radius: 11px !important;
    background-color: #fff !important;
    color: var(--bmsw-ink) !important;
    font: inherit;
    text-align: center;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom .hikashop_results_counter {
    grid-area: counter;
    display: block;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--bmsw-line);
    color: var(--bmsw-muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom a:hover {
    border-color: var(--bmsw-green) !important;
    color: var(--bmsw-green-dark) !important;
}

@media (max-width: 700px) {
    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom {
        grid-template-columns: 1fr;
        grid-template-areas:
            "pages"
            "limit"
            "counter";
        gap: 14px;
        padding: 15px 12px;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(
        ul.pagination,
        ul.pagination-list,
        .pagination ul,
        nav ul
    ) {
        justify-content: center;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom :is(.limit, .pagination-limit) {
        justify-content: center;
        white-space: normal;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_pagination_bottom .hikashop_results_counter {
        text-align: center;
    }
}

/* v1.5.0 — Brand directory: readable marks with preserved proportions. */
html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories_listing {
    padding: clamp(18px, 3vw, 32px) !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories :is(
    .hikashop_container,
    .hikashop_subcontainer,
    .itemWrapper > div > div
) {
    min-height: 190px;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories :is(
    .hikashop_category_image,
    .hikashop_category_image a,
    [class*="category_image"]
) {
    display: grid !important;
    min-height: 132px;
    place-items: center;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories .itemWrapper > div > a {
    display: grid !important;
    padding: 16px !important;
    place-items: center !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories img {
    width: 112px !important;
    max-width: 100% !important;
    height: 112px !important;
    max-height: 112px !important;
    margin-inline: auto !important;
    padding: 6px !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 700px) {
    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories :is(
        .hikashop_container,
        .hikashop_subcontainer,
        .itemWrapper > div > div
    ) {
        min-height: 164px;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories img {
        width: min(72%, 176px) !important;
        max-width: 176px !important;
        height: 132px !important;
        max-height: 132px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.bm-sitewide-final-v1 :is(
        .hikashop_products_listing,
        .hikashop_subcategories_listing,
        .hikashop_product_page,
        .hikamarket_vendor_listing,
        .hikamarket_vendor_edit_page,
        #hikamarket_vendor_page,
        #hikamarket_cpanel_main,
        #hikamarket_product_listing,
        #hikam_product_listing,
        #bmed-profile-vendor-panel
    ) *,
    html.bm-sitewide-final-v1 :is(
        .hikashop_products_listing,
        .hikashop_subcategories_listing,
        .hikashop_product_page,
        .hikamarket_vendor_listing,
        .hikamarket_vendor_edit_page,
        #hikamarket_vendor_page,
        #hikamarket_cpanel_main,
        #hikamarket_product_listing,
        #hikam_product_listing,
        #bmed-profile-vendor-panel
    ) *::before,
    html.bm-sitewide-final-v1 :is(
        .hikashop_products_listing,
        .hikashop_subcategories_listing,
        .hikashop_product_page,
        .hikamarket_vendor_listing,
        .hikamarket_vendor_edit_page,
        #hikamarket_vendor_page,
        #hikamarket_cpanel_main,
        #hikamarket_product_listing,
        #hikam_product_listing,
        #bmed-profile-vendor-panel
    ) *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html.bm-sitewide-final-v1 :is(
        .hikashop_subcategories :is(.hikashop_container, .hikashop_subcontainer),
        .hikashop_products :is(.productWrapper, [data-bm-product-card-v15="1"], .hikashop_subcontainer),
        .hikamarket_vendor_listing .hikamarket_vendors > :is(.uk-grid, [class*="hk-row"]) > div > div,
        .bm-profile-panel-grid a,
        .bmed-profile-vendor-card
    ):hover {
        transform: none !important;
    }
}

/* v1.5.2 — final low-risk brand directory polish. */
html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories :is(
    .hikashop_container,
    .hikashop_subcontainer,
    .itemWrapper > div > div
) {
    min-height: 220px;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories :is(
    .hikashop_category_image,
    .hikashop_category_image a,
    [class*="category_image"]
) {
    min-height: 156px;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories img {
    width: min(82%, 176px) !important;
    height: 144px !important;
    max-height: 144px !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories .hikashop_category_name {
    display: block !important;
    margin-top: 10px !important;
    color: #123b60 !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1.7 !important;
    text-align: center !important;
}

html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories a:focus-visible {
    outline: 3px solid #22ad77 !important;
    outline-offset: 4px !important;
}

@media (max-width: 700px) {
    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories :is(
        .hikashop_container,
        .hikashop_subcontainer,
        .itemWrapper > div > div
    ) {
        min-height: 188px;
    }

    html.bm-sitewide-final-v1.bm-final-route-brands .hikashop_subcategories img {
        width: min(78%, 156px) !important;
        height: 120px !important;
        max-height: 120px !important;
    }
}
