/*
 * Rich Home — Header
 * Final desktop/mobile header styles for the current server Blade.
 *
 * Visual-only file:
 * - does not change SEO
 * - does not change routes or URLs
 * - logo/media continue to come from the existing Laravel components
 */

/* ---- promotional notice: removed -------------------------------------- */
.rh-notice {
    display: none !important;
}

/* ---- header shell ------------------------------------------------------ */
.rh-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--rh-bg, #fff);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.06);
}

/* ---- top bar ----------------------------------------------------------- */
.rh-topbar,
.rh-topbar--new {
    width: 100%;
    background: #74163d;
    color: #fff;
}

.rh-topbar-new__inner {
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "contacts spacer language";
    align-items: center;
    direction: ltr;
}

.rh-topbar-new__contacts {
    grid-area: contacts;
    justify-self: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    direction: ltr;
}

.rh-topbar-new__contacts > li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.rh-topbar-new__contacts a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: opacity .18s ease;
}

.rh-topbar-new__contacts a:hover {
    color: #fff;
    opacity: .82;
}

.rh-topbar-new__contacts svg {
    display: block;
    flex: 0 0 auto;
}

.rh-topbar-new__icon-link {
    width: 30px;
}

.rh-topbar-new__showrooms {
    direction: ltr;
}

.rh-topbar-new__showrooms span {
    direction: rtl;
}

.rh-topbar-new__spacer {
    grid-area: spacer;
    width: 1px;
    height: 1px;
}

.rh-topbar-new__language {
    grid-area: language;
    justify-self: end;
    direction: rtl;
}

.rh-topbar-new__language,
.rh-topbar-new__language a,
.rh-topbar-new__language button,
.rh-topbar-new__language .rh-language__toggle {
    color: #fff !important;
}

/* compatibility with any old topbar fragment */
.rh-topbar__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--rh-fs-sm);
}

.rh-topbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-topbar__menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

/* ---- mid bar ----------------------------------------------------------- */
.rh-midbar {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.rh-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.rh-logo img {
    display: block;
    width: 205px;
    max-width: 205px;
    height: auto;
    max-height: 82px;
    object-fit: contain;
}

/* ---- search ------------------------------------------------------------ */
.rh-search {
    flex: 1 1 620px;
    width: 100%;
    max-width: 680px;
}

.rh-search__form {
    display: flex;
    align-items: stretch;
    height: 48px;
    overflow: hidden;
    border: 1px solid #e2e3e6;
    border-radius: 9px;
    background: #f1f2f4;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.rh-search__form:focus-within {
    border-color: #74163d;
    box-shadow: 0 0 0 3px rgb(116 22 61 / 0.08);
}

.rh-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-size: 15px;
}

.rh-search__input::placeholder {
    color: #92969d;
}

.rh-search__submit {
    flex: 0 0 58px;
    width: 58px;
    display: grid;
    place-items: center;
    border: 0;
    background: #74163d;
    color: #fff;
    cursor: pointer;
    transition: background-color .18s ease;
}

.rh-search__submit:hover {
    background: #611132;
}

/* ---- account / wishlist / cart ---------------------------------------- */
.rh-header-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.rh-header-actions > * + * {
    border-inline-start: 1px solid #e3e3e3;
}

.rh-header-action {
    position: relative;
    min-width: 106px;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 0;
    color: #171717;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    transition:
        color .18s ease,
        background-color .18s ease;
}

.rh-header-action:hover {
    background: #faf7f8;
    color: #74163d;
}

.rh-header-action__labels {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.rh-header-action__primary {
    font-size: 13px;
    font-weight: 700;
}

.rh-header-action__secondary {
    margin-top: 2px;
    color: #999;
    font-size: 11px;
    font-weight: 400;
}

.rh-header-cart-wrap {
    position: relative;
}

.rh-badge-count {
    position: absolute;
    inset-block-start: 3px;
    inset-inline-start: 5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #74163d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.rh-badge-count[data-count='0'] {
    background: #9aa0a7;
}

/* ---- language switcher ------------------------------------------------- */
.rh-language {
    position: relative;
}

.rh-language__toggle {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--rh-radius);
    background: transparent;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
}

