/* =========================================================================
   RHÉA Salon — لایه‌ی سراسری (همه‌ی صفحات)
   یک شیشه‌ی واحد، کارت محصول شیشه‌ای، قلب مویی، سرتیترها، نوار پایین، پاپ‌آپ کالکشن‌ها
   ========================================================================= */

:root {
  --rg-burgundy: #4e0000;
  --rg-wine: #3a0408;
  --rg-navy: #13273f;
  --rg-navy-deep: #0d1b2e; /* قاب کارت‌های محصول و ژورنال */
  --rg-cream: #fdfbf7;
  --rg-champ: #e9d3a8;

  /* شیشه‌ی خنثی (بدون ته‌مایه‌ی آبی) برای کنترل‌های کوچک: نوار پایین، برچسب‌ها، دکمه‌ها */
  --rg-glass: rgba(242, 243, 246, 0.62);
  --rg-blur: blur(24px) saturate(150%);
  --rg-edge: rgba(255, 255, 255, 0.72);
  --rg-hi: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(255, 255, 255, 0.35);

  /* شیشه‌ی شفاف‌تر برای سطوح بزرگ: پاپ‌آپ‌ها و فوتر (گرادیان نور از بالا + لبه‌ی براق) */
  --rg-glass-lux: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(238, 240, 244, 0.2) 100%);
  --rg-blur-lux: blur(30px) saturate(160%);
  --rg-edge-lux: rgba(255, 255, 255, 0.55);
  --rg-hi-lux: inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.08);

  --rg-shadow: 0 18px 40px -22px rgba(28, 48, 76, 0.42);
  --rg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rg-r: 22px;
}

/* sticky (دسته‌ها) با overflow-x: hidden روی body کار نمی‌کند؛ clip همان ظاهر را دارد */
@supports (overflow: clip) {
  html,
  body { overflow-x: clip !important; }
}

/* ---------- عنوان‌های انگلیسی همه‌جا حذف ---------- */
.rhea-sh__eyebrow,
.rhea-psec__eyebrow,
.rhea-stories__eyebrow,
.rhea-colpop__eyebrow,
.rhea-cf__kicker,
.rhea-guide__badge { display: none !important; }

/* ---------- سرتیترها: عنوان راست، «مشاهده همه» روبه‌رو در چپ ---------- */
.rhea-sh,
.rhea-psec__head,
.rhea-home .rhea-psec__head,
.rhea-home .rhea-sh--split {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 16px;
  padding: 0 16px;
  direction: rtl;
  text-align: right;
}
.rhea-psec .rhea-psec__head { padding: 0 4px; }
.rhea-sh__title,
.rhea-psec__title,
.rhea-home .rhea-psec__title,
.rhea-home .rhea-sh--split .rhea-sh__title {
  margin: 0;
  color: var(--rg-burgundy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}
.rhea-sh__title::after,
.rhea-psec__title::after { display: none !important; content: none !important; }

.rhea-sh__all,
.rhea-psec__all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--rg-edge);
  border-radius: 999px;
  background: var(--rg-glass);
  -webkit-backdrop-filter: var(--rg-blur);
  backdrop-filter: var(--rg-blur);
  box-shadow: var(--rg-hi);
  color: var(--rg-burgundy);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s var(--rg-ease), background 0.3s ease;
}
.rhea-sh__all::after,
.rhea-psec__all::after { content: '←'; font-size: 12px; transition: transform 0.4s var(--rg-ease); }
@media (hover: hover) {
  .rhea-sh__all:hover,
  .rhea-psec__all:hover { background: rgba(240, 246, 252, 0.78); color: var(--rg-burgundy); border-color: var(--rg-edge); }
  .rhea-sh__all:hover::after,
  .rhea-psec__all:hover::after { transform: translateX(-3px); }
}
.rhea-sh__all:active,
.rhea-psec__all:active { transform: scale(0.96); }
.rhea-sh__all:focus-visible,
.rhea-psec__all:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 2px; }

@media (min-width: 1024px) {
  .rhea-sh__title,
  .rhea-psec__title,
  .rhea-home .rhea-psec__title { font-size: 26px; }
  .rhea-sh { max-width: var(--rhea-wide, 1180px); padding: 0 24px; }
}

