/*
Theme Name: RHÉA Atelier Luxury Theme
Author: RHÉA
Version: 1.0.0
*/

:root {
  --color-burgundy: #4e0000;
  --color-navy: #13273F;
  --color-cream: #FDFBF7;
}

/* تصویر پس‌زمینه ثابت فیکس‌شده برای کارکرد بلور شیشه‌ای Liquid Glass */
html, body {
  background-color: #FDFBF7 !important;
  background-image: var(--rhea-site-bg, none) !important; /* آدرس از رسانه‌ها، در header.php */
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  min-height: 100vh !important;
  font-family: 'Plus Jakarta Sans', 'Noto Naskh Arabic', Tahoma, sans-serif;
  color: var(--color-navy);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* فونت فارسی سراسری: Noto Naskh Arabic بعد از فونت لاتین هر بخش می‌آید،
   پس حروف لاتین همان Playfair / Plus Jakarta می‌مانند و فقط حروف فارسی با نوتو نسخ نوشته می‌شوند. */
input, textarea, select, button { font-family: inherit; }
.font-serif { font-family: ui-serif, Georgia, Cambria, 'Noto Naskh Arabic', "Times New Roman", Times, serif !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Noto Naskh Arabic', "Liberation Mono", "Courier New", monospace !important; }
.font-sans { font-family: 'Plus Jakarta Sans', 'Noto Naskh Arabic', Tahoma, sans-serif !important; }

.rhea-serif {
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif;
}

/* موشن نرم شناور کارت‌های دایره‌ای (بدون لگ) */
@keyframes rheaUltraSmoothA {
  0%, 100% { transform: translate3d(0, 0px, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes rheaUltraSmoothB {
  0%, 100% { transform: translate3d(0, 0px, 0); }
  50% { transform: translate3d(0, 7px, 0); }
}

.rhea-smooth-motion-1 {
  animation: rheaUltraSmoothA 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
  will-change: transform !important;
}

.rhea-smooth-motion-2 {
  animation: rheaUltraSmoothB 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
  will-change: transform !important;
}

.rhea-smooth-motion-3 {
  animation: rheaUltraSmoothA 6.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
  will-change: transform !important;
}

/* نوار ارزش‌های شناور شیشه‌ای (Liquid Glass Trust Strip) */
.rhea-trust-pill-strip {
  background: rgba(253, 251, 247, 0.55) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 16px 36px -6px rgba(78, 0, 0, 0.12), inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

.rhea-floating-badge-circle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 251, 247, 0.8)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 18px -2px rgba(78, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* بنر شناور شیشه‌ای راهنمای خرید */
@keyframes rheaGuideFloatMotion {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.rhea-guide-banner-wrap {
  animation: rheaGuideFloatMotion 6.5s ease-in-out infinite !important;
  will-change: transform;
}

.rhea-guide-card {
  border-radius: 28px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 20px 42px -8px rgba(78, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* ریل بی‌نهایت دسته‌بندی‌ها با ابعاد محدود و کارت‌های لوکس */
.rhea-marquee-wrapper {
  max-width: 440px !important;
  margin: 40px auto 25px auto !important;
  overflow: hidden !important;
  position: relative !important;
}

.rhea-marquee-container {
  width: 100% !important;
  overflow: hidden !important;
}

.rhea-marquee-track {
  display: flex !important;
  gap: 16px !important;
  width: max-content !important;
  animation: rheaInfiniteScrollLoop 20s linear infinite !important;
  will-change: transform;
}

.rhea-marquee-wrapper:hover .rhea-marquee-track {
  animation-play-state: paused !important;
}

@keyframes rheaInfiniteScrollLoop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.rhea-cat-card {
  width: 110px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer !important;
}

.rhea-cat-thumb {
  width: 110px !important;
  height: 110px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 2px solid #4E0000 !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 6px 18px rgba(78, 0, 0, 0.15) !important;
  padding: 3px !important;
  transition: transform 0.3s ease !important;
}

.rhea-cat-card:hover .rhea-cat-thumb {
  transform: scale(1.05) !important;
}

.rhea-cat-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

.rhea-cat-title {
  margin-top: 10px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #000544 !important;
  text-align: center !important;
}

/* کادرهای لیکوئید گلس یادداشت‌های ژورنال */
.rhea-liquid-glass {
  background: rgba(253, 251, 247, 0.65) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 14px 30px -4px rgba(19, 39, 63, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
}

.journal-stagger-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: transform 0.3s ease !important;
}

.journal-stagger-card:hover {
  transform: translateY(-4px) !important;
}

/* فوتر شیشه‌ای عمیق (Frosted Liquid Glass Footer) */
.rhea-frosted-footer-container {
  background: rgba(253, 251, 247, 0.55) !important;
  backdrop-filter: blur(35px) saturate(180%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(35px) saturate(180%) brightness(1.04) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 -12px 35px rgba(0, 0, 0, 0.05) !important;
  border-radius: 28px 28px 0 0 !important;
  color: #13273F !important;
}

.footer-glass-btn-lux {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 1 !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 50px !important;
  padding: 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #13273F !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* نوار شناور شیشه‌ای ناوبری پایین
   چیدمان نوار مستقل از Tailwind است (همان اندازه‌های قبلی: bottom-6، px-4، py-2، gap-4، آیکون ۲۰px)
   تا اگر Tailwind لود نشد یا کلاسی از فایل ساخته‌شده جا ماند، نوار به هم نریزد. */
.rhea-bnav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: auto;
  margin: 0;
  padding: 0;
}
.rhea-bnav .glass-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  margin: 0;
}
.rhea-bnav .nav-item {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.rhea-bnav .nav-item svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  pointer-events: none;
}
.rhea-bnav .nav-item:focus-visible {
  outline: 2px solid #4e0000;
  outline-offset: 2px;
}

.glass-nav {
  background: rgba(253, 251, 247, 0.6) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 10px 32px rgba(19, 39, 63, 0.12), inset 0 1px 3px rgba(255, 255, 255, 0.8) !important;
  border-radius: 40px !important;
}

.nav-item {
  color: #000544 !important;
  opacity: 0.85;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  opacity: 1 !important;
  color: #ffffff !important;
  background-color: #4e0000 !important;
  box-shadow: 0 0 15px rgba(115, 0, 0, 0.6) !important;
}

.rhea-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #4e0000;
  color: #ffffff;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid #ffffff;
}

/* موشن کارت‌های شناور */
.float-card {
  animation: float 1.2s ease-in-out infinite alternate;
}
@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
/* پاپ‌آپ‌های شیشه‌ای و کارت‌های مرکزی آتلیه */
#rhea-auth-modal,
#rhea-search-modal,
#rhea-collections-drawer,
#rhea-cart-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  margin: 0 !important;
  background: rgba(19, 39, 63, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: none;
  justify-content: center !important;
  align-items: center !important;
  padding: 16px !important;
}

/* بدنه کارت شیشه‌ای داخل پاپ‌آپ */
#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,
#rhea-cart-popup-overlay .rhea-modal-content {
  background: rgba(253, 251, 247, 0.88) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 60px rgba(19, 39, 63, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  width: 100% !important;
  max-width: 410px !important;
  padding: 26px 22px !important;
  position: relative !important;
  margin: auto !important;
  display: block !important;
}

/* فیلد ورودی جستجو درون کارت */
#rhea-search-modal input[type="search"] {
  background: #ffffff !important;
  border: 1px solid rgba(19, 39, 63, 0.12) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 12px !important;
  color: #13273F !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

#rhea-search-modal input[type="search"]:focus {
  border-color: #4e0000 !important;
}
/* ==============================================
   استایل‌های اختصاصی داخل پاپ‌آپ کالکشن و دکمه‌ها
   ============================================== */

/* ۱. موقعیت و کارکرد دکمه ضربدر خروج */
.close-btn {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #13273F !important;
  opacity: 0.6 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 100 !important;
  padding: 4px !important;
  display: block !important;
}
.close-btn:hover {
  opacity: 1 !important;
  color: #4e0000 !important;
}

/* ۲. تب‌های کپسولی بالای کالکشن‌ها */
.collection-tab-pill {
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(19, 39, 63, 0.12) !important;
  border-radius: 50px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #13273F !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin-left: 6px !important;
  transition: all 0.2s ease !important;
}
.collection-tab-pill.active {
  background: #4e0000 !important;
  color: #ffffff !important;
  border-color: #4e0000 !important;
}

/* ۳. گرید محصولات کالکشن */
#collections-items-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  padding: 4px !important;
  margin-top: 10px !important;
}
.collection-product-card {
  background: #ffffff !important;
  border: 1px solid rgba(19, 39, 63, 0.08) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
}
.collection-img-wrapper {
  width: 100% !important;
  height: 100px !important;
  border-radius: 12px !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #f3f3f3 !important;
}

/* ۴. دکمه مشاهده تمام کالکشن‌ها */
.view-all-collections-btn {
  display: block !important;
  width: 100% !important;
  background: #4e0000 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 12px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-top: 14px !important;
}
/* =========================================================
   RHÉA MODALS COMPREHENSIVE RECOVERY STYLES
   ========================================================= */

/* ساختار پس‌زمینه سراسری مودال */
.rhea-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(19, 39, 63, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 999999 !important;
  display: none;
  justify-content: center !important;
  align-items: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.rhea-modal-overlay.active {
  display: flex !important;
}

/* پاپ‌آپ بلندتر از صفحه (گوشی افقی، سبد پر، راهنمای سایز): بالا و پایینش بریده نشود.
   خود پس‌زمینه اسکرول می‌خورد و کارت با margin:auto وسط می‌ماند؛ اگر جا نشد از بالا شروع می‌شود و تا دکمه‌ی آخر پایین می‌رود */
.rhea-modal-overlay,
#rhea-auth-modal,
#rhea-search-modal,
#rhea-collections-drawer,
#rhea-cart-popup-overlay,
#rhea-tracking-modal {
  height: 100dvh !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: max(16px, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
}
@supports not (height: 100dvh) { .rhea-modal-overlay, #rhea-auth-modal, #rhea-search-modal, #rhea-collections-drawer, #rhea-cart-popup-overlay, #rhea-tracking-modal { height: 100vh !important; } }
.rhea-modal-overlay > .rhea-modal-content,
.rhea-modal-overlay > .rhea-drawer-content,
.rhea-modal-overlay > .rhea-cart-popup-container {
  margin-top: auto !important;
  margin-bottom: auto !important;
  flex-shrink: 0;
}

/* کارت‌های مات شیشه‌ای پاپ‌آپ‌ها */
.rhea-modal-content,
.rhea-drawer-content,
.rhea-cart-popup-container {
  background: rgba(253, 251, 247, 0.92) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 50px rgba(19, 39, 63, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  width: 100% !important;
  max-width: 410px !important;
  padding: 24px 20px !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.rhea-drawer-content {
  max-height: 82vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ضربدر خروج در گوشه چپ */
.close-btn {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  font-size: 24px !important;
  color: #13273F !important;
  opacity: 0.5 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1 !important;
  z-index: 50 !important;
}
.close-btn:hover {
  opacity: 1 !important;
  color: #4e0000 !important;
}
/* فوکوس دکمه‌ی بستن فقط برای کاربران کیبورد دیده شود (لمس و موس بدون حلقه) */
.close-btn:focus:not(:focus-visible) { outline: none; }
/* پاپ‌آپ‌ها هنگام باز شدن فوکوس را به این دکمه می‌دهند؛ در گوشی هم ممکن است حالت کیبوردی حساب شود.
   به‌جای قاب تیره، فقط یک هاله‌ی گرد و ملایم (برای کیبورد هنوز قابل دیدن است) */
.close-btn:focus-visible { outline: none; border-radius: 50%; background: rgba(19, 39, 63, 0.07) !important; opacity: 1 !important; }

/* تب‌های احراز هویت */
.rhea-auth-toggle {
  display: flex !important;
  border-bottom: 1px solid rgba(19, 39, 63, 0.1) !important;
  margin-bottom: 18px !important;
  padding-bottom: 4px !important;
}
.rhea-auth-tab {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(19, 39, 63, 0.45) !important;
  padding: 8px 4px !important;
  cursor: pointer !important;
}
.rhea-auth-tab.active {
  color: #4e0000 !important;
  border-bottom-color: #4e0000 !important;
}

/* فیلدهای ورودی */
.rhea-input-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}
.rhea-input {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(19, 39, 63, 0.14) !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-size: 12px !important;
  color: #13273F !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.rhea-input:focus {
  border-color: #4e0000 !important;
}
/* پرشدن خودکار مرورگر: به‌جای زمینه‌ی زرد/آبی، همان سفید فرم */
.rhea-input:-webkit-autofill,
.rhea-input:-webkit-autofill:hover,
.rhea-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #13273F !important;
  caret-color: #13273F;
  transition: background-color 9999s ease-out 0s;
}
/* لیست کشویی استان: هم‌شکل بقیه‌ی فیلدها با فلش ظریف سمت چپ */
.rhea-input.rhea-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2313273F' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 10px center !important;
  background-size: 10px 7px !important;
  padding-left: 26px !important;
}
.rhea-input.rhea-select:invalid { color: rgba(19, 39, 63, 0.45) !important; }
.rhea-input.rhea-select option { color: #13273F; }

/* دکمه‌های شرابی */
.rhea-submit-btn,
.rhea-checkout-btn,
.view-all-collections-btn {
  display: block !important;
  width: 100% !important;
  background: #4e0000 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 12px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(78, 0, 0, 0.22) !important;
  box-sizing: border-box !important;
}
.rhea-submit-btn:hover,
.rhea-checkout-btn:hover,
.view-all-collections-btn:hover {
  background: #000544 !important;
}

/* تگ‌های جستجو */
.search-tag {
  background: rgba(19, 39, 63, 0.05) !important;
  color: #13273F !important;
  padding: 6px 12px !important;
  border-radius: 50px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.search-tag:hover {
  background: #4e0000 !important;
  color: #ffffff !important;
}

/* پاپ‌آپ کالکشن‌ها */
.collection-tab-pill {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(19, 39, 63, 0.12) !important;
  border-radius: 50px !important;
  padding: 5px 12px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #13273F !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.collection-tab-pill.active {
  background: #4e0000 !important;
  color: #ffffff !important;
  border-color: #4e0000 !important;
}

#collections-items-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  overflow-y: auto !important;
  padding: 4px 2px 10px 2px !important;
  flex: 1 !important;
}

.collection-product-card {
  background: #ffffff !important;
  border: 1px solid rgba(19, 39, 63, 0.08) !important;
  border-radius: 14px !important;
  padding: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
}
.collection-img-wrapper {
  width: 100% !important;
  height: 95px !important;
  border-radius: 10px !important;
  background-size: cover !important;
  background-position: center !important;
}

/* رسید سبد خرید */
.rhea-cart-white-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
}
.rhea-divider-dashed {
  border-bottom: 1.5px dashed rgba(19, 39, 63, 0.14) !important;
  margin: 12px 0 !important;
}
.rhea-cart-card-scallop-bottom {
  position: absolute !important;
  bottom: -9px !important;
  left: 0 !important;
  width: 100% !important;
  height: 10px !important;
  background-image: radial-gradient(circle at 50% 10px, transparent 5px, #ffffff 5px) !important;
  background-size: 14px 10px !important;
  background-repeat: repeat-x !important;
}
.rhea-cart-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.rhea-cart-item-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.rhea-cart-item-thumb {
  width: 48px !important;
  height: 60px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.rhea-cart-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* مسدودسازی کامل پاپ‌آپ سرچ کشویی بالای صفحه */
#rhea-search-popup,
#rhea-search-overlay,
.rhea-search-popup,
.rhea-search-overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  top: -200% !important;
  height: 0 !important;
}
/* =========================================================
   RHÉA WOOCOMMERCE ARCHIVE & SINGLE PRODUCT LUXURY STYLES
   ========================================================= */

/* حذف سایدبارها و ابزارهای نامنظم ووکامرس */
.woocommerce-sidebar,
.widget-area,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* کارت‌های صفحه کاتالوگ فروشگاه */
.rhea-catalog-card {
  background: rgba(253, 251, 247, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 22px !important;
  padding: 12px !important;
  box-shadow: 0 10px 30px rgba(19, 39, 63, 0.05) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.rhea-catalog-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 34px rgba(78, 0, 0, 0.12) !important;
}
.rhea-catalog-img-wrap {
  width: 100% !important;
  height: 190px !important;
  background-color: #f5f2ec !important;
}
.rhea-catalog-img {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.4s ease !important;
}
.rhea-catalog-card:hover .rhea-catalog-img {
  transform: scale(1.05) !important;
}
.rhea-shop-pill {
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(19, 39, 63, 0.1) !important;
  border-radius: 50px !important;
  padding: 6px 15px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #13273F !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  backdrop-filter: blur(6px) !important;
}
.rhea-shop-pill:hover,
.rhea-shop-pill.active {
  background: #4e0000 !important;
  color: #ffffff !important;
  border-color: #4e0000 !important;
}
.rhea-view-btn {
  background: #13273F !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: 50px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.rhea-view-btn:hover {
  background: #4e0000 !important;
}

/* =========================================================
   RHÉA LUXURY SMOOTH IMAGE ZOOM (کامل و اصلاح‌شده)
   ========================================================= */

.rhea-prod-gallery-main {
  width: 100% !important;
  height: 440px !important;
  border-radius: 28px !important;
  background-position: center center;
  background-repeat: no-repeat !important;
  background-size: cover; /* بدون important تا جاوااسکریپت بتواند زوم کند */
  position: relative !important;
  overflow: hidden !important;
  background-color: #f7f5f0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  cursor: crosshair !important;
  transition: background-size 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-position 0.08s ease-out !important;
}

/* اگر تصویر با تگ img داخل کادر لود شده باشد */
.rhea-prod-gallery-main img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform, transform-origin;
  pointer-events: none;
}

.rhea-prod-gallery-main.is-zooming img {
  transform: scale(2.2) !important;
}

/* استایل‌دهی سلکتورهای ووکامرس (سایز و رنگ) در صفحه محصول */
.variations {
  width: 100% !important;
  margin-bottom: 12px !important;
}
.variations td.label {
  padding: 6px 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #13273F !important;
  width: 65px !important;
}
.variations td.value select {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(19, 39, 63, 0.15) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  color: #13273F !important;
  outline: none !important;
}
.single_add_to_cart_button {
  display: block !important;
  width: 100% !important;
  background: #4e0000 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 13px !important;
  border-radius: 50px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(78, 0, 0, 0.25) !important;
}
.single_add_to_cart_button:hover {
  background: #000544 !important;
}
.collection-img-box {
  width: 100% !important;
  height: 100px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background-color: #f3efe9 !important;
}
.collection-img-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* کپسول‌های فیلتر سایز در دراور */
.collection-size-pill {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(19, 39, 63, 0.12) !important;
  border-radius: 8px !important;
  padding: 3px 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #13273F !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.collection-size-pill.active {
  background: #13273F !important;
  color: #ffffff !important;
  border-color: #13273F !important;
}
/* =========================================================
   موشن و پاپ‌آپ قلب اختصاصی صفحه تک‌محصول RHÉA
   ========================================================= */

/* انیمیشن تپش و بزرگ‌نمایی قلب */
@keyframes rheaHeartBeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.35) rotate(-8deg); }
  50%  { transform: scale(0.92); }
  75%  { transform: scale(1.2) rotate(4deg); }
  100% { transform: scale(1); }
}

/* حالت فعال دکمه لایک */
.like-btn.is-liked {
  background: rgba(253, 251, 247, 0.95) !important;
  color: #4E0000 !important;
  box-shadow: 0 6px 18px rgba(78, 0, 0, 0.35) !important;
}

.like-btn.is-liked svg {
  fill: #4E0000 !important;
  stroke: #4E0000 !important;
  animation: rheaHeartBeat 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* پاپ‌آپ شناور شیشه‌ای علاقه‌مندی‌ها (Toast Notification) */
#rhea-like-toast {
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px) scale(0.92);
  background: rgba(253, 251, 247, 0.9) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 16px 36px rgba(19, 39, 63, 0.15), inset 0 1px 2px #ffffff !important;
  z-index: 999999 !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl;
}

#rhea-like-toast.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

#rhea-like-toast .toast-heart-icon {
  width: 18px;
  height: 18px;
  color: #4E0000;
  fill: #4E0000;
  flex-shrink: 0;
}

#rhea-like-toast span {
  font-size: 11px;
  font-weight: 700;
  color: #13273F;
  letter-spacing: 0.02em;
}
/* موشن ذرات انفجاری قلب */
.rhea-particle-heart {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  font-size: 14px;
  user-select: none;
  animation: rheaHeartBurst 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes rheaHeartBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(var(--tx), var(--ty)) scale(1.3) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--tx) * 1.4), calc(var(--ty) * 1.4 - 20px)) scale(0.2) rotate(var(--rot));
  }
}
/* پنهان‌سازی گزینه‌های رادیویی حمل و نقل در تسویه حساب */
ul#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