.rh-language__menu {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 160px;
    padding: 6px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(0 0 0 / 0.12);
    z-index: 1200;
}

.rh-language__menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 6px;
    color: #222 !important;
    font-size: 14px;
    text-decoration: none;
}

.rh-language__menu a:hover,
.rh-language__menu a[aria-current='true'] {
    background: #f7e9ef;
    color: #74163d !important;
}

/* ---- mobile header ----------------------------------------------------- */
.rh-mobile-header {
    display: none;
    background: #fff;
}

.rh-mobile-topbar {
    background: #74163d;
    color: #fff;
    font-size: var(--rh-fs-xs);
}

.rh-mobile-topbar__inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rh-mobile-topbar a {
    color: #fff;
}

.rh-mobile-bar--sticky {
    position: sticky;
    top: 0;
    z-index: 950;
    background: #fff;
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.06);
}

.rh-mobile-bar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rh-mobile-bar__group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rh-mobile-bar .rh-logo img {
    width: 132px;
    max-width: 132px;
    max-height: 50px;
}

.rh-icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #222;
}

.rh-icon-button:hover {
    background: #f7e9ef;
    color: #74163d;
}

.rh-mobile-search {
    padding-block-end: 10px;
}

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 1200px) {
    .rh-midbar {
        gap: 22px;
    }

    .rh-logo img {
        width: 180px;
        max-width: 180px;
    }

    .rh-search {
        max-width: 560px;
    }

    .rh-header-action {
        min-width: 94px;
        padding-inline: 10px;
    }
}

@media (max-width: 980px) {
    .rh-header--desktop {
        display: none !important;
    }

    .rh-mobile-header {
        display: block !important;
    }

    .rh-mobile-search .rh-search {
        max-width: none;
    }

    .rh-mobile-search .rh-search__form {
        height: 44px;
    }
}

@media (max-width: 560px) {
    .rh-mobile-bar {
        min-height: 60px;
    }

    .rh-mobile-bar .rh-logo img {
        width: 115px;
        max-width: 115px;
    }

    .rh-icon-button {
        width: 38px;
        height: 38px;
    }
}


/* ===== NAVIGATION + MEGA MENU ===== */

/*
 * Rich Home — Main Navigation + Mega Menu
 * Final styles for the current Ricrac-style Blade markup.
 *
 * All category/product links remain data-driven.
 */

/* ---- desktop nav ------------------------------------------------------- */
.rh-nav {
    position: relative !important;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

.rh-nav__list {
    position: static !important;
    min-height: 58px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-nav__item,
.rh-nav__item[data-rh-disclosure-wrapper] {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rh-nav__link {
    position: relative;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #2f2f2f;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

/* Remove every old underline source. */
.rh-nav__item::before,
.rh-nav__item::after,
.rh-nav__link::before {
    content: none !important;
    display: none !important;
}

/* One underline only. */
.rh-nav__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #74163d;
    transform: translateX(-50%);
    transition: width .2s ease;
}

.rh-nav__link:hover,
.rh-nav__link[aria-current='page'],
.rh-nav__link[aria-expanded='true'] {
    color: #74163d;
}

.rh-nav__link:hover::after,
.rh-nav__link[aria-current='page']::after,
.rh-nav__link[aria-expanded='true']::after {
    width: calc(100% - 30px);
}

/* While another item is hovered, move the underline to it. */
.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-current='page']:not(:hover)::after,
.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-expanded='true']:not(:hover)::after {
    width: 0;
}

.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-current='page']:not(:hover),
.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-expanded='true']:not(:hover) {
    color: #2f2f2f;
}