/* ---------- کارت محصول (مثل نمونه): عکس تمام‌قاب در قاب یخی، نام و قیمت روی محوشدگی پایین ---------- */
.rhea-gcard,
.rhea-gcard *,
.rhea-pv__card { box-sizing: border-box; }
.rhea-gcard {
  position: relative;
  flex: 0 0 auto;
  width: 164px;
  padding: 2px;
  direction: rtl;
  isolation: isolate;
  /* قاب سرمه‌ای تیره و نازک (۲px) دور عکس */
  border: 0;
  border-radius: 26px;
  background: linear-gradient(160deg, #1a2f4a 0%, var(--rg-navy-deep) 60%, #091422 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 34px -20px rgba(9, 20, 34, 0.7);
  transition: transform 0.6s var(--rg-ease);
}
.rhea-gcard__link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #eef3f8 0%, #cfdae6 100%);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.rhea-gcard__link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.rhea-gcard__stage { position: absolute; inset: 0; display: block; }
.rhea-gcard .rhea-gcard__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--rg-ease);
}
.rhea-gcard__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 36px 13px 12px;
  isolation: isolate;
  background: linear-gradient(to top, rgba(12, 16, 24, 0.66) 0%, rgba(12, 16, 24, 0.3) 52%, rgba(12, 16, 24, 0) 100%);
  text-align: right;
}
/* محوشدگی تدریجی پایین کارت */
.rhea-gcard__info::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.rhea-gcard__name {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.rhea-gcard__price { display: block; color: rgba(255, 255, 255, 0.94); font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.rhea-gcard__price > div { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.rhea-gcard__price ins { order: -1; background: none; color: #fff; font-size: 12.5px; text-decoration: none; }
.rhea-gcard__price del { color: rgba(255, 255, 255, 0.6); font-size: 10.5px; font-weight: 500; }
.rhea-gcard__price ins *,
.rhea-gcard__price del * { color: inherit; font-size: inherit; }
.rhea-gcard__price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rhea-gcard__stock { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; color: #a8e0bd; /* سبز ملایم روی محوشدگی تیره */ font-size: 10.5px; font-weight: 600; }
.rhea-gcard__stock::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.rhea-gcard__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 2px 9px;
  border: 1px solid var(--rg-edge);
  border-radius: 999px;
  background: var(--rg-glass);
  -webkit-backdrop-filter: var(--rg-blur);
  backdrop-filter: var(--rg-blur);
  color: var(--rg-burgundy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
  pointer-events: none;
}
.rhea-gcard__tag--out { color: var(--rg-navy); }
.rhea-gcard.is-out .rhea-gcard__stage img { opacity: 0.55; filter: grayscale(0.6); }
.rhea-gcard .like-btn { position: absolute; top: 11px; left: 11px; z-index: 3; }

@media (hover: hover) {
  .rhea-gcard:hover { transform: translateY(-4px); }
  .rhea-gcard:hover .rhea-gcard__stage img { transform: scale(1.04); }
}

.rhea-ngrid__grid .rhea-gcard,
.rhea-products-grid .rhea-gcard,
#collections-items-list .rhea-gcard { width: 100%; }
.rhea-psec__track > .rhea-gcard { scroll-snap-align: start; }

/* کارت صفحه‌ی فروشگاه (عکس + پنل شیشه‌ای + دکمه‌ی سبد): همان قاب ۲px */
.rhea-scard.rhea-scard--shop { padding: 2px; }
.rhea-scard.rhea-scard--shop .rhea-scard__frame { border-radius: 28px; }

@media (min-width: 1024px) {
  .rhea-gcard { width: 210px; }
  .rhea-gcard__name { font-size: 15px; }
  .rhea-gcard__price,
  .rhea-gcard__price ins { font-size: 13.5px; }
}

/* ---------- قلب مویی (عملکرد بدون تغییر) ---------- */
.like-btn.rhea-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  z-index: 20;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--rg-ease);
}
.like-btn.rhea-heart svg { display: block; width: 19px; height: 19px; overflow: visible; }
.like-btn.rhea-heart:active { transform: scale(0.88); }
.like-btn.rhea-heart:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.like-btn.rhea-heart.is-liked {
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
}
/* لایک‌شده: داخل قلب قرمز زرشکی، لبه‌ی سفید نازک تا روی عکس‌های تیره هم دیده شود */
.like-btn.rhea-heart.is-liked svg { fill: #a3141f !important; stroke: #fff !important; }
@media (prefers-reduced-motion: no-preference) {
  .like-btn.rhea-heart.is-liked svg { animation: rgHeartPop 0.45s var(--rg-ease); }
}
@keyframes rgHeartPop { 0% { transform: scale(0.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- نوار پایین: همان شیشه + عدسی شامپاینی ---------- */
.glass-nav {
  border: 1px solid var(--rg-edge) !important;
  background: var(--rg-glass) !important;
  -webkit-backdrop-filter: var(--rg-blur) !important;
  backdrop-filter: var(--rg-blur) !important;
  box-shadow: var(--rg-hi), 0 14px 34px -14px rgba(30, 18, 18, 0.45) !important;
}
.glass-nav .nav-item.is-current,
.glass-nav .nav-item.is-open {
  background: rgba(255, 255, 255, 0.55) !important;
  color: var(--rg-burgundy) !important;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(197, 160, 89, 0.65), 0 6px 14px -6px rgba(120, 90, 40, 0.5) !important;
  animation: none !important;
}
.glass-nav .nav-item.is-open::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(197, 160, 89, 0.75);
  border-radius: 50%;
  pointer-events: none;
  animation: rgRing 0.9s var(--rg-ease) both;
}
@keyframes rgRing {
  from { opacity: 0.9; transform: scale(0.8); }
  to   { opacity: 0; transform: scale(1.3); }
}
@media (hover: hover) {
  .glass-nav .nav-item:hover:not(.is-current):not(.is-open) {
    background: rgba(255, 255, 255, 0.35) !important;
    color: var(--rg-burgundy) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }
}
@media (hover: none) {
  .glass-nav .nav-item:hover:not(.is-current):not(.is-open) {
    background: transparent !important;
    color: #000544 !important;
    box-shadow: none !important;
  }
}

/* ---------- همه‌ی پاپ‌آپ‌ها (footer.php و پاپ‌آپ‌های دیگر): یک شیشه‌ی واحد، همان پاپ‌آپ کالکشن‌ها ----------
   پرده‌ی پشت + کادر بیرونی شیشه‌ای. فقط ظاهر کادر بیرونی؛ محتوای داخل (مثل رسید سفید سبد خرید) دست نمی‌خورد.
   سلکتورهای id برای غلبه بر قوانین id‌دار style.css؛ سلکتورهای کلاسی برای پاپ‌آپ‌های دیگر (پیگیری سفارش، راهنمای سایز، آدرس). */
.rhea-modal-overlay,
#rhea-auth-modal,
#rhea-search-modal,
#rhea-collections-drawer,
#rhea-cart-popup-overlay {
  /* مات ملایم (مثل پاپ‌آپ فیلتر فروشگاه): صفحه کمی محو و روشن می‌شود تا کارت شیشه‌ای جدا دیده شود */
  background: rgba(226, 228, 232, 0.24) !important;
  -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
  backdrop-filter: blur(10px) saturate(115%) !important;
}

.rhea-modal-overlay > .rhea-modal-content,
.rhea-modal-overlay > .rhea-drawer-content,
.rhea-modal-overlay > .rhea-cart-popup-container,
#rhea-auth-modal .rhea-modal-content,
#rhea-search-modal .rhea-modal-content,
#rhea-collections-drawer .rhea-drawer-content,
#rhea-cart-popup-overlay .rhea-cart-popup-container {
  border: 1px solid var(--rg-edge-lux) !important;
  border-radius: 30px !important;
  background: var(--rg-glass-lux) !important;
  -webkit-backdrop-filter: var(--rg-blur-lux) !important;
  backdrop-filter: var(--rg-blur-lux) !important;
  box-shadow: var(--rg-hi-lux), 0 30px 70px -24px rgba(20, 25, 35, 0.5) !important;
}

/* وقتی پاپ‌آپ باز است صفحه‌ی زیر اسکرول نمی‌خورد (footer.php کلاس را می‌گذارد) */
html { scrollbar-gutter: stable; }
html.rhea-modal-open,
html.rhea-modal-open body { overflow: hidden !important; }

/* ---------- پاپ‌آپ کالکشن‌ها (footer.php): تب‌ها + ۴ محصول آخر هر کالکشن ---------- */
#rhea-collections-drawer .rhea-drawer-content {
  max-width: 430px !important;
  padding: 22px 16px 18px !important;
}
#rhea-collections-drawer .rhea-drawer-content > .flex:first-of-type { padding-right: 4px; border-bottom-color: rgba(255, 255, 255, 0.6) !important; }
#rhea-collections-drawer h2 { color: var(--rg-burgundy) !important; }
#rhea-collections-drawer .close-btn { color: var(--rg-navy) !important; }
#rhea-collections-drawer .collection-tab-pill {
  border: 1px solid var(--rg-edge) !important;
  background: rgba(255, 255, 255, 0.45) !important;
  box-shadow: var(--rg-hi);
  color: var(--rg-navy) !important;
}
#rhea-collections-drawer .collection-tab-pill.active {
  border-color: var(--rg-burgundy) !important;
  background: var(--rg-burgundy) !important;
  color: #fff !important;
}
#rhea-collections-drawer #collections-items-list {
  gap: 10px !important;
  max-height: min(58vh, 540px) !important;
  padding: 4px 2px 8px !important;
  transition: opacity 0.3s ease;
}
#rhea-collections-drawer #collections-items-list .rhea-gcard { padding: 2px; border-radius: 22px; }
#rhea-collections-drawer #collections-items-list .rhea-gcard__link { border-radius: 20px; }
#rhea-collections-drawer #collections-items-list .rhea-gcard__name { font-size: 12.5px; }
#rhea-collections-drawer #collections-items-list .rhea-gcard__price,
#rhea-collections-drawer #collections-items-list .rhea-gcard__price ins { font-size: 11.5px; }
.rhea-colgrid__empty { padding: 26px 10px; color: rgba(19, 39, 63, 0.6); font-size: 12px; text-align: center; }