ul#shipping_method li {
  display: none !important;
}

/* فقط گزینه انتخاب‌شده فعال نمایش داده شود */
ul#shipping_method li:has(input:checked) {
  display: block !important;
  font-weight: 600;
  color: #13273F;
}

ul#shipping_method input[type="radio"] {
  display: none !important;
}
/* =========================================================
   RHÉA LIQUID GLASS CHECKOUT REDESIGN
   ========================================================= */

/* کادر اصلی شیشه‌ای تسویه حساب */
form.woocommerce-checkout {
  max-width: 680px !important;
  margin: 20px auto 120px auto !important;
  padding: 34px 28px !important;
  background: rgba(253, 251, 247, 0.75) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 32px !important;
  box-shadow: 0 24px 60px rgba(19, 39, 63, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
  direction: rtl !important;
}

/* ساختار تک‌ستونه شکیل: انتقال یادداشت سفارش به زیر فرم آدرس */
.woocommerce-checkout .col2-set {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.woocommerce-checkout .col-1, 
.woocommerce-checkout .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* عناوین بخش‌ها */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif !important;
  color: #4e0000 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed rgba(78, 0, 0, 0.15) !important;
}

/* لیبل فیلدها */
.woocommerce-checkout label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(19, 39, 63, 0.75) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* فیلدهای ورودی Liquid Glass منحنی */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(19, 39, 63, 0.14) !important;
  border-radius: 18px !important;
  padding: 13px 18px !important;
  font-size: 12.5px !important;
  color: #13273F !important;
  outline: none !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  background: #ffffff !important;
  border-color: #4e0000 !important;
  box-shadow: 0 0 0 3.5px rgba(78, 0, 0, 0.09) !important;
}

