.header-container {
    width: 100%;
    height: auto !important;
    min-height: 60px;
    max-height: none;
    /* background: white; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container .logo-new {
    width: 100%;
    max-width: 40%;
}

.header-container .logo-new .logo-url {
    width: 100%;
    display: flex;
    height: fit-content;
    flex-direction: column;
}

.header-container .logo-new .logo-img {
    padding: 2px 0px 0px;
    display: inline;
    /* margin-left: 5%; */
    /* top: -12px; */
    width: 100%;
    max-width: 14rem;
    height: 100%;
    padding: 0;
    padding: 0 0 0 32px;
    /* margin-top: -60px; */
    position: relative;
    z-index: 3;
}


.header-container .search-box {
    width: 100%;
    max-width: 40%;
}

.header-container .hamburger-new {
    width: 100%;
    max-width: 20%;
    border-radius: 0;
    height: auto;
    min-height: 30px;
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
}

.header-container .hamburger-new .rightoptions {
    position: relative;
    display: flex;
    justify-content: end;
    align-items: center;
    /* margin-right: 32px; */
    margin-right: 77px;
    margin-top: -65px;
    /* margin-top: -78px; */
    overflow: visible;
    z-index: 2;
}

.header-container .hamburger-new .rightoptions p {
    font-size: 16px;
    /* margin-left: 25px; */
    margin-left: 15px;
}


.header-container .hamburger-new .menu-links {
    display: flex;
    margin: 0 32px 0 0;
}

.header-container .cart-link p {
    display: flex;
    align-items: center;
}

.header-container .cart-link .cart-count {
    display: block;
    font-size: inherit;
    margin: 0 0 0 0;
}

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

    .header-container .logo-new,
    .header-container .hamburger-new {
        max-width: 30%;
    }

    .header-container .search-box {
        max-width: 40%;
    }
}

@media screen and (max-width: 992px) {
    .search-box {
        display: none;
    }

    .header-container .logo-new {
        width: 100%;
        display: flex;
        height: fit-content;
        flex-direction: column;
    }

    .header-container .hamburger-new {
        max-width: 75%;
    }
}

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

    .header-container .hamburger-new,
    .header-container .hamburger-new .menu-links {
        margin: 0 20px 0 0;
    }

    .header-container .hamburger-new .rightoptions {
        /* margin-top: -47px; */
        margin-right: 20px;
    }

    .header-container .hamburger-new .rightoptions p {
        font-size: 14px;
        margin-left: 12px;
    }

    .sidebar .sidebar-menu .menu-purl a {
        font-size: 18px;
    }

    .sidebar-menu .cart-count {
        display: inline-block;
        margin-left: 4px;
        font-size: 18px;
        font-weight: bold;
        vertical-align: middle;
    }

}

@media screen and (max-width: 600px) {
    .header-container .logo-new {
        width: 100%;
        display: flex;
        height: fit-content;
        flex-direction: column;
    }

    .header-container .hamburger-new {
        max-width: 65%;
    }

    .header-container .hamburger-new .hamburger-icon {
        width: 26px;
        height: 26px;
    }

    .header-container .logo-new .logo-img {
        padding: 0 0 0 20px;
        height: 30px;
    }

    /* .header-container .hamburger-new .rightoptions {
        margin-top: -42px;
    } */

    .header-container .hamburger-new .rightoptions p {
        /* font-size: 10px; */
        margin-left: 10px;
    }
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

#search-input {
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    border: 1px solid #222;
    border-radius: 0;
    padding: 0 16px;
    font-size: 15px;
    background: transparent;
}

.results-box {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: transparent;
    border: 1px solid #222;
    border-top: 0;
    border-radius: 0;
    z-index: 999;
    display: none;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-top: 0;
    box-sizing: border-box;
}

.search-result-item {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 8px 14px;
    font-size: 35px;
    min-height: 200px;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    gap: 10px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
    margin-left: 0;
    background: #eee;
    display: inline-block;
    flex-shrink: 0;
    order: 1;
}

.search-result-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    order: 2;
    text-align: left;
}

.search-result-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .sidebar-menu {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .sidebar-menu li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .sidebar-menu li a {
        padding: 0 20px;
        font-size: 18px;
        font-weight: bold;
        color: #222;
        text-decoration: none;
        box-sizing: border-box;
        margin: 0;
    }

    .sidebar-menu .cart-link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 20px;
        font-size: 20px;
        font-weight: bold;
        color: #222;
        text-decoration: none;
        box-sizing: border-box;
        margin: 0;
    }
}


/* RTL Support for Arabic Layout */
html[dir="rtl"] .sidebar-menu {
    padding: 0 !important;
    text-align: right;
    direction: rtl;
}


/* RTL support for nested menu items */
html[dir="rtl"] .sidebar-menu .womensec1 {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .sidebar-menu .womensec1 li a {
    padding: 0 60px 0 0 !important;
    text-align: right;
}

/* RTL class-based styling (for body.rtl) */
.rtl .sidebar-menu {
    text-align: right;
    direction: rtl;
}

.rtl .sidebar-menu li a {
    padding: 0 40px 0 0 !important;
    text-align: right;
    margin-right: 0;
    margin-left: 0;
}

.rtl .sidebar-menu .womensec1 {
    text-align: right;
    direction: rtl;
}


[dir="rtl"] .search-result-item {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .search-result-img {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

html[dir="ltr"] .search-result-img {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .mobile-only {
        display: block;
    }
}

@media (max-width: 991px) {
    .mobile-cart-icon {
        position: relative;
        display: inline-block !important;
        vertical-align: middle;
    }

    .cart-count-badge {
        background: #000;
        color: #fff !important;
        border-radius: 50%;
        min-width: 20px;
        min-height: 20px;
        font-size: 10px !important;
        font-weight: 500;
        padding: 0;
        position: absolute !important;
        top: -8px;
        left: 50%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

    }

}

#search-results[dir="rtl"] .search-result-item {
    flex-direction: row-reverse !important;
}

#search-results[dir="rtl"] .search-result-img {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

.rtl .search-result-item {
    flex-direction: row !important;
    justify-content: flex-end;
}

.rtl .search-result-img {
    order: 2;
    margin-left: 8px;
    margin-right: 0;
}

.rtl .search-result-content {
    order: 1;
    flex: 1;
    text-align: left;
}