/* ---------- مرورگر بدون blur ---------- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root { --rg-glass: rgba(242, 243, 246, 0.95); --rg-glass-lux: rgba(242, 243, 246, 0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .rhea-gcard,
  .rhea-gcard .rhea-gcard__stage img,
  .like-btn.rhea-heart,
  .rhea-sh__all,
  .rhea-psec__all { transition: none !important; }
  .glass-nav .nav-item.is-open::after { animation: none; display: none; }
}

/* =========================================================================
   فوتر RHÉA (footer.php — .rhea-ft): تب‌دار، شیشه‌ای، نوار ناوبری در ردیف آخر
   ========================================================================= */
.rhea-ft {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "brand" "club" "tabs" "panels" "bottom";
  gap: 14px;
  margin: 48px 0 0;
  padding: 24px 16px 24px; /* پایین = فاصله‌ی نوار ناوبری ثابت از لبه (bottom-6) */
  border-top: 1px solid var(--rg-edge-lux);
  border-radius: 28px 28px 0 0;
  background: var(--rg-glass-lux);
  -webkit-backdrop-filter: var(--rg-blur-lux);
  backdrop-filter: var(--rg-blur-lux);
  box-shadow: var(--rg-hi-lux), 0 -18px 40px -24px rgba(20, 25, 35, 0.35);
  color: var(--rg-navy);
  direction: rtl;
  text-align: right;
}
.rhea-ft *,
.rhea-ft *::before,
.rhea-ft *::after { box-sizing: border-box; }

