/* ============================================================
   هدر، جستجو، منوی موبایل، فوتر، چت — عین chrome.tsx v56
   ============================================================ */

/* ---------- هدر ---------- */
.rh-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(227,218,200,.7); background: rgba(247,243,235,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* v1.4.5 — نوار سبز تبلیغاتی حذف شد (پیام‌ها در بنرهای صفحهٔ اصلی هستند) */
.rh-header__inner { max-width: 80rem; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 12px; }

.rh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rh-logo__img { width: 40px; height: 40px; border-radius: 9999px; box-shadow: 0 1px 2px rgba(0,0,0,.05); object-fit: cover; }
.rh-logo__col { display: inline-flex; flex-direction: column; line-height: 1.25; }
.rh-logo__title { font-weight: 900; font-size: 18px; color: var(--rh-primary); white-space: nowrap; }
.rh-logo__latin { display: flex; justify-content: space-between; font-size: 10px; color: var(--rh-gold); font-weight: 600; margin-top: 2px; letter-spacing: 0; }

.rh-nav { display: none; align-items: center; gap: 4px; margin: 0 auto; }
.rh-nav__link { padding: 8px 12px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: rgba(43,46,36,.8); transition: all .2s; }
.rh-nav__link:hover { color: var(--rh-primary); background: var(--rh-accent); }
@media (min-width: 1024px) { .rh-nav { display: flex; } }

.rh-header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
@media (min-width: 1024px) { .rh-header__actions { margin-inline-start: 0; } }

.rh-iconbtn { width: 40px; height: 40px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; color: rgba(43,46,36,.7); position: relative; transition: color .2s; }
.rh-iconbtn:hover { color: var(--rh-primary); }
.rh-iconbtn--track { display: none; }
@media (min-width: 640px) { .rh-iconbtn--track { display: inline-flex; } }
/* v1.4.6 — دکمهٔ برچسب‌دار «پیگیری سفارش» در دسکتاپ (پیشنهاد ما جای آیکنِ مبهم ساعت‌گرد):
 * از ۱۰۲۴px به بالا دکمهٔ قرصیِ آیکن+متن می‌آید و آیکنِ تنها حذف می‌شود؛
 * در ۶۴۰ تا ۱۰۲۳ همان آیکنِ تنها (حالا با آیکنِ کامیون/مرسوله) می‌ماند. */
.rh-trackbtn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--rh-border); background: var(--rh-card); font-size: 13px; font-weight: 700; color: var(--rh-primary); transition: all .2s; white-space: nowrap; text-decoration: none; } /* v1.10.28 — حالا لینک است، نه دکمه */
.rh-trackbtn:hover { border-color: rgba(169,133,72,.65); color: var(--rh-gold); }
.rh-trackbtn .rh-ic--sm { width: 17px; height: 17px; }
@media (min-width: 1024px) { .rh-trackbtn { display: inline-flex; } .rh-iconbtn--track { display: none; } }
/* v1.4.8 — دکمهٔ برچسب‌دار «حساب کاربری» — فقط دسکتاپ (درخواست کاربر: کنار «پیگیری سفارش»،
 * بدون به‌هم‌ریختن هدر موبایل). الگوی همان trackbtn */
.rh-accountbtn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--rh-border); background: var(--rh-card); font-size: 13px; font-weight: 700; color: var(--rh-primary); transition: all .2s; white-space: nowrap; }
.rh-accountbtn:hover { border-color: rgba(169,133,72,.65); color: var(--rh-gold); }
.rh-accountbtn .rh-ic--sm { width: 17px; height: 17px; }
@media (min-width: 1024px) { .rh-accountbtn { display: inline-flex; } }
/* v1.4.8 — هدر موبایل/تبلت: به‌جای قلب علاقه‌مندی، آیکن کاربردیِ «خانه» (پیشنهاد خود کاربر + موافقت ما؛
 * علاقه‌مندی‌ها همچنان از منوی همبرگری در دسترس است). قلب فقط دسکتاپ می‌ماند */