/* ---- Ricrac-style mega menu ------------------------------------------- */
.rh-megamenu.rh-megamenu--ricrac {
    position: absolute !important;
    inset-block-start: calc(100% + 1px) !important;
    left: 50% !important;
    right: auto !important;
    width: min(1380px, calc(100vw - 64px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #ececec !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 45px rgb(0 0 0 / 0.13) !important;
    transform: translateX(-50%) !important;
    z-index: 1100 !important;
}

.rh-megamenu.rh-megamenu--ricrac[hidden] {
    display: none !important;
}

.rh-megamenu-ricrac__inner {
    width: 100%;
    min-height: 400px;
    max-height: 560px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 280px !important;
    grid-template-areas: "products categories" !important;
    background: #fff;
    direction: ltr !important;
}

/* Right category rail */
.rh-megamenu-ricrac__sidebar {
    grid-area: categories !important;
    width: 280px;
    display: flex !important;
    flex-direction: column !important;
    padding: 18px 14px;
    overflow-y: auto;
    border-left: 1px solid #ededed;
    background: #fff;
    direction: rtl !important;
}

.rh-megamenu-ricrac__tab {
    width: 100%;
    min-height: 56px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    margin: 0 0 4px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color .18s ease,
        color .18s ease;
}

.rh-megamenu-ricrac__tab:hover,
.rh-megamenu-ricrac__tab.is-active {
    background: #f6e9ef;
    color: #74163d;
}

/* Left product area */
.rh-megamenu-ricrac__content {
    grid-area: products !important;
    min-width: 0;
    padding: 28px 32px;
    overflow-y: auto;
    background: #fff;
    direction: rtl !important;
}

.rh-megamenu-ricrac__panel {
    width: 100%;
}

.rh-megamenu-ricrac__panel[hidden] {
    display: none !important;
}

.rh-megamenu-ricrac__grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px;
    align-items: start;
}

.rh-megamenu-product {
    display: block;
    min-width: 0;
    color: #222;
    text-decoration: none;
}

.rh-megamenu-product__image {
    width: 100%;
    height: 155px;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

/*
 * x-storefront.image may render picture/span wrappers.
 * Force the media to stay inside the card.
 */
.rh-megamenu-product__image > *,
.rh-megamenu-product__image picture,
.rh-megamenu-product__image span {
    width: 100% !important;
    height: 100% !important;
}

.rh-megamenu-product__image picture,
.rh-megamenu-product__image span {
    display: block !important;
}

.rh-megamenu-product__image img,
.rh-megamenu-product__image picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

.rh-megamenu-product__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.rh-megamenu-product__name {
    padding-top: 10px;
    color: #252525;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    transition: color .18s ease;
}

.rh-megamenu-product:hover .rh-megamenu-product__name {
    color: #74163d;
}

/* ---- mobile navigation drawer ----------------------------------------- */
.rh-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.rh-drawer[open],
.rh-drawer.is-open {
    display: block;
}

.rh-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.45);
}

.rh-drawer__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(320px, 86vw);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--rh-bg, #fff);
    box-shadow: var(--rh-shadow-large);
}

.rh-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-block-end: 1px solid var(--rh-border);
}

.rh-drawer__body {
    padding: 8px 0 24px;
}

.rh-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    color: var(--rh-text);
    font-size: var(--rh-fs-md-2);
    font-weight: var(--rh-fw-bold);
}

.rh-drawer__link:hover {
    background: var(--rh-bg-lighter);
    color: var(--rh-accent);
}

.rh-drawer__sublist {
    margin-inline-start: 16px;
    padding-inline-start: 16px;
    border-inline-start: 2px solid var(--rh-border);
}

.rh-drawer__sublist a {
    display: block;
    padding: 9px 12px;
    color: var(--rh-gray);
    font-size: var(--rh-fs-md);
}

.rh-drawer__sublist a:hover {
    color: var(--rh-accent);
}

.rh-disclosure {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: var(--rh-radius);
}

.rh-disclosure svg {
    transition: transform .2s ease;
}

[aria-expanded='true'] > .rh-disclosure svg,
.rh-disclosure[aria-expanded='true'] svg {
    transform: rotate(180deg);
}