/* کادر یادداشت سفارش */
.woocommerce-additional-fields textarea {
  border-radius: 20px !important;
  min-height: 85px !important;
  resize: vertical !important;
}

/* کارت فاکتور و مرور سفارش */
#order_review {
  margin-top: 25px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 26px !important;
  padding: 20px !important;
  box-shadow: 0 12px 32px rgba(19, 39, 63, 0.06) !important;
}

table.woocommerce-checkout-review-order-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin-bottom: 15px !important;
  background: transparent !important;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
  padding: 14px 12px !important;
  border-bottom: 1px dashed rgba(19, 39, 63, 0.12) !important;
  font-size: 12.5px !important;
  color: #13273F !important;
}

table.woocommerce-checkout-review-order-table .order-total th,
table.woocommerce-checkout-review-order-table .order-total td {
  border-bottom: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #4e0000 !important;
}

/* حذف کادر بنفش پیش‌فرض و مدرن‌سازی دکمه نهایی */
#place_order {
  background: #4e0000 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 16px 36px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(78, 0, 0, 0.28) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: 15px !important;
}

#place_order:hover {
  background: #000544 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(0, 5, 68, 0.3) !important;
}

/* مخفی‌سازی گزینه‌های رادیویی برای روش‌های ارسال */
ul#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
ul#shipping_method li {
  display: none !important;
}
ul#shipping_method li:has(input:checked) {
  display: block !important;
  font-weight: 700;
  color: #13273F;
}
ul#shipping_method input[type="radio"] {
  display: none !important;
}
/* حذف کادر کوپن تخفیف و پیام‌های مرتبط از تسویه حساب */
.woocommerce-form-coupon-toggle,
form.checkout_coupon,
.woocommerce-form-coupon {
  display: none !important;
}
/* =========================================================
   RHÉA LUXURY SMOOTH IMAGE ZOOM
   ========================================================= */

