/* AM_VENDOR_CSS: category page styles, moved out of front/vendor.blade.php unchanged (same order) */

/* ---- part 1 ---- */

        .slick-track {
            display: flex;
            gap: 10px; /* Adjust the gap between thumbnails */
        }

        #modalAdditionalThumbnails {
            display: flex;
            gap: 10px; /* Adjust the value as needed */
        }


        .px-1{
            max-width: 8vw;
            max-height: 10vw;
            border: 1px solid #0ABAB5 !important;
            gap: 10px;
        }

        .ar-lang .brand-container{
            transform: translateX(3vw) !important;
        }

        .overlapping-element {
            pointer-events: none; /* Prevents the element from intercepting clicks */
        }


        .product-image-wrapper {
            position: relative;
        }

        .magnifier-icon {
            position: absolute;
            top: 10px;
            right: 10px;
            display: none; /* Initially hidden */
            font-size: 24px;
            color: #fff;
            background: transparent;
            padding: 5px;
            border-radius: 50%;
            z-index: 2;
            text-decoration: none;
        }

        .product-image-wrapper:hover .magnifier-icon {
            display: block;
        }

        .magnifier-icon {
            transition: opacity 0.3s ease;
            opacity: 0;
        }

        .product-image-wrapper:hover .magnifier-icon {
            opacity: 1;
        }

        input[name="attributes[6]"]:checked + label.size-label {
            background-color: #0ABAB5;
            color: white;
            border-color: #0ABAB5;
        }

        input[name="attributes[7]"]:checked + label.size-label {
            background-color: #0ABAB5;
            color: white;
            border-color: #0ABAB5;
        }


        .color-radio:checked + .color-label {
            border-width: 3px !important;
            transform: scale(1.1);
            transition: all 0.2s ease-in-out;
            border-color: black !important;
        }

        .color-radio {
            position: absolute;
            opacity: 0;
        }

        #hiddenProductTemplates{
            display: none !important;
        }
        .row.no-gutters {
            margin-left: 0 !important;
            margin-right: 0 !important;
            text-wrap: nowrap !important;
            display: flex;
            flex-direction: row !important;
        }

        .row.no-gutters > [class*='col-'] {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .row.no-gutters > div {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }




        body {
            overflow-x: hidden !important;
            margin: 0;
            padding: 0;
        }
        .centered-heading {
            text-align: center;
            position: relative;
            margin: 20px 0;
        }

        .centered-heading::before,
        .centered-heading::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30%;
            border-top: 1px solid grey;
        }

        .centered-heading::before {
            left: 0;
        }

        .centered-heading::after {
            right: 0;
        }



        #hiddenProductTemplates {
            display: none;
        }

        .add-to-wishlist{
            border: none !important;
            background-color: transparent;
        }
        body {
            width: 100% !important;
            overflow-x: hidden !important;
            margin: 0;
            padding: 0;
        }


        @media (max-width: 600px) {

            .ar-lang .filter-mobile{
                padding-right: 10px;
            }

            .filter-overlay-mobile {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.6);
                z-index: 1000 !important;
                opacity: 0;
                transition: opacity 0.9s ease-in-out;
                visibility: hidden;
            }
            .filter-overlay-mobile.active {
                opacity: 1;
                visibility: visible;
            }

            .filter {
                position: fixed;
                bottom: -100%;
                left: 0;
                border-top-left-radius: 20px;
                border-top-right-radius: 20px;
                width: 100%;
                height: 45% !important;
                max-height: 55vh !important;
                background: #fff;
                box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
                padding: 10px 20px;
                text-align: center;
                transition: bottom 0.9s ease-in-out;
                z-index: 1010;
                overflow: visible;
            }
            .filter.active {
                bottom: 0;
            }

            .filter-content {
                display: flex;
                flex-direction: column;
                gap: 8px;
                text-align: right;
            }

            .filter-content h5 {
                font-size: 18px;
                font-weight: bold;
                text-align: center !important;
                color: #333;
                margin-bottom: 10px;
            }

            /*.filter-content label {*/
            /*    display: flex;*/
            /*    align-items: center;*/
            /*    font-size: 14px; */
            /*    padding: 6px 8px; */
            /*    border-radius: 8px;*/
            /*    cursor: pointer;*/
            /*    justify-content: flex-start; */
            /*}*/

            .filter-content label input {
                margin-left: 8px;
                margin-right: 0;
            }


            .filter-content label {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 10px;
                position: relative;
                cursor: pointer;
            }

            .filter-content input[type="radio"] {
                opacity: 0;
                position: absolute;
                left: 0;
            }


            .filter-content label::before {
                content: "";
                display: inline-block;
                width: 20px;
                height: 20px;
                border: 2px solid #ccc;
                border-radius: 50%;
                margin-left: 8px;
                transition: all 0.3s ease;
            }

            /* Checked state */
            .filter-content input[type="radio"]:checked + label::before {
                border-color: #0abab50abab5; /* Change color when checked */
                background-color: #0ABAB5;
            }

            .filter-content input[type="radio"]:checked + label::after {
                content: "";
                display: block;
                width: 12px;
                height: 12px;
                background: white;
                border-radius: 50%;
                position: absolute;
                left: 7px;
                top: 50%;
                transform: translateY(-50%);
            }


            .filter-content label:hover::before {
                border-color: #0ABAB5;
            }


            .filter-content input[type="radio"]:focus + label::before {
                box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
            }

            .button-group {
                display: flex;
                justify-content: space-between;
                gap: 8px;
                flex-direction: row-reverse;
                margin-bottom: 15vw !important;
            }

            .button-group button {
                flex: 1;
                padding: 10px;
                font-size: 14px;
                font-weight: bold;
                border-radius: 8px;
                cursor: pointer;
                border: none;

            }

            #applyFilterMobile {
                background-color: #000000;
                color: white;

            }

            #closeFilterMobile {
                background-color: #ddd;
                color: #333;
            }



            .filterMenu{
                display: none !important;
            }
            header {
                display: none;
            }
            .product-details-template {
                display: none !important;
            }
        }
        .buy-now {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100px; /* Set your desired fixed width */
            height: 30px; /* Set your desired fixed height */
            background-color: #000 !important;
            color: #fff !important;
            margin-top: 8px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-wrap: nowrap !important;
        }

        .card-title {
            margin-top: 5px !important;
            font-size: 16px !important;
            text-align: center;
        }

        .product-price {
            display: flex !important;
            flex-direction: row-reverse !important;
            align-items: center !important;
            gap: 20px;
        }


        .product-price p {
            margin: 0 !important;
            padding-top: 20px !important;
            font-size: 16px !important;
            white-space: nowrap;
        }
        .image-container {
            position: relative;
            display: inline-block;
        }

        @media (min-width: 600px) {

            .ar-lang .filterMenu{
                display: flex;
                justify-content: flex-end !important;
            }

            .filterMenuMobile{
                display: none !important;
            }
            .filter{
                display: none !important;
            }


            .product-details-template .badge{
                background-color: red !important;
            }

            .ar-lang .product-price p {
                margin-right: 12vw !important;
                padding-top: 20px !important;
                font-size: 16px !important;
                white-space: nowrap;
            }
            .slider-for {
                margin-bottom: 1rem; /* space between main slider and thumbnails */
            }
            .slider-nav {
                display: block; /* ensure it's visible */
            }

            .navbar-right{
                display: none;
            }
            .product_seo {
                display: none;
            }
            .border-bottom{
                display: none;
            }
            .main-price{
                transform: translateY(1vw);
            }
            .sku-part{
                display: none !important;
            }

            .buy-now1 {
                min-width: 280px; /* Increased width */
                padding: 0.6rem 1rem !important;
                font-size: 14px !important;
                height: 45px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                vertical-align: middle;

            }

            .addToWishlist {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                height: 45px;
                margin-right: 5vw;
                vertical-align: middle;
            }

            .addToWishlist:hover{
                color: transparent !important;
            }

            .w-45 {
                display: inline-block !important;
                width: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                vertical-align: middle;
            }
            .w-30 {
                display: inline-block !important;
                width: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                vertical-align: middle;
            }
            .share-icon {
                display: none !important;
            }

            .product_space {
                flex-wrap: nowrap !important;
                gap: 1rem;
            }

            .input-group {
                max-width: 120px;
                flex: 0 0 auto;
            }

            .input-quality {
                height: 40px !important;
                font-size: 14px !important;
                padding-left: 2.5rem !important;
                padding-right: 2.5rem !important;
            }

            .up,
            .down {
                top: 50% !important;
                transform: translateY(-50%);
                z-index: 2;
            }

            .down {
                left: 0.3rem !important;
            }

            .up {
                right: 0.3rem !important;
            }

            .ar-lang .product-details-template .product-name{
                display: flex;
                align-items: flex-start !important;
            }
            .buy-now{
                display: none;
            }


            #productModal .slider-for img {
                min-height: 400px;
                object-fit: contain;
                background: #f8f9fa;
            }

            #productModal .slick-slide {
                transition: opacity 0.3s ease;
            }

            #productModal .slick-active img {
                opacity: 1 !important;
            }

            #productModal .slick-loading img {
                opacity: 0;
            }

            #productModal {
                z-index: 99999 !important;
            }

            #productModal .modal-dialog {
                max-width: 90%;
                margin: 2rem auto;
            }

            #productModal .modal-content {
                min-height: 70vh;
                overflow-y: auto;
            }

            .product-image-link {
                display: block;
                position: relative;
                overflow: hidden;
            }

            .product-image-link img {
                transition: transform 0.3s ease;
            }

            .product-image-link:hover img {
                transform: scale(1.05);
            }

            body[dir="rtl"] .main-price {
                display: flex;
                flex-direction: column;
                align-items: flex-end; /* Align to the right */
            }

            body[dir="rtl"] .main-price .d-flex {
                flex-direction: row-reverse;
                justify-content: space-between;
            }

            body[dir="rtl"] .main-price .badge {
                order: 1;
            }

            body[dir="rtl"] .main-price .fs-20.text-secondary {
                order: 2;
            }

            .main-price1{
                font-size: 18px;
                align-items: flex-end !important;
            }
            .text-line-through{
                /*transform: translateY(2vw);*/
            }

            .badge-primary{
                padding: 10px 10px;
            }
            .second{
                /*margin-top: 2.4vw !important;*/
                padding-top: 2.4vw;
            }
        }

        @media screen and (max-width: 600px){


            header {
                display: none;
            }
            .product-image-link {
                pointer-events: none;
            }

            .card-title a {
                pointer-events: auto;
            }
            /*.text-line-through{*/
            /*    transform: translateY(7vw);*/
            /*}*/
            .badge-primary{
                padding: 5px 5px;
            }
            /*.second{*/
            /*    margin-top: 12vw !important;*/
            /*}*/
            .product-header{
                display: none;
            }

        }
        @media screen and (min-width: 600px){

            .navbar-right{
                display: none;
            }
            .product_seo {
                display: none;
            }
            .main-price2{
                margin-bottom: 10px !important;
                font-size: 18px;
                /*align-items: flex-end !important;*/
            }
            .vendor-img{
                height: 160px !important;
            }
        }
        .prods .card-body {
            padding: unset !important;
        }

        .custom-control-input:checked ~ .custom-control-label-secondary:before, .custom-control-input:not(:disabled):active ~ .custom-control-label-secondary:before {
            border-color: var(--bs-primary-color) !important;
            background-color: var(--bs-primary-color) !important;
        }




        @media (min-width : 992px) {
            .offcanvas {
                visibility      : visible;
                position        : relative;
                background      : none;
                border          : none;
                justify-content : end;
                color           : var(--bs-primary-color);
            }
        }
        @media (max-width : 992px) {
            .offcanvas-start-lg {
                width: 90%;
                top          : 0;
                left         : 0;
                border-right : 1px solid rgba(0, 0, 0, .2);
                transform    : translateX(-100%);
            }
        }
        @media (max-width: 600px) {

            .custom-dropdown-toggle::after {
                font-size: 15px !important;
            }
        }
        .vendor-img {
            border-radius: 50%;
        }
        @media screen and (max-width: 600px) {
            .vendor-img {
                max-height: 100px !important;
                height: 100px !important;
            }
        }

                /*.ar-lang .navbar-right{*/
        /*    transform: translateX(-5vw) !important;*/
        /*}*/

        /* فلتر ماركات القسم */
        .andmore-brand-filter {
            position: relative;
            top: auto;
            z-index: 1;
            background: #ffffff;
            border: 1px solid #eeeeee;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
        }

        .andmore-brand-filter-header {
            width: 100%;
            border: 0;
            background: #ffffff;
            padding: 17px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #111111;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
        }

        .andmore-brand-filter-header:hover {
            background: #fafafa;
        }

        .andmore-brand-filter-arrow {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #f3f3f3;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.25s ease;
        }

        .andmore-brand-filter.is-collapsed .andmore-brand-filter-arrow {
            transform: rotate(180deg);
        }

        .andmore-brand-filter.is-collapsed .andmore-brand-filter-body {
            display: none;
        }

        .andmore-brand-filter-body {
            padding: 16px;
            border-top: 1px solid #eeeeee;
        }

        .andmore-brand-search-box {
            position: relative;
            margin-bottom: 14px;
        }

        .andmore-brand-search-icon {
            position: absolute;
            top: 50%;
            right: 14px;
            transform: translateY(-50%);
            color: #888888;
            pointer-events: none;
        }

        html[dir="ltr"] .andmore-brand-search-icon {
            right: auto;
            left: 14px;
        }

        .andmore-brand-search {
            width: 100%;
            height: 44px;
            border: 1px solid #dddddd;
            border-radius: 9px;
            padding: 0 42px 0 12px;
            background: #ffffff;
            color: #111111;
            font-size: 14px;
            outline: none;
        }

        html[dir="ltr"] .andmore-brand-search {
            padding: 0 12px 0 42px;
        }

        .andmore-brand-search:focus {
            border-color: #0ABAB5;
            box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.12);
        }

        .andmore-brand-items {
            max-height: 340px;
            overflow-y: auto;
            padding-left: 5px;
        }

        .andmore-brand-items::-webkit-scrollbar {
            width: 5px;
        }

        .andmore-brand-items::-webkit-scrollbar-thumb {
            background: #cccccc;
            border-radius: 10px;
        }

        .andmore-brand-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            padding: 11px 4px;
            margin: 0;
            border-bottom: 1px solid #f1f1f1;
            cursor: pointer;
        }

        .andmore-brand-item:last-child {
            border-bottom: 0;
        }

        .andmore-brand-item:hover .andmore-brand-name {
            color: #0ABAB5;
        }

        .andmore-brand-option {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .andmore-brand-option input {
            width: 18px;
            height: 18px;
            margin: 0;
            accent-color: #0ABAB5;
            cursor: pointer;
            flex-shrink: 0;
        }

        .andmore-brand-name {
            color: #222222;
            font-size: 14px;
            transition: color 0.2s ease;
        }

        .andmore-brand-count {
            min-width: 30px;
            height: 24px;
            padding: 0 7px;
            border-radius: 15px;
            background: #f2f2f2;
            color: #666666;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

        .andmore-brand-item:has(input:checked) {
            background: #f1fffe;
            border-radius: 7px;
            padding-right: 8px;
            padding-left: 8px;
        }

        .andmore-brand-item:has(input:checked) .andmore-brand-name {
            color: #0ABAB5;
            font-weight: 700;
        }

        /* ترتيب المنتجات داخل الشريط الجانبي - ديسكتوب فقط */
        .andmore-sort-filter {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #eeeeee;
        }

        .andmore-sort-title {
            margin: 0 0 10px;
            color: #111111;
            font-size: 15px;
            font-weight: 700;
        }

        .andmore-sort-options {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .andmore-sort-option {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 42px;
            margin: 0;
            padding: 9px 10px;
            border: 1px solid transparent;
            border-radius: 9px;
            color: #444444;
            font-size: 13px;
            cursor: pointer;
            transition: background-color .2s ease, border-color .2s ease, color .2s ease;
        }

        .andmore-sort-option:hover {
            background: #f7fafa;
            color: #0ABAB5;
        }

        .andmore-sort-option input {
            width: 17px;
            height: 17px;
            margin: 0;
            accent-color: #0ABAB5;
            flex-shrink: 0;
        }

        .andmore-sort-option:has(input:checked) {
            background: #effffe;
            border-color: rgba(10, 186, 181, .25);
            color: #079b97;
            font-weight: 700;
        }

        .andmore-brand-filter-actions {
            display: flex;
            gap: 8px;
            margin-top: 15px;
        }

        .andmore-brand-apply,
        .andmore-brand-clear {
            flex: 1;
            min-height: 40px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none !important;
        }

        .andmore-brand-apply {
            border: 1px solid #000000;
            background: #000000;
            color: #ffffff;
        }

        .andmore-brand-clear {
            border: 1px solid #dddddd;
            background: #ffffff;
            color: #444444;
        }

        .andmore-brand-empty {
            display: none;
            padding: 20px 5px;
            text-align: center;
            color: #888888;
            font-size: 13px;
        }

/* ---- part 2 ---- */
        /* =========================================================
   Custom Subcategory Select
========================================================= */

        .custom-subcategory-wrapper {
            width: 100%;
            margin: 0;
        }





        .custom-subcategory-select-wrapper {
            position: relative;
            width: 100%;
        }

        .custom-subcategory-select {
            width: 100%;
            height: 52px;

            padding: 0 50px 0 18px;

            border: 1px solid #e5e5e5;
            border-radius: 12px;

            background-color: #fff;
            color: #222;

            font-size: 15px;
            font-weight: 500;

            outline: none;
            cursor: pointer;

            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;

            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);

            transition:
                border-color .2s ease,
                box-shadow .2s ease;
        }

        .custom-subcategory-select:hover {
            border-color: #0ABAB5;
        }

        .custom-subcategory-select:focus {
            border-color: #0ABAB5;

            box-shadow:
                0 0 0 3px rgba(10, 186, 181, 0.12),
                0 4px 18px rgba(0, 0, 0, 0.05);
        }

        .custom-subcategory-select-wrapper:hover
        .custom-subcategory-arrow {
            background: #0ABAB5;
            color: #fff;
        }

        /* Options */

        .custom-subcategory-select option {
            background: #fff;
            color: #222;
            font-size: 15px;
            padding: 10px;
        }

        /*
        |--------------------------------------------------------------------------
        | Selected option
        |--------------------------------------------------------------------------
        */

        .custom-subcategory-select option:checked,
        .custom-subcategory-select option:hover {
            background: #0ABAB5;
            color: #fff;
        }

        /*
        |--------------------------------------------------------------------------
        | Arrow
        |--------------------------------------------------------------------------
        */

        .custom-subcategory-arrow {
            position: absolute;

            top: 50%;
            right: 18px;

            transform: translateY(-50%);

            width: 28px;
            height: 28px;

            border-radius: 50%;

            background: #f4f4f4;

            display: flex;
            align-items: center;
            justify-content: center;

            pointer-events: none;

            color: #555;

            transition: all .2s ease;
        }

        .custom-subcategory-select-wrapper:hover
        .custom-subcategory-arrow {
            background: #0ABAB5;
            color: #fff;
        }

        /*
        |--------------------------------------------------------------------------
        | RTL
        |--------------------------------------------------------------------------
        */

        html[dir="rtl"] .custom-subcategory-select {
            padding: 0 18px 0 50px;
        }

        html[dir="rtl"] .custom-subcategory-arrow {
            right: auto;
            left: 18px;
        }

        /* =========================================================
   Custom Sort Dropdown
========================================================= */



        /* Main button */



        /* Remove Bootstrap arrow */



        /* Hover */



        /* Focus / opened */



        /* Text */



        /* Arrow */



        /* Arrow hover */




        /* =========================================================
           Dropdown Menu
        ========================================================= */




        /* Options */




        /* Option hover */




        /* Selected option if you add active */




        /* =========================================================
           RTL
        ========================================================= */









        /* =========================================================
           Mobile
        ========================================================= */

        /*
        |--------------------------------------------------------------------------
        | Mobile
        |--------------------------------------------------------------------------
        */

        @media (max-width: 767px) {

            .custom-subcategory-wrapper {
                width: 100%;
                padding: 0 10px;
            }





            .custom-subcategory-select {
                height: 48px;
                font-size: 14px;
            }
            .products-count{
                font-size: 14px !important;
            }

        }

        @media (max-width: 767px) {

            /*
            |--------------------------------------------------------------------------
            | Mobile Sort
            |--------------------------------------------------------------------------
            */







            /*
            |--------------------------------------------------------------------------
            | Remove Bootstrap Default Arrow
            |--------------------------------------------------------------------------
            */



            /*
            |--------------------------------------------------------------------------
            | Custom Arrow
            |--------------------------------------------------------------------------
            */





            /*
            |--------------------------------------------------------------------------
            | Sort Dropdown
            |--------------------------------------------------------------------------
            */







            /*
            |--------------------------------------------------------------------------
            | Filter
            |--------------------------------------------------------------------------
            */

            .custom-filter-link {
                border: 0 !important;

                background: transparent !important;

                padding: 8px 14px  !important;

                color: #222;

                text-decoration: none;

                gap: 5px;
            }

            .custom-filter-link:hover,
            .custom-filter-link:focus {
                color: #0ABAB5;

                text-decoration: none;
            }

            /*
            |--------------------------------------------------------------------------
            | RTL
            |--------------------------------------------------------------------------
            */






        }

        /* =========================================================
   Mobile Subcategory
   ========================================================= */

        .custom-subcategory-mobile-trigger,
        .mobile-subcategory-overlay {
            display: none;
        }


        @media (max-width: 767px) {

            /* -----------------------------------------------------
               Hide native select on mobile
               ----------------------------------------------------- */

            .custom-subcategory-desktop {
                display: none !important;
            }


            /* -----------------------------------------------------
               Mobile Select Trigger
               ----------------------------------------------------- */

            .custom-subcategory-mobile-trigger {
                position: relative;

                width: 100%;
                height: 40px;

                padding: 0 50px 0 18px;

                border: 1px solid #e5e5e5;
                border-radius: 12px;

                background: #fff;

                color: #222;

                font-size: 13px;
                font-weight: 500;

                display: flex;
                align-items: center;
                justify-content: space-between;

                text-align: start;

                box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);

                cursor: pointer;
            }


            .custom-subcategory-mobile-arrow {
                position: absolute;

                top: 50%;
                right: 18px;

                transform: translateY(-50%);

                width: 28px;
                height: 28px;

                border-radius: 50%;

                background: #f4f4f4;

                display: flex;
                align-items: center;
                justify-content: center;

                color: #555;

                pointer-events: none;
            }


            /* -----------------------------------------------------
               Overlay
               ----------------------------------------------------- */

            .mobile-subcategory-overlay {
                position: fixed;

                top: 0;
                left: 0;

                width: 100%;
                height: 100%;

                background: rgba(0, 0, 0, 0.45);

                z-index: 99999;

                display: none;

                align-items: flex-end;

                justify-content: center;
            }


            .mobile-subcategory-overlay.active {
                display: flex;
            }


            /* -----------------------------------------------------
               Bottom Sheet
               ----------------------------------------------------- */

            .mobile-subcategory-menu {
                position: relative;

                width: 100%;
                max-height: 75vh;

                background: #fff;

                border-radius: 22px 22px 0 0;

                overflow-y: auto;

                padding: 45px 0 10px;

                animation: mobileSubcategorySlideUp 0.25s ease-out;
            }


            @keyframes mobileSubcategorySlideUp {

                from {
                    transform: translateY(100%);
                }

                to {
                    transform: translateY(0);
                }

            }


            /* -----------------------------------------------------
               Close Button
               ----------------------------------------------------- */

            .mobile-subcategory-close {
                position: absolute;

                top: 12px;
                right: 12px;

                width: 28px;
                height: 28px;

                border: 1px solid #555;
                border-radius: 50%;

                background: #fff;

                color: #222;

                display: flex;
                align-items: center;
                justify-content: center;

                padding: 0;

                cursor: pointer;

                z-index: 2;
            }


            .mobile-subcategory-close svg {
                width: 18px;
                height: 18px;
            }


            /* -----------------------------------------------------
               Title
               ----------------------------------------------------- */

            .mobile-subcategory-title {
                text-align: center;

                color: #0ABAB5;

                font-size: 12px;
                font-weight: 600;

                padding: 0 20px 15px;
            }


            /* -----------------------------------------------------
               Options
               ----------------------------------------------------- */

            .mobile-subcategory-option {
                position: relative;

                min-height: 50px;

                margin: 0;

                padding: 0 20px;

                border-bottom: 1px solid #eeeeee;

                display: flex;
                align-items: center;
                justify-content: space-between;

                color: #222;

                font-size: 13px;
                font-weight: 400;

                cursor: pointer;
            }


            .mobile-subcategory-option:last-child {
                border-bottom: 0;
            }


            /* Hide native radio */

            .mobile-subcategory-option input {
                position: absolute;

                opacity: 0;

                pointer-events: none;
            }


            /* Custom radio */

            .mobile-subcategory-radio {
                width: 17px;
                height: 17px;

                border: 2px solid #b7b7b7;

                border-radius: 50%;

                flex-shrink: 0;

                position: relative;
            }


            .mobile-subcategory-option input:checked
            + .mobile-subcategory-radio {
                border-color: #0ABAB5;
            }


            .mobile-subcategory-option input:checked
            + .mobile-subcategory-radio::after {
                content: "";

                position: absolute;

                top: 3px;
                left: 3px;

                width: 7px;
                height: 7px;

                border-radius: 50%;

                background: #0ABAB5;
            }


            /* -----------------------------------------------------
               RTL
               ----------------------------------------------------- */

            html[dir="rtl"] .custom-subcategory-mobile-trigger {
                padding: 0 18px 0 50px;
            }


            html[dir="rtl"] .custom-subcategory-mobile-arrow {
                right: auto;
                left: 18px;
            }


            html[dir="rtl"] .mobile-subcategory-close {
                right: auto;
                left: 12px;
            }

        }

        /* =========================================================
   Mobile Subcategory
   ========================================================= */

        .custom-subcategory-mobile-trigger,
        .mobile-subcategory-overlay {
            display: none;
        }


        @media (max-width: 767px) {

            /* -----------------------------------------------------
               Hide native select on mobile
               ----------------------------------------------------- */

            .custom-subcategory-desktop {
                display: none !important;
            }


            /* -----------------------------------------------------
               Mobile Select Trigger
               ----------------------------------------------------- */

            .custom-subcategory-mobile-trigger {
                position: relative;

                width: 100%;
                height: 44px;

                padding: 0 50px 0 18px;

                border: 1px solid #e5e5e5;
                border-radius: 12px;

                background: #fff;

                color: #222;

                font-size: 13px;
                font-weight: 500;

                display: flex;
                align-items: center;
                justify-content: space-between;

                text-align: start;

                box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);

                cursor: pointer;
            }


            .custom-subcategory-mobile-arrow {
                position: absolute;

                top: 50%;
                right: 18px;

                transform: translateY(-50%);

                width: 24px;
                height: 24px;

                border-radius: 50%;

                background: var(--bs-primary-color);
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fff;

                pointer-events: none;
            }


            /* -----------------------------------------------------
               Overlay
               ----------------------------------------------------- */

            .mobile-subcategory-overlay {
                position: fixed;

                top: 0;
                left: 0;

                width: 100%;
                height: 100%;

                background: rgba(0, 0, 0, 0.45);

                z-index: 99999;

                display: none;

                align-items: flex-end;

                justify-content: center;
            }


            .mobile-subcategory-overlay.active {
                display: flex;
            }


            /* -----------------------------------------------------
               Bottom Sheet
               ----------------------------------------------------- */

            .mobile-subcategory-menu {
                position: relative;
                width: 100%;
                max-height: 75vh;
                background: #fff;
                border-radius: 22px 22px 0 0;
                overflow-y: auto;
                overflow-x: hidden;
                padding: 45px 0 30px;
                box-sizing: border-box;
                animation: mobileSubcategorySlideUp 0.25s ease-out;
            }


            @keyframes mobileSubcategorySlideUp {

                from {
                    transform: translateY(100%);
                }

                to {
                    transform: translateY(0);
                }

            }


            /* -----------------------------------------------------
               Close Button
               ----------------------------------------------------- */

            .mobile-subcategory-close {
                position: absolute;

                top: 12px;
                right: 12px;

                width: 28px;
                height: 28px;

                border: 1px solid #555;
                border-radius: 50%;

                background: #fff;

                color: #222;

                display: flex;
                align-items: center;
                justify-content: center;

                padding: 0;

                cursor: pointer;

                z-index: 2;
            }


            .mobile-subcategory-close svg {
                width: 18px;
                height: 18px;
            }


            /* -----------------------------------------------------
               Title
               ----------------------------------------------------- */

            .mobile-subcategory-title {
                text-align: center;

                color: #0ABAB5;

                font-size: 12px;
                font-weight: 600;

                padding: 0 20px 15px;
            }


            /* -----------------------------------------------------
               Options
               ----------------------------------------------------- */

            .mobile-subcategory-option {
                position: relative;

                min-height: 50px;

                margin: 0;

                padding: 0 20px;

                border-bottom: 1px solid #eeeeee;

                display: flex;
                align-items: center;
                justify-content: space-between;

                color: #222;

                font-size: 13px;
                font-weight: 400;

                cursor: pointer;
            }


            .mobile-subcategory-option:last-child {
                border-bottom: 0;
            }


            /* Hide native radio */

            .mobile-subcategory-option input {
                position: absolute;

                opacity: 0;

                pointer-events: none;
            }


            /* Custom radio */

            .mobile-subcategory-radio {
                width: 17px;
                height: 17px;

                border: 2px solid #b7b7b7;

                border-radius: 50%;

                flex-shrink: 0;

                position: relative;
            }


            .mobile-subcategory-option input:checked
            + .mobile-subcategory-radio {
                border-color: #0ABAB5;
            }


            .mobile-subcategory-option input:checked
            + .mobile-subcategory-radio::after {
                content: "";

                position: absolute;

                top: 3px;
                left: 3px;

                width: 7px;
                height: 7px;

                border-radius: 50%;

                background: #0ABAB5;
            }


            /* -----------------------------------------------------
               RTL
               ----------------------------------------------------- */

            html[dir="rtl"] .custom-subcategory-mobile-trigger {
                padding: 0 18px 0 50px;
            }


            html[dir="rtl"] .custom-subcategory-mobile-arrow {
                right: auto;
                left: 18px;
            }


            html[dir="rtl"] .mobile-subcategory-close {
                right: auto;
                left: 12px;
            }

        }
        /* =========================================================
   Mobile Filter Offcanvas
========================================================= */

        @media (max-width: 767px) {

            .mobile-filter-bar {
                width: fit-content;
                margin-bottom: 15px;
                padding: 0;
            }

            .mobile-filter-bar .custom-filter-link {
                width: 100%;
                border: 1px solid #e5e5e5 !important;
                border-radius: 12px;
                background: #fff !important;
                color: #222 !important;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
            }

            .mobile-filter-bar .custom-filter-link:hover {
                color: #0ABAB5 !important;
                border-color: #0ABAB5 !important;
            }


            /* Offcanvas */

            #offcanvasExample {
                width: 90%;
                max-width: 400px;
                background: #fff;
                z-index: 100000;
            }

            #offcanvasExample .offcanvas-header {
                padding: 16px;
                border-bottom: 1px solid #eeeeee;
            }

            #offcanvasExample .offcanvas-title {
                font-size: 17px;
                font-weight: 700;
                color: #111;
            }

            #offcanvasExample .offcanvas-body {
                padding: 12px !important;
                overflow-y: auto;
            }


            /* نفس شكل desktop */

            .mobile-andmore-brand-filter {
                width: 100%;
                border-radius: 14px;
                box-shadow: none;
            }

            .mobile-andmore-brand-filter .andmore-brand-filter-body {
                padding: 14px;
            }


            /* Brand list */

            .mobile-andmore-brand-filter .andmore-brand-items {
                max-height: 260px;
            }


            /* Sort */

            .mobile-andmore-brand-filter .andmore-sort-filter {
                margin-top: 16px;
                padding-top: 16px;
            }

            .mobile-andmore-brand-filter .andmore-sort-option {
                min-height: 44px;
                font-size: 13px;
            }


            /* Buttons */

            .mobile-andmore-brand-filter .andmore-brand-filter-actions {
                position: sticky;
                bottom: 0;
                background: #fff;
                padding-top: 10px;
                padding-bottom: 5px;
                z-index: 5;
            }


            /* Subcategory full width */

            .custom-subcategory-wrapper {
                width: 100%;
                padding: 0 !important;
            }

            .custom-subcategory-mobile-trigger {
                width: 100%;
            }

        }
        @media (min-width: 767px) {
            #offcanvasExample {
                display: none !important;
            }
        }
        #applyBrandFilter {
             margin-right: 0 !important;
             margin-left: 0 !important;
        }

        @media (max-width: 767px) {

            .mobile-products-meta {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                margin: 14px 0 16px;
            }

            .mobile-products-count {
                flex: 0 0 auto;
            }

            .mobile-products-count .products-count {
                margin: 0 !important;
                color: #696969;
            }

            .mobile-filter-bar {
                width: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                flex: 0 0 auto;
            }

            .mobile-filter-bar .custom-filter-link {
                width: auto !important;
                min-width: 0 !important;
                height: 40px;
                padding: 0 14px !important;

                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 7px;

                border: 1px solid #e5e5e5 !important;
                border-radius: 10px;

                background: #fff !important;
                color: #222 !important;

                font-size: 13px;
                font-weight: 600;

                box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
            }

            .mobile-filter-bar .custom-filter-link svg {
                flex-shrink: 0;
            }
        }

        html[dir="ltr"] .product-count-desktop {
            margin-left: auto;
        }

        html[dir="rtl"] .product-count-desktop {
            margin-right: auto;
        }


