@media (min-width: 1400px) {
    .products-sidebar-col {
        flex: 0 0 auto;
        width: 20%;
        min-width: 220px;
        max-width: 300px;
    }

    .products-main-col {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .products-main-col .shop_container.grid .col-lg-jr,
    .products-main-col .shop_container:not(.list) .col-lg-jr {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }

    .products-main-col .shop_container.list .col-lg-jr,
    .shop_container.list > [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1025px) and (max-width: 1399.98px) {
    .products-sidebar-col {
        flex: 0 0 auto;
        width: 22%;
        min-width: 220px;
        max-width: 280px;
    }

    .products-main-col {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .products-main-col .shop_container.grid .col-lg-jr,
    .products-main-col .shop_container:not(.list) .col-lg-jr {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }

    .products-main-col .shop_container.list .col-lg-jr,
    .shop_container.list > [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.cat-filter li {
    margin-left: 5px !important;
}

.cat-filter .cat-filter-pill.active {
    background-color: var(--main) !important;
}

.cat-filter .nav-item {
    margin-bottom: 6px;
}

.tree-container {
    overflow-y: auto;
    max-height: 320px;
}

.list_category,
.sub_category_tree,
.list_brand {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.list_category li,
.sub_category_tree li,
.list_brand li {
    min-width: 0;
}

.sub_category_tree {
    padding-left: 12px;
    margin-left: 8px;
    border-left: 1.5px solid #e2e8f0;
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Filter Card Container */
.shop-filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-filters:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

/* Header */
.shop-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.shop-filters-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.shop-filters-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(18, 107, 245, 0.1);
    color: var(--main, #126bf5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.shop-filters-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
    line-height: 1;
}

.shop-filters-clear-btn {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.shop-filters-clear-btn:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* Widget Sections */
.shop-filters .widget,
.shop-filters .widget + .widget {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 1px solid #f1f5f9;
}

.shop-filters .widget:first-child {
    border-top: none;
}

.shop-filters .widget_title {
    margin: 0;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.shop-filters .widget_title:hover {
    background: #f8fafc;
    color: #0f172a;
}

.shop-filters .widget_title_text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: var(--main, #126bf5);
    color: #ffffff;
    line-height: 1;
}

/* Accordion Toggle Arrow */
.shop-filters .toggle-arrow-main {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, color 0.2s;
    border: none;
}

.shop-filters .widget_title:hover .toggle-arrow-main {
    background: #e2e8f0;
    color: #1e293b;
}

.shop-filters .toggle-arrow-main.closed {
    transform: rotate(0deg);
}

.shop-filters .toggle-arrow-main.open {
    transform: rotate(180deg);
    background: rgba(18, 107, 245, 0.1);
    color: var(--main, #126bf5);
}

/* Inner Lists */
.list_brand, .tree-container {
    padding: 4px 10px 12px 10px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

/* Row: Checkbox item */
.sidebar .custome-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 2px 0;
    padding: 5px 8px;
    border-radius: 6px;
    position: relative;
    transition: background-color 0.15s ease;
}

.sidebar .custome-checkbox:hover {
    background-color: #f1f5f9;
}

.sidebar .custome-checkbox .form-check-input {
    display: none !important;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.sidebar .custome-checkbox .form-check-label {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1.35;
    position: relative;
}

/* Checkbox Box */
.sidebar .custome-checkbox .form-check-label::before {
    content: "";
    box-sizing: border-box;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    margin: 0 8px 0 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    display: block;
    transition: all 0.15s ease;
}

.sidebar .custome-checkbox:hover .form-check-label::before {
    border-color: var(--main, #126bf5);
}

.sidebar .custome-checkbox input[type="checkbox"]:checked + .form-check-label::before {
    background-color: var(--main, #126bf5);
    border-color: var(--main, #126bf5);
    box-shadow: 0 1px 2px rgba(18, 107, 245, 0.2);
}

/* Checkmark */
.sidebar .custome-checkbox input[type="checkbox"] + .form-check-label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 5px;
    height: 9px;
    border-left: none;
    border-top: none;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sidebar .custome-checkbox input[type="checkbox"]:checked + .form-check-label::after {
    opacity: 1;
}

.sidebar .custome-checkbox .form-check-label span,
.sidebar .category-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-size: 13px;
    color: #475569;
    font-weight: 400;
    transition: color 0.15s ease, font-weight 0.15s ease;
    line-height: 1.35;
}

.sidebar .custome-checkbox:hover .form-check-label span,
.sidebar .custome-checkbox:hover .category-text {
    color: #0f172a;
}

.sidebar .custome-checkbox input[type="checkbox"]:checked + .form-check-label span,
.sidebar .custome-checkbox input[type="checkbox"]:checked + .form-check-label .category-text {
    color: #0f172a;
    font-weight: 600;
}

/* Subcategory Toggle Chevron */
.sidebar .toggle-arrow {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
    border: none;
}

.sidebar .toggle-arrow:hover {
    background: #e2e8f0;
    color: #334155;
}

.sidebar .toggle-arrow.closed {
    transform: rotate(0deg);
}

.sidebar .toggle-arrow.open {
    transform: rotate(180deg);
    color: var(--main, #126bf5);
    background: rgba(18, 107, 245, 0.08);
}

/* Mobile Modal Backdrop */
.mobile-filters-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-filters-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.filters-modal-locked {
    overflow: hidden !important;
    touch-action: none;
}

/* ==========================================================================
   Promotion Filter Strip Styles
   ========================================================================== */
.promo-strip {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.promo-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}

.promo-strip-header:hover .promo-strip-hint {
    color: #334155;
}

.promo-strip-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.promo-strip-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.promo-strip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 107, 245, 0.08);
    color: var(--main, #126bf5);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.promo-strip-tag i {
    font-size: 13px;
}

.promo-active-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.promo-active-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
}

.promo-active-label i {
    color: var(--main, #126bf5);
    font-size: 13px;
}

.promo-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: var(--main, #126bf5);
    padding: 4px 10px 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(18, 107, 245, 0.06);
    flex-shrink: 0;
}

.promo-active-pill-icon {
    font-size: 11px;
    color: var(--main, #126bf5);
    display: inline-flex;
    align-items: center;
}

.promo-active-pill-name {
    font-weight: 700;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-strip-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.promo-strip-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.promo-strip-header:hover .promo-strip-collapse-btn,
.promo-strip-collapse-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.promo-strip-collapse-btn svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-strip.is-collapsed .promo-strip-collapse-btn svg {
    transform: rotate(180deg);
}

.promo-cards-container {
    margin-top: 14px;
}

.promo-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.promo-card {
    flex: 1 1 230px;
    min-width: 210px;
    max-width: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    user-select: none;
}

.promo-card:hover,
.promo-card:focus-visible {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    outline: none;
}

.promo-card.active {
    border-color: var(--main, #126bf5);
    background: #f8fbff;
    box-shadow: 0 1px 4px rgba(18, 107, 245, 0.15);
}

.promo-card-all {
    flex: 0 1 200px;
    min-width: 170px;
}

.promo-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.promo-card:hover .promo-card-icon {
    color: var(--main, #126bf5);
    background: rgba(18, 107, 245, 0.08);
}

.promo-card.active .promo-card-icon {
    background: var(--main, #126bf5);
    color: #ffffff;
}

.promo-card-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.promo-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;
    min-height: 18px;
}

.promo-card-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    line-height: 1.4;
}

.promo-badge-deal {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.promo-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
    word-break: break-word;
}

.promo-card-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    word-break: break-word;
    margin-bottom: 4px;
}

.promo-card-dates {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 4px;
}

.promo-card-dates i {
    font-size: 11px;
}

.promo-strip-empty {
    padding: 24px 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13.5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.promo-empty-icon {
    font-size: 22px;
    color: #94a3b8;
}

.category-product {
    position: relative !important;
    min-height: 280px !important;
    width: 100%;
}

.category-product .shop_container {
    position: relative !important;
    min-height: 240px !important;
}

/* ==========================================================================
   Product Header Toolbar (Sort & Grid/List View)
   ========================================================================== */
.product_header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin-bottom: 12px !important;
    flex-wrap: nowrap !important;
}

.product_header_left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product_header_right {
    display: flex !important;
    align-items: center !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product_sort_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product_sort_wrapper .custom_select,
.product_sort_wrapper .sort {
    display: flex !important;
    align-items: center !important;
    height: 38px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.product_per_page_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product_per_page_wrapper .custom_select {
    display: flex !important;
    align-items: center !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.product_header .product_per_page_wrapper .select2-container {
    min-width: 72px !important;
    max-width: 90px !important;
    width: 80px !important;
}

.product_header .select2-container {
    width: 100% !important;
    height: 38px !important;
    min-width: 130px !important;
    max-width: 220px;
    margin: 0 !important;
}

.product_sort_label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.product_sort_label i {
    font-size: 13px;
    color: #94a3b8;
}

/* Tablet Layout (576px to 767.98px): Compact single row */
@media (min-width: 576px) and (max-width: 767.98px) {
    .product_header {
        height: 38px !important;
        min-height: 38px !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    .product_header_left {
        gap: 6px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .product_sort_label {
        display: none !important;
    }
    .product_sort_wrapper {
        flex: 1 1 auto !important;
        min-width: 110px !important;
    }
    .product_sort_wrapper .select2-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .product_per_page_wrapper {
        flex: 0 0 auto !important;
    }
    .product_per_page_wrapper .select2-container {
        width: 70px !important;
        min-width: 65px !important;
    }
    .product_header_right {
        flex: 0 0 auto !important;
    }
}

/* Mobile Layout (<576px): Spacious 2-row layout with Per-Page and Layout View in single bottom row */
@media (max-width: 575.98px) {
    .product_header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        min-height: auto !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    .product_header_left {
        display: contents !important;
    }
    .btn-mobile-filter {
        order: 1 !important;
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .product_sort_wrapper {
        order: 2 !important;
        flex: 1 1 calc(100% - 46px) !important;
        width: calc(100% - 46px) !important;
        min-width: 0 !important;
        height: 38px !important;
    }
    .product_sort_wrapper .select2-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .product_per_page_wrapper {
        order: 3 !important;
        flex: 0 0 auto !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .product_per_page_wrapper .select2-container {
        width: 76px !important;
        min-width: 70px !important;
        max-width: 90px !important;
    }
    .product_header_right {
        order: 4 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Mobile Filter Action Button in Product Header */
.btn-mobile-filter {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--main, #126bf5) !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    position: relative !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
}

@media (min-width: 1025px) {
    .btn-mobile-filter {
        display: none !important;
    }
}

.btn-mobile-filter i {
    font-size: 14px;
    color: var(--main, #126bf5);
}

.btn-mobile-filter:hover,
.btn-mobile-filter:active {
    background: #f8fafc !important;
    border-color: var(--main, #126bf5) !important;
    color: var(--main, #126bf5) !important;
}

.mobile-filter-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--main, #126bf5);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

/* Grid & List View Segmented Switcher */
.products_view {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    height: 38px !important;
    box-sizing: border-box !important;
    padding: 3px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    gap: 3px !important;
    margin: 0 !important;
    vertical-align: top !important;
}

.products_view .shorting_icon {
    width: 32px !important;
    height: 30px !important;
    line-height: 30px !important;
    border-radius: 6px !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: #64748b !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.products_view .shorting_icon .ti-layout-list-thumb,
.products_view .shorting_icon .ti-view-grid {
    font-size: 14px !important;
    line-height: 1 !important;
}

.products_view .shorting_icon:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.products_view .shorting_icon.active {
    background: #ffffff !important;
    color: var(--main, #126bf5) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1) !important;
    font-weight: 600 !important;
}

.shop-filters-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Modal Dialog / Pop-up Layout (<= 1024px) */
@media (max-width: 1024.98px) {
    .products-main-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .products-sidebar-col {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        width: calc(100% - 32px) !important;
        max-width: 440px !important;
        z-index: 1050 !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s ease;
        pointer-events: none;
    }

    .products-sidebar-col.mobile-modal-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .products-sidebar-col .sidebar {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.08);
        min-height: 320px !important;
        max-height: 80vh;
        max-height: 80dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }

    .shop-filters {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .shop-filters-header {
        padding: 14px 18px;
        background: #ffffff;
        border-bottom: 1px solid #edf2f7;
        flex-shrink: 0;
    }

    .shop-filters-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 6px 12px 6px;
        scrollbar-gutter: stable;
    }

    .shop-filters .list_brand,
    .shop-filters .tree-container {
        max-height: 260px;
    }

    .mobile-filter-close-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: #f1f5f9;
        border: none;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
        padding: 0;
    }

    .mobile-filter-close-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
    }
}

/* Tablet filter modal sizing (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024.98px) {
    .products-sidebar-col {
        max-width: 580px !important;
    }

    .products-sidebar-col .sidebar {
        min-height: 440px !important;
        max-height: 85vh !important;
        max-height: 85dvh !important;
    }

    .shop-filters-header {
        padding: 16px 22px !important;
    }

    .shop-filters-body {
        padding: 8px 16px 18px 16px !important;
    }

    .shop-filters .list_brand,
    .shop-filters .tree-container {
        max-height: 380px !important;
    }

    .shop-filters-title {
        font-size: 16px !important;
    }

    .shop-filters .widget_title {
        padding: 14px 10px 10px 10px !important;
    }
}

/* Tablet landscape (992px – 1024.98px): 3 products per row (33.33% each) */
@media (min-width: 992px) and (max-width: 1024.98px) {
    .products-main-col .shop_container.grid .col-lg-jr,
    .products-main-col .shop_container:not(.list) .col-lg-jr,
    .shop_container.grid .col-lg-jr,
    .shop_container:not(.list) .col-lg-jr {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

/* Tablet portrait (768px – 991.98px): 3 products per row (33.33% each) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .products-main-col .shop_container.grid .col-lg-jr,
    .products-main-col .shop_container:not(.list) .col-lg-jr,
    .shop_container.grid .col-lg-jr,
    .shop_container:not(.list) .col-lg-jr {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

/* Mobile (<= 767.98px): 2 products per row (50% each) */
@media (max-width: 767.98px) {
    .products-main-col .shop_container.grid .col-lg-jr,
    .products-main-col .shop_container:not(.list) .col-lg-jr,
    .shop_container.grid .col-lg-jr,
    .shop_container:not(.list) .col-lg-jr {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

