/* الهيدر الجديد — الرحاب */
:root { --rh-yellow: #f6b01e; --rh-yellow-dark: #e09d0b; --rh-dark: #1f2329; --rh-text: #2b2f36; --rh-muted: #8a8f98; --rh-border: #eceef1; --rh-bg: #f5f6f8; }

/* إخفاء الهيدر القديم لو اتبقى منه حاجة */
.site__header, .site__mobile-header { display: none !important; }

.rh-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 0 var(--rh-border); transition: box-shadow .2s; }
.rh-header.is-stuck { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.rh-header *, .rh-header *::before, .rh-header *::after { box-sizing: border-box; }
.rh-header__inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; }
.rh-header__top .rh-header__inner { height: 72px; }

.rh-header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.rh-header__logo img { height: 46px; width: auto; display: block; }

.rh-header__burger { display: none; width: 40px; height: 40px; border: 0; background: var(--rh-bg); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; padding: 0; }
.rh-header__burger span { width: 18px; height: 2px; background: var(--rh-dark); border-radius: 2px; }

/* البحث */
.rh-search { position: relative; flex: 1 1 auto; max-width: 560px; display: flex; align-items: center; background: var(--rh-bg); border-radius: 12px; height: 46px; }
.rh-search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 16px; font-size: 14px; outline: none; color: var(--rh-text); }
.rh-search__btn { flex: 0 0 auto; width: 38px; height: 38px; margin: 0 4px; border-radius: 10px; background: var(--rh-yellow); color: var(--rh-dark) !important; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rh-search__btn:hover { background: var(--rh-yellow-dark); }
.rh-search__results { display: none; position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); max-height: 420px; overflow: auto; z-index: 20; }
.rh-search__results:not(:empty)[style*="block"] { display: block; }

/* الأيقونات */
.rh-header__icons { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.rh-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--rh-dark) !important; cursor: pointer; text-decoration: none !important; }
.rh-icon:hover { color: var(--rh-yellow-dark) !important; }
.rh-icon__count, .rh-header .indicator__counter { position: absolute; top: -6px; inset-inline-end: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rh-yellow); color: var(--rh-dark); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* المقارنة والحساب (بيتولدوا من سكريبت الماستر بكلاسات indicator) */
.rh-header .indicator { position: relative; }
.rh-header .indicator__button { display: flex !important; align-items: center; gap: 8px; color: var(--rh-dark) !important; text-decoration: none !important; cursor: pointer; padding: 0 !important; background: none !important; height: auto !important; }
.rh-header .indicator__icon { position: relative; display: flex; width: auto !important; height: auto !important; }
.rh-header .indicator__icon svg { width: 26px; height: 26px; fill: currentColor; }
.rh-header .indicator__title { font-size: 11px; color: var(--rh-muted); display: block; line-height: 1.2; position: static !important; padding: 0 !important; }
.rh-header .indicator__value { font-size: 13px; font-weight: 700; display: block; line-height: 1.3; position: static !important; padding: 0 !important; }
.rh-header .indicator__button > .indicator__title, .rh-header .indicator__button > .indicator__value { order: 2; }
.rh-account .indicator__button { flex-wrap: wrap; display: grid !important; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; }
.rh-account .indicator__icon { grid-row: 1 / 3; align-self: center; }
.rh-header .indicator__content { display: none; }
.rh-icon--compare .indicator__content { display: none; position: absolute; top: calc(100% + 12px); inset-inline-end: 0; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); min-width: 280px; z-index: 30; }
.rh-icon--compare .indicator--open .indicator__content { display: block; }

.rh-total { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--rh-dark) !important; cursor: pointer; text-decoration: none !important; white-space: nowrap; }