/* ---- part 3 ---- */
        /* Mobile: keep product header and filter visible while scrolling */
        @media (max-width: 767.98px) {

            /* Product page header */
            .product_seo {
                position: sticky;
                top: 0;
                z-index: 1030;
                background: #f5f5f5;
            }

            /* Products count + filter bar */
            .mobile-products-meta {
                position: sticky;
                top: 48px;
                z-index: 1020;
                background: #fff;
                padding-top: 10px;
                padding-bottom: 10px;
                margin-top: 0;
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
            }
            .am-safe-app-nav,.mobile-navigation-bar{
                display: none !important;
            }

        }
        @media (max-width: 767.98px) {
            .am-safe-app-nav,.mobile-navigation-bar{
                display: none !important;
            }
        }

        /* Price range filter */
        .andmore-price-filter {
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid #eeeeee;
        }













        @media (max-width: 767.98px) {
            .mobile-andmore-brand-filter .andmore-price-filter {
                margin-top: 18px;
            }


        }

               /* Price range filter */
           .andmore-price-filter {
               width: 100%;
               padding: 10px 0;
           }

        .am-range-values {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin: 14px 0 20px;
            font-size: 12px;
            color: #777;
        }

        .am-range-values strong {
            display: inline-block;
            margin-inline-start: 4px;
            color: #222;
            font-size: 13px;
            font-weight: 600;
            direction: ltr;
            unicode-bidi: isolate;
        }

        .am-range-slider {
            position: relative;
            height: 24px;
            margin: 0 8px 12px;
            direction: ltr;
        }

        .am-range-track,
        .am-range-selected {
            position: absolute;
            top: 10px;
            height: 4px;
            border-radius: 10px;
        }

        .am-range-track {
            left: 0;
            right: 0;
            background: #e5e5e5;
        }

        .am-range-selected {
            left: 0;
            right: 0;
            background: #0ABAB5;
        }

        .am-range-slider input[type="range"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 24px;
            margin: 0;
            padding: 0;
            background: none;
            pointer-events: none;
            appearance: none;
            -webkit-appearance: none;
            outline: none;
        }

        .am-range-slider input[type="range"]::-webkit-slider-runnable-track {
            height: 4px;
            background: transparent;
        }

        .am-range-slider input[type="range"]::-moz-range-track {
            height: 4px;
            background: transparent;
        }

        .am-range-slider input[type="range"]::-webkit-slider-thumb {
            width: 16px;
            height: 16px;
            margin-top: -6px;
            border: 2px solid #fff;
            border-radius: 50%;
            background: #0ABAB5;
            box-shadow: 0 0 0 1px #0ABAB5;
            pointer-events: auto;
            cursor: grab;
            appearance: none;
            -webkit-appearance: none;
        }

        .am-range-slider input[type="range"]::-moz-range-thumb {
            width: 12px;
            height: 12px;
            border: 2px solid #fff;
            border-radius: 50%;
            background: #0ABAB5;
            box-shadow: 0 0 0 1px #0ABAB5;
            pointer-events: auto;
            cursor: grab;
        }

        .am-range-slider input[type="range"]:active::-webkit-slider-thumb {
            cursor: grabbing;
            box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.18);
        }