.rhea-prod-gallery-main {
  position: relative !important;
  overflow: hidden !important;
  cursor: crosshair !important;
}

.rhea-prod-gallery-main img,
.rhea-prod-gallery-main .main-zoom-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform, transform-origin;
  pointer-events: none;
}

/* حالت زوم فعال */
.rhea-prod-gallery-main.is-zooming img,
.rhea-prod-gallery-main.is-zooming .main-zoom-img {
  transform: scale(2.2) !important;
}
/* =========================================================
   RHÉA LIQUID GLASS CIRCLE SWATCHES
   ========================================================= */

.rhea-circle-option {
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border-radius: 9999px;
  background: rgba(253, 251, 247, 0.7) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #13273F;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(19, 39, 63, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  user-select: none;
  background-size: cover;
  background-position: center;
}

.rhea-circle-option:hover {
  border-color: #4e0000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(78, 0, 0, 0.15) !important;
}

.rhea-circle-option.selected {
  background-color: #4e0000 !important;
  color: #ffffff !important;
  border-color: #4e0000 !important;
  box-shadow: 0 0 0 3px rgba(78, 0, 0, 0.18), 0 8px 18px rgba(78, 0, 0, 0.28) !important;
  transform: scale(1.08);
}

/* اگر دایره تصویر پارچه داشته باشد */
.rhea-circle-option.has-swatch-image {
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
}
.rhea-circle-option.has-swatch-image.selected {
  border-color: #4e0000 !important;
  box-shadow: 0 0 0 3px #4e0000, 0 8px 18px rgba(78, 0, 0, 0.3) !important;
}
.rhea-add-to-cart-lux-btn {
  background: #4e0000 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 15px 28px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(78, 0, 0, 0.28) !important;
  transition: all 0.25s ease !important;
  display: block;
}

.rhea-add-to-cart-lux-btn:hover {
  background: #000544 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 5, 68, 0.3) !important;
}

.rhea-add-to-cart-lux-btn:active {
  transform: scale(0.97) !important;
}/* =========================================================
   RHÉA COMPLIMENTARY INFINITE ROTATION
   ========================================================= */

.rhea-marquee-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.rhea-marquee-track {
  display: flex !important;
  gap: 14px;
  width: max-content;
  animation: rheaInfiniteScroll 20s linear infinite;
}

.rhea-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes rheaInfiniteScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

/* جهت زبان انگلیسی سایت (LTR) */
[dir="ltr"] .rhea-marquee-track {
  animation: rheaInfiniteScrollLTR 20s linear infinite;
}