/* ---- breadcrumbs ------------------------------------------------------- */
.rh-breadcrumbs {
    padding-block: 14px;
    color: var(--rh-gray);
    font-size: var(--rh-fs-sm);
}

.rh-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rh-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-breadcrumbs li + li::before {
    content: '/';
    color: var(--rh-border);
}

.rh-breadcrumbs a:hover {
    color: var(--rh-accent);
}

.rh-breadcrumbs [aria-current='page'] {
    color: var(--rh-text);
}

/* ---- responsive desktop ------------------------------------------------ */
@media (max-width: 1200px) {
    .rh-nav__link {
        padding-inline: 18px;
    }

    .rh-megamenu.rh-megamenu--ricrac {
        width: calc(100vw - 30px) !important;
    }

    .rh-megamenu-ricrac__inner {
        grid-template-columns: minmax(0, 1fr) 235px !important;
    }

    .rh-megamenu-ricrac__sidebar {
        width: 235px;
    }

    .rh-megamenu-ricrac__content {
        padding: 24px;
    }

    .rh-megamenu-ricrac__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .rh-megamenu-product__image {
        height: 145px;
    }
}

/* =========================================================
   FINAL HEADER OVERRIDES
   Font Awesome 7 + language direction + one nav underline
========================================================= */

/* ---- Font Awesome icon sizing ----------------------------------------- */
.rh-topbar-new__contacts i {
    width: 18px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    line-height: 1;
}

.rh-header-action > i {
    width: 22px;
    flex: 0 0 22px;
    display: inline-block;
    text-align: center;
    font-size: 18px;
    line-height: 1;
}

.rh-nav__link > i {
    width: 14px;
    display: inline-block;
    text-align: center;
    font-size: 11px;
    line-height: 1;
}

.rh-megamenu-ricrac__tab > i {
    width: 14px;
    flex: 0 0 14px;
    display: inline-block;
    text-align: center;
    font-size: 12px;
    line-height: 1;
}

.rh-icon-button > i {
    font-size: 20px;
    line-height: 1;
}

.rh-mobile-topbar i {
    width: 16px;
    text-align: center;
}


/* ---- Utility bar flips with document language ------------------------- */

/* Arabic: contacts physically LEFT, language physically RIGHT */
html[dir='rtl'] .rh-topbar-new__inner {
    grid-template-areas: "contacts spacer language";
}

html[dir='rtl'] .rh-topbar-new__contacts {
    grid-area: contacts;
    justify-self: start;
    direction: ltr;
}

html[dir='rtl'] .rh-topbar-new__showrooms span {
    direction: rtl;
}

html[dir='rtl'] .rh-topbar-new__language {
    grid-area: language;
    justify-self: end;
    direction: rtl;
}

/* English/LTR: language physically LEFT, contacts physically RIGHT */
html[dir='ltr'] .rh-topbar-new__inner {
    grid-template-areas: "language spacer contacts";
}

html[dir='ltr'] .rh-topbar-new__language {
    grid-area: language;
    justify-self: start;
    direction: ltr;
}

html[dir='ltr'] .rh-topbar-new__contacts {
    grid-area: contacts;
    justify-self: end;
    direction: ltr;
}

html[dir='ltr'] .rh-topbar-new__showrooms,
html[dir='ltr'] .rh-topbar-new__showrooms span {
    direction: ltr;
}


/* ---- Navigation: exactly ONE underline -------------------------------- */
.rh-nav__item::before,
.rh-nav__item::after,
.rh-nav__link::before {
    content: none !important;
    display: none !important;
}

.rh-nav__link {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.rh-nav__link::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    display: block !important;
    width: 0 !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #74163d !important;
    transform: translateX(-50%) !important;
    transition: width .2s ease !important;
}

.rh-nav__link:hover,
.rh-nav__link[aria-current='page'],
.rh-nav__link[aria-expanded='true'] {
    color: #74163d !important;
}

.rh-nav__link:hover::after,
.rh-nav__link[aria-current='page']::after,
.rh-nav__link[aria-expanded='true']::after {
    width: calc(100% - 30px) !important;
}