.rh-iconbtn--home { display: inline-flex; }
@media (min-width: 1024px) { .rh-iconbtn--home { display: none; } }
@media (max-width: 1023px) { .rh-iconbtn--fav { display: none; } }
.rh-iconbtn--menu { display: inline-flex; }
@media (min-width: 1024px) { .rh-iconbtn--menu { display: none; } }

/* ---------- جستجو ---------- */
.rh-search { border-top: 1px solid rgba(227,218,200,.6); background: var(--rh-card); }
.rh-search__row { max-width: 36rem; margin: 0 auto; padding: 12px 16px; display: flex; gap: 8px; }
.rh-search__field { position: relative; flex: 1; }
.rh-search__input { width: 100%; border-radius: 9999px; border: 1px solid var(--rh-input); background: var(--rh-background); padding: 8px 16px; padding-inline-end: 40px; font-size: 14px; outline: none; }
.rh-search__input:focus { box-shadow: 0 0 0 2px rgba(46,83,57,.4); }
.rh-search__clear { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 9999px; background: var(--rh-muted); color: var(--rh-muted-fg); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.rh-search__clear:hover { background: var(--rh-accent); color: var(--rh-foreground); }
.rh-search__live { max-width: 36rem; margin: 0 auto; padding: 0 16px 12px; }

.rh-searchlive { border-radius: 16px; border: 1px solid var(--rh-border); background: var(--rh-background); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); overflow: hidden; }
.rh-searchlive ul { max-height: 288px; overflow-y: auto; }
.rh-searchlive li + li { border-top: 1px solid rgba(227,218,200,.6); }
.rh-searchlive__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: start; transition: background .15s; }
.rh-searchlive__item:hover, .rh-searchlive__item:focus { background: rgba(230,237,226,.6); }
.rh-searchlive__img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(227,218,200,.6); flex-shrink: 0; }
.rh-searchlive__meta { flex: 1; min-width: 0; }
.rh-searchlive__name { display: block; font-size: 14px; font-weight: 700; color: var(--rh-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-searchlive__cat { display: block; font-size: 11px; color: var(--rh-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-searchlive__all { width: 100%; text-align: center; font-size: 12px; font-weight: 700; color: var(--rh-primary); background: rgba(237,229,211,.6); padding: 10px; transition: background .2s; }
.rh-searchlive__all:hover { background: var(--rh-secondary); }
.rh-searchlive__empty { border-radius: 16px; border: 1px dashed var(--rh-border); background: var(--rh-background); padding: 24px 16px; text-align: center; }
.rh-searchlive__empty p { font-size: 14px; color: var(--rh-muted-fg); }
.rh-searchlive__empty p + p { font-size: 12px; color: rgba(124,122,109,.7); margin-top: 4px; }

/* ---------- منوی موبایل ---------- */
.rh-mobilemenu { position: fixed; inset: 0; z-index: 50; }
.rh-mobilemenu__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.rh-mobilemenu__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 288px; background: var(--rh-card); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.rh-mobilemenu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rh-mobilemenu__title { font-weight: 900; color: var(--rh-primary); font-size: 18px; }
.rh-mobilemenu__link { padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 500; text-align: start; transition: all .2s; display: flex; align-items: center; gap: 8px; }
.rh-mobilemenu__link:hover { background: var(--rh-accent); color: var(--rh-primary); }
.rh-mobilemenu__favbadge { font-size: 10px; background: rgba(169,133,72,.2); color: var(--rh-gold); border-radius: 9999px; padding: 2px 8px; }

/* ---------- فوتر ---------- */
.rh-footer { margin-top: auto; background: var(--rh-primary); color: rgba(247,243,235,.9); }
.rh-footer__inner { max-width: 80rem; margin: 0 auto; padding: 12px 16px; }
@media (min-width: 768px) { .rh-footer__inner { padding: 12px 24px; } }

/* v1.4.6 — چیدمان استاندارد و جمع‌وجور ردیف اعتماد (درخواست کاربر: «فاصلهٔ آیکن‌ها خیلی زیاده»):
 * دو گروه برچسب‌دار با فاصلهٔ کم و وسط‌چین: «ما را دنبال کنید» (ایتا/بله) و «اعتماد و پرداخت امن» (زرین‌پال/اینماد)
 * padding-inline-start: 88px دسکتاپ = حباب چتِ گوشهٔ راست روی محتوای فوتر نمی‌نشیند */
.rh-footer__row1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 14px; row-gap: 12px; }
@media (min-width: 768px) { .rh-footer__row1 { justify-content: center; padding-inline-start: 88px; column-gap: 16px; } }
.rh-footer__grouplabel { font-size: 12px; font-weight: 600; color: rgba(247,243,235,.68); white-space: nowrap; }
.rh-footer__divider { width: 1px; height: 30px; background: rgba(247,243,235,.22); flex-shrink: 0; }
/* v1.4.8 — موبایل: برچسب‌های گروه فقط مخصوص دسکتاپ‌اند (گزارش کاربر: «بعد از تغییرات دسکتاپ،
 * دکمه‌ها در موبایل چند سطر شدند») — چهار نماد ایتا/بله/زرین‌پال/اینماد حالا در یک سطر */
@media (max-width: 767px) {
        .rh-footer__grouplabel, .rh-footer__divider { display: none; }
        .rh-footer__row1 { flex-wrap: nowrap; column-gap: 8px; }
        .rh-footer__social { padding: 6px 12px 6px 8px; font-size: 13px; gap: 6px; }
        .rh-footer__socialimg { width: 22px; height: 22px; }
        .rh-footer__zarinpal { height: 32px; }
        .rh-footer__enamad { max-height: 40px; max-width: 21vw; }
        .rh-footer__seal--custom img, .rh-footer__seal--custom iframe { max-width: 21vw !important; max-height: 40px !important; }
}
/* باریک‌ترین موبایل‌ها — همان یک سطر با اندازهٔ کوچکتر */
@media (max-width: 359px) {
        .rh-footer__row1 { column-gap: 6px; }
        .rh-footer__social { padding: 5px 8px 5px 6px; font-size: 12px; gap: 5px; }
        .rh-footer__socialimg { width: 20px; height: 20px; }
        .rh-footer__zarinpal { height: 28px; }
        .rh-footer__enamad { max-height: 36px; max-width: 20vw; }
        .rh-footer__seal--custom img, .rh-footer__seal--custom iframe { max-width: 20vw !important; max-height: 36px !important; }
}

.rh-footer__social { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; border: 1px solid rgba(247,243,235,.25); padding: 8px 16px 8px 10px; font-size: 14px; font-weight: 600; transition: all .2s; }
.rh-footer__social:hover { border-color: var(--rh-gold); color: var(--rh-gold); }
/* v1.4.6 — آیکن‌های ایتا/بله بزرگ‌تر (۲۸px) — درخواست کاربر */
.rh-footer__socialimg { width: 28px; height: 28px; border-radius: 9999px; background: #fff; object-fit: cover; }
.rh-footer__seal { display: inline-flex; align-items: center; transition: opacity .2s; }
.rh-footer__seal:hover { opacity: .9; }
.rh-footer__zarinpal { height: 44px; width: auto; }
.rh-footer__enamad { max-height: 48px; max-width: 110px; width: auto; cursor: pointer; }
/* R19 — مهر اینمادِ سفارشی: هم‌اندازهٔ مهر نمونه بماند؛ کد رسمی گاهی ۱۲۵px یا بزرگ‌تر می‌آید
 * (درخواست کاربر: «اندازهٔ نماد خیلی بزرگ شد») */
.rh-footer__seal--custom img, .rh-footer__seal--custom iframe {
        display: block; width: auto !important; height: auto !important;
        max-width: 110px !important; max-height: 48px !important;
}
.rh-footer__enamad-fallback { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(247,243,235,.3); padding: 0 10px; height: 44px; }
.rh-footer__enamad-word { font-size: 14px; font-weight: 900; color: var(--rh-primary-fg); }

.rh-footer__row2 { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(247,243,235,.15); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 16px; row-gap: 6px; font-size: 12px; line-height: 24px; }
.rh-footer__info { display: inline-flex; align-items: center; gap: 6px; }
.rh-footer__link { transition: color .2s; }
.rh-footer__link:hover { color: var(--rh-gold); }
.rh-footer__sep { color: rgba(247,243,235,.3); margin: 0 2px; }
/* v1.5.12 — ردیف لینک‌های صفحه‌ها (قوانین و مقررات / درباره ما / تماس) */
.rh-footer__row3 { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(247,243,235,.15); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 16px; row-gap: 6px; font-size: 12px; line-height: 24px; }

/* ---------- چت شناور ---------- */
.rh-chat__toggle {
        position: fixed; bottom: 28px; inset-inline-start: 16px; z-index: 40;
        width: 56px; height: 56px; border-radius: 9999px; background: var(--rh-gold); color: #fff;
        box-shadow: 0 20px 25px -5px rgba(46,83,57,.3); display: flex; align-items: center; justify-content: center;
        transition: transform .2s;
        overflow: hidden; /* R15 — پینگ scale(1.7) در لبهٔ ویوپورت موبایل ۳-۴px سرریز می‌ساخت */
}
.rh-chat__toggle:hover { transform: scale(1.05); }
.rh-chat__toggle:active { transform: scale(.95); }
/* v1.4.12 — آیکن چت بزرگ‌تر تا حجم دایرهٔ زمینه را بیشتر بپوشاند (درخواست کاربر)
 * فقط همین دکمه؛ .rh-ic--lg عمومی هدر دست‌نخورده می‌ماند */
.rh-chat__toggle .rh-ic--lg { width: 32px; height: 32px; }
/* R14 — در صفحهٔ محصول موبایل، حباب چت روی دکمهٔ + استپر نوار چسبان نمی‌نشیند
 * (در v56 دیالوگ محصول z-50 حباب z-40 را می‌پوشاند؛ اینجا صفحهٔ مستقل است) */
@media (max-width: 767px) {
        body.single-product .rh-chat__toggle { bottom: 108px; }
}

/* ---------- v1.4.5 — فوتر چسبان موبایل (خانه/فروشگاه/سبد/پیگیری) ----------
 * فقط موبایل؛ دسکتاپ نمایش داده نمی‌شود. بدنه padding می‌گیرد تا محتوای انتهایی زیر نوار پنهان نشود.
 * z-index کمتر از کشوها/دیالوگ‌ها (۶۰+) تا هنگام بازشدن سبد، نوار زیر آن بماند. */
.rh-tabbar { display: none; }
@media (max-width: 767px) {
        .rh-tabbar {
                position: fixed; bottom: 0; inset-inline: 0; z-index: 45;
                display: flex; align-items: stretch;
                /* v1.4.8 — پس‌زمینهٔ سبز برند به‌جای سفید (درخواست کاربر: سفید دیده نمی‌شد؛ با ما موافقیم:
                 * هم‌رنگ فوتر سبز، هویت برند و دیده‌شدن نوار را هر دو تأمین می‌کند) */
                background: var(--rh-primary);
                border-top: 0;
                padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
                box-shadow: 0 -8px 24px -12px rgba(20,30,22,.5);
        }
        .rh-tabbar__item {
                position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
                font-size: 10.5px; font-weight: 600; color: rgba(247,243,235,.72);
                background: none; border: 0; padding: 5px 0 3px; border-radius: 12px; cursor: pointer;
                font-family: inherit;
        }
        .rh-tabbar__item:hover { color: var(--rh-primary-fg); }
        .rh-tabbar__item.is-active { color: #fff; }
        .rh-tabbar__item.is-active::after { content: ''; position: absolute; top: -6px; inset-inline: 28%; height: 3px; border-radius: 9999px; background: var(--rh-gold); }
        .rh-tabbar__badge {
                position: absolute; top: 0; inset-inline-end: calc(50% - 22px);
                min-width: 16px; height: 16px; border-radius: 9999px; padding: 0 4px;
                background: var(--rh-sale); color: #fff; font-size: 10px; font-weight: 700;
                display: flex; align-items: center; justify-content: center;
        }
        /* فاصلهٔ بدنه از نوار + بالا آوردن حباب چت تا زیر نوار گیر نکند */
        body.myrihana { padding-bottom: 64px; }
        .rh-chat__toggle { bottom: 74px; }
}
/* R19 — در تسویه‌حساب حباب چت پنهان می‌شود (در v56 دیالوگِ ۵۱۲ روی حباب را می‌پوشاند):
 * وقتی خطا پنجره را بلندتر می‌کند، حباب روی دکمهٔ «بازگشت/ثبت سفارش» می‌نشیند */
body.woocommerce-checkout .rh-chat { display: none; }
/* v1.5.5 — ادغام با گفتینو: وقتی افزونهٔ گفتینو فعال باشد (نشانهٔ script[data-goftinoplugin])،
 * دکمهٔ چت داخلی خاموش می‌شود تا سایت فقط یک دکمهٔ چت داشته باشد؛ گفتینو پنل واقعی
 * اپراتور دارد و دکمه‌اش از پنل خودش قابل شخصی‌سازی است. اگر گفتینو حذف/غیرفعال شود،
 * چت داخلی (ربات) خودکار برمی‌گردد. */
body.rh-chat-off .rh-chat,
html.rh-chat-off .rh-chat { display: none !important; }
.rh-chat__ping { position: absolute; inset: 0; border-radius: 9999px; background: rgba(169,133,72,.5); animation: rh-ping 1.6s cubic-bezier(0,0,.2,1) infinite; } /* R16-2: نقطهٔ قرمز اعلان حذف شد — v56 ندارد */
@keyframes rh-ping { 75%, 100% { transform: scale(1.7); opacity: 0; } }

.rh-chat__panel { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 50; width: min(calc(100vw - 2rem), 22rem); height: min(70vh, 30rem); background: var(--rh-card); border-radius: 24px; border: 1px solid var(--rh-border); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.rh-chat__head { background: var(--rh-primary); color: var(--rh-primary-fg); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.rh-chat__headtitle { font-weight: 700; font-size: 14px; }
.rh-chat__headsub { font-size: 11px; color: rgba(247,243,235,.75); margin-top: 2px; }
.rh-chat__close { width: 32px; height: 32px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.rh-chat__close:hover { background: rgba(247,243,235,.15); }
.rh-chat__body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.rh-chat__msg { max-width: 85%; border-radius: 16px; padding: 8px 14px; font-size: 13px; line-height: 24px; }
.rh-chat__msg--user { background: var(--rh-secondary); color: var(--rh-foreground); align-self: flex-end; border-start-start-radius: 6px; }
.rh-chat__msg--bot { background: var(--rh-primary); color: var(--rh-primary-fg); align-self: flex-start; border-start-end-radius: 6px; }
.rh-chat__typing { background: rgba(46,83,57,.85); color: var(--rh-primary-fg); border-radius: 16px; border-start-end-radius: 6px; padding: 10px 16px; font-size: 13px; display: flex; gap: 4px; align-self: flex-start; }
.rh-chat__typing i { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; animation: rh-bounce 1s infinite; }
.rh-chat__typing i:nth-child(2) { animation-delay: .15s; }
.rh-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rh-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.rh-chat__chips { padding: 0 12px 8px; display: flex; gap: 6px; overflow-x: auto; flex-shrink: 0; }
.rh-chat__chip { flex-shrink: 0; border-radius: 9999px; border: 1px solid rgba(169,133,72,.5); color: var(--rh-gold); background: rgba(169,133,72,.05); padding: 4px 12px; font-size: 11px; font-weight: 600; transition: background .2s; }
.rh-chat__chip:hover { background: rgba(169,133,72,.15); }
.rh-chat__form { border-top: 1px solid var(--rh-border); padding: 10px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rh-chat__input { flex: 1; min-width: 0; border-radius: 9999px; border: 1px solid var(--rh-input); background: var(--rh-background); padding: 8px 14px; font-size: 13px; outline: none; }
.rh-chat__input:focus { box-shadow: 0 0 0 2px rgba(46,83,57,.4); }
.rh-chat__send { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9999px; background: var(--rh-primary); color: var(--rh-primary-fg); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.rh-chat__send:hover { background: rgba(46,83,57,.9); }
.rh-chat__send svg { transform: scaleX(-1); }

/* ---------- R17 — پاپ‌آپ «پرداخت ناموفق بود یا لغو شد» ----------
 * عین الگوی rh-vpndlg (R14)؛ روی هر صفحه‌ای در دسترس است چون بازگشت از
 * زرین‌پال (pay=nok) به تسویه‌حساب می‌رسد. متن پیام را theme.js می‌گذارد. */
.rh-payfail { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rh-payfail[ hidden ] { display: none; }
.rh-payfail__backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 50% 24%, rgba(180,83,60,.30), rgba(19,20,16,.94) 72%); }
.rh-payfail__panel {
        position: relative; width: 100%; max-width: 400px;
        background: var(--rh-card); border: 1px solid var(--rh-border); border-radius: 16px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
        padding: 28px 20px 20px; text-align: center;
        display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rh-payfail__ic { width: 64px; height: 64px; border-radius: 9999px; background: rgba(180,83,60,.12); color: var(--rh-sale); display: flex; align-items: center; justify-content: center; flex: none; }
.rh-payfail__ic .rh-ic { width: 30px; height: 30px; }
.rh-payfail__title { font-size: 16px; font-weight: 900; margin: 0; }
.rh-payfail__text { font-size: 13.5px; color: var(--rh-muted-fg); line-height: 24px; margin: 0; }
/* دکمهٔ «متوجه شدم» تمام‌عرض و بلند — هم‌اندازهٔ دکمهٔ پنجرهٔ فیلترشکن */
.rh-payfail__close { width: 100%; height: 52px; font-size: 16px; font-weight: 800; margin-top: 8px; box-shadow: 0 10px 15px -3px rgba(46,83,57,.25); }

/* ---------- v1.4.7 — مودال صفحه‌ها (درباره ما / تماس) ---------- */
.rh-dialog__panel--page { max-width: 560px; }
.rh-dialog__panel--page .rh-dialog__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 30; }
.rh-page__modaltitle { font-weight: 900; font-size: 18px; margin-bottom: 12px; padding-inline-end: 36px; }
.rh-page__modalbody { padding: 24px 20px 20px; font-size: 14px; }
@media (min-width: 768px) { .rh-page__modalbody { padding: 28px 28px 24px; } }
.rh-page__modalbody .rh-page__content--lead { margin-top: 2px; }
/* v1.5.12 — سرفصل‌های صفحهٔ قوانین و مقررات (صفحه + مودال) */
.rh-terms__h { font-size: 15px; font-weight: 900; color: var(--rh-foreground); margin-top: 8px; }
@media (min-width: 768px) { .rh-terms__h { font-size: 17px; } }
.rh-terms__h:first-child { margin-top: 0; }
.rh-terms a { color: var(--rh-gold); }
.rh-pm-loading { text-align: center; color: var(--rh-muted-fg); padding: 28px 0; }

/* v1.5.57 — فیکس: فوتر چسبان (tabbar) روی دکمه خرید چسبان (stickybar) می‌نشست.
 * فقط در صفحهٔ محصول موبایل، tabbar را پنهان کن تا stickybar دکمه خرید دیده شود.
 * علت: وقتی از ترب مستقیم وارد صفحه محصول می‌شوند، JS فرصت پنهان‌کردن tabbar را
 * ندارد و دو نوار هم‌پوشانی می‌کنند. این فیکس CSS محض است و به JS وابسته نیست. */
@media (max-width: 767px) {
        body.single-product .rh-tabbar { display: none !important; }
}



/* ============================================================
   v1.10.25 — قابِ «صفحات مستقل» از home.css به اینجا آمد (سراسری شد).
   گزارشِ مالک: «متن ها کاملا به حاشیه چسبیده و هیچ فاصله ای از لبه های صفحه نداره»
   ریشه: این قاب فقط در home.css بود که فقط در ویترین (خانه/فروشگاه) لود می‌شود؛
   صفحه‌های قوانین/درباره/تماس/پیگیری/جست‌وجو/سبد home.css نمی‌گیرند و متن به لبه
   می‌چسبید. حالا سراسری است و همان ظاهری را می‌دهد که پنجره‌های مودال همیشه داشتند.
   (پنجره‌های مودال از اول سالم بودند چون استایلِ بدنه‌شان rh-page__modalbody در
   همین chrome.css است.) cart.css/checkout.css مثل قبل روی همین قاب می‌نشینند.
   ============================================================ */
/* ---------- صفحات مستقل ---------- */
.rh-page { flex: 1; }
.rh-page__inner { max-width: 48rem; margin: 0 auto; padding: 48px 16px; width: 100%; }
.rh-page__inner--narrow { max-width: 42rem; }
.rh-page__inner--track { max-width: 42rem; }
.rh-page__inner--thanks { max-width: 28rem; text-align: center; }
.rh-page__title { font-size: 24px; font-weight: 900; color: var(--rh-foreground); }
@media (min-width: 768px) { .rh-page__title { font-size: 30px; } }
.rh-page__bar { display: block; height: 3px; width: 56px; border-radius: 9999px; background: rgba(169,133,72,.7); margin-top: 16px; }
.rh-page__desc { font-size: 14px; color: var(--rh-muted-fg); margin-top: 8px; }
.rh-page__content { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 32px; color: rgba(43,46,36,.85); }
@media (min-width: 768px) { .rh-page__content { font-size: 16px; line-height: 36px; } }

/* v1.10.49 — لینک‌های داخلِ متنِ نوشته‌ها/برگه‌ها (مجله و…): آبیِ خوانا و «بدونِ
 * زیرخط» در حالتِ عادی (خواستهٔ صریحِ مالک: «نمیخوام متن های لینکدار زیر خط دار
 * باشن… رنگشون هم ابی کن»). برای آن‌که باز هم لینک بودنشان از روی رنگ معلوم
 * باشد، با بردنِ ماوس رویشان زیرخط می‌گیرند. لینک‌های تلفن/ایمیلِ کارتِ تماس و
 * دکمه‌ها مستثنا هستند. */
.rh-page__content p a,
.rh-page__content h2 a,
.rh-page__content h3 a,
.rh-page__content li a:not(.rh-contactcard__link),
.rh-page__content td a,
.rh-specbox__desc a { color: #1d4ed8; text-decoration: none; }
.rh-page__content p a:hover,
.rh-page__content h2 a:hover,
.rh-page__content h3 a:hover,
.rh-page__content li a:not(.rh-contactcard__link):hover,
.rh-page__content td a:hover,
.rh-specbox__desc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* تماس با ما — کارت سبز */
.rh-contactcard { background: var(--rh-primary); color: var(--rh-primary-fg); border-radius: 24px; padding: 24px; }
@media (min-width: 768px) { .rh-contactcard { padding: 40px; } }
.rh-contactcard__kicker { color: var(--rh-gold); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.rh-contactcard__title { font-size: 24px; font-weight: 900; margin-bottom: 32px; }
@media (min-width: 768px) { .rh-contactcard__title { font-size: 30px; } }
.rh-contactcard__list { display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 32px; }
@media (min-width: 768px) { .rh-contactcard__list { font-size: 16px; } }
.rh-contactcard__item { display: flex; align-items: flex-start; gap: 12px; }
.rh-contactcard__ic { margin-top: 4px; width: 20px; height: 20px; }
.rh-contactcard__link:hover { color: var(--rh-gold); transition: color .2s; }
.rh-contactcard__socials { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.rh-contactcard__social { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; border: 1px solid rgba(247,243,235,.25); padding: 8px 16px; font-size: 14px; font-weight: 600; transition: all .2s; }
.rh-contactcard__social:hover { border-color: var(--rh-gold); color: var(--rh-gold); }
.rh-contactcard__note { margin-top: 24px; font-size: 12px; color: rgba(247,243,235,.7); line-height: 24px; }


/* ============================================================
   v1.10.27 — مجله: سربرگِ آرشیو + شمارِ نوشته‌ها
   (صفحه‌های مستقل chrome.css سراسری می‌گیرند، home.css نه)
   چیپِ دسته‌ها زیرِ عنوانِ نوشته‌ها به خواستهٔ مالک در ۱.۱۰.۲۸ کامل حذف شد.
   ============================================================ */
.rh-archcount { margin: 12px 0 18px; text-align: center; font-size: 13px; color: var(--rh-muted-fg, #7c7a6d); }