@keyframes rheaInfiniteScrollLTR {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.rhea-marquee-item {
  width: 120px !important;
  flex: 0 0 120px !important;
  text-decoration: none;
}
/* =========================================================
   استایل تصاویر بندانگشتی گالری زیر عکس اصلی
   ========================================================= */
.rhea-prod-gallery-thumb {
  border-color: rgba(0, 0, 0, 0.08) !important;
  opacity: 0.7;
}

.rhea-prod-gallery-thumb.active {
  border-color: #4e0000 !important;
  opacity: 1 !important;
  transform: scale(1.05);
}
/* خط مورب روی سایز یا رنگ ناموجود */
.rhea-circle-option.rhea-size-btn-disabled {
  position: relative !important;
  overflow: hidden !important;
  cursor: not-allowed !important;
  opacity: 0.35 !important;
  background: rgba(19, 39, 63, 0.04) !important;
  border-color: rgba(19, 39, 63, 0.12) !important;
  color: rgba(19, 39, 63, 0.4) !important;
  pointer-events: none !important;
}

.rhea-circle-option.rhea-size-btn-disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 1.5px;
  background-color: #4e0000;
  transform: rotate(35deg);
  transform-origin: top left;
}
/* پنهان‌سازی نوتیس‌های پیش‌فرض و تکراری ووکامرس */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  display: none !important;
}
/* =========================================================
   استایل اختصاصی و لوکس فاکتور تسویه حساب (RHÉA Checkout Table)
   ========================================================= */