/* Hovered item owns the underline. */
.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-current='page']:not(:hover)::after,
.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-expanded='true']:not(:hover)::after {
    width: 0 !important;
}

.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-current='page']:not(:hover),
.rh-nav:has(.rh-nav__link:hover)
    .rh-nav__link[aria-expanded='true']:not(:hover) {
    color: #2f2f2f !important;
}

/* When Products is open, it owns the underline instead of current page. */
.rh-nav:has(.rh-nav__link[aria-expanded='true'])
    .rh-nav__link[aria-current='page']:not([aria-expanded='true'])::after {
    width: 0 !important;
}

.rh-nav:has(.rh-nav__link[aria-expanded='true'])
    .rh-nav__link[aria-current='page']:not([aria-expanded='true']) {
    color: #2f2f2f !important;
}


html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    font-family: "Tajawal", sans-serif !important;
}

html[dir="rtl"] .rh-nav__link {
    font-family: "Tajawal", sans-serif !important;
    font-weight: 700 !important;
}

html[dir="rtl"] .rh-topbar,
html[dir="rtl"] .rh-header-action,
html[dir="rtl"] .rh-megamenu-ricrac__tab,
html[dir="rtl"] .rh-megamenu-product__name {
    font-family: "Tajawal", sans-serif !important;
}










/* =========================================================
   FIX NAV UNDERLINE POSITION IN RTL
========================================================= */

html[dir="rtl"] .rh-nav__link::after {
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;

    left: 50% !important;
    right: auto !important;

    transform: translateX(-50%) !important;
}

/* Products owns the underline while mega menu is open */
html[dir="rtl"] .rh-nav__link[aria-expanded="true"]::after {
    left: 50% !important;
    right: auto !important;

    width: calc(100% - 30px) !important;

    transform: translateX(-50%) !important;
}

/* Remove underline from any other item while Products is open */
html[dir="rtl"] .rh-nav:has(.rh-nav__link[aria-expanded="true"])
.rh-nav__link:not([aria-expanded="true"])::after {
    width: 0 !important;
}








/* =========================================================
   STICKY NAVBAR
========================================================= */

.rh-nav.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    background: #fff !important;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;

    z-index: 5000 !important;
}

/* نحافظ على نفس تمركز اللينكات */
.rh-nav.is-sticky .rh-nav__list {
    width: min(1280px, calc(100% - 40px)) !important;
    margin-inline: auto !important;
}

/* مكان الـnav الأصلي عشان الصفحة ما تنطش */
.rh-nav-sticky-placeholder {
    display: block;
    width: 100%;
    height: 0;
}

/* الـMega Menu تفضل تحت الـNavbar */
.rh-nav.is-sticky .rh-megamenu--ricrac {
    top: 100% !important;
}


/* =========================================================
   DESKTOP LOGO - FINAL CLEAN FIX
========================================================= */

@media (min-width: 981px) {

    /* نحجز مساحة كفاية للوجو */
    .rh-header--desktop .rh-midbar > .rh-logo {
        flex: 0 0 235px !important;

        width: 235px !important;

        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
    }


    /* العربي: اللوجو على اليمين لكن ندخله لجوه */
    html[dir="rtl"] .rh-header--desktop .rh-midbar > .rh-logo {
        justify-content: flex-start !important;

        padding-right: 28px !important;
    }


    /* الإنجليزي */
    html[dir="ltr"] .rh-header--desktop .rh-midbar > .rh-logo {
        justify-content: flex-end !important;

        padding-left: 28px !important;
    }


    .rh-header--desktop .rh-logo img {
        width: 225px !important;
        max-width: 225px !important;

        height: auto !important;
        max-height: 90px !important;

        object-fit: contain !important;

        margin: 0 !important;
    }

}







/* =========================================================
   LANGUAGE DROPDOWN — DESKTOP
   ========================================================= */

/* Arabic desktop:
   language on RIGHT → dropdown opens toward LEFT / page */