/* برند */
.rhea-ft__brand { grid-area: brand; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.rhea-ft__logo {
  padding-left: 0.3em;
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.3em;
  color: var(--rg-burgundy);
}
.rhea-ft__tagline { font-size: 12px; line-height: 1.7; color: rgba(19, 39, 63, 0.78); }
.rhea-ft__brand:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 4px; border-radius: 12px; }

/* تب‌ها با کپسول لغزان */
.rhea-ft__tabs {
  grid-area: tabs;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.rhea-ft__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.45), 0 6px 14px -8px rgba(28, 48, 76, 0.45);
  pointer-events: none;
}
.rhea-ft.is-ready .rhea-ft__pill { transition: transform 0.45s var(--rg-ease), width 0.45s var(--rg-ease); }
.rhea-ft__tab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rg-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}
.rhea-ft__tab[aria-selected="true"] { color: var(--rg-burgundy); }
.rhea-ft__tab:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 2px; }
.rhea-ft__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* باشگاه */
.rhea-ft__club { grid-area: club; display: flex; flex-direction: column; gap: 5px; margin: 0; }
.rhea-ft__club-label { font-size: 12px; font-weight: 800; color: var(--rg-burgundy); }
.rhea-ft__club-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(19, 39, 63, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rhea-ft__club-field:focus-within { border-color: var(--rg-burgundy); box-shadow: 0 0 0 3px rgba(78, 0, 0, 0.08); }
.rhea-ft__club-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--rg-navy);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}
.rhea-ft__hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.rhea-ft__club-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rg-burgundy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 16px -8px rgba(78, 0, 0, 0.6);
  transition: transform 0.3s var(--rg-ease), opacity 0.3s ease;
}
.rhea-ft__club-btn svg { width: 17px; height: 17px; }
.rhea-ft__club-btn:active { transform: scale(0.92); }
.rhea-ft__club-btn:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 2px; }
.rhea-ft__club.is-busy .rhea-ft__club-btn { opacity: 0.6; cursor: progress; }
.rhea-ft__i-ok,
.rhea-ft__club.is-done .rhea-ft__i-go { display: none; }
.rhea-ft__club.is-done .rhea-ft__i-ok { display: block; }
.rhea-ft__club-note {
  min-height: 1.7em;
  margin: 0;
  padding: 0 14px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(19, 39, 63, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rhea-ft__club:focus-within .rhea-ft__club-note,
.rhea-ft__club.is-error .rhea-ft__club-note,
.rhea-ft__club.is-done .rhea-ft__club-note { opacity: 1; }
.rhea-ft__club.is-error .rhea-ft__club-note { color: var(--rg-burgundy); font-weight: 700; }
.rhea-ft__club.is-done .rhea-ft__club-note { color: var(--rg-navy); font-weight: 700; }

/* محتوای تب‌ها: همه در یک خانه روی هم، ارتفاع = بلندترین؛ با عوض‌شدن تب، صفحه نمی‌پرد */
.rhea-ft__panels {
  grid-area: panels;
  display: grid;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.rhea-ft__panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.rhea-ft__ptitle { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--rg-burgundy); }
.rhea-ft.is-js .rhea-ft__ptitle { display: none; }
.rhea-ft.is-js .rhea-ft__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.25s ease, transform 0.45s var(--rg-ease), visibility 0s linear 0.25s;
}
.rhea-ft.is-js .rhea-ft__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease 0.05s, transform 0.45s var(--rg-ease) 0.05s, visibility 0s;
}
.rhea-ft:not(.is-js) .rhea-ft__tabs { display: none; }