/* ۱. بدنه و کادر کلی فاکتور */
table.woocommerce-checkout-review-order-table {
  background: rgba(253, 251, 247, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 24px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 14px 34px rgba(19, 39, 63, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  width: 100% !important;
  font-family: inherit !important;
  margin-bottom: 24px !important;
}

/* ۲. سطر سربرگ (محصول / جمع جزء) */
table.woocommerce-checkout-review-order-table thead th {
  background: rgba(19, 39, 63, 0.03) !important;
  color: #13273F !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 14px 18px !important;
  border: none !important;
  border-bottom: 1px solid rgba(19, 39, 63, 0.08) !important;
}

/* ۳. سطرهای محصولات و اطلاعات آیتم‌ها */
table.woocommerce-checkout-review-order-table tbody td {
  padding: 14px 18px !important;
  border: none !important;
  border-bottom: 1px dashed rgba(19, 39, 63, 0.08) !important;
  font-size: 12px !important;
  color: #13273F !important;
  vertical-align: middle !important;
}

/* نام محصول و تعداد */
table.woocommerce-checkout-review-order-table .product-name {
  font-weight: 700 !important;
  color: #13273F !important;
  line-height: 1.6 !important;
}

/* استایل متغیرهای زیر نام محصول (سایز و رنگ) */
table.woocommerce-checkout-review-order-table .product-name .variation {
  display: block !important;
  margin-top: 4px !important;
  font-size: 10.5px !important;
  color: rgba(19, 39, 63, 0.55) !important;
  font-weight: 500 !important;
}

table.woocommerce-checkout-review-order-table .product-name .variation dt,
table.woocommerce-checkout-review-order-table .product-name .variation dd {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

table.woocommerce-checkout-review-order-table .product-name .variation dd {
  margin-left: 8px !important;
}

/* قیمت‌ها در ستون چپ */
table.woocommerce-checkout-review-order-table .product-total,
table.woocommerce-checkout-review-order-table tfoot td {
  font-weight: 700 !important;
  color: #13273F !important;
  text-align: left !important;
  direction: ltr !important;
  font-size: 12.5px !important;
}

/* ۴. سطرهای جمع و محاسبات فوتر جدول */
table.woocommerce-checkout-review-order-table tfoot th {
  padding: 12px 18px !important;
  border: none !important;
  border-bottom: 1px dashed rgba(19, 39, 63, 0.08) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: rgba(19, 39, 63, 0.75) !important;
}

table.woocommerce-checkout-review-order-table tfoot td {
  padding: 12px 18px !important;
  border: none !important;
  border-bottom: 1px dashed rgba(19, 39, 63, 0.08) !important;
}

/* ۵. سطر مبلغ نهایی (مجموع کل) */
table.woocommerce-checkout-review-order-table tfoot .order-total th {
  border-bottom: none !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #4e0000 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

table.woocommerce-checkout-review-order-table tfoot .order-total td {
  border-bottom: none !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #4e0000 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* ۶. کادر متن حریم خصوصی پایین جدول */
.woocommerce-privacy-policy-text {
  font-size: 11px !important;
  color: rgba(19, 39, 63, 0.65) !important;
  line-height: 1.7 !important;
  text-align: justify !important;
  padding: 0 4px !important;
  margin-bottom: 16px !important;
}
/* =========================================================
   مودال شیشه‌ای اختصاصی ثبت آدرس آتلیه (RHÉA Liquid Glass Address)
   ========================================================= */

/* کارت انتخاب و نمایش آدرس در صفحه تسویه */
.rhea-address-summary-pill {
  background: rgba(253, 251, 247, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 24px !important;
  padding: 16px 20px !important;
  box-shadow: 0 12px 30px rgba(19, 39, 63, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.rhea-address-summary-pill:hover {
  border-color: #4e0000 !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(78, 0, 0, 0.12) !important;
}

/* پاپ‌آپ شیشه‌ای آدرس */
#rhea-address-modal .rhea-modal-content {
  max-width: 440px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
}

/* مخفی‌سازی فرم طولانی و قدیمی آدرس ووکامرس در صفحه */
.woocommerce-billing-fields__field-wrapper {
  display: none !important;
}
/* مخفی‌سازی فرم‌های سنتی آدرس در برگه تسویه حساب */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-checkout .col2-set {
  display: none !important;
}
/* =========================================================
   صفحه اختصاصی تشکر و فاکتور نهایی سفارش (RHÉA Thank You Page)
   ========================================================= */

.woocommerce-order {
  max-width: 520px !important;
  margin: 30px auto 100px auto !important;
  padding: 24px !important;
  background: rgba(253, 251, 247, 0.88) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 30px !important;
  box-shadow: 0 20px 50px rgba(19, 39, 63, 0.1) !important;
  text-align: right !important;
  direction: rtl !important;
}

.woocommerce-order > p.woocommerce-notice {
  background: rgba(78, 0, 0, 0.08) !important;
  color: #4e0000 !important;
  border: 1px solid rgba(78, 0, 0, 0.2) !important;
  border-radius: 18px !important;
  padding: 14px 18px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-align: center !important;
}

ul.woocommerce-order-overview {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  border: 1px solid rgba(19, 39, 63, 0.08) !important;
  margin: 20px 0 !important;
  list-style: none !important;
}

ul.woocommerce-order-overview li {
  font-size: 11px !important;
  color: rgba(19, 39, 63, 0.6) !important;
  border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding-left: 14px !important;
}

ul.woocommerce-order-overview li:last-child {
  border-left: none !important;
}

ul.woocommerce-order-overview li strong {
  color: #13273F !important;
  display: block !important;
  font-size: 13px !important;
  margin-top: 4px !important;
}

.woocommerce-order h2 {
  font-family: 'Playfair Display', 'Noto Naskh Arabic', serif !important;
  color: #4e0000 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 24px 0 12px 0 !important;
  border-bottom: 1px dashed rgba(78, 0, 0, 0.2) !important;
  padding-bottom: 6px !important;
}

.woocommerce-order table.order_details {
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(19, 39, 63, 0.08) !important;
  width: 100% !important;
  border-collapse: collapse !important;
}

.woocommerce-order table.order_details th,
.woocommerce-order table.order_details td {
  padding: 12px 16px !important;
  font-size: 12px !important;
  border-bottom: 1px dashed rgba(19, 39, 63, 0.08) !important;
}

.woocommerce-customer-details {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(19, 39, 63, 0.08) !important;
  margin-top: 20px !important;
}
/* =========================================================
   غلبه قطعی بر ریست Tailwind برای جدول سفارشات
   ========================================================= */

/* بازگرداندن رفتار ساختاری جدول */
.woocommerce-MyAccount-content table.woocommerce-orders-table,
table.woocommerce-orders-table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  margin-top: 18px !important;
  direction: rtl !important;
}

.woocommerce-MyAccount-content table.woocommerce-orders-table thead,
table.woocommerce-orders-table thead {
  display: table-header-group !important;
  border-bottom: 1.5px solid rgba(19, 39, 63, 0.12) !important;
}

.woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
table.woocommerce-orders-table tbody {
  display: table-row-group !important;
}

.woocommerce-MyAccount-content table.woocommerce-orders-table tr,
table.woocommerce-orders-table tr {
  display: table-row !important;
}

/* تفکیک و ایجاد فضای خالی بین ستون‌ها */
.woocommerce-MyAccount-content table.woocommerce-orders-table th,
table.woocommerce-orders-table th {
  display: table-cell !important;
  padding: 12px 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #13273F !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.woocommerce-MyAccount-content table.woocommerce-orders-table td,
table.woocommerce-orders-table td {
  display: table-cell !important;
  padding: 16px 10px !important;
  font-size: 12px !important;
  color: #13273F !important;
  text-align: right !important;
  vertical-align: middle !important;
  border-bottom: 1px dashed rgba(19, 39, 63, 0.1) !important;
}

/* تنظیم عرض اختصاصی هر ستون تا روی هم نیفتند */
table.woocommerce-orders-table .woocommerce-orders-table__header-order-number,
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number {
  width: 15% !important;
}

table.woocommerce-orders-table .woocommerce-orders-table__header-order-date,
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-date {
  width: 20% !important;
}

table.woocommerce-orders-table .woocommerce-orders-table__header-order-status,
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
  width: 25% !important;
  font-weight: 700 !important;
}

table.woocommerce-orders-table .woocommerce-orders-table__header-order-total,
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
  width: 25% !important;
  font-weight: 700 !important;
  color: #4e0000 !important;
}

table.woocommerce-orders-table .woocommerce-orders-table__header-order-actions,
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
  width: 15% !important;
  text-align: center !important;
}

/* دکمه عملیات نمایش */
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
  display: inline-block !important;
  background: #4e0000 !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(78, 0, 0, 0.2) !important;
}
/* مخفی‌سازی کامل متن پیش‌فرض ووکامرس */
.added_to_cart.wc-forward {
  display: none !important;
}

/* استایل نوتیفیکیشن پاپ‌آپ شیک به سبد خرید افزوده شد */
#rhea-cart-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(253, 251, 247, 0.95);
  border: 1px solid rgba(78, 0, 0, 0.25);
  box-shadow: 0 15px 35px rgba(19, 39, 63, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0a1118;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#rhea-cart-toast.rhea-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#rhea-cart-toast svg {
  color: #4E0000;
}
/* اطمینان از قرارگیری درست لایه روی هر کارتی در هر جای سایت */
.rhea-prod-card {
  position: relative !important;
}

/* لایه پیش‌فرض مخفی است */
.rhea-prod-card .rhea-quick-select-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(6px);
}

/* به محض رفتن موس یا تاچ روی هر کارتی در کل سایت، گزینه‌ها باز می‌شوند */
.rhea-prod-card:hover .rhea-quick-select-overlay,
.rhea-prod-card:focus-within .rhea-quick-select-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
/* وضعیت سایز انتخاب شده */
.rhea-size-btn.active {
  background-color: #4E0000 !important;
  color: #ffffff !important;
  border-color: #4E0000 !important;
  box-shadow: 0 2px 6px rgba(78, 0, 0, 0.35) !important;
}

/* وضعیت رنگ انتخاب شده */
.rhea-color-btn.active {
  outline: 2px solid #4E0000 !important;
  outline-offset: 2px !important;
  transform: scale(1.25) !important;
}


/* باز شدن پنل افزودن سریع با لمس (موبایل که hover ندارد) */
.rhea-prod-card.rhea-quick-open .rhea-quick-select-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}


/* =========================================================================
   هاله‌ی آیکون فعال در نوار پایین
   .is-open    = پاپ‌آپ همان بخش باز است
   .is-current = همین صفحه (خانه / حساب کاربری)
   ========================================================================= */
.nav-item.is-open,
.nav-item.is-current {
  background-color: rgba(78, 0, 0, 0.1) !important;
  color: #4e0000 !important;
  box-shadow: 0 0 0 1.5px rgba(78, 0, 0, 0.55), 0 0 0 5px rgba(78, 0, 0, 0.1), 0 6px 18px rgba(78, 0, 0, 0.28) !important;
}

.nav-item.is-open {
  animation: rheaNavHalo 2.4s ease-in-out infinite;
}

/* وقتی پاپ‌آپی باز است، هاله‌ی «همین صفحه» کم‌رنگ شود تا فقط بخش فعال دیده شود */
.glass-nav.rhea-nav-has-open .nav-item.is-current:not(.is-open) {
  background-color: transparent !important;
  box-shadow: none !important;
}

@keyframes rheaNavHalo {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(78, 0, 0, 0.55), 0 0 0 5px rgba(78, 0, 0, 0.1), 0 6px 18px rgba(78, 0, 0, 0.28); }
  50%      { box-shadow: 0 0 0 1.5px rgba(78, 0, 0, 0.7), 0 0 0 8px rgba(78, 0, 0, 0.06), 0 8px 22px rgba(78, 0, 0, 0.34); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item.is-open { animation: none; }
}


/* =========================================================================
   سکشن‌های محصول صفحه‌ی اصلی + دکمه‌ی هیرو + فاصله‌ی پایین فوتر
   ========================================================================= */
.rhea-frosted-footer-container {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ---------- جمله و دکمه‌ی روی هیرو ---------- */
.rhea-hero-cta {
  animation: rheaHeroCtaIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}
.rhea-hero-cta__line {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: #13273f;
  text-shadow: 0 1px 14px rgba(253, 251, 247, 0.95);
}
.rhea-hero-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, #4e0000, #6d0f1f);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(78, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.rhea-hero-cta__btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.rhea-hero-cta__btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(78, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.rhea-hero-cta__btn:hover svg { transform: translateX(-4px); }
.rhea-hero-cta__btn:active { transform: translateY(-1px) scale(0.98); }
.rhea-hero-cta__btn:focus-visible { outline: 2px solid #4e0000; outline-offset: 3px; }
@keyframes rheaHeroCtaIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- سکشن‌های محصول ---------- */
.rhea-psec {
  max-width: 28rem;
  margin: 26px auto 8px;
  padding: 0 12px;
  position: relative;
  z-index: 20;
  direction: rtl;
}

.rhea-psec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 6px 6px;
}
.rhea-psec__titles { display: flex; flex-direction: column; gap: 5px; }

.rhea-psec__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #4e0000;
}
.rhea-psec__title::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fdfbf7, #fdfb7);
}
.rhea-psec__all {
  padding: 7px 13px;
  border: 1px solid rgba(19, 39, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #13273f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rhea-psec__all:hover { background: #4e0000; border-color: #4e0000; color: #fff; }
.rhea-psec__all:focus-visible { outline: 2px solid #4e0000; outline-offset: 2px; }

.rhea-psec__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 6px 30px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rhea-psec__track::-webkit-scrollbar { display: none; }

.rhea-pcard {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background: rgba(253, 251, 247, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 12px 30px rgba(78, 0, 0, 0.1), 0 2px 6px rgba(19, 39, 63, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.rhea-pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(78, 0, 0, 0.18), 0 4px 10px rgba(19, 39, 63, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.95);
}
.rhea-pcard:active { transform: translateY(-2px) scale(0.99); }

.rhea-pcard__link {
  display: block;
  padding: 8px;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
}
.rhea-pcard__link:focus-visible { outline: 2px solid #4e0000; outline-offset: 2px; }

.rhea-pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 17px;
  background: #efe9e0;
}
.rhea-pcard__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rhea-pcard:hover .rhea-pcard__img { transform: scale(1.07); }

.rhea-pcard__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4e0000, #7a1f2b);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 4px 10px rgba(78, 0, 0, 0.35);
}
.rhea-pcard__tag--out { background: rgba(19, 39, 63, 0.82); box-shadow: none; }

.rhea-pcard__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 4px 3px;
  text-align: right;
}
.rhea-pcard__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #13273f;
  font-size: 12px;
  font-weight: 800;
}
.rhea-pcard__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  color: #4e0000;
  font-size: 12px;
  font-weight: 800;
}
.rhea-pcard__price ins { order: -1; background: none; text-decoration: none; }
.rhea-pcard__price del { color: rgba(19, 39, 63, 0.42); font-size: 11px; font-weight: 500; }
.rhea-pcard__price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ظاهر شدن نرم کارت‌ها هنگام اسکرول (فقط مرورگرهایی که پشتیبانی می‌کنند) */
@supports (animation-timeline: view()) {
  .rhea-pcard {
    animation: rheaCardIn linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes rheaCardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rhea-pcard,
  .rhea-pcard__img,
  .rhea-hero-cta,
  .rhea-hero-cta__btn { animation: none !important; transition: none !important; }
}


/* =========================================================================
   کارت‌های تخفیف‌دار: عکس تمام‌قاب + پنل شیشه‌ای + چرخش بی‌پایان
   ========================================================================= */
.rhea-fmarquee {
  position: relative;
  overflow: hidden;
  direction: ltr;
  padding: 16px 0 32px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.rhea-fmarquee__track {
  display: flex;
  width: max-content;
  animation: rheaFMarquee calc(var(--rhea-n, 6) * 4.5s) linear infinite;
  will-change: transform;
}

/* هر گروه دقیقاً یک نیمه‌ی مسیر است؛ padding-right برابر فاصله‌ی کارت‌ها تا حلقه بدون پرش باشد */
.rhea-fmarquee__group {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
}

@keyframes rheaFMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* با هاور یا فوکوس، حرکت می‌ایستد تا کاربر بتواند کارت را ببیند و بزند */
.rhea-fmarquee:hover .rhea-fmarquee__track,
.rhea-fmarquee:focus-within .rhea-fmarquee__track {
  animation-play-state: paused;
}

/* کمتر از ۳ کارت: ردیف ساده بدون حرکت */
.rhea-fmarquee.is-static { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; direction: rtl; padding-inline: 6px; }
.rhea-fmarquee.is-static::-webkit-scrollbar { display: none; }
.rhea-fmarquee.is-static .rhea-fmarquee__track { animation: none; width: auto; }
.rhea-fmarquee.is-static .rhea-fmarquee__group { padding-right: 0; }

.rhea-scard {
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  padding: 5px;
  direction: rtl;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(78, 0, 0, 0.14), 0 2px 8px rgba(19, 39, 63, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.rhea-scard:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(78, 0, 0, 0.22), 0 4px 12px rgba(19, 39, 63, 0.1);
}
.rhea-scard:active { transform: translateY(-2px) scale(0.99); }

.rhea-scard__link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 25px;
  background: #2a1a1d;
  color: #fff;
  text-decoration: none;
}
.rhea-scard__link:focus-visible { outline: 2px solid #4e0000; outline-offset: 2px; }

.rhea-scard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rhea-scard:hover .rhea-scard__img { transform: scale(1.07); }

.rhea-scard__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 7, 9, 0.84) 0%, rgba(14, 7, 9, 0.4) 42%, transparent 68%);
  pointer-events: none;
}

.rhea-scard__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4e0000, #7a1f2b);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(78, 0, 0, 0.4);
}
.rhea-scard__tag--out { background: rgba(19, 39, 63, 0.85); box-shadow: none; }