/* زر اللغة */
.rh-lang { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; font-size: 13px; font-weight: 600; color: var(--rh-dark); white-space: nowrap; }
.rh-lang input { position: absolute; opacity: 0; pointer-events: none; }
.rh-lang__switch { position: relative; width: 42px; height: 22px; border-radius: 11px; background: #dfe2e6; transition: background .2s; flex: 0 0 auto; }
.rh-lang__switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.rh-lang input:checked + .rh-lang__switch { background: var(--rh-yellow); }
.rh-lang input:checked + .rh-lang__switch::after { transform: translateX(20px); }
[dir="rtl"] .rh-lang input:checked + .rh-lang__switch::after { transform: translateX(-20px); }
.rh-lang__flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.rh-lang { padding: 5px 10px; border: 1px solid var(--rh-border, #eceef1); border-radius: 8px; transition: border-color .2s, background .2s; }
.rh-lang:hover { border-color: var(--rh-yellow); background: #fff8e8; }

/* شريط الأقسام */
.rh-nav { border-top: 1px solid var(--rh-border); background: #fff; }
.rh-nav .rh-header__inner { height: 56px; gap: 24px; }

/* زرار وقائمة "جميع الأقسام" */
.rh-depts { position: relative; flex: 0 0 auto; }
.rh-depts__btn { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--rh-yellow); color: var(--rh-dark); font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.rh-depts__btn:hover { background: var(--rh-yellow-dark); }
.rh-depts__menu { display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 40; }
.rh-depts.open .rh-depts__menu { display: block; }
.rh-dl { list-style: none; margin: 0; padding: 8px 0; width: 290px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.rh-dl__link { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--rh-text) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; border-inline-start: 3px solid transparent; }
.rh-dl__link img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.rh-dl__link span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-dl__arrow { display: flex; color: var(--rh-muted); font-style: normal; }
.rh-dl__arrow .rh-chev { transform: rotate(-90deg); }
[dir="rtl"] .rh-dl__arrow .rh-chev { transform: rotate(90deg); }
.rh-dl__item:hover > .rh-dl__link { background: #fff7e3; color: var(--rh-dark) !important; border-inline-start-color: var(--rh-yellow); }
.rh-dl__item:hover .rh-dl__arrow { color: var(--rh-yellow-dark); }
/* القائمة الفرعية بتظهر جنب القائمة الرئيسية */
.rh-dl__sub { display: none; position: absolute; top: 0; inset-inline-start: 290px; width: 300px; min-height: 100%; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.14); padding: 14px 0; margin-inline-start: 6px; }
.rh-dl__item:hover > .rh-dl__sub { display: block; }
.rh-dl__sub-title { display: block; padding: 0 18px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--rh-border); color: var(--rh-dark); font-size: 15px; }

/* روابط الأقسام الفرعية (مشتركة بين الشريط و"جميع الأقسام") */
.rh-drop__list, .rh-sublist { list-style: none; margin: 0; padding: 0; }
.rh-drop__list a { display: block; padding: 8px 18px; color: var(--rh-text) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.rh-drop__list a:hover { background: #fff7e3; color: var(--rh-dark) !important; }
.rh-sublist a { padding-inline-start: 32px; font-weight: 400; color: var(--rh-muted) !important; }

/* الشريط */
.rh-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.rh-nav__item { position: relative; }
.rh-nav__link { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px; color: var(--rh-dark) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.rh-nav__link .rh-chev { color: var(--rh-muted); transition: transform .2s; }
.rh-nav__item:hover > .rh-nav__link { color: var(--rh-yellow-dark) !important; }
.rh-nav__item:hover > .rh-nav__link .rh-chev { transform: rotate(180deg); color: var(--rh-yellow-dark); }
.rh-drop { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 0 0 12px 12px; border-top: 3px solid var(--rh-yellow); box-shadow: 0 16px 40px rgba(0,0,0,.12); padding: 8px 0; z-index: 40; }
.rh-nav__item:hover > .rh-drop { display: block; }

/* المحاذاة حسب اتجاه اللغة */
.rh-header, .rh-mnav, .rh-footer, .rh-home { text-align: start; }
.rh-header [dir], .rh-footer h4, .rh-footer p, .rh-footer li { text-align: start; }

/* المقارنة على الموبايل: القائمة تبقى بعرض الشاشة بدل ما تخرج برّه */
@media (max-width: 991px) {
    #comparison-container .my-dropdown-menu, #notifications-container .my-dropdown-menu {
        position: fixed !important; top: 70px !important; left: 12px !important; right: 12px !important;
        min-width: 0 !important; width: auto !important; max-height: 70vh; overflow-y: auto; transform: none !important;
    }
}


/* ── موبايل/تابلت ── */
@media (max-width: 1199px) {
    .rh-nav__list { display: none; }
    .rh-header__icons { gap: 14px; }
    .rh-hide-md { display: none !important; }
}
@media (max-width: 991px) {
    .rh-header__burger { display: flex; }
    .rh-nav { display: none; }
    .rh-hide-sm { display: none !important; }
    .rh-header .indicator__title, .rh-header .indicator__value { display: none !important; }
    .rh-header__top .rh-header__inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
    .rh-header__logo img { height: 38px; }
    .rh-search { order: 10; flex: 1 1 100%; max-width: none; height: 42px; }
    .rh-search__btn { width: 34px; height: 34px; }
}

/* ═════════ منيو الموبايل ═════════ */
.rh-mnav { position: fixed; inset: 0; z-index: 100001; pointer-events: none; }
.rh-mnav *, .rh-mnav *::before { box-sizing: border-box; }
.rh-mnav__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .3s; }
.rh-mnav__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 330px; max-width: 88vw; background: #fff; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(105%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.rh-mnav[dir="ltr"] .rh-mnav__panel { transform: translateX(-105%); }
.rh-mnav.open { pointer-events: auto; }
.rh-mnav.open .rh-mnav__backdrop { opacity: 1; }
.rh-mnav.open .rh-mnav__panel { transform: none; }
.rh-mnav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--rh-border); }
.rh-mnav__head img { height: 40px; }
.rh-mnav__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--rh-bg); font-size: 22px; cursor: pointer; line-height: 1; }
.rh-mnav__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px; }
.rh-mnav__q { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--rh-bg); color: var(--rh-dark) !important; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.rh-mnav__q b { position: absolute; top: 6px; inset-inline-end: 10px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rh-yellow); font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.rh-mnav__title { padding: 12px 16px 6px; font-size: 13px; font-weight: 800; color: var(--rh-muted); }
.rh-mnav__cats, .rh-mnav__sub, .rh-mnav__links { list-style: none; margin: 0; padding: 0; }
.rh-mnav__row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f3f4f6; }
.rh-mnav__row a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--rh-dark); font-size: 14px; font-weight: 600; text-decoration: none; min-width: 0; }
.rh-mnav__row a img { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.rh-mnav__row a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-mnav__toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--rh-muted); }
.rh-mnav__toggle::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.rh-mnav__cat.open > .rh-mnav__row .rh-mnav__toggle::before { transform: rotate(-135deg); margin-top: 4px; }
.rh-mnav__sub { display: none; background: #fafafa; }
.rh-mnav__cat.open > .rh-mnav__sub { display: block; }
.rh-mnav__sub .rh-mnav__row a { padding-inline-start: 32px; font-weight: 500; font-size: 13px; }
.rh-mnav__sub .rh-mnav__sub .rh-mnav__row a { padding-inline-start: 48px; }
.rh-mnav__links a { display: block; padding: 10px 16px; color: var(--rh-text); font-size: 14px; text-decoration: none; border-bottom: 1px solid #f3f4f6; }
.rh-mnav__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-top: 1px solid var(--rh-border); }
.rh-mnav__phone { font-weight: 700; color: var(--rh-dark); text-decoration: none; }

/* ═════════ الفوتر ═════════ */
.site__footer { display: none !important; }
.rh-footer { background: #1f2329; color: #c9ccd1; font-size: 14px; margin-top: 0; }
.rh-footer *, .rh-footer *::before { box-sizing: border-box; }
.rh-footer__inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.rh-footer__main { padding: 48px 0 36px; }
.rh-footer__main .rh-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 32px; }
.rh-footer__col h4 { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 18px; position: relative; padding-bottom: 10px; }
.rh-footer__col h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 3px; background: var(--rh-yellow); border-radius: 2px; }
.rh-footer__col p { margin: 0 0 16px; line-height: 1.8; font-size: 13px; color: #9ca1a9; }
.rh-footer__contact, .rh-footer__links, .rh-footer__social { list-style: none; margin: 0; padding: 0; }
.rh-footer__contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rh-footer__contact svg { color: var(--rh-yellow); flex: 0 0 auto; }
.rh-footer a { color: #c9ccd1; text-decoration: none; transition: color .2s; }
.rh-footer a:hover { color: var(--rh-yellow); }
.rh-footer__links li { margin-bottom: 10px; }
.rh-footer__news { display: flex; gap: 8px; margin-bottom: 18px; }
.rh-footer__news input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid #3a3f47; background: #2a2f36; color: #fff; padding: 0 14px; outline: none; }
.rh-footer__news input:focus { border-color: var(--rh-yellow); }
.rh-footer__news button { height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--rh-yellow); color: var(--rh-dark); font-weight: 800; cursor: pointer; }
.rh-footer__news button:hover { background: var(--rh-yellow-dark); }
.rh-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-footer__social a { width: 38px; height: 38px; border-radius: 50%; background: #2a2f36; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.rh-footer__social a:hover { background: var(--rh-yellow); color: var(--rh-dark); }
.rh-footer__bottom { border-top: 1px solid #2f343b; padding: 16px 0; font-size: 13px; color: #9ca1a9; }
.rh-footer__bottom .rh-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rh-footer__pay { display: flex; gap: 8px; direction: ltr; }
.rh-pay { height: 28px; min-width: 46px; padding: 0 8px; border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; font-style: italic; }
.rh-pay--mada { color: #2a9ad6; font-style: normal; }
.rh-pay--visa { color: #1a1f71; }
.rh-pay--mc i { width: 16px; height: 16px; border-radius: 50%; background: #eb001b; display: block; }
.rh-pay--mc i + i { background: #f79e1b; margin-inline-start: -6px; mix-blend-mode: multiply; }
.rh-pay--apple { color: #000; font-style: normal; }
@media (max-width: 991px) {
    .rh-footer__main .rh-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .rh-footer__main { padding: 32px 0 20px; }
    .rh-footer__main .rh-footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .rh-footer__bottom .rh-footer__inner { flex-direction: column; text-align: center; }
}

/* ═════════ أيقونات الهيدر: كل أيقونة وتحتها اسمها ═════════ */
.rh-header__icons { gap: 6px; }
.rh-header .rh-icon,
.rh-header #comparison-container .my-dropdown-btn,
.rh-header .rh-account .indicator__button {
    position: relative; display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 58px; height: 54px; padding: 4px 6px !important; border-radius: 12px; background: none !important;
    color: var(--rh-dark) !important; text-decoration: none !important; cursor: pointer; transition: background .2s, color .2s;
}
.rh-header .rh-icon:hover,
.rh-header #comparison-container .my-dropdown-btn:hover,
.rh-header .rh-account .indicator__button:hover { background: #fff7e3 !important; color: var(--rh-yellow-dark) !important; }
.rh-header .rh-icon svg, .rh-header .rh-account .indicator__icon svg, .rh-header #comparison-container .my-dropdown-btn svg { width: 24px; height: 24px; }
.rh-icon__label, .rh-header .my-dropdown-lbl, .rh-header .rh-account .indicator__value {
    font-size: 11px !important; font-weight: 600 !important; color: var(--rh-muted) !important; line-height: 1.2 !important; white-space: nowrap; max-width: 72px; overflow: hidden; text-overflow: ellipsis;
}
.rh-header .rh-icon:hover .rh-icon__label, .rh-header .my-dropdown-btn:hover .my-dropdown-lbl, .rh-header .rh-account .indicator__button:hover .indicator__value { color: var(--rh-yellow-dark) !important; }
.rh-header .rh-icon__count { top: 2px; inset-inline-end: 8px; }
/* حسابي: أيقونة واسم بس (العنوان الطويل بيتشال) */
.rh-header .rh-account .indicator__title { display: none !important; }
.rh-header .rh-account .indicator__button { display: inline-flex !important; grid-template-columns: none; }
.rh-header .rh-account .indicator__icon { grid-row: auto; }
.rh-header .rh-account .indicator__icon svg { fill: currentColor; }
.rh-header #comparison-container .my-dropdown-btn > span:first-child { display: flex !important; }
.rh-header__icons > .rh-total, .rh-header__icons > .rh-lang { margin-inline-start: 10px; }

@media (max-width: 991px) {
    .rh-header .rh-icon, .rh-header #comparison-container .my-dropdown-btn, .rh-header .rh-account .indicator__button { min-width: 42px; height: 44px; padding: 2px !important; }
    .rh-icon__label, .rh-header .my-dropdown-lbl, .rh-header .rh-account .indicator__value { display: none !important; }
}

/* ═════════ درج الحساب ═════════ */
#accOverlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 99998; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#accOverlay.open { opacity: 1; visibility: visible; }
#accDrawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 420px; max-width: 100vw; height: 100dvh; background: #fff; z-index: 99999; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,.18); transform: translateX(-105%); transition: transform .38s cubic-bezier(.22,1,.36,1); text-align: start; }
#accDrawer[dir="rtl"] { transform: translateX(-105%); inset-inline-start: auto; left: 0; }
#accDrawer[dir="ltr"] { right: 0; left: auto; transform: translateX(105%); }
#accDrawer.open { transform: none; }
#accDrawer *, #accDrawer *::before { box-sizing: border-box; }
.acc-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #1f2329; color: #fff; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.acc-drawer__close { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.acc-drawer__close:hover { background: var(--rh-yellow); color: var(--rh-dark); }
.acc-drawer__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 20px 0; flex: 0 0 auto; }
.acc-drawer__tabs[hidden] { display: none; }
.acc-drawer__tabs button { height: 44px; border: 0; border-radius: 10px; background: var(--rh-bg); color: var(--rh-muted); font-weight: 800; font-size: 14px; cursor: pointer; }
.acc-drawer__tabs button.active { background: var(--rh-yellow); color: var(--rh-dark); }
.acc-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.acc-view { padding: 22px 20px 30px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.acc-view[hidden] { display: none; }
.acc-lead { margin: 0 0 4px; color: var(--rh-muted); font-size: 14px; }
.acc-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--rh-dark); }
.acc-field input, .acc-phone select { height: 50px; border: 1px solid #e3e6ea; border-radius: 12px; background: #f7f8fa; padding: 0 14px; font-size: 15px; color: var(--rh-dark); outline: none; width: 100%; transition: border-color .2s, background .2s; }
.acc-field input:focus, .acc-phone select:focus { border-color: var(--rh-yellow); background: #fff; }
.acc-phone { display: flex; gap: 8px; direction: ltr; }
.acc-phone select { width: 120px; flex: 0 0 auto; padding: 0 8px; cursor: pointer; }
.acc-link { align-self: flex-start; font-size: 13px; color: var(--rh-muted) !important; text-decoration: none; margin-top: -4px; }
.acc-link:hover { color: var(--rh-yellow-dark) !important; }
.acc-btn { height: 52px; border: 0; border-radius: 12px; background: var(--rh-yellow); color: var(--rh-dark); font-size: 16px; font-weight: 800; cursor: pointer; transition: background .2s, opacity .2s; }
.acc-btn:hover { background: var(--rh-yellow-dark); }
.acc-btn:disabled { opacity: .6; cursor: wait; }
.acc-msg { font-size: 13px; font-weight: 600; border-radius: 10px; }
.acc-msg:empty { display: none; }
.acc-msg.err { color: #d93025; background: #fdecea; padding: 10px 12px; }
.acc-msg.ok { color: #1e8e3e; background: #e7f6ec; padding: 10px 12px; }
.acc-switch { margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--rh-muted); }
.acc-switch a { color: var(--rh-dark); font-weight: 800; text-decoration: underline; }
/* قائمة الحساب للمستخدم المسجل */
#accMenu { padding: 0; gap: 0; }
#accMenu .indicator__content { position: static !important; display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; width: 100% !important; box-shadow: none !important; margin: 0 !important; max-height: none !important; }
#accMenu .account-menu { width: 100%; box-shadow: none; background: transparent; }
#accMenu .account-menu__user { display: flex; align-items: center; gap: 12px; padding: 22px 20px; text-decoration: none; background: var(--rh-bg); }
#accMenu .account-menu__user-avatar img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
#accMenu .account-menu__user-name { font-weight: 800; color: var(--rh-dark); font-size: 16px; }
#accMenu .account-menu__user-email { font-size: 13px; color: var(--rh-muted); }
#accMenu .account-menu__divider { height: 1px; background: var(--rh-border); margin: 4px 0; }
#accMenu .account-menu__links { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
#accMenu .account-menu__links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--rh-dark) !important; font-size: 15px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
#accMenu .am-ic { width: 36px; height: 36px; border-radius: 10px; background: #fff4dc; color: var(--rh-yellow-dark); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .2s, color .2s; }
#accMenu .account-menu__links a:hover { background: #fff7e3; transform: translateX(-4px); }
[dir="ltr"] #accMenu .account-menu__links a:hover, #accMenu[dir="ltr"] .account-menu__links a:hover { transform: translateX(4px); }
#accMenu .account-menu__links a:hover .am-ic { background: var(--rh-yellow); color: #fff; }
/* زر الخروج */
#accMenu .account-menu__links--out { padding: 12px 16px 18px; }
#accMenu .account-menu__links--out .logout-btn { justify-content: center; gap: 10px; padding: 12px; border-radius: 12px; background: #fdecea; color: #d93025 !important; border: 1px solid #f8c9c4; font-weight: 700; }
#accMenu .account-menu__links--out .logout-btn:hover { background: #d93025; color: #fff !important; border-color: #d93025; transform: none; box-shadow: 0 6px 16px rgba(217,48,37,.25); }

.rh-footer__bottom .rh-footer__inner > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rh-footer__dev { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px; }
.rh-footer__dev img { height: 22px; width: auto; display: block; }

/* "حسابي": إلغاء تنسيق الهيدر القديم (أيقونة absolute + مسافة 50px للنص) */
.rh-header .rh-account .indicator__icon { position: static !important; width: 24px !important; height: 24px !important; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; }
.rh-header .rh-account .indicator__icon svg { width: 24px !important; height: 24px !important; }
.rh-header .rh-account .indicator__value { margin: 0 !important; padding: 0 !important; font-size: 11px !important; }
.rh-header .rh-account .indicator__button { flex-wrap: nowrap; }
.rh-header .rh-account, .rh-header .rh-account .indicator { display: flex; align-items: center; height: 54px; }
.rh-header .rh-header__icons > * { align-self: center; }

/* السعر لاصق في أيقونة السلة */
.rh-header__icons > .rh-total { margin-inline-start: -4px; margin-inline-end: 10px; padding-inline-end: 14px; border-inline-end: 1px solid var(--rh-border); height: 34px; }

/* السلة: الأيقونة وتحتها "السلة" + السعر */
.rh-header .rh-icon__label--cart { max-width: none; display: inline-flex; align-items: baseline; gap: 4px; }
.rh-header .rh-icon__label--cart b { color: var(--rh-dark); font-weight: 800; direction: ltr; unicode-bidi: isolate; }
@media (max-width: 991px) { .rh-header .rh-icon__label--cart { display: none !important; } }

/* البحث أكبر */
.rh-search { max-width: 720px; height: 52px; border-radius: 14px; }
.rh-search__input { font-size: 15px; padding: 0 20px; }
.rh-search__btn { width: 44px; height: 44px; border-radius: 12px; }
.rh-header__top .rh-header__inner { height: 80px; }
@media (max-width: 991px) {
    .rh-header__top .rh-header__inner { height: auto; }
    .rh-search { height: 46px; }
    .rh-search__btn { width: 38px; height: 38px; }
}

/* ═════════ رمز الريال السعودي الرسمي ═════════ */
@font-face { font-family: "rh_riyal"; src: url("../fonts/riyal/saudi_riyal_regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "rh_riyal"; src: url("../fonts/riyal/saudi_riyal_bold.woff2") format("woff2"); font-weight: 700 900; font-display: block; }
.rh-sar { display: inline-block; font-style: normal; line-height: 1; vertical-align: -0.08em; margin-inline: 0.15em; }
.rh-sar::before { content: "\e900"; font-family: "rh_riyal" !important; font-weight: inherit; }

/* ───── الشريط البرتقالي فوق الهيدر (المدونة + الصفحات) ───── */
.rh-topbar { background: var(--rh-yellow, #f6b01e); color: #1f2329; font-size: 13px; font-weight: 600; }
.rh-topbar__inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; min-height: 36px; display: flex; align-items: center; }
.rh-topbar__links, .rh-topbar__pages { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.rh-topbar a { color: #1f2329; text-decoration: none; padding: 8px 0; transition: opacity .2s; }
.rh-topbar a:hover { opacity: .7; text-decoration: underline; }
.rh-topbar__pages:empty { display: none; }
@media (max-width: 767px) {
    .rh-topbar__inner { min-height: 32px; overflow-x: auto; }
    .rh-topbar__links, .rh-topbar__pages { flex-wrap: nowrap; gap: 18px; white-space: nowrap; }
}