.rhea-ft__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.rhea-ft__links a,
.rhea-ft__links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rg-navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease;
}
.rhea-ft__links a:hover,
.rhea-ft__links button:hover { color: var(--rg-burgundy); }
.rhea-ft__links a:focus-visible,
.rhea-ft__links button:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 2px; border-radius: 6px; }

.rhea-ft__social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
.rhea-ft__soc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 0;
  color: var(--rg-navy);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.rhea-ft__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(19, 39, 63, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--rg-ease);
}
.rhea-ft__ico svg { width: 20px; height: 20px; }
.rhea-ft__soc:hover { color: var(--rg-burgundy); }
.rhea-ft__soc:hover .rhea-ft__ico { border-color: var(--rg-burgundy); transform: translateY(-2px); }
.rhea-ft__soc:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 2px; border-radius: 12px; }
.rhea-ft__phone-label { white-space: nowrap; }
.rhea-ft__hours { margin: 2px 0 0; font-size: 11.5px; color: rgba(19, 39, 63, 0.75); text-align: center; }

/* ردیف آخر: نماد اعتماد | جای نوار ناوبری | حقوق */
.rhea-ft__bottom {
  grid-area: bottom;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "trust rights" "dock dock";
  align-items: center;
  gap: 6px 12px;
}
.rhea-ft__trust {
  grid-area: trust;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: rgba(19, 39, 63, 0.82);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}
.rhea-ft__trust svg { flex: 0 0 auto; width: 19px; height: 19px; }
.rhea-ft__trust:hover { color: var(--rg-burgundy); }
.rhea-ft__trust:focus-visible { outline: 2px solid var(--rg-burgundy); outline-offset: 2px; border-radius: 8px; }
.rhea-ft__rights { grid-area: rights; margin: 0; font-size: 11px; color: rgba(19, 39, 63, 0.75); text-align: left; }
.rhea-ft__dock { grid-area: dock; display: block; height: 64px; } /* نوار ناوبری ثابت (حدود ۶۲px) دقیقاً اینجا می‌نشیند */