.rhea-scard__panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  text-align: right;
}

.rhea-scard__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.rhea-scard__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.rhea-scard__price ins { order: -1; background: none; color: #fff; text-decoration: none; }
.rhea-scard__price del { color: rgba(255, 255, 255, 0.62); font-size: 11px; font-weight: 500; }
.rhea-scard__price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rhea-scard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rhea-scard__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 700;
}
.rhea-scard__stock svg { flex: 0 0 auto; width: 13px; height: 13px; }
.rhea-scard__stock.is-low { color: #a8e0bd; }

.rhea-scard__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #13273f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, color 0.25s ease;
}
.rhea-scard__cta svg { width: 12px; height: 12px; }
.rhea-scard:hover .rhea-scard__cta { background: #4e0000; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .rhea-fmarquee { overflow-x: auto; scrollbar-width: none; direction: rtl; -webkit-mask-image: none; mask-image: none; }
  .rhea-fmarquee__track { animation: none !important; width: auto; }
  .rhea-fmarquee__group { padding-right: 0; }
  .rhea-fmarquee__group[aria-hidden="true"] { display: none; }
  .rhea-scard,
  .rhea-scard__img { transition: none !important; }
}


/* =========================================================================
   کارت محصول صفحات فروشگاه و کالکشن (همان ظاهر کارت‌های تخفیف‌دار)
   ========================================================================= */