html[dir="rtl"]
.rh-topbar-new__language
.rh-language__menu {
    right: 0 !important;
    left: auto !important;

    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
}


/* English desktop:
   language on LEFT → dropdown opens toward RIGHT / page */
html[dir="ltr"]
.rh-topbar-new__language
.rh-language__menu {
    left: 0 !important;
    right: auto !important;

    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
}


.rh-topbar-new__language .rh-language__menu {
    min-width: 190px !important;
    z-index: 6000 !important;
}


/* =========================================================
   MOBILE LANGUAGE SWITCHER
   ========================================================= */

@media (max-width: 980px) {

    /* -----------------------------------------
       TOP BAR
    ----------------------------------------- */

    .rh-mobile-topbar {
        position: relative;

        z-index: 1200;

        min-height: 40px;

        overflow: visible !important;

        font-size: 13px;
    }


    .rh-mobile-topbar__inner {
        min-height: 40px;

        overflow: visible !important;
    }


    /* -----------------------------------------
       LANGUAGE WRAPPER
    ----------------------------------------- */

    .rh-mobile-topbar .rh-language {
        position: relative;

        display: flex;
        align-items: center;

        z-index: 1300;
    }


    /* -----------------------------------------
       TOGGLE
    ----------------------------------------- */

    .rh-mobile-topbar .rh-language__toggle {
        display: inline-flex;

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

        gap: 6px;

        min-width: 82px;
        min-height: 40px;

        padding: 0 8px;

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

        border: 0;

        font-size: 13px !important;
        font-weight: 600;
        line-height: 1;

        white-space: nowrap;

        cursor: pointer;
    }


    .rh-mobile-topbar .rh-language__toggle svg,
    .rh-mobile-topbar .rh-language__toggle i {
        flex: 0 0 auto;

        width: 14px;
        height: 14px;

        font-size: 13px;

        color: #fff !important;
    }


    /* -----------------------------------------
       DROPDOWN
    ----------------------------------------- */

    .rh-mobile-topbar .rh-language__menu {
        position: absolute !important;

        top: 100% !important;

        width: 155px !important;
        min-width: 155px !important;

        margin-top: 2px !important;
        padding: 6px;

        background: #fff;

        border: 1px solid #ece7e9;
        border-radius: 9px;

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.13);

        z-index: 9999 !important;

        transform: none !important;
    }


    /* -----------------------------------------
       ARABIC MOBILE
       icon physically LEFT
       menu opens toward RIGHT / inside screen
    ----------------------------------------- */

    html[dir="rtl"]
    .rh-mobile-topbar
    .rh-language__menu {
        left: 0 !important;
        right: auto !important;

        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }


    /* -----------------------------------------
       ENGLISH MOBILE
       icon physically RIGHT
       menu opens toward LEFT / inside screen
    ----------------------------------------- */

    html[dir="ltr"]
    .rh-mobile-topbar
    .rh-language__menu {
        right: 0 !important;
        left: auto !important;

        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }


    /* -----------------------------------------
       LINKS
    ----------------------------------------- */

    .rh-mobile-topbar .rh-language__menu a {
        display: flex;

        align-items: center;

        min-height: 40px;

        padding: 8px 11px;

        color: #222 !important;

        border-radius: 6px;

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

        text-decoration: none;
    }


    .rh-mobile-topbar .rh-language__menu a:hover,
    .rh-mobile-topbar .rh-language__menu a[aria-current="true"] {
        color: #74163d !important;
        background: #f7e9ef;
    }


}





/* =========================================================
   MOBILE TOPBAR + DRAWER LANGUAGE
========================================================= */

