/* =========================================
       And More Categories - Mobile Only
       Desktop styles remain unchanged
    ========================================= */

    @media (max-width: 767.98px) {

        body {
            overflow-x: hidden;
        }

        /* Hide the old desktop breadcrumb on mobile */
        .am-desktop-categories-header {
            display: none !important;
        }

        /* Mobile header */
        .am-mobile-categories-header {
            display: block;
            width: 95%;
            margin: auto;
            background: #fff;
        }

        .am-mobile-header-top {
            min-height: 145px;
            display: grid;
            grid-template-columns: 70px minmax(0, 1fr) 70px;
            align-items: center;
            gap: 5px;
        }

        .am-mobile-cart {
            position: relative;
            width: 66px;
            height: 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #222;
            background: #fff;
            border-radius: 50%;
            box-shadow: 0 3px 12px rgba(0, 0, 0, .10);
            text-decoration: none;
            justify-self: start;
        }

        .am-mobile-cart-count {
            position: absolute;
            top: -8px;
            right: 1px;
            color: #0abab5;
            font-size: 19px;
            font-weight: 700;
            line-height: 1;
        }

        .am-mobile-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }

        .am-mobile-logo img {
            display: block;
            width: 100%;
            max-width: 205px;
            height: auto;
            max-height: 90px;
            object-fit: contain;
        }

        .am-mobile-close {
            width: 66px;
            height: 66px;
            border: 2px solid #111;
            border-radius: 50%;
            background: #fff;
            color: #111;
            display: flex;
            align-items: center;
            justify-content: center;
            justify-self: end;
            padding: 0;
        }

        /* Page title and description */
        .am-mobile-heading {
            text-align: center;
            margin-top: 8px;
        }

        .am-mobile-heading h1 {
            margin: 0;
            color: #111;
            font-size: 27px;
            font-weight: 700;
            line-height: 1.4;
        }

        .am-mobile-heading-line {
            display: block;
            width: 72px;
            height: 7px;
            margin: 10px auto 22px;
            border-radius: 20px;
            background: #0abab5;
        }

        .am-mobile-heading p {
            margin: 0 0 30px;
            color: #999;
            font-size: 19px;
            font-weight: 400;
            line-height: 1.8;
        }

        /* Rounded turquoise search */
        .am-mobile-search {
            width: 100%;
            height: 78px;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 3px solid #0abab5;
            border-radius: 45px;
            background: #fff;
            padding: 0 16px;
            margin: 0 0 30px;
            direction: rtl;
        }

        .am-mobile-search input {
            flex: 1;
            min-width: 0;
            width: 100%;
            height: 100%;
            border: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            background: transparent !important;
            color: #333;
            font-size: 19px;
            text-align: right;
            padding: 0 4px;
        }

        .am-mobile-search input::placeholder {
            color: #999;
            opacity: 1;
        }

        .am-mobile-search button {
            flex: 0 0 42px;
            width: 42px;
            height: 48px;
            border: 0;
            background: transparent;
            color: #888;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        /* Advertisement banner */
        .advertisement-slider {
            margin-bottom: 26px;
        }

        .advertisement-slider .advertisement_box {
            padding: 0 14px;
            overflow: hidden;
            border-radius: 32px;
        }

        .advertisement-slider .hover-shine {
            overflow: hidden;
            border-radius: 32px;
        }

        .advertisement-slider .desktop-advertisement-image,
        .advertisement-slider .mobile-advertisement-image {
            width: 95% !important;
            height: 220px !important;
            min-height: 220px !important;
            max-height: 220px !important;
            object-fit: fill !important;
            border-radius: 20px;
            margin: auto;
        }

        /* Categories grid: three columns */
        .categories-section {
            margin-top: 8px;
            padding-bottom: 20px;
        }

        .categories-container {
            width: 100%;
            max-width: 100%;
            padding: 0 10px;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            column-gap: 10px;
            row-gap: 16px;
            align-items: stretch;
        }

        .category-item {
            min-width: 0;
            margin: 0;
            text-decoration: none !important;
            color: inherit;
        }

        .category-box.am-category-box {
            width: 100%;
            min-width: 0;
            height: 100%;
            min-height: 205px;
            padding: 16px 5px 12px;
            border: 0;
            border-radius: 15px;
            background: #fff;
            box-shadow: 0 5px 24px rgba(0, 0, 0, .035);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            transition: none;
        }

        .category-image-wrapper.am-category-image-wrapper {
            width: 100%;
            min-height: 94px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 0 10px;
        }

        .category-image.am-category-image {
            display: block;
            width: 94px;
            height: 94px;
            max-width: 100%;
            object-fit: contain;
            border-radius: 50%;
            padding: 0;
            margin: 0 auto;
        }

        .category-info {
            width: 100%;
            min-width: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }

        .category-name {
            width: 100%;
            margin: 0;
            color: #111;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.5;
            text-align: center;
            overflow-wrap: anywhere;
            word-break: normal;
        }

        .category-count {
            display: block;
            width: 100%;
            margin: 0;
            color: #999;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.5;
            text-align: center;
        }

        .category-box:hover {
            transform: none;
            box-shadow: 0 5px 24px rgba(0, 0, 0, .035);
        }
    }

    /* Small phones */
    @media (max-width: 380px) {

        .am-mobile-categories-header {
            padding-right: 12px;
            padding-left: 12px;
        }

        .am-mobile-header-top {
            grid-template-columns: 55px minmax(0, 1fr) 55px;
            min-height: 115px;
        }

        .am-mobile-cart,
        .am-mobile-close {
            width: 52px;
            height: 52px;
        }

        .am-mobile-logo img {
            max-width: 165px;
        }

        .am-mobile-heading h1 {
            font-size: 24px;
        }

        .am-mobile-heading p {
            font-size: 16px;
        }

        .am-mobile-search {
            height: 64px;
            border-width: 2px;
            padding: 0 11px;
        }

        .am-mobile-search input {
            font-size: 15px;
        }

        .advertisement-slider .desktop-advertisement-image,
        .advertisement-slider .mobile-advertisement-image {
            height: 175px !important;
            min-height: 175px !important;
            max-height: 175px !important;
        }

        .category-box.am-category-box {
            min-height: 175px;
            padding: 12px 3px 10px;
        }

        .category-image-wrapper.am-category-image-wrapper {
            min-height: 76px;
            margin-bottom: 8px;
        }

        .category-image.am-category-image {
            width: 76px;
            height: 76px;
        }

        .category-name {
            font-size: 12px;
        }

        .category-count {
            font-size: 12px;
        }
    }

    /* Mobile Categories Header - Compact Sizes */
    @media (max-width: 767.98px) {

        /* Reduce header height */
        .am-mobile-categories-header {
            padding-top: 0;
        }

        .am-mobile-header-top {
            min-height: 70px;
            grid-template-columns: 48px minmax(0, 1fr) 48px;
            gap: 8px;
        }

        /* Smaller cart icon */
        .am-mobile-cart {
            width: 44px;
            height: 44px;
        }

        .am-mobile-cart svg {
            width: 23px;
            height: 23px;
        }

        .am-mobile-cart-count {
            top: -4px;
            right: 0;
            font-size: 15px;
        }

        /* Smaller centered logo */
        .am-mobile-logo img {
            max-width: 120px;
            max-height: 50px;
        }

        /* Smaller close button */
        .am-mobile-close {
            width: 38px;
            height: 38px;
            border-width: 1.5px;
        }

        .am-mobile-close svg {
            width: 24px;
            height: 24px;
        }

        /* Reduce search box height and border */
        .am-mobile-search {
            height: 45px;
            border-width: 2px;
            padding: 0 12px;
            margin-bottom: 15px;
        }

        .am-mobile-search input {
            font-size: 16px;
        }

        .am-mobile-search button {
            flex-basis: 34px;
            width: 34px;
            height: 40px;
        }

        .am-mobile-search button svg {
            width: 23px;
            height: 23px;
        }

        /* Slightly tighten spacing below the header */
        .am-mobile-heading {
            margin-top: 4px;
        }

        .am-mobile-heading h1 {
            font-size: 18px;
        }

        .am-mobile-heading-line {
            width: 44px;
            height: 4px;
            margin: 3px auto 3px;
        }

        .am-mobile-heading p {
            font-size: 14px;
            margin-bottom: 10px;
        }
        #content,.am-mobile-categories-header{
            background: #f9f9f9;
        }
        .category-name {
            font-size: 13px;
        }
        .category-box.am-category-box {
            padding: 0 5px 0;
            min-height: 170px;
        }
        .category-count {
            font-size: 12.5px;
        }
        .category-image-wrapper.am-category-image-wrapper {
            margin: 0 0 0;
        }
    }

    /* Extra-small screens */
    @media (max-width: 380px) {

        .am-mobile-header-top {
            min-height: 78px;
            grid-template-columns: 40px minmax(0, 1fr) 40px;
            gap: 6px;
        }

        .am-mobile-cart,
        .am-mobile-close {
            width: 38px;
            height: 38px;
        }

        .am-mobile-cart svg {
            width: 20px;
            height: 20px;
        }

        .am-mobile-close svg {
            width: 21px;
            height: 21px;
        }

        .am-mobile-logo img {
            max-width: 135px;
            max-height: 48px;
        }

        .am-mobile-search {
            height: 52px;
        }

        .am-mobile-search input {
            font-size: 14px;
        }

        .am-mobile-heading p {
            font-size: 14px;
        }
    }


    /* Mobile Live Search - Mobile Only */
    .am-mobile-search-trigger,
    #amMobileSearchScreen {
        display: none;
    }

    @media (max-width: 767.98px) {

        .am-mobile-search-trigger {
            display: flex;
            width: 100%;
            height: 58px;
            align-items: center;
            gap: 12px;
            padding: 0 20px;
            margin: 0 0 15px;
            background: #f5f5f5;
            border-radius: 40px;
            direction: ltr;
            cursor: pointer;
        }

        .am-mobile-search-trigger input {
            width: 100%;
            min-width: 0;
            border: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            background: transparent !important;
            color: #555;
            font-size: 16px;
            pointer-events: none;
        }

        .am-search-trigger-icon {
            display: flex;
            align-items: center;
            color: #0abab5;
        }

        #amMobileSearchScreen {
            position: fixed;
            inset: 0;
            z-index: 20000;
            width: 100%;
            height: 100%;
            height: 100dvh;
            background: #fff;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 0 16px 25px;
            direction: rtl;
        }

        #amMobileSearchScreen.am-search-visible {
            display: block;
        }

        .am-search-screen-header {
            min-height: 76px;
            display: grid;
            grid-template-columns: 48px minmax(0, 1fr) 48px;
            align-items: center;
            gap: 8px;
            color: #111;
        }

        .am-search-screen-header > strong {
            text-align: center;
            font-size: 23px;
            font-weight: 700;
        }

        .am-search-screen-header button,
        .am-search-cart {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #111;
        }

        .am-search-cart {
            position: relative;
            justify-self: end;
            text-decoration: none;
        }

        .am-search-cart span {
            position: absolute;
            top: -1px;
            right: -2px;
            min-width: 19px;
            height: 19px;
            padding: 0 4px;
            border-radius: 20px;
            background: #e92338;
            color: #fff;
            font-size: 12px;
            text-align: center;
            line-height: 19px;
        }

        .am-search-controls {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 24px 0 28px;
            direction: ltr;
        }

        .am-search-input-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
            height: 70px;
            padding: 0 18px;
            border-radius: 45px;
            background: #f5f5f5;
        }

        .am-search-input-wrap input {
            width: 100%;
            min-width: 0;
            height: 100%;
            padding: 0;
            border: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            background: transparent !important;
            color: #333;
            font-size: 17px;
            text-align: start;
        }

        .am-search-input-wrap input::placeholder {
            color: #999;
            opacity: 1;
        }

        .am-open-search-filter {
            flex: 0 0 70px;
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 50%;
            background: #0abab5;
            color: #fff;
        }

        #amLiveSearchResults {
            width: 100%;
            min-height: 50px;
        }

        .am-search-result {
            display: flex;
            align-items: center;
            gap: 15px;
            min-height: 84px;
            padding: 14px 10px;
            border-bottom: 1px solid #ededed;
            color: #111;
            text-decoration: none;
            font-size: 18px;
            text-align: start;
        }

        .am-search-result-icon {
            flex: 0 0 46px;
            width: 46px;
            height: 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e7e3cb;
            border-radius: 50%;
            color: #777;
        }

        .am-search-empty {
            padding: 24px 8px;
            color: #999;
            font-size: 15px;
            text-align: center;
        }

        .am-search-loading {
            padding: 25px 8px;
            color: #0abab5;
            text-align: center;
        }

        /* Filter backdrop */
        #amSearchFilterOverlay {
            position: fixed;
            inset: 0;
            z-index: 20010;
            background: rgba(0, 0, 0, .55);
            opacity: 0;
            visibility: hidden;
            transition: opacity .25s ease, visibility .25s ease;
        }

        #amSearchFilterOverlay.am-filter-visible {
            opacity: 1;
            visibility: visible;
        }

        /* Bottom sheet */
        #amSearchFilterSheet {
            position: fixed;
            z-index: 20011;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 56vh;
            height: 56dvh;
            min-height: 390px;
            max-height: 650px;
            padding: 112px 16px 25px;
            background: #fff;
            border-radius: 30px 30px 0 0;
            transform: translateY(105%);
            transition: transform .3s ease;
            visibility: hidden;
            overflow-y: auto;
            direction: rtl;
        }

        #amSearchFilterSheet.am-filter-visible {
            transform: translateY(0);
            visibility: visible;
        }

        .am-filter-close {
            position: absolute;
            top: 30px;
            right: 18px;
            width: 66px;
            height: 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid #aaa;
            border-radius: 50%;
            background: #fff;
            color: #111;
        }

        #amSearchFilterSheet h3 {
            margin: 18px 0 32px;
            color: #0abab5;
            font-size: 17px;
            font-weight: 700;
            text-align: center;
        }

        .am-search-filter-options {
            display: flex;
            flex-direction: column;
        }

        .am-search-filter-options label {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 110px;
            padding: 15px 24px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            color: #111;
            font-size: 21px;
            font-weight: 400;
        }

        .am-search-filter-options input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .am-search-filter-options label i {
            position: relative;
            flex: 0 0 45px;
            width: 45px;
            height: 45px;
            border: 3px solid #aaa;
            border-radius: 50%;
        }

        .am-search-filter-options input:checked + i {
            border-color: #0abab5;
        }

        .am-search-filter-options input:checked + i::after {
            content: "";
            position: absolute;
            inset: 6px;
            border-radius: 50%;
            background: #0abab5;
        }

        body.am-search-open {
            overflow: hidden;
        }
    }

    @media (max-width: 380px) {
        .am-search-input-wrap {
            height: 60px;
            padding: 0 12px;
        }

        .am-open-search-filter {
            flex-basis: 60px;
            width: 60px;
            height: 60px;
        }

        #amSearchFilterSheet {
            min-height: 360px;
        }

        .am-search-filter-options label {
            min-height: 90px;
            font-size: 19px;
        }
    }


    /* Compact Mobile Search & Filter */
    @media (max-width: 767.98px) {

        /* Search input on categories page */
        .am-mobile-search-trigger {
            height: 42px !important;
            padding: 0 14px !important;
            gap: 8px !important;
            margin-bottom: 12px !important;
        }

        .am-mobile-search-trigger input {
            font-size: 13px !important;
        }

        .am-search-trigger-icon svg {
            width: 20px !important;
            height: 20px !important;
        }

        /* Search screen header */
        #amMobileSearchScreen {
            padding: 0 12px 18px !important;
        }

        .am-search-screen-header {
            min-height: 58px !important;
            grid-template-columns: 36px minmax(0, 1fr) 36px !important;
            gap: 6px !important;
        }

        .am-search-screen-header > strong {
            font-size: 17px !important;
        }

        .am-search-screen-header button,
        .am-search-cart {
            width: 34px !important;
            height: 34px !important;
        }

        .am-search-screen-header button svg,
        .am-search-cart svg {
            width: 23px !important;
            height: 23px !important;
        }

        .am-search-cart span {
            min-width: 15px !important;
            height: 15px !important;
            font-size: 10px !important;
            line-height: 15px !important;
        }

        /* Search input + filter button */
        .am-search-controls {
            gap: 9px !important;
            margin: 12px 0 18px !important;
        }

        .am-search-input-wrap {
            height: 46px !important;
            padding: 0 12px !important;
            gap: 8px !important;
        }

        .am-search-input-wrap > svg {
            width: 19px !important;
            height: 19px !important;
            flex-shrink: 0;
        }

        .am-search-input-wrap input {
            font-size: 13px !important;
        }

        .am-open-search-filter {
            flex: 0 0 46px !important;
            width: 46px !important;
            height: 46px !important;
        }

        .am-open-search-filter svg {
            width: 21px !important;
            height: 21px !important;
        }

        /* Search result rows */
        .am-search-result {
            min-height: 62px !important;
            gap: 10px !important;
            padding: 10px 6px !important;
            font-size: 14px !important;
        }

        .am-search-result-icon {
            flex: 0 0 36px !important;
            width: 36px !important;
            height: 36px !important;
        }

        .am-search-result-icon svg {
            width: 19px !important;
            height: 19px !important;
        }

        .am-search-empty,
        .am-search-loading {
            padding: 18px 6px !important;
            font-size: 13px !important;
        }

        /* Bottom sheet */
        #amSearchFilterSheet {
            min-height: 0 !important;
            max-height: 72dvh !important;
            padding: 72px 12px 18px !important;
            border-radius: 22px 22px 0 0 !important;
        }

        .am-filter-close {
            top: 14px !important;
            right: 14px !important;
            width: 40px !important;
            height: 40px !important;
            border-width: 1.5px !important;
        }

        .am-filter-close svg {
            width: 23px !important;
            height: 23px !important;
        }

        #amSearchFilterSheet h3 {
            margin: 0 0 14px !important;
            font-size: 14px !important;
        }

        /* Filter labels and radio buttons */
        .am-search-filter-options label {
            min-height: 58px !important;
            padding: 10px 12px !important;
            font-size: 15px !important;
            gap: 12px !important;
        }

        .am-search-filter-options label i {
            flex: 0 0 25px !important;
            width: 25px !important;
            height: 25px !important;
            border-width: 2px !important;
        }

        .am-search-filter-options input:checked + i::after {
            inset: 4px !important;
        }
    }

    @media (max-width: 380px) {
        .am-search-input-wrap,
        .am-open-search-filter {
            height: 42px !important;
        }

        .am-open-search-filter {
            flex-basis: 42px !important;
            width: 42px !important;
        }

        .am-search-filter-options label {
            min-height: 52px !important;
            font-size: 14px !important;
        }
    }

    @media (max-width: 767.98px) {
        .am-search-products-grid {
            margin-left: -5px;
            margin-right: -5px;
        }

        .am-search-products-grid > .am-mobile-product-col {
            padding-left: 5px;
            padding-right: 5px;
            margin-bottom: 12px;
        }

        .am-search-products-grid .am-mobile-product-card {
            width: 100%;
            height: 100%;
        }
    }
    @media (max-width: 767.98px) {
        #amLiveSearchResults .am-search-products-grid {
            margin-left: -5px;
            margin-right: -5px;
        }

        #amLiveSearchResults .am-search-products-grid > .am-mobile-product-col {
            padding-left: 5px;
            padding-right: 5px;
            margin-bottom: 12px;
        }

        #amLiveSearchResults .am-mobile-product-card {
            width: 100%;
            height: 100%;
        }

    }



    .am-search-result {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .am-search-result-image {
        width: 65px;
        height: 65px;
        min-width: 65px;
        object-fit: fill;
        border-radius: 4px;
    }

    .am-search-result-name {
        min-width: 0;
    }
    .am-mobile-stores-grid {
        margin: 0 -6px;
    }

    .am-mobile-store-col {
        padding: 6px;
    }

    .am-mobile-store-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
        color: inherit;
        padding: 8px;
        border: 1px solid #eee;
        border-radius: 8px;
        height: 100%;
    }

    .am-mobile-store-image {
        width: 100px;
        height: 100px;
        object-fit: contain;
        border-radius: 6px;
        margin-bottom: 6px;
    }

    .am-mobile-store-name {
        font-size: 12px;
        line-height: 1.5;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    @media (max-width: 767.98px) {
        .am-mobile-header-top.is-sticky {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 95%;
            z-index: 1050;
            background: #fff;
        }
    }
    @media (max-width: 767.98px) {
        .am-search-filter-options label {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 110px;
            padding: 15px 24px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            color: #111;
            font-size: 21px;
            font-weight: 400;
        }
    }
    @media (max-width: 767.98px) {
        .am-search-filter-options label {
            min-height: 58px !important;
            padding: 10px 12px !important;
            font-size: 15px !important;
            gap: 12px !important;
        }
    }

    @media (max-width: 767.98px) {
        .am-search-filter-options label {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 110px;
            padding: 15px 24px;
            background: none;
            border: none !important;
            border-bottom: 1px solid #f0f0f0 !important;
            cursor: pointer;
            color: #111;
            font-size: 21px;
            font-weight: 400;
        }
    }
    @media (max-width: 767.98px) {
        .am-search-filter-options label {
            min-height: 58px !important;
            padding: 10px 12px !important;
            font-size: 15px !important;
            gap: 12px !important;
        }
    }
    @media (max-width: 767.98px) {
        body.am-search-open .product_seo {
            display: none !important;
        }
    }




    /* =========================================
       Desktop Search - Match Mobile Elements
       Only affects the search popup
    ========================================= */

    @media (min-width: 768px) {

        /* Search popup */
        #amMobileSearchScreen {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            right: auto;
            bottom: auto;
            transform: translate(-50%, -50%);

            width: min(75%, calc(100vw - 60px));
            height: 90vh;
            height: 90dvh;
            max-height: 90vh;
            max-height: 90dvh;

            padding: 12px 20px 24px;
            overflow-x: hidden;
            overflow-y: auto;

            background: #fff;
            border-radius: 18px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, .20);
            z-index: 20001;
            direction: rtl;
            box-sizing: border-box;
        }
        #amMobileSearchScreen.am-search-visible {
            display: block !important;
        }

        #amMobileSearchScreen,
        #amMobileSearchScreen * {
            box-sizing: border-box;
        }

        body.am-search-open {
            overflow: hidden;
        }

        body.am-search-open::before {
            content: "";
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .55);
            z-index: 20000;
        }

        /* Search header */
        #amMobileSearchScreen .am-search-screen-header {
            min-height: 58px;
            display: grid;
            grid-template-columns: 36px minmax(0, 1fr) 36px;
            align-items: center;
            gap: 6px;
            margin: 0;
            color: #111;
        }

        #amMobileSearchScreen .am-search-screen-header > strong {
            margin: 0;
            text-align: center;
            font-size: 17px;
            font-weight: 700;
        }

        #amMobileSearchScreen .am-search-screen-header button,
        #amMobileSearchScreen .am-search-cart {
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            background: transparent;
            color: #111;
        }

        #amMobileSearchScreen .am-search-screen-header button svg,
        #amMobileSearchScreen .am-search-cart svg {
            width: 23px;
            height: 23px;
        }

        #amMobileSearchScreen .am-search-cart {
            position: relative;
            justify-self: end;
            text-decoration: none;
        }

        #amMobileSearchScreen .am-search-cart span {
            min-width: 15px;
            height: 15px;
            font-size: 10px;
            line-height: 15px;
        }

        /* Search input and filter button */
        #amMobileSearchScreen .am-search-controls {
            display: flex;
            align-items: center;
            gap: 9px;
            width: 100%;
            margin: 12px 0 18px;
            direction: ltr;
        }

        #amMobileSearchScreen .am-search-input-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1 1 auto;
            min-width: 0;
            height: 46px;
            padding: 0 12px;
            border: 0;
            border-radius: 45px;
            background: #f5f5f5;
        }

        #amMobileSearchScreen .am-search-input-wrap > svg {
            width: 19px;
            height: 19px;
            flex-shrink: 0;
        }

        #amMobileSearchScreen .am-search-input-wrap input {
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
            height: 100%;
            margin: 0;
            padding: 0;
            border: 0 !important;
            outline: none !important;
            box-shadow: none !important;
            background: transparent !important;
            color: #333;
            font-size: 13px;
            text-align: start;
        }

        #amMobileSearchScreen .am-open-search-filter {
            flex: 0 0 46px;
            width: 46px;
            height: 46px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            border-radius: 50%;
            background: #0abab5;
            color: #fff;
        }

        #amMobileSearchScreen .am-open-search-filter svg {
            width: 21px;
            height: 21px;
        }

        /* Results container */
        #amMobileSearchScreen #amLiveSearchResults {
            display: block;
            width: 100%;
            min-width: 0;
            min-height: 50px;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-search-empty,
        #amMobileSearchScreen #amLiveSearchResults .am-search-loading {
            padding: 18px 6px;
            font-size: 13px;
            text-align: center;
        }

        /* Category result rows */
        #amMobileSearchScreen #amLiveSearchResults .am-search-result {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            min-height: 62px;
            padding: 10px 6px;
            border-bottom: 1px solid #ededed;
            background: transparent;
            color: #111;
            font-size: 14px;
            text-align: start;
            text-decoration: none;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-search-result-image {
            flex: 0 0 46px;
            width: 46px;
            height: 46px;
            min-width: 46px;
            object-fit: contain;
            border-radius: 50%;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-search-result-name {
            flex: 1;
            min-width: 0;
            overflow-wrap: anywhere;
        }

        /* Products: same two-column grid as mobile */
        #amMobileSearchScreen #amLiveSearchResults .am-search-products-section {
            display: block !important;
            width: 100%;
            max-width: 100%;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-search-products-grid {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px 10px;
            width: 100%;
            margin: 0;
        }

        #amMobileSearchScreen #amLiveSearchResults
        .am-search-products-grid > .am-mobile-product-col {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            flex: initial;
            padding: 0 5px;
            margin: 0;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-card {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            min-width: 0;
            margin: 0;
            overflow: hidden;
            border: 0;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 5px 24px rgba(0, 0, 0, .035);
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-image-wrap {
            position: relative;
            width: 100%;
            min-width: 0;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-image-link {
            display: block;
            width: 100%;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-image {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-body {
            width: 100%;
            min-width: 0;
            padding: 10px;
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-title {
            width: 100%;
            min-width: 0;
            margin: 0 0 8px;
            font-size: 13px;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-title a {
            color: inherit;
            text-decoration: none;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-pricing {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 5px;
            width: 100%;
            min-width: 0;
            margin-bottom: 8px;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-price-stack {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;
            min-width: 0;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-old-price {
            font-size: 11px;
            color: #999;
            text-decoration: line-through;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-current-price {
            font-size: 13px;
            font-weight: 700;
            color: #111;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-discount-badge {
            font-size: 11px;
            color: #e92338;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-wishlist {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-sold-out {
            font-size: 11px;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-buy-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            min-height: 36px;
            margin-top: auto;
            font-size: 12px;
            text-decoration: none;
        }

        /* Stores: same card design and two-column layout */
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-stores-grid {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px 10px;
            width: 100%;
            margin: 0;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-store-col {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            flex: initial;
            padding: 0 5px;
            margin: 0;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-store-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            height: 100%;
            min-width: 0;
            padding: 8px;
            border: 1px solid #eee;
            border-radius: 8px;
            background: #fff;
            color: inherit;
            text-align: center;
            text-decoration: none;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-store-image {
            display: block;
            width: 100px;
            max-width: 100%;
            height: 100px;
            object-fit: contain;
            border-radius: 6px;
            margin-bottom: 6px;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-store-name {
            max-width: 100%;
            font-size: 12px;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        /* Filter overlay */
        #amSearchFilterOverlay {
            position: fixed;
            inset: 0;
            z-index: 20010;
            background: rgba(0, 0, 0, .55);
            opacity: 0;
            visibility: hidden;
            transition: opacity .25s ease, visibility .25s ease;
        }

        #amSearchFilterOverlay.am-filter-visible {
            opacity: 1;
            visibility: visible;
        }

        /* Filter panel */
        #amSearchFilterSheet {
            position: fixed;
            top: 50%;
            left: 50%;
            right: auto;
            bottom: auto;
            transform: translate(-50%, -50%);
            width: 360px;
            max-width: calc(100vw - 40px);
            height: auto;
            min-height: 0;
            max-height: 80vh;
            max-height: 80dvh;
            padding: 72px 16px 18px;
            overflow-y: auto;
            border-radius: 22px;
            background: #fff;
            visibility: hidden;
            z-index: 20011;
            direction: rtl;
            box-sizing: border-box;
        }

        #amSearchFilterSheet.am-filter-visible {
            transform: translate(-50%, -50%);
            visibility: visible;
        }

        #amSearchFilterSheet .am-filter-close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1.5px solid #aaa;
            border-radius: 50%;
            background: #fff;
            color: #111;
        }

        #amSearchFilterSheet .am-filter-close svg {
            width: 23px;
            height: 23px;
        }

        #amSearchFilterSheet h3 {
            margin: 0 0 14px;
            color: #0abab5;
            font-size: 14px;
            font-weight: 700;
            text-align: center;
        }

        #amSearchFilterSheet .am-search-filter-options {
            display: flex;
            flex-direction: column;
        }

        #amSearchFilterSheet .am-search-filter-options label {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-height: 58px;
            padding: 10px 12px;
            border: 0;
            border-bottom: 1px solid #f0f0f0;
            background: transparent;
            color: #111;
            font-size: 15px;
            font-weight: 400;
            cursor: pointer;
        }

        #amSearchFilterSheet .am-search-filter-options input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        #amSearchFilterSheet .am-search-filter-options label i {
            position: relative;
            flex: 0 0 25px;
            width: 25px;
            height: 25px;
            border: 2px solid #aaa;
            border-radius: 50%;
        }

        #amSearchFilterSheet .am-search-filter-options input:checked + i {
            border-color: #0abab5;
        }

        #amSearchFilterSheet .am-search-filter-options input:checked + i::after {
            content: "";
            position: absolute;
            inset: 4px;
            border-radius: 50%;
            background: #0abab5;
        }
    }

    /* Search Products - Match Mobile Product Cards */
    @media (min-width: 768px) {

        #amMobileSearchScreen #amLiveSearchResults .am-search-products-section {
            width: 100%;
            display: block !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-search-products-grid {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 12px !important;
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-search-products-grid > .am-mobile-product-col {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            flex: none !important;
            padding: 0 !important;
            margin: 0 !important;
            min-width: 0 !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-card {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            height: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            border: none !important;
            border-radius: 12px !important;
            background: #fff !important;
            box-shadow: 0 5px 24px rgba(0, 0, 0, .06) !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-image-wrap {
            position: relative !important;
            width: 100% !important;
            overflow: hidden !important;
            aspect-ratio: 1 / 1;
            overflow: hidden;
            background: #f7f7f7;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-image-link {
            display: block !important;
            width: 100% !important;
            margin: 0 !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-image {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            object-fit: contain !important;
            margin: 0 auto !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: fill !important;
            object-position: center;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-wishlist {
            position: absolute !important;
            top: 10px !important;
            right: 10px !important;
            z-index: 2 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 34px !important;
            height: 34px !important;
            border-radius: 50% !important;
            background: #fff !important;
            color: #222 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .10) !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-sold-out {
            position: absolute !important;
            top: 10px !important;
            left: 10px !important;
            z-index: 2 !important;
            padding: 5px 8px !important;
            border-radius: 4px !important;
            background: #e92338 !important;
            color: #fff !important;
            font-size: 11px !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-body {
            display: flex !important;
            flex: 1 1 auto !important;
            flex-direction: column !important;
            width: 100% !important;
            min-width: 0 !important;
            padding: 10px !important;
            background: #fff !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-title {
            margin: 0 0 8px !important;
            padding: 0 !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            line-height: 1.5 !important;
            text-align: start !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-title a {
            color: #222 !important;
            text-decoration: none !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-product-pricing {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            flex-wrap: wrap !important;
            gap: 5px !important;
            width: 100% !important;
            margin: 0 0 10px !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-price-stack {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            gap: 5px !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-old-price {
            color: #999 !important;
            font-size: 11px !important;
            text-decoration: line-through !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-current-price {
            color: #111 !important;
            font-size: 13px !important;
            font-weight: 700 !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-discount-badge {
            color: #e92338 !important;
            font-size: 11px !important;
            font-weight: 600 !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-buy-button {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            width: 100% !important;
            min-height: 36px !important;
            margin-top: auto !important;
            padding: 7px 5px !important;
            border: none !important;
            border-radius: 6px !important;
            background: #0abab5 !important;
            color: #fff !important;
            font-size: 12px !important;
            text-align: center !important;
            text-decoration: none !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-buy-button svg {
            flex-shrink: 0;
        }
    }

    @media (min-width: 768px) {

        /* Products: 4 items per row */
        #amMobileSearchScreen #amLiveSearchResults .am-search-products-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        }

        /* Brands: 4 items per row */
        #amMobileSearchScreen #amLiveSearchResults .am-search-brands-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        }

       html[dir="rtl"] #amMobileSearchScreen #amLiveSearchResults .am-mobile-wishlist {
            right: 60% !important;
           background: none !important;
           box-shadow:none !important;
        }
        html[dir="ltr"] #amMobileSearchScreen #amLiveSearchResults .am-mobile-wishlist {
            left: 60% !important;
            background: none !important;
            box-shadow:none !important;

        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-wishlist svg {
            fill: #3d3d3d;
            width: 26px;
            height: 26px;
            background: none !important;
            box-shadow: none !important;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-buy-button {
            justify-content: center;
            gap: 8px;
            width: 100%;
            min-height: 46px!important;
            padding: 8px 5px;
            border: 1px solid #e5e5e5!important;
            border-radius: 28px!important;
            background: #fff!important;
            color: #111!important;
            font-weight: 600!important;
            text-decoration: none !important;
            display: flex !important;
            align-items: center !important;
            min-height: 40px !important;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-buy-button svg {
            flex-shrink: 0;
            color: var(--bs-primary-color);
            width: 17px;
            height: 17px;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-old-price {
            color: #e52332 !important;
            font-size: 13px !important;
            line-height: 1.4 !important;
            text-decoration: line-through !important;
            white-space: nowrap !important;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-current-price {
            color: #111 !important;
            font-size: 16px !important;
            line-height: 1.4 !important;
            font-weight: bold !important;
            white-space: nowrap !important;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-discount-badge {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
            min-height: 24px !important;
            padding: 3px 8px !important;
            border-radius: 7px !important;
            background: #ed0808 !important;
            color: #fff !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
        }
        /* Arabic */
        #amMobileSearchScreen:lang(ar) #amLiveSearchResults .am-mobile-product-pricing {
            gap: 6px !important;
            width: 100% !important;
            min-width: 0 !important;
            margin-top: 2px !important;
            margin-bottom: 16px !important;
            display: flex !important;
            justify-content: space-between !important;
            text-align: right !important;
            align-items: flex-end !important;
            direction: rtl !important;
        }

        /* English */
        #amMobileSearchScreen:lang(en) #amLiveSearchResults .am-mobile-product-pricing {
            gap: 6px !important;
            width: 100% !important;
            min-width: 0 !important;
            margin-top: 2px !important;
            margin-bottom: 16px !important;
            display: flex !important;
            justify-content: space-between !important;
            text-align: left !important;
            align-items: flex-end !important;
            direction: ltr !important;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-price-stack {
            flex-direction: column;
        }
    }
    @media (min-width: 768px) {

        /* Stores / Brands: 4 items per row */
        #amMobileSearchScreen #amLiveSearchResults .am-mobile-stores-grid {
            display: grid !important;
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            gap: 12px !important;
            width: 100% !important;
            margin: 0 !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-stores-grid > .am-mobile-store-col {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            flex: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        #amMobileSearchScreen #amLiveSearchResults .am-mobile-store-card {
            width: 100% !important;
            height: 100% !important;
        }
        #amSearchFilterSheet {
            width: 50%;
            height: 50%;
            min-height: 0;
            max-height: 80vh;
            max-height: 80dvh;

        }

    }

    /* Desktop Search Header - Larger Elements */
    @media (min-width: 768px) {

        /* Header height and spacing */
        #amMobileSearchScreen .am-search-screen-header {
            min-height: 75px;
            grid-template-columns: 50px minmax(0, 1fr) 50px;
            gap: 12px;
        }

        /* Back arrow button */
        #amMobileSearchScreen .am-search-screen-header button {
            width: 46px;
            height: 46px;
        }

        #amMobileSearchScreen .am-search-screen-header button svg {
            width: 32px;
            height: 32px;
            stroke-width: 2.5;
        }

        /* Filter title */
        #amMobileSearchScreen .am-search-screen-header > strong {
            font-size: 22px;
            font-weight: 700;
        }

        /* Cart icon */
        #amMobileSearchScreen .am-search-cart {
            width: 46px;
            height: 46px;
        }

        #amMobileSearchScreen .am-search-cart svg {
            width: 32px;
            height: 32px;
        }

        /* Cart count */
        #amMobileSearchScreen .am-search-cart span {
            min-width: 19px;
            height: 19px;
            font-size: 12px;
            line-height: 19px;
        }
    }

    @media (min-width: 768px) {
        #amMobileSearchScreen .am-search-cart {
            display: none;
        }
        #amMobileSearchScreen #amLiveSearchResults .am-search-products-grid > .am-mobile-product-col {
            margin-bottom: 1rem !important;
            margin-top: 1rem !important;
        }
        .box .card, .box .card-body, .prods .card, .prods .card-body {
            padding: 0  !important;
        }
        .product-slider .slick-slide {
             padding-left: 0!important;
             padding-right: 0 !important;
        }
    }
    .ad_img {
        border-radius: 25px !important;
    }