.rhea-products-grid .rhea-scard { width: 100%; }
.rhea-psec__track > .rhea-scard { scroll-snap-align: start; }

.rhea-scard--shop { padding: 5px; }
.rhea-scard--shop .rhea-scard__frame {
  position: relative;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border-radius: 25px;
  background: #2a1a1d;
  color: #fff;
}
.rhea-scard--shop .rhea-scard__link {
  position: absolute;
  inset: 0;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
}
.rhea-scard--shop .rhea-scard__tag { top: 12px; right: 12px; }

/* پنل روی عکس: فقط لینک و دکمه‌هایش قابل کلیک باشند تا کلیک بقیه‌ی جاها به عکس برسد */
.rhea-scard--shop .rhea-scard__panel { pointer-events: none; }
.rhea-scard--shop .rhea-scard__panel a { pointer-events: auto; }

.rhea-scard--shop .rhea-scard__name { display: block; color: #fff; text-decoration: none; }
.rhea-scard--shop .rhea-scard__name:hover { color: #ffd9a8; }
.rhea-scard--shop .rhea-scard__foot { flex-direction: column; align-items: stretch; gap: 7px; }

.rhea-scard__actions { display: flex; align-items: center; gap: 6px; }
.rhea-scard--shop .rhea-scard__cta { flex: 1; justify-content: center; text-decoration: none; }

.rhea-scard__cart {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.rhea-scard__cart:hover { background: #fff; color: #4e0000; transform: scale(1.08); }
.rhea-scard__cart svg { width: 14px; height: 14px; }

/* =========================================================================
   نوار اسکرول با قلب قرمز (سبد خرید و پاپ‌آپ کالکشن)
   ========================================================================= */
.rhea-hs { position: relative; }
.rhea-hs > .rhea-hs-target {
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.rhea-hs > .rhea-hs-target::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.rhea-hs.is-active > .rhea-hs-target { padding-left: 20px !important; }

.rhea-hs__track {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 3px;
  width: 8px;
  border-radius: 999px;
  background: rgba(78, 0, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(78, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.rhea-hs.is-active .rhea-hs__track { opacity: 1; pointer-events: auto; }

.rhea-hs__thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 3px 6px rgba(214, 31, 58, 0.45));
  transition: transform 0.18s ease;
}
.rhea-hs__thumb svg { display: block; width: 100%; height: 100%; }
.rhea-hs__thumb:hover { transform: scale(1.12); }
.rhea-hs.is-dragging .rhea-hs__thumb { cursor: grabbing; transform: scale(1.22); }

.rhea-cart-notice {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(78, 0, 0, 0.18);
  border-radius: 14px;
  background: rgba(253, 251, 247, 0.95);
  color: #4e0000;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .rhea-hs__track,
  .rhea-hs__thumb { transition: none; }
}
/* ۳ ستونه کردن گزینه‌های سایز در دراپ‌داون */
.rhea-size-dropdown-menu,
[data-dropdown="sizes"] ul,
.dropdown-sizes-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  padding: 10px !important;
  width: 210px !important;
  text-align: center !important;
}

/* گزینه «همه سایزها» در کل عرض ردیف اول */
.rhea-size-dropdown-menu li:first-child,
.dropdown-sizes-list li:first-child {
  grid-column: span 3 !important;
  margin-bottom: 4px !important;
  border-radius: 12px !important;
}

/* دکمه‌های داخل گرید سایز */
.rhea-size-dropdown-menu a,
.rhea-size-dropdown-menu button,
.dropdown-sizes-list a {
  display: block !important;
  padding: 6px 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FAF6F0 !important;
  font-size: 11px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.rhea-size-dropdown-menu a:hover,
.dropdown-sizes-list a:hover {
  background: #4E0000 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* مخفی کردن ردیف دکمه‌های افقی کالکشن در بالای صفحه */
.rhea-horizontal-category-pills,
.shop-categories-nav {
  display: none !important;
}
.custom-scroll::-webkit-scrollbar {
  width: 4px !important;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 9999px !important;
}
.custom-scroll::-webkit-scrollbar-track {
  background: transparent !important;
}




/* نوار افقی قابل کشیدن (دسته‌های پاپ‌آپ کالکشن): نشانه‌ی ادامه با محو شدن لبه */
.rhea-drag-x { cursor: grab; scroll-behavior: auto; -webkit-user-select: none; user-select: none; }
.rhea-drag-x.is-dragging { cursor: grabbing; }
.rhea-drag-x.is-dragging * { pointer-events: none; }
.rhea-drag-x.has-more-end { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
.rhea-drag-x.has-more-start { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.rhea-drag-x.has-more-start.has-more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }

/* جستجوی زنده: حالت «در حال جستجو» */
.rhea-ls-state { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 0 10px; font-size: 12px; font-weight: 700; color: #4e0000; }
.rhea-ls-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(78, 0, 0, .18); border-top-color: #4e0000; animation: rhea-ls-spin .8s linear infinite; }
@keyframes rhea-ls-spin { to { transform: rotate(360deg); } }
.rhea-ls-skel { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .05); }
.rhea-ls-skel + .rhea-ls-skel { margin-top: 8px; }
.rhea-ls-skel__img { flex: 0 0 48px; height: 56px; border-radius: 12px; }
.rhea-ls-skel__txt { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rhea-ls-skel__txt i { display: block; height: 10px; border-radius: 6px; width: 70%; }
.rhea-ls-skel__txt i + i { width: 38%; }
.rhea-ls-skel__img, .rhea-ls-skel__txt i {
  background: linear-gradient(90deg, rgba(19, 39, 63, .06) 25%, rgba(19, 39, 63, .13) 50%, rgba(19, 39, 63, .06) 75%);
  background-size: 200% 100%; animation: rhea-ls-shimmer 1.2s ease-in-out infinite;
}
@keyframes rhea-ls-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .rhea-ls-spin, .rhea-ls-skel__img, .rhea-ls-skel__txt i { animation: none; } }

/* دکمه‌ی قلب: ناحیه‌ی لمس بزرگ‌تر (۴۸px) تا ضربه‌ی کمی بیرون از آیکون، کارت را باز نکند */
.like-btn::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.like-btn { position: relative; touch-action: manipulation; } /* کلاس absolute تیلویند (که بعد از این فایل لود می‌شود) در کارت‌ها جایش را می‌گیرد */