@media (max-width: 980px) {

    .rh-mobile-topbar__inner {
        min-height: 34px;

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

        gap: 12px;
    }


    .rh-mobile-topbar__contacts {
        display: flex;
        align-items: center;

        min-width: 0;
    }


    .rh-mobile-topbar__link {
        display: inline-flex;
        align-items: center;

        gap: 5px;

        color: #fff !important;

        font-size: 11px;
        text-decoration: none;
    }


    /* SOCIALS */

    .rh-mobile-topbar__socials {
        display: flex;
        align-items: center;

        gap: 12px;

        flex: 0 0 auto;
    }


    .rh-mobile-topbar__socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 25px;
        height: 25px;

        color: #fff !important;

        font-size: 13px;

        text-decoration: none;
    }


    /* =====================================================
       DRAWER LANGUAGE
    ====================================================== */

    .rh-drawer__language {
        width: 100%;
    }


    .rh-drawer__language .rh-language {
        width: 100%;
    }


    .rh-drawer__language .rh-language__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        min-height: 46px;

        padding: 0 16px;

        border: 0;
        border-radius: 0;

        background: #fff;
        color: #252525;

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

        cursor: pointer;
    }


    .rh-drawer__language .rh-language__menu {
        position: static !important;

        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 4px 16px 8px !important;

        background: #faf8f9;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        transform: none !important;
    }


    .rh-drawer__language .rh-language__menu[hidden] {
        display: none !important;
    }


    .rh-drawer__language .rh-language__menu a {
        display: flex;
        align-items: center;

        min-height: 40px;

        padding: 7px 12px;

        border-radius: 7px;

        color: #333 !important;

        font-size: 13px !important;

        text-decoration: none;
    }


    .rh-drawer__language .rh-language__menu a:hover,
    .rh-drawer__language .rh-language__menu a[aria-current="true"] {
        color: #74163d !important;
        background: #f3e6eb;
    }
}









/* =========================================================
   MOBILE DRAWER LANGUAGE — BIGGER
========================================================= */