/* تبلت */
@media (min-width: 768px) {
  .rhea-ft {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "brand club" "tabs tabs" "panels panels" "bottom bottom";
    gap: 16px 32px;
    margin-top: 64px;
    padding: 26px max(32px, calc((100% - 1200px) / 2)) 24px;
    border-radius: 32px 32px 0 0;
  }
  .rhea-ft__brand { align-items: flex-start; }
  .rhea-ft__logo { padding-left: 0; font-size: 40px; }
  .rhea-ft__club { justify-self: end; width: 340px; }
  .rhea-ft__tabs { display: flex; justify-self: center; }
  .rhea-ft__tab { padding: 0 18px; font-size: 13.5px; }
  .rhea-ft__full { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .rhea-ft__short { display: none; }
  .rhea-ft__panels { min-height: 60px; padding: 6px 20px; }
  .rhea-ft__links { gap: 0 32px; }
  .rhea-ft__social { display: flex; justify-content: center; gap: 28px; width: auto; }
  .rhea-ft__soc { flex-direction: row; gap: 8px; font-size: 13.5px; }
  .rhea-ft__ico { width: 38px; height: 38px; }
  .rhea-ft__ico svg { width: 18px; height: 18px; }
  .rhea-ft:not(.is-js) .rhea-ft__panels { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
}

/* دسکتاپ: سه ستون؛ نوار ناوبری در وسط ردیف آخر */
@media (min-width: 1100px) {
  .rhea-ft {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand tabs club" "panels panels panels" "bottom bottom bottom";
    align-items: center;
  }
  .rhea-ft__club { width: 330px; }
  .rhea-ft__bottom { grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr); grid-template-areas: "trust dock rights"; min-height: 64px; }
  .rhea-ft__trust { justify-self: start; }
  .rhea-ft__rights { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .rhea-ft.is-ready .rhea-ft__pill,
  .rhea-ft.is-js .rhea-ft__panel,
  .rhea-ft.is-js .rhea-ft__panel.is-active,
  .rhea-ft__ico,
  .rhea-ft__club-btn,
  .rhea-ft__club-note { transition: none; }
  .rhea-ft.is-js .rhea-ft__panel { transform: none; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .rhea-ft { background: rgba(236, 242, 248, 0.96); }
}

/* باشگاه به فوتر منتقل شد؛ کارت قدیمی صفحه‌ی اصلی پنهان (برای حذف کامل: آخرین فراخوانی rhea_home_render_club در front-page.php) */
.rhea-home .rhea-club { display: none !important; }
/* ---------- کارت محصول: عکس تمام‌قاب، هاله‌ی تیره‌ی شفاف از پایین (بدون بلور) و متن روی آن ----------
   (rhea_render_sale_card) هاله فقط حدود یک‌سوم پایین را تیره می‌کند و عکس پشتش واضح می‌ماند */
.rhea-gcard--cap .rhea-gcard__info {
  gap: 0; padding: 44px 12px 11px;
  background: linear-gradient(to top, rgba(9, 16, 28, 0.82) 0%, rgba(9, 16, 28, 0.55) 38%, rgba(9, 16, 28, 0.18) 72%, rgba(9, 16, 28, 0) 100%);
}
.rhea-gcard--cap .rhea-gcard__info::before { display: none; } /* بدون بلور */
.rhea-gcard--cap .rhea-gcard__name { font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.rhea-gcard--cap .rhea-gcard__price,
.rhea-gcard--cap .rhea-gcard__price ins { font-size: 12px; font-weight: 800; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.rhea-gcard--cap .rhea-gcard__price > div { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
@media (min-width: 1024px) {
  .rhea-gcard--cap .rhea-gcard__name { font-size: 14px; }
  .rhea-gcard--cap .rhea-gcard__price, .rhea-gcard--cap .rhea-gcard__price ins { font-size: 13px; }
}

/* دکمه‌ی سبد روی کارت‌های صفحه‌ی اصلی (افزودن سریع، مثل صفحه‌ی فروشگاه) */
.rhea-gcard__cart {
  position: absolute; left: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); color: #fff;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.7); transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.rhea-gcard__cart svg { width: 14px; height: 14px; }
.rhea-gcard__cart:active { transform: scale(0.9); }
@media (hover: hover) { .rhea-gcard__cart:hover { background: #fdfbf7; color: #4e0000; } }
.rhea-gcard__cart.loading { opacity: 0.6; pointer-events: none; }
.rhea-gcard__cart.added::after { display: none; }
.rhea-gcard--cap.has-cart .rhea-gcard__info { padding-left: 48px; }
.rhea-gcard .rhea-quick-select-overlay { z-index: 6; }