@media (max-width: 980px) {

    .rh-drawer__language .rh-language__toggle {
        min-height: 54px !important;

        padding: 0 18px !important;

        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .rh-drawer__language .rh-language__toggle svg,
    .rh-drawer__language .rh-language__toggle i {
        width: 18px !important;
        height: 18px !important;

        font-size: 17px !important;
    }

    .rh-drawer__language .rh-language__menu a {
        min-height: 46px !important;

        padding: 9px 14px !important;

        font-size: 15px !important;
        font-weight: 500 !important;
    }
}





/* =========================================================
   MOBILE DRAWER — LANGUAGE ICON BIGGER
========================================================= */

@media (max-width: 980px) {

    .rh-drawer__language .rh-language__toggle {
        gap: 10px !important;
        font-size: 16px !important;
    }

    /* Globe + language icons */
    .rh-drawer__language .rh-language__toggle svg,
    .rh-drawer__language .rh-language__toggle i {
        flex: 0 0 23px !important;

        width: 23px !important;
        height: 23px !important;

        min-width: 23px !important;
        min-height: 23px !important;

        font-size: 21px !important;
    }

    /* لو الأيقونة SVG نخلي الخط أوضح */
    .rh-drawer__language .rh-language__toggle svg {
        stroke-width: 2.1 !important;
    }
}

















/* =========================================================
   MOBILE TOPBAR — CONTACT + SOCIALS
========================================================= */

@media (max-width: 980px) {

    .rh-mobile-topbar__inner {
        min-height: 36px;

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

        gap: 12px;
    }


    /* CONTACT */

    .rh-mobile-topbar__contacts {
        display: flex;
        align-items: center;

        min-width: 0;
    }


    .rh-mobile-topbar__link {
        display: inline-flex;
        align-items: center;

        gap: 5px;

        color: #fff !important;

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

        text-decoration: none;
        white-space: nowrap;
    }


    .rh-mobile-topbar__link svg {
        flex: 0 0 14px;

        width: 14px;
        height: 14px;
    }


    /* SOCIALS */

    .rh-mobile-topbar__socials {
        display: flex;
        align-items: center;

        gap: 8px;

        flex: 0 0 auto;
    }


    .rh-mobile-topbar__social {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 27px;
        height: 27px;

        padding: 0;

        color: #fff !important;
        background: rgba(255, 255, 255, 0.08);

        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 50%;

        text-decoration: none;
    }


    .rh-mobile-topbar__social i {
        font-size: 13px;

        line-height: 1;
    }


    .rh-mobile-topbar__social:active {
        background: rgba(255, 255, 255, 0.18);
    }

}





















/* =========================================================
   MOBILE DRAWER — PRODUCT CATEGORY DROPDOWNS
========================================================= */

@media (max-width: 980px) {

    /* Remove default details markers */
    .rh-drawer details > summary {
        list-style: none;
    }

    .rh-drawer details > summary::-webkit-details-marker {
        display: none;
    }


    /* =====================================================
       PRODUCTS MAIN DROPDOWN
    ====================================================== */

    .rh-drawer-menu-group {
        width: 100%;

        border: 0;
        margin: 0;
        padding: 0;
    }


    .rh-drawer-menu-group > .rh-drawer__link {
        width: 100%;

        cursor: pointer;
    }


    .rh-drawer__link--products {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    .rh-drawer-menu-group__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 24px;
        height: 24px;

        color: #666;

        transition: transform .25s ease;
    }


    .rh-drawer-menu-group__arrow i {
        font-size: 11px;
    }


    .rh-drawer-menu-group[open]
    > summary
    .rh-drawer-menu-group__arrow {
        transform: rotate(180deg);
    }


    /* Products active/open */
    .rh-drawer-menu-group[open]
    > .rh-drawer__link--products {
        color: #74163d;

        font-weight: 700;

        background: #faf7f8;
    }


    /* =====================================================
       MEGA MENU WRAPPER
    ====================================================== */

    .rh-drawer-mega {
        width: 100%;

        padding: 4px 0 8px;

        background: #fff;
    }


    /* =====================================================
       CATEGORY
    ====================================================== */

    .rh-drawer-category {
        width: 100%;

        margin: 0;

        border-bottom: 1px solid #eee9eb;
    }


    .rh-drawer-category:last-child {
        border-bottom: 0;
    }


    /* CATEGORY TITLE — BURGUNDY */

    .rh-drawer-category__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        width: 100%;
        min-height: 48px;

        padding: 0 22px;

        color: #74163d;

        background: #fff;

        font-size: 14px;
        font-weight: 700;

        cursor: pointer;

        transition:
            background .2s ease,
            color .2s ease;
    }


    .rh-drawer-category__summary:hover {
        background: #faf7f8;
    }


    .rh-drawer-category[open]
    > .rh-drawer-category__summary {
        color: #5c1030;

        background: #faf7f8;
    }


    /* Arrow */

    .rh-drawer-category__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 22px;

        width: 22px;
        height: 22px;

        color: #74163d;

        transition: transform .25s ease;
    }


    .rh-drawer-category__arrow i {
        font-size: 10px;
    }


    .rh-drawer-category[open]
    .rh-drawer-category__arrow {
        transform: rotate(180deg);
    }


    /* =====================================================
       CATEGORY CONTENT
    ====================================================== */

    .rh-drawer-category__content {
        display: flex;
        flex-direction: column;

        width: 100%;

        padding: 4px 22px 12px;

        background: #fcfafb;
    }


    /* View all */

    .rh-drawer-category__all {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 8px;

        min-height: 39px;

        margin-bottom: 2px;
        padding: 7px 10px;

        color: #74163d;

        border-radius: 7px;

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

        text-decoration: none;
    }


    .rh-drawer-category__all i {
        font-size: 10px;
    }


    /* Individual product/category link */

    .rh-drawer-category__item {
        display: block;

        min-height: 38px;

        padding: 8px 10px;

        color: #555;

        border-radius: 7px;

        font-size: 12px;
        font-weight: 400;
        line-height: 1.6;

        text-decoration: none;

        transition:
            color .2s ease,
            background .2s ease;
    }


    .rh-drawer-category__item:hover,
    .rh-drawer-category__item:active {
        color: #74163d;

        background: #f4e8ed;
    }

}

