:root {
  --red: #A61B29; /* قرمز خونی تیره */
  --red-hover: #8A1320;
  --dark-blue: #0F0F23;
  --light-blue: #F4F5FF;
  --text-main: #3F4064;
  --text-muted: #767790;
  --white: #FFFFFF;
  --border-color: #E0E0E6;
  --yellow: #FFC800;
  --green: #00A049;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --on: #00A049;
  --off: #A61B29;
  --card: #fff;
  --line: #E0E0E6;
  --muted: #767790;
  --ink: #3F4064;
  --bg: #F4F5FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* محافظ سراسری اتریبیوت hidden: هر قانون display خودمان (flex/grid/block/…)
   بر استایل پیش‌فرض UA برای [hidden] غلبه می‌کرد و عنصرِ «hidden» دیده می‌شد
   (نمونهٔ واقعی: لایت‌باکس جزئیات کالا که با display:flex دیگر بسته نمی‌شد).
   این قانون تضمین می‌کند hidden همیشه برد؛ عناصری که با style.display
   مدیریت می‌شوند متأثر نمی‌شوند چون اتریبیوت hidden ندارند. */
[hidden] { display: none !important; }


/* محافظ ریشه‌ای اسکرول: هیچ عنصری نباید اسکرول افقی بسازد.
   «clip» برخلاف hidden یک scroll container نمی‌سازد، پس هدر sticky و
   سایدبار ادمین عادی کار می‌کنند؛ مرورگرهای قدیمی که clip را نمی‌شناسند
   این خط را نادیده می‌گیرند و رفتارشان مثل قبل است. */
html { overflow-x: clip; scrollbar-width: thin; }

/* h1 فقط برای موتور جست‌وجو و صفحه‌خوان‌ها (سئوی صفحه اصلی) — از نظر بصری مخفی */
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body {
  font-family: 'Shabnam FD', 'Shabnam', Tahoma, sans-serif;
  background: var(--light-blue);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.material-symbols-outlined {
  /* تعریف پایه کلاس در fonts/material-symbols.css است (تک منبع)؛
     فقط overrideهای خاص همین فایل اینجا می‌مانند. */
  font-family: 'Material Symbols Outlined';
}

.pardava-container { max-width: 1366px; margin: 0 auto; padding: 0 20px; }
.wrap { max-width: 1366px; margin: 0 auto; padding: 0 20px; }

/* Top bar & header */
.pardava-top-bar { background: var(--dark-blue); color: rgba(255,255,255,0.7); font-size: 0.8rem; padding: 8px 0; }
.pardava-top-bar .pardava-container { display: flex; justify-content: space-between; align-items: center; }
.pardava-top-links { display: flex; gap: 20px; }
.pardava-top-links a:hover { color: #fff; }

.pardava-main-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; transition: var(--transition); }
.pardava-main-header.pardava-scrolled { box-shadow: var(--shadow-md); }
.pardava-header-middle { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 20px; }

.pardava-logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 900; color: var(--red); flex-shrink: 0; }
.pardava-logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.pardava-logo-img { height: 34px; width: auto; border-radius: 10px; }
.pardava-logo-icon { background: var(--red); color: white; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 900; flex-shrink: 0; }

.pardava-search-container { flex: 1; max-width: 650px; position: relative; }
.sg-wrap { position: relative; }
.pardava-search-bar { display: flex; border: 2px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: var(--transition); background: #fff; }
.pardava-search-bar:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.1); }
.pardava-search-bar input { flex: 1; border: none; outline: none; padding: 8px 14px; line-height: 1.4; font-family: inherit; font-size: 0.92rem; width: 100%; margin: 0; min-width: 0; }
.pardava-search-btn { background: var(--red); color: white; padding: 0 25px; font-size: 1.2rem; display: flex; align-items: center; transition: var(--transition); }
.pardava-search-btn:hover { background: var(--red-hover); }

.pardava-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* دکمه منوی موبایل — در دسکتاپ مخفی؛ استایل موبایل در بخش «منو — موبایل» */
.pardava-menu-btn { display: none; }

.pardava-action-item { display: flex; flex-direction: column; align-items: center; color: var(--text-main); font-size: 0.68rem; gap: 1px; padding: 3px 6px; border-radius: 8px; position: relative; transition: var(--transition); white-space: nowrap; line-height: 1.25; }
.pardava-action-item .material-symbols-outlined { font-size: 20px; }
.pardava-action-item:hover { color: var(--red); background: rgba(166, 27, 41, 0.05); }
.pardava-action-item .pardava-badge { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-size: 0.65rem; min-width: 18px; height: 18px; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.pardava-mega-nav { background: var(--white); border-top: 1px solid var(--border-color); }
.pardava-nav-container { display: flex; align-items: stretch; height: 44px; }
.pardava-nav-all-cat { background: var(--red); color: white; display: flex; align-items: center; gap: 8px; padding: 0 18px; font-weight: 600; font-size: 0.9rem; cursor: pointer; position: relative; }
.pardava-nav-all-cat:hover .pardava-all-cat-dropdown, .pardava-nav-all-cat.cat-open .pardava-all-cat-dropdown { display: block; }
.pardava-all-cat-dropdown { position: absolute; top: 100%; right: 0; width: 300px; background: #fff; box-shadow: var(--shadow-lg); border-radius: 0 0 12px 12px; display: none; z-index: 100; padding: 8px 10px; }
.pardava-all-cat-dropdown ul { list-style: none; margin: 0; }
.pardava-all-cat-dropdown li { font-size: 0.9rem; color: var(--text-main); transition: var(--transition); }
.pardava-all-cat-dropdown li:hover,
.pardava-all-cat-dropdown li a:hover { background: var(--light-blue); color: var(--red); }
.pardava-nav-links { display: flex; align-items: center; padding: 0 16px; gap: 4px; flex: 1; flex-wrap: wrap; }
.pardava-nav-links a { padding: 8px 12px; font-size: 0.88rem; font-weight: 500; color: var(--text-main); border-radius: 8px; transition: var(--transition); position: relative; white-space: nowrap; }
.pardava-nav-links a:hover { background: var(--light-blue); color: var(--red); }
.pardava-nav-links .pardava-hot-offer { color: var(--red); font-weight: 700; }
.pardava-nav-links .pardava-hot-offer::after { content: 'داغ'; position: absolute; top: 2px; left: -5px; background: var(--yellow); color: #000; font-size: 0.6rem; padding: 1px 5px; border-radius: 4px; font-weight: 800; }

/* Hero slider — هنری تمام‌قاب: تصویر کل div را می‌گیرد (دسکتاپ + موبایل) */
.pardava-hero-slider { position: relative; height: 480px; margin-top: 20px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #101820; }
.pardava-slides { display: flex; height: 100%; transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1); }
.pardava-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; padding: 0 80px; overflow: hidden; }
/* گرادیان‌های هنری برای اسلایدهای بدون تصویر */
.pardava-slide-1 { background: linear-gradient(250deg, #17222b 0%, #23384a 52%, #58303b 100%); }
.pardava-slide-2 { background: linear-gradient(250deg, #141d26 0%, #1e3245 55%, #24505c 100%); }
.pardava-slide-3 { background: linear-gradient(250deg, #161d1a 0%, #24402f 55%, #3d5c46 100%); }
.pardava-slide-4 { background: linear-gradient(250deg, #1d1a14 0%, #3d3222 55%, #5c4a2a 100%); }
.pardava-slide-bg { position: absolute; inset: 0; z-index: 0; }
.pardava-slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 24% center; }
/* پرده سینمایی: سمت راست (محل متن) تیره‌تر + وینیت پایین */
.pardava-slide-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(270deg, rgba(13, 20, 27, 0.84) 0%, rgba(13, 20, 27, 0.56) 32%, rgba(13, 20, 27, 0.10) 66%, rgba(13, 20, 27, 0) 100%),
  linear-gradient(0deg, rgba(13, 20, 27, 0.55) 0%, rgba(13, 20, 27, 0) 44%),
  linear-gradient(180deg, rgba(13, 20, 27, 0.30) 0%, rgba(13, 20, 27, 0) 24%); }
/* گِرِین فیلم برای حس هنری */
.pardava-slide-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); background-size: 140px 140px; }
/* جلوه کن برنز: زوم و پن آرام روی اسلاید فعال */
@keyframes pardava-ken { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.13) translateX(-2.2%); } }
@keyframes pardava-ken-alt { from { transform: scale(1.13) translateX(2.2%); } to { transform: scale(1.02) translateX(0); } }
.pardava-slide.is-active .pardava-slide-bg img { animation: pardava-ken 9s cubic-bezier(0.25, 0.6, 0.35, 1) forwards; will-change: transform; }
.pardava-slide:nth-child(even).is-active .pardava-slide-bg img { animation-name: pardava-ken-alt; }
.pardava-slide-content { position: relative; z-index: 3; max-width: 560px; }
.pardava-slide-content h2 { font-size: 2.9rem; font-weight: 900; margin-bottom: 12px; color: #fff; line-height: 1.4; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4); }
.pardava-slide-content p { font-size: 1.12rem; color: rgba(255, 255, 255, 0.88); margin-bottom: 26px; max-width: 470px; line-height: 2; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.pardava-slide-btn { background: var(--red); color: white; padding: 14px 35px; border-radius: 10px; font-weight: 700; display: inline-block; box-shadow: 0 4px 15px rgba(166, 27, 41, 0.35); transition: var(--transition); }
.pardava-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(166, 27, 41, 0.45); color: white; }
/* تسک ۶۰ — درخشش و نبض دکمهٔ اصلی بنر: اندازهٔ جعبه دست نمی‌خورد (فقط سایه/فیلتر/ترنسفورم) */
/* ⓘ سِلِکتور پرتخصص‌تر از «.pardava-slide.is-active .pardava-slide-content > *» — وگرنه انیمیشن ورود، نبض را می‌پوشاند */
.pardava-slide .pardava-slide-content a.pardava-slide-btn { position: relative; overflow: hidden; animation: heroBtnPulse 2.2s ease-in-out infinite; }
.pardava-slide-btn::after { content: ''; position: absolute; top: -45%; bottom: -45%; width: 46%; right: -65%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-18deg); animation: heroBtnShine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes heroBtnPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(166, 27, 41, 0.35), 0 0 0 0 rgba(166, 27, 41, 0.42), 0 0 14px 1px rgba(255, 122, 137, 0.28); transform: scale(1); }
  50% { box-shadow: 0 4px 15px rgba(166, 27, 41, 0.4), 0 0 0 10px rgba(166, 27, 41, 0), 0 0 26px 5px rgba(255, 122, 137, 0.55); transform: scale(1.05); }
}
@keyframes heroBtnShine { 0% { transform: translateX(0) skewX(-18deg); opacity: 0; } 14% { opacity: 1; } 55%, 100% { transform: translateX(-430%) skewX(-18deg); opacity: 0; } }
.pardava-slide .pardava-slide-content a.pardava-slide-btn:hover { animation: none; transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 25px rgba(166, 27, 41, 0.45), 0 0 22px 3px rgba(255, 122, 137, 0.5); color: white; }
/* ورود پله‌ای متن با هر اسلاید */
@keyframes pardava-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.pardava-slide.is-active .pardava-slide-content > * { animation: pardava-rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.pardava-slide.is-active .pardava-slide-content > *:nth-child(1) { animation-delay: 0.2s; }
.pardava-slide.is-active .pardava-slide-content > *:nth-child(2) { animation-delay: 0.38s; }
.pardava-slide.is-active .pardava-slide-content > *:nth-child(3) { animation-delay: 0.55s; }
.pardava-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.28); width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 10; color: #fff; font-size: 1.2rem; }
.pardava-slider-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pardava-arrow-right { right: 20px; }
.pardava-arrow-left { left: 20px; }
.pardava-slider-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.pardava-dot { position: relative; width: 38px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.28); cursor: pointer; overflow: hidden; transition: var(--transition); }
.pardava-dot::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: #fff; transform: scaleX(0); transform-origin: right; }
.pardava-dot:hover { background: rgba(255, 255, 255, 0.5); }
.pardava-dot.pardava-active { background: rgba(255, 255, 255, 0.42); }
/* نوار پیشرفت نقطه فعال، هم‌گام با پخش خودکار (۶ ثانیه) */
@keyframes pardava-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pardava-dot.pardava-active::after { animation: pardava-dot-fill 6s linear forwards; }
.pardava-hero-slider.pardava-paused .pardava-dot.pardava-active::after { animation-play-state: paused; }
@media (max-width: 768px) {
  .pardava-slide-bg img { object-position: center 22%; }
}
@media (prefers-reduced-motion: reduce) {
  .pardava-slide.is-active .pardava-slide-bg img,
  .pardava-slide.is-active .pardava-slide-content > *,
  .pardava-dot.pardava-active::after { animation: none !important; }
}

/* Services */
.pardava-services-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin: 25px 0; }
.pardava-service-box { background: var(--white); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid transparent; }
.pardava-service-box:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pardava-service-icon { width: 50px; height: 50px; background: var(--light-blue); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; transition: var(--transition); }
.pardava-service-box:hover .pardava-service-icon { background: var(--red); color: white; }
.pardava-service-text h4 { font-size: 0.9rem; font-weight: 800; margin-bottom: 2px; }
.pardava-service-text p { font-size: 0.75rem; color: var(--text-muted); }

/* افتخارات — نوار اعتمادسازی زیر بنر (تسک ۴۷، قابل مدیریت از /manage/honors) */
.pardava-honors { margin: 22px 0 26px; }
.pardava-honors-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pardava-honor { background: var(--white); border: 1px solid var(--border-color); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; transition: var(--transition); position: relative; overflow: hidden; }
.pardava-honor::after { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red), #ff8a5c); opacity: 0; transition: var(--transition); }
.pardava-honor:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pardava-honor:hover::after { opacity: 1; }
.pardava-honor-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--light-blue); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.pardava-honor-icon .material-symbols-outlined { font-size: 26px; }
.pardava-honor:hover .pardava-honor-icon { background: var(--red); color: #fff; }
.pardava-honor-title { font-size: 0.86rem; font-weight: 800; line-height: 1.4; }
.pardava-honor-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; }
.pardava-honor-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 0.74rem; font-weight: 800; color: var(--red); background: #fdf2f4; border: 1px solid #f5d7dc; padding: 4px 10px; border-radius: 999px; transition: var(--transition); }
.pardava-honor-cta .material-symbols-outlined { font-size: 14px; }
.pardava-honor-cta:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* توضیح یک‌خطی سئو زیر سربرگ بخش‌ها */
.pardava-section-lead { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; margin: -8px 0 18px; }

/* Categories */
.pardava-mega-categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-bottom: 40px; }
.pardava-cat-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 2px solid transparent; display: block; }
.pardava-cat-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pardava-cat-card-img { height: 100px; overflow: hidden; background: linear-gradient(135deg, #f8f8fa, #eef0ff); display: flex; align-items: center; justify-content: center; }
.pardava-cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pardava-cat-card:hover .pardava-cat-card-img img { transform: scale(1.1); }
.pardava-cat-card h3 { font-size: 0.9rem; font-weight: 700; padding: 12px; text-align: center; }
.pardava-cat-ph { font-size: 2rem; color: var(--red); opacity: 0.5; }

/* Main layout */
.pardava-main-layout { display: grid; grid-template-columns: 270px 1fr; gap: 25px; margin-bottom: 40px; }
/* ضد سرریز: آیتم‌های گرید اجازه ندارند از ستون خود بیرون بزنند (min-content تصاویر) */
.pardava-main-layout > * { min-width: 0; }
.pardava-sidebar { display: flex; flex-direction: column; gap: 25px; }
.pardava-widget { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.pardava-widget-title { font-size: 1.1rem; font-weight: 800; border-bottom: 2px solid var(--light-blue); padding-bottom: 12px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.pardava-widget-title .material-symbols-outlined { color: var(--red); font-size: 1.3rem; }
.pardava-cat-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.9rem; transition: var(--transition); }
.pardava-cat-list li:last-child { border-bottom: none; }
.pardava-cat-list a:hover { color: var(--red); padding-right: 5px; }
/* زیردسته: تورفتگی + نشان کوچک‌تر تا سلسله‌مراتب دیده شود */
.pardava-cat-list li.pardava-cat-child { padding-right: 18px; font-size: 0.85rem; }
.pardava-cat-list li.pardava-cat-child > a::before { content: "└ "; color: var(--text-muted); opacity: 0.6; }
.pardava-cat-count { background: var(--light-blue); color: var(--text-muted); font-size: 0.75rem; padding: 2px 8px; border-radius: 6px; min-width: 30px; text-align: center; }
/* شمارش صفر واقعی کم‌رنگ‌تر نشان داده شود */
.pardava-cat-count.is-zero { opacity: 0.45; }

/* --- سایدبار دسته‌بندی‌ها: آکاردئون زیرشاخه‌ها ---
   فهرست کامل ۱۱۲تایی صفحه اصلی را بسیار بلند می‌کرد؛ حالا فقط دسته‌های
   اصلی دیده می‌شوند و زیرشاخه‌ها با دکمهٔ کنار هر دسته یا دکمهٔ «نمایش
   همه زیرشاخه‌ها» باز می‌شوند. */
.pardava-cat-list li.pardava-cat-root { display: block; padding: 0; border-bottom: none; }
.pardava-cat-root .pardava-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
.pardava-cat-list li.pardava-cat-root:last-child > .pardava-cat-row { border-bottom: none; }
.pardava-cat-root > .pardava-cat-row > a { flex-grow: 1; }
.pardava-cat-toggle { background: none; border: none; cursor: pointer; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; padding: 4px; border-radius: 8px; transition: var(--transition); flex-shrink: 0; }
.pardava-cat-toggle:hover { background: var(--light-blue); color: var(--red); }
.pardava-cat-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.pardava-cat-toggle .material-symbols-outlined { font-size: 20px; transition: transform 0.25s ease; }
.pardava-cat-root.open > .pardava-cat-row .pardava-cat-toggle .material-symbols-outlined { transform: rotate(180deg); }
.pardava-cat-sub { list-style: none; margin: 0; padding: 2px 16px 6px 0; display: none; }
.pardava-cat-root.open > .pardava-cat-sub { display: block; }
.pardava-cat-sub li { padding: 7px 0; font-size: 0.85rem; }
.pardava-cat-sub li > a::before { content: "└ "; color: var(--text-muted); opacity: 0.6; }
.pardava-cat-sub li:last-child { border-bottom: none; }
.pardava-cats-more { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--light-blue); border: none; color: var(--red); font: inherit; font-weight: 700; font-size: 0.85rem; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: var(--transition); }
.pardava-cats-more:hover { background: #e3e8fc; }
.pardava-cats-more:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.pardava-cats-more .material-symbols-outlined { font-size: 20px; transition: transform 0.25s ease; }
.pardava-cats-more.open .material-symbols-outlined { transform: rotate(180deg); }
.pardava-banner-widget { background: linear-gradient(135deg, var(--dark-blue), #2a2b4d); color: white; text-align: center; padding: 30px 20px; border-radius: 16px; overflow: hidden; position: relative; }
.pardava-banner-widget h3 { font-size: 1.2rem; margin-bottom: 10px; position: relative; z-index: 2; }
.pardava-banner-widget p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 20px; position: relative; z-index: 2; }
.pardava-banner-widget a,
.pardava-banner-widget button { background: var(--yellow); color: var(--dark-blue); padding: 10px 25px; border-radius: 10px; font-weight: 800; display: inline-block; position: relative; z-index: 2; }

/* Products */
.pardava-section-header { background: var(--white); padding: 18px 25px; border-radius: 16px; box-shadow: var(--shadow-sm); font-size: 1.2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; font-weight: 800; }
/* عنوان h2 واقعی داخل سربرگ بخش — ارث‌بری ظاهر تا چیدمان قبلی حفظ بماند (سئو: h1←h2←h3) */
.pardava-section-title { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
/* تسک ۶۰ — تیتر درخشان و تپندهٔ بخش کالاهای صفحهٔ اصلی (فقط همین بخش): اندازهٔ فونت/جعبه ثابت */
.pardava-glow-title { animation: glowTitleHalo 2.6s ease-in-out infinite; }
.pardava-glow-text { background: linear-gradient(90deg, var(--red) 0%, #e64560 22%, #f6a13c 50%, var(--red) 78%, #d61f3e 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: glowTextShift 4.5s linear infinite; }
.pardava-glow-title .material-symbols-outlined { animation: glowFlame 1.5s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes glowTitleHalo { 0%, 100% { filter: drop-shadow(0 0 0 rgba(214, 31, 62, 0)); } 50% { filter: drop-shadow(0 0 6px rgba(214, 31, 62, 0.5)); } }
@keyframes glowTextShift { 0% { background-position: 0% 50%; } 100% { background-position: -220% 50%; } }
@keyframes glowFlame { 0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); } 50% { transform: scale(1.17) rotate(-5deg); filter: brightness(1.3) drop-shadow(0 0 5px rgba(255, 140, 60, 0.8)); } }
@media (prefers-reduced-motion: reduce) {
  .pardava-slide-btn, .pardava-slide-btn::after,
  .pardava-glow-title, .pardava-glow-text,
  .pardava-glow-title .material-symbols-outlined { animation: none !important; }
}
.pardava-section-more { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 0.85rem; font-weight: 700; color: var(--red); padding: 6px 12px; border-radius: 8px; transition: var(--transition); white-space: nowrap; }
.pardava-section-more:hover { background: var(--light-blue); }
.pardava-section-more .material-symbols-outlined { font-size: 18px; }
.pardava-home-cats .pardava-mega-categories { margin-bottom: 35px; }
.pardava-tabs { display: flex; gap: 10px; margin-right: auto; }
.pardava-tab-btn { color: var(--text-muted); font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; font-weight: 600; transition: var(--transition); }
.pardava-tab-btn.pardava-active, .pardava-tab-btn:hover { background: var(--light-blue); color: var(--red); }

.pardava-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 50px; }
.pardava-product-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; position: relative; min-width: 0; }
.pardava-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pardava-product-img { height: 220px; overflow: hidden; position: relative; background: #F8F8FA; display: flex; align-items: center; justify-content: center; }
/* بنر پیش‌فرض خودکار کارت کالای بی‌تصویر — گرادیان برند + نشان فروشگاه؛ فقط CSS (کم‌حجم) با فونت خود سایت */
.pardava-product-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(155deg, #F5F6FE 0%, #FBEFF0 58%, #F5F6FE 100%); }
.pardava-product-ph .material-symbols-outlined { font-size: 46px; color: var(--red); opacity: .32; }
.pardava-product-ph-brand { font-size: .72rem; font-weight: 800; color: var(--text-main); background: rgba(255,255,255,.8); border: 1px solid var(--border-color); border-radius: 999px; padding: 3px 12px; max-width: 86%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pardava-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pardava-product-card:hover .pardava-product-img img { transform: scale(1.08); }
.pardava-discount-tag { position: absolute; top: 15px; right: 15px; background: var(--red); color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 800; z-index: 2; }
.pardava-quick-actions { position: absolute; left: 15px; top: 15px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateX(-10px); transition: var(--transition); z-index: 2; }
.pardava-product-card:hover .pardava-quick-actions { opacity: 1; transform: translateX(0); }
.pardava-q-btn { width: 38px; height: 38px; background: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); color: var(--text-main); transition: var(--transition); }
.pardava-q-btn:hover { background: var(--red); color: white; }
.pardava-product-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.pardava-product-name { font-size: 0.9rem; font-weight: 500; height: 45px; overflow: hidden; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pardava-product-brand { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 8px; }
.pardava-price-container { margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 12px; display: flex; flex-direction: column; align-items: flex-end; }
.pardava-old-price { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.pardava-current-price { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.pardava-card-actions { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.pardava-add-cart-btn { flex: 1; min-width: 0; background: var(--light-blue); color: var(--red); padding: 10px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 5px; transition: var(--transition); }
.pardava-product-card:hover .pardava-add-cart-btn { background: var(--red); color: white; }
/* دکمهٔ کوچک «افزودن به سبد خرید» کنار مشاهده و خرید — در کارت محصول */
.pardava-mini-cart-btn { flex: 0 0 42px; width: 42px; border: 0; cursor: pointer; background: var(--red); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: var(--transition); box-shadow: var(--shadow-sm); }
.pardava-mini-cart-btn:hover { background: #a00e24; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pardava-mini-cart-btn:disabled { opacity: .65; cursor: wait; transform: none; }

/* Special offer */
.pardava-special-offer-banner { background: var(--white); border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; box-shadow: var(--shadow-md); overflow: hidden; position: relative; }
.pardava-special-offer-banner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, var(--red), #ff6b81); z-index: 0; }
.pardava-offer-content { position: relative; z-index: 1; color: white; max-width: 400px; }
.pardava-offer-kicker { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; margin-bottom: 12px; }
.pardava-offer-kicker .material-symbols-outlined { font-size: 16px; }
.pardava-offer-content h2 { font-size: 2rem; margin-bottom: 10px; }
.pardava-offer-content p { opacity: 0.9; margin-bottom: 20px; }
.pardava-offer-btn { background: white; color: var(--red); padding: 12px 30px; border-radius: 10px; font-weight: 800; transition: var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.pardava-offer-btn .material-symbols-outlined { font-size: 18px; }
.pardava-offer-btn:hover { transform: scale(1.05); }
.pardava-offer-products { display: flex; gap: 15px; position: relative; z-index: 1; }
.pardava-offer-card { width: 168px; background: var(--white); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.pardava-offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red); }
.pardava-offer-card img { width: 100%; height: 118px; object-fit: cover; background: #f5f5f8; }
/* جای‌نگه‌دار کالای بی‌تصویر در پیشنهاد ویژه — هم‌خانوادهٔ گرادیان بنر کارت‌ها */
.pardava-offer-ph { width: 100%; height: 118px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--red); opacity: .35; background: linear-gradient(155deg, #F5F6FE 0%, #FBEFF0 58%, #F5F6FE 100%); }
.pardava-offer-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pardava-offer-body h3 { font-size: .8rem; font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pardava-offer-price { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.pardava-offer-price span { font-size: .78rem; font-weight: 800; color: var(--text-main); }
.pardava-offer-off { background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.pardava-offer-img-box { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; border: 3px solid white; box-shadow: var(--shadow-sm); background: #f5f5f8; }

/* Blog */
.pardava-blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
/* نوار مرتب‌سازی بلاگ — هم‌خانواده چیپ‌های فروشگاه */
.blog-sortbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--white); border: 1px solid var(--border-color); border-radius: 14px; padding: 10px 16px; margin: 0 0 20px; }
.blog-sortbar-count { font-size: .85rem; color: var(--text-muted); font-weight: 700; }
.blog-sort-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-sort-chips .chip { margin: 0; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 10px; text-decoration: none; }
.blog-sort-chips .chip .material-symbols-outlined { font-size: 16px; }
.blog-sort-chips .chip.current { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }
@media (max-width: 768px) { .blog-sortbar { padding: 9px 12px; } .blog-sortbar-count { flex-basis: 100%; } }
.pardava-blog-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: block; }
.pardava-blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pardava-blog-img { height: 180px; overflow: hidden; position: relative; background: linear-gradient(135deg, #ffeaea, #eaf4ff); }
.pardava-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pardava-blog-card:hover .pardava-blog-img img { transform: scale(1.05); }
.pardava-blog-img span { position: absolute; bottom: 10px; right: 10px; background: var(--red); color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; z-index: 2; }
.pardava-blog-content { padding: 20px; }
.pardava-blog-content h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.5; }
.pardava-blog-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; }

/* Brands */
/* برندهای صفحه اصلی (تسک ۴۹) — گرید کارت یکنواخت به‌جای فلکس درهم */
.pardava-brands-wrap { margin-bottom: 50px; }
.pardava-brands-count { margin-inline-start: auto; font-size: .78rem; font-weight: 700; color: var(--text-muted); background: #f6f6f6; padding: 4px 12px; border-radius: 20px; }
.pardava-brands-section { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }
.pardava-brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.pardava-brand-card { display: flex; align-items: center; justify-content: center; height: 66px; padding: 8px 12px; background: var(--white); border: 1px solid var(--border-color); border-radius: 13px; transition: var(--transition); overflow: hidden; }
.pardava-brand-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(226, 32, 56, .10); }
.pardava-brand-logo img { max-height: 44px; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: var(--transition); }
.pardava-brand-card:hover .pardava-brand-logo img { filter: grayscale(0%); opacity: 1; }
.pardava-brand-name { font-size: .92rem; font-weight: 800; color: var(--text-main); text-align: center; line-height: 1.7; transition: var(--transition); }
.pardava-brand-card:hover .pardava-brand-name { color: var(--red); }

/* Footer */
.pardava-site-footer { background: var(--dark-blue); color: white; margin-top: 50px; }
.pardava-footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.pardava-footer-about p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 15px; line-height: 1.8; }
.pardava-footer-socials { display: flex; gap: 10px; margin-top: 25px; }
.pardava-social-btn { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.pardava-social-btn:hover { background: var(--red); transform: translateY(-3px); }
.pardava-footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.pardava-footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--red); border-radius: 5px; }
.pardava-footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.pardava-footer-col a { color: rgba(255,255,255,0.6); transition: var(--transition); font-size: 0.9rem; }
.pardava-footer-col a:hover { color: var(--red); padding-right: 5px; }
.pardava-newsletter-box input { width: 100%; padding: 12px 15px; border-radius: 10px; border: none; margin-bottom: 10px; font-family: inherit; background: rgba(255,255,255,0.1); color: white; outline: none; }
.pardava-newsletter-box input::placeholder { color: rgba(255,255,255,0.4); }
.pardava-newsletter-box button { width: 100%; padding: 12px; background: var(--red); color: white; border-radius: 10px; font-weight: 700; transition: var(--transition); }
.pardava-newsletter-box button:hover { background: var(--red-hover); }
.pardava-footer-bottom { padding: 25px 0; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.pardava-trust-badges { display: flex; gap: 15px; align-items: center; }
.pardava-trust-badge { width: 60px; height: 60px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; text-align: center; color: rgba(255,255,255,0.6); }

/* فوتر مینیمال: فقط نماد اعتماد الکترونیکی (اینماد) — کد از پنل مدیریت */
.pardava-footer-min { margin-top: 40px; }
.pardava-footer-min-inner { display: flex; justify-content: center; align-items: center; min-height: 88px; padding: 24px 0; text-align: center; }
.pardava-footer-min-inner img { max-width: 125px; height: auto; display: block; margin: 0 auto; }
.pardava-footer-min-inner > div, .pardava-footer-min-inner > a, .pardava-footer-min-inner > table, .pardava-footer-min-inner > span { margin: 0 auto; }
@media (max-width: 768px) { .pardava-footer-min-inner { min-height: 72px; padding: 18px 0; } }

/* فوتر کامل سایت: برند + معرفی، دسترسی سریع، اطلاعات تماس و اینماد.
   قبلاً وقتی کد اینماد تنظیم نشده بود فقط یک نوار تیرهٔ خالی دیده می‌شد. */
.pardava-footer-full { margin-top: 50px; }
.pardava-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr auto; gap: 32px; padding: 44px 0 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.pardava-footer-full h4 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.pardava-footer-full h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; background: var(--red); border-radius: 5px; }
.pf-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pf-brand-row strong { font-size: 1.1rem; }
.pf-logo { max-width: 44px; max-height: 44px; border-radius: 10px; background: white; padding: 4px; }
.pf-logo-letter { width: 44px; height: 44px; border-radius: 10px; background: var(--red); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.pf-about { color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.9; }
.pf-links { display: flex; flex-direction: column; gap: 10px; }
.pf-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); display: inline-block; }
.pf-links a:hover { color: white; padding-right: 5px; }
.pf-contact { display: flex; flex-direction: column; gap: 12px; }
.pf-contact li { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }
.pf-contact .material-symbols-outlined { font-size: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.pf-contact a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.pf-contact a:hover { color: white; }
.pf-enamad-box { background: white; border-radius: 12px; padding: 8px; display: inline-flex; align-items: center; justify-content: center; max-width: 140px; }
.pf-enamad-box img { max-width: 100%; height: auto; }
.pardava-footer-full .pardava-footer-bottom { padding: 16px 0; justify-content: center; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
/* خط اعتبار سازندهٔ سایت — بسیار ظریف، سرمه‌ای مات، ریز؛ پایین‌ترین بخش فوتر */
.pardava-footer-credit { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); padding: 8px 0; text-align: center; }
.pf-credit { margin: 0; font-size: 0.68rem; letter-spacing: 0.2px; color: #66759F; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.pf-credit a { color: inherit; text-decoration: none; transition: var(--transition); }
.pf-credit a:hover { color: #9AA9D0; text-decoration: underline; }
@media (max-width: 576px) { .pardava-footer-credit { padding: 7px 0; } .pf-credit { font-size: 0.63rem; gap: 5px; } }
@media (max-width: 992px) { .pardava-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .pardava-footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; } .pardava-footer-full h4::after { right: auto; left: 0; } }

/* بازگشت به بالا اکنون در پشتهٔ .sticky-contact رندر می‌شود (کلاس .sticky-top) */

/* Shared page helpers (non-home pages) */
.page-card { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); margin: 24px 0; }
.page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.muted, .lead { color: var(--text-muted); }
.err { color: var(--red); }
.ok { color: var(--green); }
.card { background: var(--card); padding: 20px; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.narrow { max-width: 420px; margin: 40px auto; }
label { display: block; margin: 10px 0; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 10px 12px; margin-top: 4px; border: 1px solid var(--border-color); border-radius: 10px; font-family: inherit; font-size: 0.95rem; }
button.primary, .primary-link, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; border: none; cursor: pointer; transition: var(--transition);
}
button.primary:hover, .primary-link:hover, .btn-primary:hover { background: var(--red-hover); }
button.ghost { background: transparent; border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.price { font-size: 1.2rem; font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.chip { display: inline-block; margin: 0 0 8px 8px; padding: 6px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: #fff; font-size: 0.85rem; transition: var(--transition); }
.chip.on, .chip:hover { background: var(--red); color: #fff; border-color: var(--red); }
.product-hero { display: grid; grid-template-columns: 320px 1fr; gap: 28px; }
.imgph { background: #F8F8FA; border-radius: 16px; min-height: 220px; display: grid; place-items: center; color: var(--text-muted); }
.gallery img, .main-img { width: 100%; border-radius: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; }
.specs div { background: var(--light-blue); padding: 10px 12px; border-radius: 10px; }
.specs dt { font-size: 0.75rem; color: var(--text-muted); }
.specs dd { font-weight: 700; }
.video { position: relative; padding-top: 56%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }

/* ===== ویدیو خودمیزبان صفحه معرفی (4:5 عمودی) ===== */
.video-file { max-width: 620px; margin: 0 auto; }
.video-file video { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #0B0709; border-radius: 16px; box-shadow: var(--shadow-md); display: block; }
.vf-actions { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 18px; }
.vf-btn { background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 24px; border-radius: 10px; transition: var(--transition); }
.vf-btn:hover { background: var(--red-hover); color: #fff; transform: translateY(-1px); }
.vf-dl { font-size: .85rem; color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; }
.vf-dl:hover { color: var(--red); }
.vf-dl .material-symbols-outlined { font-size: 18px; }
.totals { list-style: none; padding: 0; }
.search { display: flex; gap: 6px; flex: 1; min-width: 200px; position: relative; }
.prose { margin: 24px 0; line-height: 1.8; }

/* Admin panel */
.admin-body { background: #f0f2f8; min-height: 100vh; display: flex; }
.admin-sidebar {
  width: 260px; background: var(--dark-blue); color: #fff; min-height: 100vh;
  padding: 24px 0; position: sticky; top: 0; align-self: flex-start; flex-shrink: 0;
  /* لینک‌های پایین منو (بکاپ/خروج) وقتی منو بلندتر از صفحه است قابل‌دسترس نبود؛
     سایدبار اکنون مستقل از صفحه اسکرول می‌شود و همه لینک‌ها همیشه در دسترس‌اند */
  max-height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.28) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border-radius: 99px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.45); }
.admin-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 20px 24px; font-weight: 900; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-sidebar .brand .pardava-logo-icon { width: 36px; height: 36px; font-size: 1rem; }
.admin-nav-list { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.admin-nav-list a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition);
}
.admin-nav-list a:hover, .admin-nav-list a.active { background: rgba(166,27,41,0.2); color: #fff; }
.admin-nav-list a .material-symbols-outlined { font-size: 20px; }
/* بج شمارندهٔ کنار آیتم‌های منو (پیام نخوانده / تیکت باز) */
.nav-badge {
  margin-inline-start: auto; background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
}
.sb-collapsed .nav-badge { display: none; }
.admin-main { flex: 1; padding: 28px; min-width: 0; }

/* —— سایدبار جمع‌شونده دسکتاپ (≤1024px موبایل از برگر استفاده می‌کند و این قواعد بی‌اثرند) —— */
.admin-sidebar { transition: margin-inline-start 0.28s ease; }
.sb-toggle {
  position: fixed; top: 18px; inset-inline-start: 246px; z-index: 1200;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dark-blue); color: #fff; border: 2px solid #f0f2f8;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: inset-inline-start 0.28s ease;
}
.sb-toggle .material-symbols-outlined { font-size: 18px; transition: transform 0.28s ease; }
.sb-toggle:hover { background: var(--red); }
@media (min-width: 1025px) {
  .sb-collapsed .admin-sidebar { margin-inline-start: -260px; }
  .sb-collapsed .sb-toggle { inset-inline-start: 12px; }
  .sb-collapsed .sb-toggle .material-symbols-outlined { transform: rotate(180deg); }
}
@media (max-width: 1024px) {
  .sb-toggle { display: none; }
}

/* ============================================================= */
/* ============ ربات راهنمای پنل — دکمه شناور و چت ================ */
/* ============================================================= */
.gb-fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1300;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(166, 27, 41, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gb-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 26px rgba(166, 27, 41, 0.5); }
.gb-fab .material-symbols-outlined { font-size: 28px; }

.gb-panel {
  position: fixed; bottom: 90px; inset-inline-end: 22px; z-index: 1300;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: #fff; border: 1px solid var(--border-color); border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.28);
  display: none; flex-direction: column; overflow: hidden;
}
.gb-panel.gb-open { display: flex; animation: gbIn 0.18s ease-out; }
@keyframes gbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.gb-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--dark-blue); color: #fff; flex-shrink: 0;
}
.gb-head-ic { font-size: 26px; color: #ffd7db; }
.gb-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.gb-head-t b { font-size: 0.92rem; }
.gb-head-t span { font-size: 0.72rem; opacity: 0.75; }
.gb-close { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.gb-close:hover { background: var(--red); }
.gb-close .material-symbols-outlined { font-size: 20px; }

.gb-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: #f6f7fb; }
.gb-msg { display: flex; }
.gb-bot { justify-content: flex-start; }
.gb-user { justify-content: flex-end; }
.gb-bubble {
  max-width: 88%; padding: 9px 12px; border-radius: 14px;
  font-size: 0.82rem; line-height: 1.9; overflow-wrap: anywhere;
}
.gb-bot .gb-bubble { background: #fff; border: 1px solid var(--border-color); border-start-start-radius: 4px; color: var(--ink); }
.gb-user .gb-bubble { background: var(--red); color: #fff; border-end-end-radius: 4px; font-weight: 500; }

.gb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gb-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(166, 27, 41, 0.08); border: 1px solid rgba(166, 27, 41, 0.25);
  color: var(--red); border-radius: 999px; padding: 4px 10px; font-size: 0.74rem; font-weight: 700;
  transition: var(--transition);
}
.gb-link:hover { background: var(--red); color: #fff; }
.gb-link .material-symbols-outlined { font-size: 14px; }

.gb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gb-chip {
  border: 1px dashed var(--border-color); background: #fafbfd; color: var(--text-muted);
  border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; cursor: pointer; transition: var(--transition);
}
.gb-chip:hover { border-color: var(--red); color: var(--red); border-style: solid; }

.gb-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.gb-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: 0.4; animation: gbTyp 1s infinite; }
.gb-typing i:nth-child(2) { animation-delay: 0.18s; }
.gb-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes gbTyp { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 0.9; transform: translateY(-3px); } }

.gb-inputrow { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-color); background: #fff; flex-shrink: 0; }
.gb-inputrow input {
  flex: 1; min-width: 0; border: 1px solid var(--border-color); border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 0.84rem; background: #fafbfd;
}
.gb-inputrow input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(166, 27, 41, 0.12); }
.gb-send {
  width: 42px; height: 42px; border-radius: 12px; border: none; cursor: pointer; flex-shrink: 0;
  background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.gb-send:hover { filter: brightness(1.08); }
.gb-send .material-symbols-outlined { font-size: 20px; }

@media (max-width: 640px) {
  .gb-panel { bottom: 84px; inset-inline-end: 16px; }
  .gb-fab { bottom: 16px; inset-inline-end: 16px; width: 52px; height: 52px; }
}

/* ============================================================= */
/* ============ پنل ادمین — نوار موبایل و گروه‌بندی منو =========== */
/* ============================================================= */
/* نوار بالای موبایل: همبرگر + نام پنل؛ فقط ≤1024px دیده می‌شود */
.admin-mobile-bar {
  display: none; align-items: center; gap: 10px;
  background: var(--dark-blue); color: #fff;
  padding: 8px 14px; position: sticky; top: 0; z-index: 1100;
}
/* اسکریم زیر کشو — در دسکتاپ بی‌اثر */
.admin-scrim { display: none; }
.admin-burger {
  width: 40px; height: 40px; border-radius: 10px; color: #fff;
  background: rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.admin-burger:active { background: var(--red); }
.admin-burger .material-symbols-outlined { font-size: 24px; }
.admin-mobile-title { font-weight: 900; font-size: 0.95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-mobile-bar .role-badge { flex-shrink: 0; }

/* عنوان گروه‌ها داخل منو — هم دسکتاپ هم موبایل، لینک‌ها مرتب و دسته‌بندی‌شده */
.admin-nav-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4); padding: 14px 16px 4px;
  text-transform: none;
}
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }

/* زیرمنوی آبشاری منو — عنوان هر بخش، دکمهٔ باز/بستن زیرمنوی مرتبط خودش است (مرتب و دقیق) */
.nav-drop {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4); padding: 14px 16px 4px; text-transform: none; text-align: start;
  transition: color 0.15s ease;
}
.nav-drop:hover { color: rgba(255, 255, 255, 0.78); }
.nav-drop:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; border-radius: 8px; }
.nav-drop .nav-chev { font-size: 18px; opacity: 0.8; transition: transform 0.2s ease; }
.nav-drop.nav-open { color: rgba(255, 255, 255, 0.6); }
.nav-drop.nav-open .nav-chev { transform: rotate(180deg); }
.admin-nav-group.nav-closed { display: none; }

/* پنل ادمین — حالت موبایل: اسکرول قفل هنگام باز بودن کشو */
html.admin-lock, html.admin-lock body { overflow: hidden; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 1.5rem; font-weight: 800; }

/* نوار خروجی ادمین (اکسل/CSV/گزارش/JSON) */
.export-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.export-bar .export-label { font-size: .85rem; color: var(--text-muted); font-weight: 700; }
.export-bar .chip { margin: 0; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.export-bar .chip .material-symbols-outlined { font-size: 15px; }
.export-bar .chip:hover { transform: translateY(-1px); }

/* فیلتربار سفارش‌ها — هم‌خانواده pl-filterbar کالاها */
.ord-filterbar { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ord-filterbar > select { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; font-family: inherit; font-size: .9rem; }
.ord-filterbar .ord-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; background: #fff; }
.ord-filterbar .ord-search .material-symbols-outlined { color: var(--text-muted); font-size: 20px; }
.ord-filterbar .ord-search input { border: 0; outline: 0; width: 100%; font-family: inherit; font-size: .92rem; }
.ord-filterbar .ord-count { margin-inline-start: auto; font-size: .82rem; }
.ord-table .ord-num { font-weight: 800; white-space: nowrap; }
.ord-table .ord-note { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 0.72rem; font-weight: 700; color: #B98900; cursor: help; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-table .ord-note .material-symbols-outlined { font-size: 14px; }
.ord-table select { padding: 5px 8px; border: 1px solid var(--border-color); border-radius: 8px; background: #fff; font-family: inherit; font-size: .82rem; }
.ord-statusform { display: flex; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat {
  background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid transparent; transition: var(--transition);
}
.admin-stat:hover { border-color: var(--red); transform: translateY(-2px); }
.admin-stat .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.admin-stat .value { font-size: 1.6rem; font-weight: 900; color: var(--text-main); }
.admin-stat .icon { color: var(--red); margin-bottom: 8px; }
.admin-panel { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.admin-panel h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--light-blue); }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 20px; }
.admin-form-grid label.full { grid-column: 1 / -1; }
.admin-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--dark-blue), #2a2b4d); padding: 20px; }
.admin-login-card { background: #fff; border-radius: 20px; padding: 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.admin-login-card h1 { text-align: center; margin-bottom: 8px; }
.admin-login-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }

/* --- Product list: inline instant editing (no submit button) --- */
.pl-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* --- نوار فیلتر حرفه‌ای لیست کالا (سمت سرور) --- */
.pl-filterbar {
  display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border-color);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.plf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plf-row select { width: auto; margin: 0; padding: 8px 10px; border-radius: 10px; }
.pl-price-range { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.pl-price-range input { border: none; outline: none; font: inherit; width: 110px; direction: ltr; text-align: center; }
.pl-price-dash { color: var(--text-muted); font-size: .8rem; }
.plf-actions { border-top: 1px dashed var(--border-color); padding-top: 10px; }
.plf-apply { display: inline-flex; align-items: center; gap: 6px; }
.plf-apply .material-symbols-outlined { font-size: 18px; }
.plf-reset { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--red); border-color: var(--red); }
.plf-reset:hover { background: var(--red); color: #fff; }
.plf-reset .material-symbols-outlined { font-size: 15px; }
.plf-count { margin-inline-start: auto; font-size: .85rem; }
.plf-count b { color: var(--red); }

.pl-search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-color);
  border-radius: 12px; padding: 8px 14px; min-width: 280px; box-shadow: var(--shadow-sm);
}
.pl-search-box .material-symbols-outlined { color: var(--text-muted); font-size: 20px; }
.pl-search-box input { border: none; outline: none; background: transparent; font: inherit; width: 100%; }
.pl-table th { white-space: nowrap; background: var(--light-blue); font-size: 0.76rem; padding: 8px 5px; }
.pl-table td { vertical-align: middle; padding: 8px 5px; }
.pl-product { display: flex; align-items: center; gap: 8px; }
.pl-thumb {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border-color); background: var(--light-blue);
}
.pl-thumb-ph { display: grid; place-items: center; color: var(--text-muted); font-size: 18px; }
.pl-title {
  display: block; max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; font-size: 0.84rem; color: var(--text-main); text-decoration: none;
}
.pl-title:hover { color: var(--red); }
.pl-brand { color: var(--text-muted); font-size: 0.74rem; }
.pl-sku { font-size: 0.72rem; color: var(--text-muted); }
.pl-cell { display: flex; align-items: center; gap: 4px; }
.pl-num {
  width: 96px; padding: 6px 7px; border: 1px solid var(--border-color); border-radius: 10px;
  font: inherit; font-size: 0.84rem; background: #fff; transition: var(--transition);
}
.pl-num:hover { border-color: var(--text-muted); }
.pl-num:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(166,27,41,0.12); }
.pl-num.pl-stock { width: 66px; font-weight: 800; }
.pl-unit { color: var(--text-muted); font-size: 0.7rem; white-space: nowrap; }

/* راهنمای لحظه‌ای فیلدها — چیپ شناور زیر فیلد در حال ویرایش (بدون جابه‌جایی layout) */
.fld-hint {
  position: absolute; top: calc(100% + 4px); inset-inline-start: 0;
  z-index: 80; display: none;
  width: max-content; max-width: min(88vw, 360px);
  background: #fff; border: 1px solid var(--border-color); border-radius: 9px;
  padding: 3px 9px; font-size: 0.72rem; line-height: 1.7; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  pointer-events: none; overflow-wrap: anywhere;
}
.fld-hint.show { display: block; animation: fldHintIn 0.14s ease-out; }
@keyframes fldHintIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.fld-hint:empty { display: none; }
/* داخل چیپ بازه قیمت، زیر ورودی فعال بنشیند نه زیر کل چیپ */
.pl-price-range .fld-hint { top: calc(100% + 2px); }
@media (max-width: 640px) {
  .fld-hint { max-width: 78vw; font-size: 0.68rem; }
}
.pl-cat {
  width: auto; min-width: 108px; margin: 0; padding: 6px 8px; font-size: 0.8rem;
  border: 1px solid var(--border-color); border-radius: 10px; background: #fff; font: inherit;
}
.pl-chip-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  border: 1px solid var(--border-color); border-radius: 10px; padding: 5px 9px;
  background: #fff; font-size: 0.76rem; color: var(--text-muted); transition: var(--transition);
}
.pl-chip-toggle:hover { border-color: var(--text-muted); }
.pl-chip-toggle input[type="checkbox"] {
  appearance: none; width: 15px; height: 15px; border: 1.5px solid var(--border-color);
  border-radius: 5px; cursor: pointer; position: relative; margin: 0; flex-shrink: 0;
}
.pl-chip-toggle input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.pl-chip-toggle input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 2px 3px 4px 3px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.pl-chip-toggle:has(input:checked) { border-color: var(--green); color: var(--green); background: rgba(0,160,73,0.06); }
.pl-status { min-width: 70px; font-size: 0.75rem; white-space: nowrap; }
.pl-status.saving { color: var(--text-muted); }
.pl-status.ok { color: var(--green); font-weight: 700; }
.pl-status.err { color: var(--red); font-weight: 700; }
.pl-table tr.pl-out .pl-stock { color: var(--red); }
.pl-table tr.pl-low .pl-stock { color: #B8860B; }
.pl-table tr.pl-out .pl-title { color: var(--text-muted); }
.pl-toast {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 999;
  background: var(--dark-blue); color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size: 0.85rem; opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: var(--transition); max-width: 340px;
}
.pl-toast.show { opacity: 1; transform: translateY(0); }

/* Ops tree (keep functional) */
.feature-status { list-style: none; padding: 0; }
.feature-status li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.on { color: var(--green); }
.off { color: var(--red); }
.tree { list-style: none; padding: 0 0 0 12px; border-right: 1px dashed var(--border-color); }
.node { display: flex; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.node code { font-size: .78rem; color: var(--text-muted); margin-inline-start: 8px; }

/* —— دکمهٔ باز/بستن شاخه در درخت قابلیت‌ها + نوار ابزار جست‌وجو/مرتب‌سازی —— */
.ft-branch {
  flex-shrink: 0; align-self: center; width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--border-color); background: transparent; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ft-branch:hover { background: rgba(166, 27, 41, 0.12); color: var(--red); border-color: var(--red); }
.ft-branch .material-symbols-outlined { font-size: 18px; transition: transform 0.2s ease; }
.ft-branch-li.ft-collapsed > .node .ft-branch .material-symbols-outlined { transform: rotate(90deg); }
.ft-branch-li.ft-collapsed > ul.tree { display: none; }
li.ft-hide { display: none !important; }

.feat-tools { display: flex; flex-direction: column; gap: 10px; }
/* نوار انتخاب سطح تحت‌مدیریت (مالک: سوپر ادمین / ادمین معمولی) */
.feat-levelbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 14px; }
.feat-levelbar-label { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 800; color: var(--text-main); }
.feat-levelbar-label .material-symbols-outlined { font-size: 18px; color: var(--red); }
.feat-levelbar .chip { margin: 0; text-decoration: none; padding: 7px 16px; border-radius: 10px; font-weight: 700; }
.feat-levelbar .chip.active { background: var(--red); color: #fff; border-color: var(--red); }
/* نوار چیدمان سریع دید ادمین معمولی (فقط کالا/دسته/مقاله) */
.feat-presetbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; border-inline-start: 4px solid var(--red); }
.feat-preset-head { display: flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--text-main); }
.feat-preset-head .material-symbols-outlined { font-size: 20px; color: var(--red); }
.feat-preset-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.feat-preset-actions form { margin: 0; }
.feat-preset-actions .btn-primary { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.feat-preset-actions .chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; text-decoration: none; }
.feat-preset-actions .material-symbols-outlined { font-size: 18px; }
.feat-preset-hint { margin: 0; font-size: .8rem; line-height: 1.9; }
.feat-search-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.feat-search-box {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; max-width: 430px;
  background: var(--card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px;
}
.feat-search-box .material-symbols-outlined { color: var(--text-muted); font-size: 20px; }
.feat-search-box input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: inherit; }
.feat-clear { border: 0; background: transparent; cursor: pointer; color: var(--text-muted); display: inline-flex; padding: 2px; }
.feat-clear:hover { color: var(--red); }
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-chips .chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.feat-sort-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.feat-sort-row label { font-size: 0.85rem; color: var(--text-muted); }
.feat-sort-row select { font: inherit; font-size: 0.85rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--card); color: inherit; cursor: pointer; }
.feat-count { font-size: 0.82rem; color: var(--text-muted); margin-inline-start: auto; }
.feat-empty { margin-top: 6px; }
.badge { font-size: .75rem; margin-inline-start: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

@media (max-width: 1024px) {
  .pardava-main-layout { grid-template-columns: 1fr; }
  .pardava-sidebar { display: none; }
  .pardava-hero-slider { height: 440px; }
  .pardava-slide { padding: 0 56px; }
  .pardava-slide-content { padding: 0; }
  .pardava-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pardava-services-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pardava-honors-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pardava-mega-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pardava-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pardava-offer-products { display: none; }
  /* ---- پنل ادمین: سایدبار به کشوی سمت راست تبدیل می‌شود (جزئیات پایین فایل) ---- */
  .admin-body { flex-direction: column; }
  .admin-mobile-bar { display: flex; }
  .admin-scrim {
    display: block; position: fixed; inset: 0; background: rgba(20,21,40,0.55);
    z-index: 1150; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  }
  .admin-scrim.admin-show { opacity: 1; pointer-events: auto; }
  .admin-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 86vw); min-height: 0;
    transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200; overflow-y: auto; padding: 18px 0 24px; box-shadow: none;
    visibility: hidden;
  }
  .admin-sidebar.admin-open { transform: translateX(0); box-shadow: -16px 0 48px rgba(0,0,0,0.25); visibility: visible; }
  .admin-main { flex: 1; min-width: 0; padding: 16px; }
  .admin-nav-list a { padding: 13px 14px; font-size: .95rem; }
  .admin-nav-list a .material-symbols-outlined { font-size: 22px; }
}
@media (max-width: 768px) {
  .pardava-top-bar { display: none; }
  /* ---- هدر موبایل: ظریف و کم‌ارتفاع، لوگو و متن متناسب با عرض دستگاه ---- */
  .pardava-header-middle { flex-wrap: wrap; padding: 6px 0; gap: 6px; }
  .pardava-logo { font-size: clamp(0.9rem, 3.8vw, 1.1rem); gap: 6px; }
  .pardava-logo-img { height: 25px; border-radius: 7px; }
  .pardava-logo-icon { width: 25px; height: 25px; font-size: 0.8rem; border-radius: 7px; }
  .pardava-logo-text { max-width: 46vw; font-size: 0.95em; }
  /* ---- سرچ در موبایل از هدر حذف شد و به منوی کشویی راست (mnav) منتقل شده ---- */
  .pardava-search-container { display: none; }
  .pardava-search-bar input { padding: 8px 12px; font-size: 0.88rem; }
  .pardava-search-btn { padding: 0 16px; font-size: 1.05rem; }
  .pardava-action-item { font-size: 0.58rem; padding: 3px 4px; gap: 1px; }
  .pardava-action-item .material-symbols-outlined { font-size: 19px; }
  /* ---- منوی دسکتاپ در موبایل خاموش؛ منوی کشویی mnav-* جایگزین می‌شود ---- */
  .pardava-mega-nav { display: none; }
  .pardava-slide-content h2 { font-size: 1.5rem; }
  .pardava-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pardava-products-grid > * { min-width: 0; }
  .pardava-section-header { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .pardava-tabs { margin-right: 0; flex-wrap: wrap; width: 100%; }
  .pardava-footer-main { grid-template-columns: minmax(0, 1fr); }
  .pardava-footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .pardava-services-strip { grid-template-columns: minmax(0, 1fr); }
  .pardava-mega-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pardava-blog-grid { grid-template-columns: minmax(0, 1fr); }
  .pardava-special-offer-banner { flex-direction: column; text-align: center; padding: 20px; }
  .pardava-special-offer-banner::before { width: 100%; height: 100%; opacity: 0.95; }
  .product-hero { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Admin roles & feature priorities ===== */
.role-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; vertical-align: middle; }
.role-badge.owner { background: rgba(196,150,32,.14); color: #8a6a12; border: 1px solid rgba(196,150,32,.45); }
.role-badge.super { background: rgba(166,27,41,.12); color: var(--red); border: 1px solid rgba(166,27,41,.35); }
.role-badge.admin { background: rgba(63,64,100,.12); color: var(--text-muted); border: 1px solid var(--border-color); }
.prio-chip { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 0.72rem; background: rgba(0,160,73,.1); color: var(--green, #00A049); border: 1px solid rgba(0,160,73,.25); margin-inline-start: 6px; }

/* ===== درخت سلسله‌مراتب مدیران (صفحه کاربران ادمین) ===== */
.adm-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-chain-node { padding: 6px 14px; border-radius: 9px; font-weight: 800; font-size: .82rem; border: 1px solid; }
.adm-chain-node.lvl-owner { background: rgba(196,150,32,.14); color: #8a6a12; border-color: rgba(196,150,32,.45); }
.adm-chain-node.lvl-super { background: rgba(166,27,41,.12); color: var(--red); border-color: rgba(166,27,41,.35); }
.adm-chain-node.lvl-admin { background: rgba(63,64,100,.1); color: var(--text-muted); border-color: var(--border-color); }
.adm-chain-arrow { color: var(--text-muted); font-weight: 900; }
.adm-tree-hint { line-height: 2.1; margin-bottom: 16px; }
.adm-tree { display: flex; flex-direction: column; align-items: stretch; }
.adm-tree-level { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 14px 16px; }
.adm-tree-level.adm-level-owner { border-color: rgba(196,150,32,.5); background: linear-gradient(0deg, rgba(196,150,32,.05), #fff); }
.adm-tree-level.adm-level-super { border-color: rgba(166,27,41,.35); }
.adm-level-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.adm-level-count { font-size: .75rem; color: var(--text-muted); }
.adm-manage-link { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; padding: 6px 12px; border-radius: 9px; background: var(--red); color: #fff; font-size: .76rem; font-weight: 700; text-decoration: none; transition: var(--transition); }
.adm-manage-link:hover { background: var(--red-hover); color: #fff; }
.adm-manage-link .material-symbols-outlined { font-size: 16px; }
.adm-level-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-card { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 11px; border: 1px solid var(--border-color); background: #FAFBFD; }
.adm-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--dark-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; }
.adm-name { font-weight: 700; font-size: .84rem; }
.adm-self { background: rgba(0,160,73,.12); color: var(--green, #00A049); border: 1px solid rgba(0,160,73,.3); font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.adm-card-off { opacity: .62; border-style: dashed; }
.adm-level-empty { font-size: .78rem; color: var(--text-muted); font-style: italic; }
.adm-tree-connector { width: 2px; min-height: 22px; margin-inline-start: 44px; background: linear-gradient(180deg, var(--border-color), rgba(166,27,41,.5), var(--border-color)); border-radius: 2px; position: relative; }
.adm-tree-connector::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: -4px; border: 5px solid transparent; border-block: 0; border-top: 7px solid rgba(166,27,41,.5); }
@media (max-width: 640px) { .adm-manage-link { margin-inline-start: 0; } .adm-tree-connector { margin-inline-start: 28px; } }

/* ===== Ops: کلید روشن/خاموش سامانه (فقط سوپر ادمین) ===== */
.ops-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
  padding: 16px 18px; margin: 0 0 22px;
}
.ops-switch.off { border-color: rgba(166,27,41,.45); background: #FDF3F3; }
.ops-switch-info strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.ops-switch-info span { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; line-height: 1.8; }
.ops-switch-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green, #00A049); box-shadow: 0 0 0 4px rgba(0,160,73,.15); flex-shrink: 0; }
.ops-switch.off .ops-switch-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(166,27,41,.15); animation: ops-pulse 1.4s infinite; }
@keyframes ops-pulse { 50% { opacity: .35; } }
.ops-switch-btn {
  display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer;
  border-radius: 12px; padding: 12px 24px; font-weight: 800; font-size: 0.9rem;
  font-family: inherit; color: #fff; background: var(--red); transition: var(--transition, .2s);
}
.ops-switch.on .ops-switch-btn:hover { background: var(--red-hover, #8E1523); }
.ops-switch.off .ops-switch-btn { background: #1E7A46; }
.ops-switch.off .ops-switch-btn:hover { background: #166036; }

/* ===== سوییچ توقف فروش + بنر عمومی آن ===== */
.ops-sales { display: block; }
.ops-sales .ops-sales-form { margin-top: 12px; }
.ops-sales-label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.ops-sales-label textarea { width: 100%; margin-top: 6px; border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 0.88rem; line-height: 1.9; resize: vertical; min-height: 58px; }
.ops-sales-label textarea:focus { outline: 2px solid rgba(166,27,41,.25); border-color: var(--red); }
.ops-sales-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ops-sales-off { background: var(--red); }
.ops-sales-off:hover { background: var(--red-hover, #8E1523) !important; }
.ops-sales-on { background: #1E7A46; }
.ops-sales-on:hover { background: #166036 !important; }
.ops-sales-save { background: #4B5563; font-size: 0.8rem; padding: 12px 18px; }
.ops-sales-save:hover { background: #374151 !important; }

.sales-stop-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: #7A121D; color: #fff; padding: 12px 18px; text-align: center;
  font-size: 0.92rem; font-weight: 700; line-height: 1.9;
  border-bottom: 2px solid rgba(0,0,0,.25);
}
.sales-stop-banner .material-symbols-outlined { font-size: 22px; flex-shrink: 0; }
.sales-stop-banner .ssb-text { max-width: 860px; }
@media (max-width: 576px) { .sales-stop-banner { font-size: 0.84rem; padding: 10px 14px; } }
/* نسخهٔ درون‌صفحه‌ای (جزئیات محصول) — کارت گرد با فاصله، به‌جای نوار تمام‌عرض زیر هدر */
.sales-stop-banner.in-page { border-radius: 14px; border-bottom: none; margin: 4px 0 18px; }

/* ===== Inventory / warehouse forms ===== */
.inventory-form { border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: var(--card); }
.inventory-form h3 { margin: 0 0 12px; font-size: 1rem; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; margin-bottom: 10px; }
.inv-grid label { font-size: 0.82rem; color: var(--text-muted); }
.low-stock-row { background: rgba(166,27,41,.06); }
.stock-low { color: var(--red); font-weight: 800; }
.qty-in { color: #00A049; font-weight: 700; }
.qty-out { color: var(--red); font-weight: 700; }

/* ===== Visits chart ===== */
.visit-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 12px 4px 0; }
.visit-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 10px; }
.visit-bar-fill { width: 100%; min-height: 2px; background: linear-gradient(180deg, var(--red), #b02a3c); border-radius: 6px 6px 0 0; transition: height .3s ease; }
.visit-bar-label { font-size: 0.62rem; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }

/* ===== داشبورد: کارت وضعیت فروش + بنر توقف + نمودارهای ۱۴ روزه ===== */
.dash-stop-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: #7A121D; color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 600; line-height: 1.9; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.dash-stop-banner .material-symbols-outlined { font-size: 22px; flex-shrink: 0; }
/* لینک تنظیمات فروش داخل بنر توقف داشبورد — به سمت چپ می‌چسبد */
.dash-stop-banner .dash-stop-link { margin-inline-start: auto; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.dash-stop-banner .dash-stop-link:hover { background: rgba(255,255,255,.24); }
.dash-stop-banner .dash-stop-link .material-symbols-outlined { font-size: 16px; }
.dash-sales .dash-sales-icon { font-size: 20px; vertical-align: -4px; margin-inline-end: 4px; color: var(--text-muted); }
.dash-sales-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-muted); line-height: 1.9; }
.dash-sales-head span { flex: 1 1 260px; }
.dash-sales-state { font-size: 1.02rem; font-weight: 800; white-space: nowrap; padding: 4px 12px; border-radius: 999px; }
.dash-sales-state.on { color: #1E7A46; background: rgba(0,160,73,.1); }
.dash-sales-state.off { color: var(--red); background: rgba(166,27,41,.1); animation: ops-pulse 1.6s infinite; }
.dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-charts .admin-panel { margin-bottom: 0; }
.visit-chart.compact { height: 120px; }
.visit-chart.compact .visit-bar-label { font-size: 0.58rem; }
.visit-bar-orders .visit-bar-fill { background: linear-gradient(180deg, #2f6fed, #2456b8); }

/* ===== صفحهٔ تنظیمات سایت (/manage/site-settings) — بخش‌بندی مرتب و مرتبط ===== */
.ss-intro { line-height: 2; font-size: 0.88rem; color: var(--text-muted); }
.ss-quicknav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ss-quicknav .chip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.ss-quicknav .chip .material-symbols-outlined { font-size: 17px; }
.ss-sec { scroll-margin-top: 16px; }
.ss-sec .ss-icon { font-size: 20px; vertical-align: -4px; margin-inline-end: 4px; color: var(--text-muted); }
.ss-hint { font-size: 0.78rem; color: var(--text-muted); margin: 8px 0 0; line-height: 1.9; }
.ss-preview-label { font-size: 0.78rem; font-weight: 800; color: var(--text-muted); margin: 12px 0 6px; }
/* پیش‌نمایش بنر مشتری داخل پنل ادمین — همان ظاهر صفحهٔ محصول، کمی جمع‌تر */
.ss-preview { margin: 0 0 4px; border-radius: 12px; }
.ss-preview .ssb-text { max-width: none; }
/* پیامی که مشتری در صفحهٔ پرداخت می‌بیند — شبیه جعبهٔ اطلاع سایت */
.ss-cust-view {
  display: flex; align-items: baseline; gap: 8px;
  background: rgba(47,111,237,.06); border: 1px solid rgba(47,111,237,.18);
  border-radius: 12px; padding: 10px 14px; font-size: 0.84rem; color: var(--text-main); line-height: 1.9;
}
.ss-cust-view .material-symbols-outlined { font-size: 18px; color: #2f6fed; align-self: center; flex-shrink: 0; }
.ss-cust-view b { white-space: nowrap; }

/* ===== Promo banners strip (بخش بنر تبلیغاتی) ===== */
.pardava-promo-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 25px 0; }
.pardava-promo-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); min-height: 130px; }
.pardava-promo-banner:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(166,27,41,.35); }
.pardava-promo-text { position: relative; z-index: 1; min-width: 0; /* متن هرگز وارد حریم تصویر (۴۲٪ چپ) نمی‌شود: ۵۸٪ منهای فاصلهٔ امن */
    max-width: calc(58% - 40px); overflow-wrap: break-word; }
.pardava-promo-text h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.pardava-promo-text p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.pardava-promo-btn { display: inline-block; background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 8px; }
.pardava-promo-banner img { position: absolute; left: 0; top: 0; bottom: 0; height: 100%; width: 42%; object-fit: cover; opacity: .9; border-radius: 0; }

/* ===== صفحه جزئیات محصول (بازطراحی) — هیچ عنصر دایره‌ای ===== */
.pd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.pd-breadcrumb a:hover { color: var(--red); }
.pd-crumb-sep { opacity: .5; }

.pd { padding: 28px; }
.pd-hero { display: grid; grid-template-columns: 400px 1fr; gap: 32px; align-items: start; }
.pd-gallery { position: sticky; top: 16px; min-width: 0; }
.pd-info { min-width: 0; }
.pd-main-img { position: relative; border-radius: 16px; overflow: hidden; background: #F8F8FA; border: 1px solid var(--border-color); }
.pd-main-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pd-off-badge { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 800; padding: 5px 12px; border-radius: 8px; box-shadow: var(--shadow-md); }
/* شبکهٔ چندردیفی بندانگشتی‌ها: هر ردیف به‌اندازهٔ عرض گالری پر می‌شود و هیچ‌چیز از کادر بیرون نمی‌زند */
.pd-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px;
  margin-top: 10px;
}
.pd-thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--border-color); padding: 0; background: #fff; transition: var(--transition); cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: var(--red); }
.pd-thumb-active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(166,27,41,.2); }

/* بنر پیش‌فرض خودکار برای کالاهای بدون تصویر — فقط CSS و متن (کم‌حجم، بدون فایل تصویری و بدون رشد دیسک)
   فونت: هیچ font-family جایگزینی نمی‌شود تا شابنام خود سایت و شکل‌دهی فارسی دست‌نخورده بماند؛ بدون letter-spacing */
.pd-ph-banner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; aspect-ratio: 1 / 1; min-height: 320px; padding: 24px; text-align: center;
  background: linear-gradient(160deg, #F5F6FE 0%, #FBEFF0 52%, #F5F6FE 100%);
  position: relative; overflow: hidden;
}
.pd-ph-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(166,27,41,.055), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(15,15,35,.065), transparent 46%);
}
.pd-ph-ico { position: relative; font-size: 58px; color: var(--red); opacity: .38; }
.pd-ph-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; max-width: 92%; min-width: 0; }
.pd-ph-brand { display: inline-block; background: rgba(166,27,41,.08); color: var(--red); border: 1px solid rgba(166,27,41,.22); border-radius: 999px; padding: 4px 14px; font-size: .78rem; font-weight: 800; }
.pd-ph-title { font-size: 1.02rem; font-weight: 800; line-height: 1.9; color: var(--text-main); overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pd-ph-unit { font-size: .8rem; color: var(--text-muted); }

.pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pd-brand-chip { display: inline-block; background: var(--light-blue); color: var(--red); font-size: 0.8rem; font-weight: 800; padding: 5px 14px; border-radius: 8px; border: 1px solid rgba(166,27,41,.25); }
.pd-sku { font-size: 0.8rem; color: var(--text-muted); }
.pd-title { font-size: 1.45rem; font-weight: 800; line-height: 1.6; margin: 0 0 10px; }
.pd-rating-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pd-rating-link:hover .muted { color: var(--red); }
.stars { color: var(--yellow); letter-spacing: 2px; }
.pd-rating-link .stars i { font-style: normal; font-weight: 800; color: var(--yellow); }
.pd-short { color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; }

.pd-price-box { background: var(--light-blue); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pd-price-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-off-chip { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, var(--red), #d4343f); color: #fff; font-size: 0.82rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(166,27,41,0.28); line-height: 1; }
.pd-off-chip .material-symbols-outlined { font-size: 15px; }
.pd-off-chip[hidden] { display: none; }
.pd-old-price { color: var(--text-muted); font-size: 0.95rem; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.pd-old-price[hidden] { display: none; }
.pd-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-price { font-size: 1.5rem; font-weight: 900; color: var(--dark-blue); }
.pd-has-off .pd-price { color: var(--red); }
.pd-price small { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.pd-price-unit { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.pd-save-line { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #0c7a43; background: #e7f6ee; border: 1px dashed #9fd8b8; border-radius: 10px; padding: 7px 12px; }
.pd-save-line[hidden] { display: none; }
.pd-save-line .material-symbols-outlined { font-size: 18px; }
.pd-save-line b { font-weight: 800; }

.pd-buy-box { border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.pd-add-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.pd-qty { display: flex; align-items: center; gap: 6px; background: var(--light-blue); border: 1px solid var(--border-color); border-radius: 10px; padding: 4px 10px; }
.pd-qty input { width: 64px; border: 0; background: transparent; text-align: center; margin: 0; padding: 6px 0; font-weight: 800; font-size: 1rem; }
.pd-qty span { font-size: 0.8rem; color: var(--text-muted); }
/* دکمه‌های افزایش/کاهش تعداد (+/−) کنار ورودی تعداد در صفحهٔ کالا */
.pd-qty-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #fff; color: var(--red); font-size: 1.15rem; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); padding: 0; }
.pd-qty-btn:hover { background: var(--red); color: #fff; }
.pd-qty-btn:active { transform: scale(.92); }
.pd-add-btn { flex: 1; min-width: 180px; font-size: 1rem; padding: 12px 18px; }
.pd-stock { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; margin-top: 12px; }
.pd-stock-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pd-dot-on { background: var(--green); }
.pd-dot-off { background: var(--red); }
.pd-in-stock { color: var(--green); }
.pd-out-stock { color: var(--red); }
.pd-secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pd-icon-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.pd-icon-btn .material-symbols-outlined { font-size: 18px; color: var(--text-muted); transition: var(--transition); }
/* وضعیت فعال پسندیدن/نشان کردن (AJAX بدون رفرش) — آیکون توپر و رنگ برند */
.pd-icon-btn.is-active { color: var(--red); border-color: rgba(194,17,45,.35); background: #fdecef; }
.pd-icon-btn.is-active .material-symbols-outlined { color: var(--red); font-variation-settings: 'FILL' 1; }
.pd-action-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; line-height: 1; }
.pd-icon-btn.is-active .pd-action-count { background: var(--red); }

.pd-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.pd-trust li { display: flex; align-items: center; gap: 8px; background: var(--light-blue); border-radius: 10px; padding: 10px 12px; font-size: 0.8rem; font-weight: 700; color: var(--text-main); }
.pd-trust .material-symbols-outlined { font-size: 20px; color: var(--red); }

/* تب‌ها */
.pd-tabs { margin-top: 28px; border-top: 2px solid var(--light-blue); padding-top: 16px; }
.pd-tab-btns { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-tab-btn { background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 9px 18px; font-weight: 800; font-size: 0.92rem; color: var(--text-muted); transition: var(--transition); }
.pd-tab-btn:hover { color: var(--red); background: var(--light-blue); }
.pd-tab-btn.pd-tab-btn-active, button.pd-tab-btn.pd-tab-active { background: var(--red); color: #fff; border-color: var(--red); }
button.pd-tab-btn.pd-tab-active:hover { color: #fff; background: var(--red-hover); }
.pd-tab-panel { display: none; }
.pd-tab-panel.pd-tab-active { display: block; animation: pdFade .25s ease; }
@keyframes pdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pd-prose { margin-top: 0; overflow-wrap: break-word; }
/* محتوای غنی توضیحات (خروجی ویرایشگر): سرفصل، فاصله‌ها و حفاظت سرریز — هماهنگ با زبان طراحی سایت */
.pd-prose h2 { font-size: 1.05rem; font-weight: 800; line-height: 1.9; color: var(--text-main); background: var(--light-blue); border-inline-start: 3px solid var(--red); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.pd-prose h3, .pd-prose h4 { font-size: 0.98rem; font-weight: 800; color: var(--dark-blue); margin: 18px 0 8px; line-height: 1.8; }
.pd-prose p { margin: 0 0 12px; line-height: 1.95; }
.pd-prose p:last-child { margin-bottom: 0; }
.pd-prose strong { font-weight: 800; color: var(--text-main); }
.pd-prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-color); }
.pd-prose a { color: var(--red); }
.pd-prose ul, .pd-prose ol { margin: 0 0 12px; padding-inline-start: 22px; }
.pd-prose li { line-height: 1.95; margin-bottom: 4px; }
.pd-prose table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.pd-prose iframe { max-width: 100%; border: 0; }
.pd-spec-table th { width: 220px; background: var(--light-blue); font-weight: 700; }
.pd-spec-table tr:hover td, .pd-spec-table tr:hover th { background: #fafbff; }
.pd-spec-group-title { font-size: 1rem; font-weight: 800; margin: 18px 0 8px; color: var(--dark-blue); }
.pd-spec-preview .pd-spec-group-title:first-child { margin-top: 16px; }
.pd-spec-meta { margin-top: 14px; opacity: .95; }
.pd-spec-table { width: 100%; margin-bottom: 14px; }

/* دیدگاه‌ها + پاسخ ادمین */
.pd-rating-summary { display: flex; align-items: center; gap: 12px; background: var(--light-blue); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; }
.pd-rating-avg { font-size: 1.6rem; font-weight: 900; color: var(--dark-blue); }
.pd-comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.pd-comment { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; }
.pd-comment-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--dark-blue); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; }
.pd-comment-main { flex: 1; min-width: 0; }
.pd-comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.pd-comment-date { font-size: 0.75rem; }
.pd-comment-body { line-height: 1.9; margin: 0 0 8px; }
.pd-admin-reply { background: rgba(0,160,73,.07); border-right: 4px solid var(--green); border-radius: 10px; padding: 10px 14px; margin-top: 8px; }
.pd-admin-reply p { margin: 0 0 4px; line-height: 1.8; }
.pd-reply-label { display: inline-block; font-size: 0.72rem; font-weight: 900; color: var(--green); background: rgba(0,160,73,.12); border-radius: 6px; padding: 2px 10px; margin-bottom: 6px; }
.pd-reply-date { font-size: 0.72rem; }
/* حالت خالی دیدگاه‌ها: کارت لطیف خط‌چین به‌جای متن ساده — هم‌خانواده با کارت‌های سایت */
#pd-comments > p.muted { text-align: center; background: var(--light-blue); border: 1px dashed var(--border-color); border-radius: 12px; padding: 22px 16px; margin-bottom: 16px; font-size: 0.92rem; }
.pd-comment-form h3 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.pd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pd-related h2 { font-size: 1.1rem; font-weight: 800; margin: 26px 0 12px; padding-top: 18px; border-top: 2px solid var(--light-blue); }

/* ===== صفحه مقاله (بازطراحی) ===== */
.art { max-width: 900px; margin: 24px auto; padding: 28px; }
.art-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.art-head { margin-bottom: 16px; }
.art-title { font-size: 1.5rem; font-weight: 800; line-height: 1.7; margin: 10px 0; }
.art-lead { color: var(--text-muted); line-height: 1.9; font-size: 1rem; text-align: justify; }
.art-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.art-actions .pd-icon-btn { background: var(--card); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 14px; }
.art-actions .pd-icon-btn:hover { border-color: var(--red); color: var(--red); }
/* متن مقاله: تراز دوطرفه (justify) — فونت و شکل‌دهی فارسی دست‌نخورده؛ حروف فشرده نمی‌شوند */
.art-prose { border-top: 2px solid var(--light-blue); padding-top: 18px; text-align: justify; text-justify: inter-word; }
.art-prose h2, .art-prose h3, .art-prose h4 { text-align: start; }
.art-comments { max-width: 900px; margin: 0 auto 24px; padding: 28px; }
.art-comments h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--light-blue); }

/* پیام درجای فرم دیدگاه (AJAX بدون رفرش) */
.pd-comment-ajax-status { border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; font-weight: 700; margin: 10px 0 0; }
.pd-comment-ajax-status.is-ok { background: rgba(0,160,73,.08); color: var(--green); border: 1px solid rgba(0,160,73,.25); }
.pd-comment-ajax-status.is-err { background: rgba(194,17,45,.06); color: var(--red); border: 1px solid rgba(194,17,45,.22); }

/* ===== مدیریت دیدگاه‌ها در پنل ادمین ===== */
.comment-admin-list { display: flex; flex-direction: column; gap: 14px; }
.comment-admin-card { background: var(--card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.comment-admin-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.comment-date { font-size: 0.75rem; }
.comment-body { line-height: 1.9; margin-bottom: 10px; }
.comment-admin-reply { background: rgba(0,160,73,.07); border-right: 4px solid var(--green); border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; }
.comment-admin-reply p { margin: 0 0 4px; }
.comment-admin-reply .reply-label { display: inline-block; font-size: 0.72rem; font-weight: 900; color: var(--green); background: rgba(0,160,73,.12); border-radius: 6px; padding: 2px 10px; margin-bottom: 4px; }
.comment-reply-form textarea { margin-top: 0; }
.btn-danger-ghost { color: var(--red); border-color: rgba(166,27,41,.4); margin-top: 8px; }
.btn-danger-ghost:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== CKEditor در پنل ادمین ===== */
.ck-editor__editable_inline { min-height: 260px; direction: rtl; text-align: right; }
.ck.ck-toolbar { direction: ltr; }

@media (max-width: 1024px) {
  .pd-hero { grid-template-columns: 1fr; }
  .pd-gallery { position: static; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .pd { padding: 18px; }
  .pd-form-row { grid-template-columns: 1fr; }
  .pd-price-box, .pd-buy-box { padding: 12px 14px; }
  .pd-add-form { flex-direction: column; }
  .pd-add-btn { width: 100%; }
  /* ---- موبایل: جزئیات محصول — ظرافت تب‌ها/توضیحات/دیدگاه‌ها ---- */
  .pd-breadcrumb { margin: 14px 0 0; font-size: 0.78rem; }
  .pd-title { font-size: 1.25rem; }
  .pd-tab-btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 14px; }
  .pd-tab-btn { text-align: center; padding: 10px 6px; font-size: 0.84rem; border-color: var(--border-color); background: #fff; }
  .pd-prose { font-size: 0.92rem; }
  .pd-prose h2 { font-size: 0.98rem; padding: 10px 12px; }
  .pd-spec-table th { width: 112px; }
  .pd-comments { gap: 10px; }
  .pd-comment { padding: 12px 14px; gap: 10px; border-radius: 12px; }
  .pd-comment-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 0.95rem; }
  .pd-comment-head { gap: 8px; margin-bottom: 4px; }
  .pd-comment-head strong { font-size: 0.9rem; }
  .pd-comment-body { font-size: 0.9rem; line-height: 2; margin-bottom: 6px; }
  .pd-admin-reply { padding: 9px 12px; margin-top: 10px; }
  .pd-rating-summary { flex-wrap: wrap; row-gap: 2px; padding: 11px 14px; }
  .pd-rating-avg { font-size: 1.35rem; }
  .pd-comment-form, .pd-comment-login { padding: 16px; }
  .pd-comment-form .admin-actions .btn-primary { width: 100%; }
}

/* ============ درخت دسته‌بندی — دراپ‌داون منوی «دسته‌بندی کالاها» (دسکتاپ) ============
   ساختار درختی قابل باز شدن: هر شاخه با دکمه pac-toggle باز/بسته می‌شود
   (کلاس cat-open روی li). زیرشاخه‌ها با pac-sub و تورفتگی نمایش داده می‌شوند. */
.pac-root { max-height: min(430px, 68vh); overflow-y: auto; overscroll-behavior: contain; }
.pac-item { position: relative; }
.pac-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 6px; border-radius: 8px; transition: var(--transition); }
.pac-row:hover { background: var(--light-blue); }
.pac-link { flex: 1; min-width: 0; padding: 10px 19px; font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pac-meta { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pac-count { font-size: 0.68rem; color: var(--text-muted); background: #f4f4f6; border-radius: 20px; padding: 2px 8px; font-weight: 700; min-width: 22px; text-align: center; }
.pac-row:hover .pac-count { background: #fff; color: var(--red); }
.pac-toggle { border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px; margin: 3px; border-radius: 8px; color: var(--text-muted); transition: var(--transition); font-family: inherit; }
.pac-toggle:hover { background: var(--red); color: #fff; }
.pac-toggle .material-symbols-outlined { font-size: 20px; transition: transform 0.18s ease; display: block; }
.pac-sub { display: none; margin-right: 13px; padding-right: 10px; border-right: 1px dashed var(--border-color); }
.pac-item.cat-open > .pac-sub { display: block; }
.pac-item.cat-open > .pac-row .pac-toggle .material-symbols-outlined { transform: rotate(-90deg); }
.pac-item.cat-open > .pac-row .pac-toggle { color: var(--red); }
.pac-item.cat-open > .pac-row { background: var(--light-blue); color: var(--red); font-weight: 700; }

/* ============ Content pages (FAQ / Services / Contact / Terms / Video) ============ */
.content-head {
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 28px 30px; margin: 24px 0 20px; display: flex; align-items: center; gap: 16px;
}
/* نسخهٔ فشرده برای همهٔ صفحات فرایند سفارش (سبد/تسویه/پرداخت/وضعیت/پیگیری) */
.content-head.ch-sm { padding: 10px 18px; margin: 10px 0 10px; gap: 10px; }
.content-head.ch-sm .material-symbols-outlined { font-size: 24px; }
.content-head.ch-sm h1 { font-size: 1.08rem; margin-bottom: 1px; }
.content-head.ch-sm p { font-size: 0.8rem; }
@media (max-width: 640px) {
  /* سرصفحهٔ فشرده در موبایل: زیرنویس حذف تا محتوای اصلی در نمای اول جا شود */
  .content-head.ch-sm p { display: none; }
}
.content-head .material-symbols-outlined { font-size: 40px; color: var(--red); }
.content-head h1 { font-size: 1.45rem; font-weight: 900; margin-bottom: 4px; }
.content-head p { color: var(--text-muted); font-size: 0.95rem; }

/* FAQ accordion — square panels, no circles */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border-color); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition);
}
.faq-item[open] { border-color: rgba(166, 27, 41, 0.35); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-symbols-outlined { color: var(--red); transition: transform .25s ease; flex-shrink: 0; }
.faq-item[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--light-blue); }
.faq-body { padding: 0 20px 18px; color: var(--text-muted); line-height: 1.9; border-top: 1px dashed var(--border-color); padding-top: 14px; margin: 0 20px 18px; padding-left: 0; padding-right: 0; }

/* Services grid — rectangular cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 18px; margin-bottom: 28px; }
.svc-card {
  background: var(--white); border: 1px solid var(--border-color); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column; gap: 10px;
}
.svc-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card .svc-icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(166, 27, 41, 0.1);
  color: var(--red); display: flex; align-items: center; justify-content: center;
}
.svc-card .svc-icon .material-symbols-outlined { font-size: 28px; }
.svc-card h3 { font-size: 1.05rem; font-weight: 800; }
.svc-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.9; }

/* Steps strip — numbered rectangles (never circles) */
.svc-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; counter-reset: step; }
.svc-step {
  background: var(--white); border: 1px dashed var(--border-color); border-radius: 14px;
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.svc-step .step-num {
  background: var(--red); color: #fff; font-weight: 900; border-radius: 10px;
  min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.svc-step h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 3px; }
.svc-step p { font-size: 0.82rem; color: var(--text-muted); }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-bottom: 30px; align-items: start; }
.contact-info-card { display: flex; flex-direction: column; gap: 16px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .material-symbols-outlined {
  color: var(--red); background: rgba(166, 27, 41, 0.1); border-radius: 12px;
  padding: 10px; font-size: 22px; flex-shrink: 0;
}
.contact-line h4 { font-size: 0.88rem; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.contact-line p, .contact-line a { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.contact-line a:hover { color: var(--red); }
.contact-form-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.contact-form-card .muted { margin-bottom: 18px; font-size: 0.88rem; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 700; }
.contact-form input, .contact-form textarea {
  border: 2px solid var(--border-color); border-radius: 12px; padding: 12px 15px;
  font-family: inherit; font-size: 0.92rem; outline: none; transition: var(--transition); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.1); }
.contact-alert {
  background: rgba(0, 160, 73, 0.1); border: 1px solid rgba(0, 160, 73, 0.35); color: var(--green);
  padding: 13px 18px; border-radius: 12px; font-weight: 700; font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.contact-alert-err { background: rgba(166, 27, 41, 0.08); border-color: rgba(166, 27, 41, 0.4); color: var(--red); }

/* ---- کپچای تصویری خودمیزبان (فرم تماس + ثبت دیدگاه) ---- */
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.captcha-row { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: rgba(30, 42, 68, 0.04); border: 1px dashed rgba(30, 42, 68, 0.25); border-radius: 12px; }
.captcha-label { font-size: 0.82rem; font-weight: 700; color: var(--text-main); }
.captcha-controls { display: flex; align-items: center; gap: 8px; }
.captcha-img { display: block; border-radius: 9px; border: 1px solid var(--border-color); background: #fff; user-select: none; max-width: 100%; }
.captcha-refresh { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-color); background: #fff; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); }
.captcha-refresh:hover { color: var(--red); border-color: var(--red); }
.captcha-refresh .material-symbols-outlined { font-size: 19px; }
.captcha-input { max-width: 220px; letter-spacing: 3px; font-weight: 800; font-size: 1rem; }
.pd-comment-form .captcha-row { background: #fff; }
@media (max-width: 480px) { .captcha-input { max-width: 100%; } }

/* Terms article */
.terms-card h2 { font-size: 1.05rem; font-weight: 800; margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; }
.terms-card h2:first-of-type { margin-top: 0; }
.terms-card h2 .terms-num {
  background: rgba(166, 27, 41, 0.1); color: var(--red); border-radius: 8px;
  min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.terms-card p { color: var(--text-muted); line-height: 2; margin-bottom: 6px; }

/* Content CTA strip */
.content-cta {
  background: linear-gradient(135deg, var(--dark-blue), #23234a); color: #fff;
  border-radius: 16px; padding: 26px 30px; display: flex; justify-content: space-between;
  align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 40px;
}
.content-cta h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.content-cta p { color: #b9bad0; font-size: 0.88rem; }
.content-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.content-cta .btn-ghost {
  border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 10px 22px; border-radius: 12px;
  font-weight: 700; font-size: 0.9rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.content-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }
.content-cta .btn-solid { background: var(--red); color: #fff; padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.content-cta .btn-solid:hover { background: var(--red-hover); }

/* Empty state */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state .material-symbols-outlined { font-size: 48px; color: var(--border-color); margin-bottom: 10px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .content-head { padding: 20px; }
}

/* ============================================================= */
/* اتوکامپلیت جست‌وجو (sg-*) — سریع، مرتب، با کیبورد و هایلایت    */
/* ============================================================= */
.sg-box { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; display: none; max-height: min(480px, 60vh); overflow-y: auto; padding: 6px; }
.sg-box.sg-on { display: block; }
.sg-box::-webkit-scrollbar { width: 8px; }
.sg-box::-webkit-scrollbar-thumb { background: #d8d9e8; border-radius: 4px; }
.sg-section-title { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); padding: 10px 12px 4px; letter-spacing: 0.2px; }
.sg-section-title .material-symbols-outlined { font-size: 15px; color: var(--red); }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background 0.15s ease; position: relative; }
.sg-item:hover, .sg-item.sg-active { background: var(--light-blue); }
.sg-item.sg-active { outline: 2px solid rgba(166, 27, 41, 0.35); outline-offset: -2px; }
.sg-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-color); flex-shrink: 0; background: #fff; }
.sg-thumb.sg-ph { display: flex; align-items: center; justify-content: center; font-size: 24px; color: #b9bad0; background: var(--light-blue); }
.sg-ico { font-size: 20px; color: var(--red); background: var(--light-blue); border-radius: 8px; padding: 11px; flex-shrink: 0; }
.sg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-title { font-size: 0.88rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-title mark { background: var(--yellow); color: var(--dark-blue); border-radius: 3px; padding: 0 1px; }
.sg-sub { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.sg-price { font-size: 0.82rem; font-weight: 800; color: var(--text-main); white-space: nowrap; }
.sg-stock { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.sg-stock.sg-on-stock { color: var(--green); background: rgba(0, 160, 73, 0.1); }
.sg-stock.sg-off-stock { color: var(--red); background: rgba(166, 27, 41, 0.08); }
.sg-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 4px 2px; padding: 10px; border-top: 1px solid var(--border-color); font-size: 0.82rem; font-weight: 700; color: var(--red); border-radius: 10px; }
.sg-all .material-symbols-outlined { font-size: 16px; }
.sg-all:hover, .sg-all.sg-active { background: var(--light-blue); }
.sg-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; font-size: 0.86rem; color: var(--text-muted); text-align: center; }
.sg-state .material-symbols-outlined { font-size: 30px; color: #c3c4d8; }
.sg-state.sg-loading { flex-direction: row; justify-content: center; padding: 20px; }
.sg-hint { font-size: 0.75rem; color: #a0a1b8; }
.sg-spin { width: 18px; height: 18px; border: 2.5px solid var(--border-color); border-top-color: var(--red); border-radius: 50%; animation: sg-rotate 0.7s linear infinite; display: inline-block; }
@keyframes sg-rotate { to { transform: rotate(360deg); } }
.sg-empty b { color: var(--text-main); }

/* ============================================================= */
/* صفحه مقایسه کالاها (cmp-*) — جدول تمیز، بدون دایره             */
/* ============================================================= */
.cmp-page { padding: 24px 0 48px; }
.cmp-count { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; background: var(--light-blue); color: var(--red); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 8px; }
.cmp-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--shadow-sm); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid #EEF0F8; font-size: 0.88rem; vertical-align: middle; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table tbody tr:nth-child(odd) { background: #FAFBFF; }
.cmp-table tbody th[scope="row"] { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); background: #fff; position: sticky; right: 0; border-left: 1px solid var(--border-color); white-space: nowrap; min-width: 150px; }
.cmp-label-col { position: sticky; right: 0; background: #fff; border-left: 1px solid var(--border-color); min-width: 150px; }
.cmp-head-cell { position: relative; padding-top: 46px !important; vertical-align: top !important; min-width: 220px; background: #fff; }
.cmp-remove-form { display: contents; }
.cmp-remove { position: absolute; top: 10px; left: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: rgba(166, 27, 41, 0.08); color: var(--red); border-radius: 8px; transition: var(--transition); }
.cmp-remove:hover { background: var(--red); color: #fff; }
.cmp-remove .material-symbols-outlined { font-size: 18px; }
.cmp-product { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cmp-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border-color); }
.cmp-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 40px; color: #b9bad0; background: var(--light-blue); }
.cmp-product-title { font-size: 0.9rem; font-weight: 800; color: var(--text-main); text-align: center; line-height: 1.5; }
.cmp-product:hover .cmp-product-title { color: var(--red); }
.cmp-product-brand { display: inline-block; font-size: 0.74rem; color: var(--text-muted); background: var(--light-blue); padding: 2px 10px; border-radius: 6px; }
.cmp-table td { font-weight: 600; color: var(--text-main); }
.cmp-best { background: rgba(0, 160, 73, 0.06) !important; }
.cmp-best-badge { display: inline-block; margin-right: 8px; font-size: 0.68rem; font-weight: 800; color: #fff; background: var(--green); padding: 2px 10px; border-radius: 6px; }
.cmp-chip { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 8px; }
.cmp-chip.cmp-in-stock { color: var(--green); background: rgba(0, 160, 73, 0.1); }
.cmp-chip.cmp-out-stock { color: var(--red); background: rgba(166, 27, 41, 0.08); }
.cmp-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.cmp-add-form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 300px; max-width: 560px; position: relative; }
.cmp-add-label { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.cmp-add-label .material-symbols-outlined { font-size: 20px; color: var(--red); }
.cmp-add-form input[type="text"] { flex: 1; border: 2px solid var(--border-color); border-radius: 10px; padding: 11px 14px; font-family: inherit; font-size: 0.88rem; outline: none; background: #fff; transition: var(--transition); min-width: 200px; }
.cmp-add-form input[type="text"]:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.1); }
.cmp-add-btn { background: var(--red); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 11px 22px; border-radius: 10px; transition: var(--transition); }
.cmp-add-btn:hover { background: var(--red-hover); }
.cmp-full-note { font-size: 0.82rem; color: var(--text-muted); background: var(--light-blue); padding: 10px 16px; border-radius: 10px; }
.cmp-clear { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--red); border: 1.5px solid rgba(166, 27, 41, 0.4); background: #fff; padding: 10px 18px; border-radius: 10px; transition: var(--transition); }
.cmp-clear:hover { background: var(--red); color: #fff; border-color: var(--red); }
.cmp-clear .material-symbols-outlined { font-size: 18px; }
.cmp-empty { background: #fff; border: 1.5px dashed var(--border-color); border-radius: 16px; text-align: center; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cmp-empty-icon { font-size: 52px; color: #c9cad9; }
.cmp-empty h2 { font-size: 1.15rem; font-weight: 800; color: var(--text-main); }
.cmp-empty p { max-width: 480px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.9; }
.cmp-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 12px 28px; border-radius: 12px; margin-top: 6px; transition: var(--transition); }
.cmp-cta:hover { background: var(--red-hover); transform: translateY(-1px); }
.cmp-cta .material-symbols-outlined { font-size: 20px; }

/* --- موبایل مقایسه: چیدمان کارتی (نوار کالاها + کارت هر ویژگی) — جدول فقط دسکتاپ --- */
.cmp-mobile { display: none; }
.cmp-table tbody tr { transition: background .15s ease; }
.cmp-table tbody tr:hover td { background: #F6F8FF; }
@media (max-width: 720px) {
  .cmp-scroll { display: none; }
  .cmp-mobile { display: block; }
  .pardava-honors-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pardava-honor { padding: 12px 8px; }
  .pardava-offer-products { display: none; }
  .cmp-m-head { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
  .cmp-m-product { position: relative; flex: 0 0 46%; max-width: 190px; scroll-snap-align: start; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 10px 10px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 7px; }
  .cmp-m-remove-form { display: contents; }
  .cmp-m-remove { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(166, 27, 41, 0.08); color: var(--red); border-radius: 8px; transition: var(--transition); }
  .cmp-m-remove:active { background: var(--red); color: #fff; }
  .cmp-m-remove .material-symbols-outlined { font-size: 15px; }
  .cmp-m-link { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
  .cmp-m-thumb { width: 78px; height: 78px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-color); }
  .cmp-m-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 34px; color: #b9bad0; background: var(--light-blue); }
  .cmp-m-title { font-size: .78rem; font-weight: 800; color: var(--text-main); text-align: center; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cmp-m-brand { font-size: .68rem; font-weight: 700; color: var(--text-muted); background: var(--light-blue); padding: 2px 9px; border-radius: 6px; }
  .cmp-m-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
  .cmp-m-row { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 11px 12px 8px; box-shadow: var(--shadow-sm); }
  .cmp-m-label { margin: 0 0 4px; font-size: .82rem; font-weight: 800; color: var(--red); display: flex; align-items: center; gap: 7px; }
  .cmp-m-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
  .cmp-m-val { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-bottom: 1px dashed #EEF0F8; font-size: .82rem; font-weight: 600; color: var(--text-main); }
  .cmp-m-val:last-child { border-bottom: none; }
  .cmp-m-val.is-best { background: rgba(0, 160, 73, 0.07); border-radius: 9px; padding: 7px 8px; border-bottom: none; }
  .cmp-m-mini { width: 24px; height: 24px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color); flex: none; }
  .cmp-m-mini-ph { display: flex; align-items: center; justify-content: center; font-size: 13px; color: #b9bad0; background: var(--light-blue); }
  .cmp-m-text { flex: 1; min-width: 0; }
  .cmp-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cmp-add-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; min-width: 0; max-width: none; }
  .cmp-add-label { grid-column: 1 / -1; white-space: normal; }
  .cmp-add-form input[type="text"] { min-width: 0; width: 100%; }
  .cmp-clear { justify-content: center; }
}

/* دکمه مقایسه روی کارت محصول (فرم داخل پوش اکشن‌ها) */
.pardava-quick-actions form.pardava-q-form { display: contents; }

@media (max-width: 768px) {
  .cmp-head-cell { min-width: 170px; padding-top: 42px !important; }
  .cmp-thumb { width: 72px; height: 72px; }
  .cmp-actions { flex-direction: column; align-items: stretch; }
  .cmp-add-form { max-width: none; }
  .cmp-add-label { white-space: normal; }
}

/* ============ حساب کاربری / سبد / تسویه / پیگیری (بازطراحی) ============ */
.acct-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; margin-top: 18px; }
.acct-main-col { display: flex; flex-direction: column; gap: 20px; }
.page-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.page-card h2 .material-symbols-outlined { color: var(--red); font-size: 22px; }
.acct-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.acct-form p.muted { margin: 0; font-size: 0.85rem; }
.acct-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 26px; font-weight: 700; font-family: inherit; }
.acct-alert-err { background: rgba(166, 27, 41, 0.08); color: var(--red); }
.acct-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.8rem; margin: 4px 0; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-google-btn { width: 100%; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 12px; padding: 11px; font-family: inherit; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: var(--transition); }
.acct-google-btn:hover { border-color: var(--red); color: var(--red); }
.acct-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.acct-benefits li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink); background: var(--light-blue); border-radius: 10px; padding: 11px 14px; font-weight: 500; }
.acct-benefits li .material-symbols-outlined { color: var(--green); font-size: 20px; }
.acct-guest-track { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.acct-guest-track p { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.acct-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.acct-chip.is-done { background: rgba(0, 160, 73, 0.1); color: var(--green); }
.acct-chip.is-wait { background: rgba(255, 200, 0, 0.15); color: #B98900; }
.acct-chip.is-info { background: rgba(63, 64, 100, 0.08); color: var(--text-main); }
.acct-chip.is-fail { background: rgba(166, 27, 41, 0.1); color: var(--red); }
.acct-avatar { width: 64px; height: 64px; border-radius: 16px; background: var(--red); color: #fff; font-size: 1.6rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.acct-profile-card { text-align: center; }
.acct-profile-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.acct-phone { color: var(--muted); font-size: 0.9rem; margin: 0 0 16px; }
.acct-orders-table { width: 100%; border-collapse: collapse; }
.acct-orders-table th { text-align: right; font-size: 0.8rem; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.acct-orders-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 0.88rem; vertical-align: middle; }
.acct-order-link { font-weight: 800; color: var(--red); }

/* Login / signup — single card, two-step OTP flow */
.acct2-wrap { display: flex; justify-content: center; padding: 28px 0 8px; }
.acct2-card { width: 100%; max-width: 420px; margin: 0; padding: 30px 26px; }
.acct2-head { text-align: center; margin-bottom: 20px; }
.acct2-badge {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
  background: linear-gradient(135deg, var(--red), #C43A47); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.acct2-badge .material-symbols-outlined { font-size: 30px; }
.acct2-head h1 { font-size: 1.2rem; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.acct2-sub { font-size: 0.85rem; color: var(--muted); margin: 0; }
.acct2-form { display: flex; flex-direction: column; gap: 12px; }
.acct2-hidden { display: none !important; }
.acct2-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.acct2-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--light-blue);
  padding: 13px 16px; font-size: 1.05rem; font-weight: 700; font-family: inherit; letter-spacing: 1px;
  transition: var(--transition); text-align: center;
}
.acct2-input:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.08); }
.acct2-otp {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: var(--light-blue);
  padding: 14px 16px; font-size: 1.5rem; font-weight: 800; font-family: inherit;
  letter-spacing: 14px; text-indent: 14px; text-align: center; transition: var(--transition);
}
.acct2-otp:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.08); }
.acct2-otp::placeholder { letter-spacing: 8px; text-indent: 8px; color: #C4C5D6; }
.acct2-btn { width: 100%; border-radius: 12px; padding: 13px; font-size: 0.95rem; font-weight: 800; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.acct2-btn .material-symbols-outlined { font-size: 20px; }
.acct2-btn.is-busy { opacity: 0.6; pointer-events: none; }
.acct2-alert { margin-top: 2px; }
.acct2-alert.is-err { background: rgba(166, 27, 41, 0.08); border-color: rgba(166, 27, 41, 0.3); color: var(--red); }
.acct2-alert.is-ok { background: rgba(0, 160, 73, 0.1); border-color: rgba(0, 160, 73, 0.35); color: var(--green); }
.acct2-sent { font-size: 0.85rem; color: var(--ink); background: var(--light-blue); border-radius: 10px; padding: 11px 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.acct2-sent bdi { font-weight: 800; }
.acct2-linkbtn { color: var(--red); font-weight: 800; font-size: 0.8rem; padding: 0; }
.acct2-linkbtn:hover { text-decoration: underline; }
.acct2-resend { display: flex; align-items: center; justify-content: center; min-height: 22px; }
.acct2-cd { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.acct2-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.78rem; margin: 18px 0 10px; }
.acct2-or::before, .acct2-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct2-google { width: 100%; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 12px; padding: 11px; font-family: inherit; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.acct2-google:hover { border-color: var(--red); color: var(--red); }
.acct2-foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.74rem; color: var(--muted); margin-top: 20px; text-align: center; }
.acct2-foot .material-symbols-outlined { font-size: 15px; color: var(--green); }
.acct2-track { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; transition: var(--transition); }
.acct2-track:hover { color: var(--red); }
.acct2-track .material-symbols-outlined { font-size: 17px; }
.pardava-action-item.is-logged-in { color: var(--red); background: rgba(166, 27, 41, 0.06); border-radius: 10px; }

/* سبد خرید */
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; margin-top: 18px; }
.cart-items-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cart-items-head h2 { margin: 0; }
.cart-count-chip { background: var(--light-blue); color: var(--text-main); font-size: 0.78rem; font-weight: 700; border-radius: 8px; padding: 4px 12px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--light-blue); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .imgph { color: var(--muted); }
.cart-title { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.cart-unit { margin: 0; font-size: 0.8rem; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cart-qty-btn { background: var(--white); border: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); transition: var(--transition); }
.cart-qty-btn:hover:not(:disabled) { background: var(--light-blue); color: var(--red); }
.cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart-qty-btn .material-symbols-outlined { font-size: 17px; }
.cart-qty-num { min-width: 40px; text-align: center; font-weight: 800; font-size: 0.95rem; }
.cart-line-price { font-weight: 800; color: var(--ink); font-size: 0.95rem; white-space: nowrap; }
.cart-remove-form { margin: 0; }
.cart-totals { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-totals li { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--muted); }
.cart-totals li b { color: var(--ink); }
.cart-total-row { border-top: 1px dashed var(--line); padding-top: 12px; font-size: 1rem !important; }
.cart-total-row b { color: var(--red) !important; font-size: 1.1rem; }
.cart-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 12px; padding: 13px; font-weight: 700; }
.cart-continue { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 0.85rem; transition: var(--transition); }
.cart-continue:hover { color: var(--red); }
.cart-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 12px; padding: 13px; font-weight: 700; }

/* تسویه / تخفیف */
.co-discount b { color: var(--green) !important; }
.co-tax-note { font-size: 0.8rem; }
.co-coupon-box { background: var(--light-blue); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.co-coupon-box h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.9rem; color: var(--ink); }
.co-coupon-form { display: flex; gap: 8px; }
.co-coupon-form input { flex: 1; min-width: 0; }
.co-coupon-form .primary { padding: 10px 20px; border-radius: 10px; }
.co-coupon-box .ok, .co-coupon-box .err { margin: 8px 0 0; font-size: 0.82rem; }

/* پیگیری / خبرنامه / سفارش / پرداخت */
.track-form-card { margin-top: 18px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.track-result-card { margin-top: 18px; }
.track-result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.track-result-head h2 { margin: 0; }
.track-result-card h3 { font-size: 0.95rem; margin: 18px 0 10px; }
.subscribe-card { max-width: 560px; margin-top: 18px; }
.subscribe-form { gap: 12px; }
.ot-banner { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.ot-banner .material-symbols-outlined { font-size: 28px; }
.ot-banner h3 { margin: 0 0 4px; font-size: 1rem; }
.ot-banner p { margin: 0; font-size: 0.85rem; }
.ot-ok { background: rgba(0, 160, 73, 0.08); color: var(--green); }
.ot-ok p { color: var(--muted); }
.ot-wait { background: rgba(255, 200, 0, 0.12); color: #B98900; }
.ot-wait p { color: var(--muted); }
.ot-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.ot-actions .cart-cta { width: auto; padding: 11px 22px; }
.wishlist-remove { margin-top: 8px; }
.wishlist-remove .btn-danger-ghost { width: 100%; justify-content: center; }
.btn-danger-ghost { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) {
  .acct-grid, .cart-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto; row-gap: 10px; }
  .cart-thumb { width: 56px; height: 56px; }
  .cart-line-price { grid-column: 2; }
  .cart-remove-form { grid-column: 3; }
  .track-form { grid-template-columns: 1fr; }
}

/* Contact map card */
.contact-map-card { margin-bottom: 40px; padding: 20px; }
.contact-map-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.contact-map-head h2 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.contact-map-head h2 .material-symbols-outlined { color: var(--red); font-size: 24px; }
.contact-map-directions {
  display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff;
  padding: 9px 20px; border-radius: 12px; font-weight: 700; font-size: 0.88rem; transition: var(--transition);
  border: 0; cursor: pointer; font-family: inherit;
}
.contact-map-directions:hover { background: var(--red-hover); }

/* ── مودال انتخاب سرویس مسیریابی (نشان/بلد/گوگل/وایز/OSM) — باز/بسته در site.js ── */
.route-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.route-modal[hidden] { display: none; }
.route-modal-backdrop { position: absolute; inset: 0; background: rgba(38, 34, 28, 0.55); backdrop-filter: blur(2px); }
.route-modal-card {
  position: relative; width: min(94vw, 430px); max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 20px 20px 14px;
  box-shadow: 0 24px 60px rgba(38, 34, 28, 0.3);
  animation: routeModalIn 0.18s ease-out;
}
@keyframes routeModalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.route-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.route-modal-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; margin: 0; }
.route-modal-head h3 .material-symbols-outlined { color: var(--red); font-size: 22px; }
.route-modal-close {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 0; border-radius: 10px; background: #F4F0E8; color: #6B655A; cursor: pointer; transition: var(--transition);
}
.route-modal-close:hover { background: #EAE4D8; color: var(--red); }
.route-modal-sub { font-size: 0.82rem; color: #8A8375; line-height: 1.9; margin: 0 0 14px; }
.route-modal-coords { display: inline-block; background: #F4F0E8; border-radius: 8px; padding: 1px 8px; font-size: 0.76rem; color: #6B655A; }
.route-choices { display: grid; gap: 9px; }
.route-choice {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border: 1.5px solid var(--border-color); border-radius: 14px; text-decoration: none; color: inherit;
  transition: var(--transition); background: #fff;
}
.route-choice:hover { border-color: var(--red); background: #FDF9F3; transform: translateY(-1px); }
.route-choice-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 11px; background: #FBEDEA; color: var(--red);
}
.route-choice-icon .material-symbols-outlined { font-size: 22px; }
.route-choice-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.route-choice-txt strong { font-size: 0.9rem; font-weight: 800; }
.route-choice-txt small { font-size: 0.75rem; color: #8A8375; }
.route-choice-go { color: #B9B2A2; font-size: 20px; flex: 0 0 auto; }
.route-choice:hover .route-choice-go { color: var(--red); }
.route-modal-hint { font-size: 0.74rem; color: #A29B8D; text-align: center; margin: 12px 0 4px; }
body.route-modal-open { overflow: hidden; }
/* نقشه محلی SVG — بدون هیچ وابستگی به اینترنت */
.local-map {
  position: relative; height: 400px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-color); background: #EDE8DE;
}
.local-map svg { display: block; width: 100%; height: 100%; }
/* نقشهٔ تعاملی رسمی OpenStreetMap داخل iframe (CSP frame-src اجازهٔ www.openstreetmap.org دارد) */
.contact-map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.local-map-overlay {
  position: absolute; top: 14px; inset-inline-start: 14px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none;
}
.local-map-chip {
  display: flex; align-items: center; gap: 10px; direction: rtl; text-align: right;
  background: rgba(255,255,255,0.96); border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.14); max-width: 340px;
}
.local-map-chip .material-symbols-outlined { color: var(--red); font-size: 22px; flex-shrink: 0; }
.local-map-chip strong { display: block; font-size: 0.9rem; color: var(--text, #222); }
.local-map-chip span:not(.material-symbols-outlined) { display: block; font-size: 0.78rem; color: #6B655A; line-height: 1.7; }
.local-map-coords {
  background: rgba(255,255,255,0.92); border-radius: 8px; padding: 3px 10px;
  font-size: 0.72rem; color: #6B655A; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap; max-width: calc(100% - 4px); overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .local-map { height: 320px; }
  .local-map-chip { max-width: calc(100% - 28px); padding: 8px 12px; }
  .local-map-chip span:not(.material-symbols-outlined) { font-size: 0.72rem; }
}

/* =====================  Admin: uploader, modals, badges  ===================== */
.admin-session { display:flex; align-items:center; gap:8px; padding: 4px 20px 16px; color:#fff; font-size:.85rem; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:12px; }
.admin-session .material-symbols-outlined { font-size:22px; color:var(--red); }
.admin-session .who { font-weight:700; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-nav-list .logout-form { margin-top:8px; }
.admin-nav-list .logout-btn { display:flex; align-items:center; gap:10px; width:100%; background:none; border:0; color:#fff; opacity:.75; padding:10px 12px; border-radius:10px; font:inherit; font-size:.9rem; cursor:pointer; }
.admin-nav-list .logout-btn:hover { opacity:1; background:rgba(166,27,41,.2); }

/* —— خروج در نوار موبایل پنل: همیشه یک‌کلیکی، حتی با منوی کشویی بسته —— */
.mob-logout-form { flex-shrink: 0; }
.mob-logout-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: rgba(166, 27, 41, 0.16); color: #ffb3c1;
  border: 1px solid rgba(166, 27, 41, 0.45);
}
.mob-logout-btn:hover, .mob-logout-btn:active { background: var(--red); color: #fff; }
.mob-logout-btn .material-symbols-outlined { font-size: 20px; }

/* —— خروج شناور در دسکتاپ وقتی سایدبار جمع شده (خروج از دید نرود) —— */
.sb-logout-form { display: none; }
@media (min-width: 1025px) {
  body.sb-collapsed .sb-logout-form {
    display: inline-flex; position: fixed; top: 18px; inset-inline-start: 52px; z-index: 1200;
  }
  .sb-logout {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    background: var(--dark-blue); color: #fff; border: 2px solid #f0f2f8;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  }
  .sb-logout:hover { background: var(--red); }
  .sb-logout .material-symbols-outlined { font-size: 18px; }
}
@media (max-width: 1024px) {
  .sb-logout-form { display: none !important; }
}

/* —— دید پنل به‌عنوان مدیر دیگر (View-As) — فقط مالک —— */
/* دراپ‌داون انتخاب مدیر در جعبهٔ نشست سایدبار */
.viewas-switch { flex-basis: 100%; margin-top: 2px; }
.viewas-switch summary {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none;
  font-size: .74rem; font-weight: 700; color: #ffd7de; background: rgba(166, 27, 41, .22);
  border: 1px solid rgba(166, 27, 41, .45); border-radius: 8px; padding: 4px 9px;
  transition: background .15s, color .15s;
}
.viewas-switch summary::-webkit-details-marker { display: none; }
.viewas-switch summary:hover { background: var(--red); color: #fff; }
.viewas-switch summary .material-symbols-outlined { font-size: 15px; }
.viewas-form { display: flex; gap: 6px; margin-top: 8px; }
.viewas-form select {
  flex: 1; min-width: 0; font: inherit; font-size: .76rem; padding: 6px 8px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); background: #2A2B40; color: #fff; cursor: pointer;
}
.viewas-go {
  font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; flex: none;
  background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px;
}
.viewas-go:hover { filter: brightness(1.12); }

/* نوار وضعیت بازنمایی — بالای محتوا، همیشه در دسترس */
.viewas-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(90deg, #FFF7E8, #FFFDF7);
  border: 1px solid #F0D9A6; color: #7A5A17; font-size: .82rem;
  box-shadow: 0 1px 6px rgba(122, 90, 23, .08);
}
.viewas-banner .material-symbols-outlined { font-size: 20px; color: #C99A2E; flex: none; }
.viewas-banner .viewas-txt { flex: 1; min-width: 200px; line-height: 1.9; }
.viewas-banner b { color: #5E430D; }
.viewas-stop {
  font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; flex: none;
  background: #7A5A17; color: #fff; border: 0; border-radius: 9px; padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 5px;
}
.viewas-stop:hover { background: #5E430D; }
@media (max-width: 640px) {
  .viewas-banner { font-size: .76rem; padding: 8px 11px; }
  .viewas-stop { width: 100%; justify-content: center; }
}
.audit-action.act-viewas_start, .audit-action.act-viewas_stop { background: rgba(201, 154, 46, .12); color: #8A6A1E; }


.status-pill { display:inline-block; padding:3px 10px; border-radius:999px; font-size:.75rem; font-weight:700; }
.status-pill.on { background:rgba(23,152,85,.12); color:#179855; border:1px solid rgba(23,152,85,.35); }
.status-pill.off { background:rgba(120,120,140,.12); color:#77778c; border:1px solid rgba(120,120,140,.3); }

.audit-action { font-size:.78rem; font-weight:700; padding:2px 8px; border-radius:6px; background:#F4F5F9; color:var(--text-muted); }
.audit-action.act-login_success, .audit-action.act-enable { background:rgba(23,152,85,.1); color:#179855; }
.audit-action.act-login_failed, .audit-action.act-login_disabled, .audit-action.act-delete, .audit-action.act-disable { background:rgba(166,27,41,.1); color:var(--red); }
.audit-action.act-logout { background:rgba(63,64,100,.1); color:var(--text-main); }

/* آپلودر تصویر */
.img-uploader { grid-column: 1 / -1; display:flex; flex-direction:column; gap:8px; }
.img-uploader.inline { grid-column:auto; }
.img-uploader-label { font-size:.85rem; font-weight:700; }
.img-uploader-box { position:relative; border:2px dashed var(--border-color); border-radius:12px; background:#FAFAFC; min-height:120px; display:grid; place-items:center; cursor:pointer; transition:border-color .15s, background .15s; outline:none; }
.img-uploader-box:hover, .img-uploader-box:focus-visible { border-color:var(--red); background:#FFF7F8; }
.img-uploader-box.drag { border-color:var(--red); background:#FDEDEE; }
.img-uploader-box .img-uploader-preview { max-width:100%; max-height:220px; border-radius:8px; display:block; cursor:zoom-in; }
.img-uploader-empty { display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--text-muted); padding:22px 12px; text-align:center; font-size:.85rem; }
.img-uploader-empty .material-symbols-outlined { font-size:34px; color:#C6C7D6; }
.img-uploader-empty small { color:#A9AABC; font-size:.72rem; }
.img-uploader-progress { position:absolute; inset:auto 0 0 0; height:5px; background:#EDEDF2; }
.img-uploader-progress .bar { height:100%; width:0; background:var(--red); transition:width .15s; }
.img-uploader-actions { display:flex; gap:8px; flex-wrap:wrap; }
.img-uploader-status { min-height:1.2em; font-size:.8rem; color:#179855; }
.img-uploader-status.error { color:var(--red); }

/* بندانگشتی جدول‌ها */
img.thumb { width:52px; height:52px; object-fit:cover; border-radius:10px; border:1px solid var(--border-color); cursor:zoom-in; background:#F4F4F8; }
img.thumb-placeholder { width:52px; height:52px; border-radius:10px; border:1px dashed var(--border-color); display:grid; place-items:center; color:#C6C7D6; }

/* مودال‌ها (تأییدیه + لایت‌باکس) */
.admin-modal { position:fixed; inset:0; z-index:1000; display:none; place-items:center; }
.admin-modal:not([hidden]) { display:grid; }
.admin-modal[hidden] { display:none !important; }
.admin-modal-backdrop { position:absolute; inset:0; background:rgba(20,21,40,.55); }
.admin-modal-body { position:relative; background:#fff; border-radius:16px; box-shadow:var(--shadow-lg); z-index:1; }
.confirm-body { padding:26px 30px; max-width:420px; width:calc(100% - 40px); text-align:center; }
.confirm-body .warn-icon { font-size:38px; color:var(--red); display:block; margin:0 auto 4px; }
.confirm-body p { font-weight:700; margin:8px 0 18px; line-height:1.9; min-height:1.5em; }
.lightbox-body { padding:14px; max-width:min(920px, 92vw); display:flex; flex-direction:column; gap:8px; align-items:center; }
.lightbox-body img { max-width:100%; max-height:78vh; border-radius:8px; }
.lightbox-body figcaption { color:var(--text-muted); font-size:.85rem; }
.admin-modal-close { position:absolute; top:8px; left:8px; background:#F2F3F8; border:0; border-radius:50%; width:34px; height:34px; display:grid; place-items:center; cursor:pointer; z-index:2; }
.admin-modal-close:hover { background:#E4E5EE; }

/* حالت خالی */
.admin-empty { text-align:center; color:var(--text-muted); padding:26px 10px; background:#FAFAFC; border:1px dashed var(--border-color); border-radius:12px; }

/* صفحه‌بندی */
.admin-pager { display:flex; gap:8px; align-items:center; margin-top:14px; flex-wrap:wrap; font-size:.85rem; }
.admin-pager a.chip, .admin-pager span.chip { text-decoration:none; }
.admin-pager .current { background:var(--red); color:#fff; border-color:var(--red); }
.pager-dots { color:var(--text-muted); padding:0 2px; }

/* نوار فیلتر حرفه‌ای فروشگاه (بازه قیمت/برند/مرتب‌سازی/موجود) */
.shop-filterbar { background:#fff; border:1px solid var(--border-color); border-radius:16px; padding:14px 16px; margin-bottom:14px; box-shadow:var(--shadow-sm); }
.shop-filter-form { display:flex; flex-direction:column; gap:10px; }
.sf-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sf-row-secondary { border-top:1px dashed var(--border-color); padding-top:10px; }
.sf-search { display:flex; align-items:center; gap:8px; background:var(--bg, #F4F5FF); border:1px solid var(--border-color); border-radius:12px; padding:8px 14px; min-width:240px; flex:1; }
.sf-search .material-symbols-outlined { color:var(--text-muted); font-size:20px; }
.sf-search input { border:none; outline:none; background:transparent; font:inherit; width:100%; }
.sf-price { display:flex; align-items:center; gap:8px; }
.sf-price-inputs { display:flex; align-items:center; gap:6px; background:var(--bg, #F4F5FF); border:1px solid var(--border-color); border-radius:12px; padding:6px 12px; }
.sf-price-inputs input { border:none; outline:none; background:transparent; font:inherit; width:100px; direction:ltr; text-align:center; }
.sf-dash { color:var(--text-muted); font-size:.8rem; }
.sf-label { font-size:.75rem; color:var(--text-muted); display:block; margin-bottom:2px; }
.sf-field select, .sf-field input { width:auto; margin:0; padding:8px 10px; border-radius:10px; }
.sf-check { display:inline-flex; align-items:center; gap:6px; font-size:.9rem; cursor:pointer; }
.sf-check input { width:auto; accent-color:var(--red); }
.sf-apply { display:inline-flex; align-items:center; gap:6px; background:var(--red); color:#fff; border:none; border-radius:12px; padding:10px 18px; font:inherit; font-weight:700; cursor:pointer; transition:var(--transition); }
.sf-apply:hover { background:var(--red-hover); }
.sf-apply .material-symbols-outlined { font-size:18px; }
.sf-reset { display:inline-flex; align-items:center; gap:4px; color:var(--red); text-decoration:none; font-size:.85rem; border:1px solid var(--red); border-radius:10px; padding:7px 12px; transition:var(--transition); }
.sf-reset:hover { background:var(--red); color:#fff; }
.sf-reset .material-symbols-outlined { font-size:15px; }
.sf-count { margin:0 0 12px; font-size:.9rem; color:var(--text-main); }
.sf-count b { color:var(--red); font-size:1.05rem; }

/* نوار جست‌وجو */
.admin-toolbar { display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-bottom:16px; }
.admin-toolbar input[type=search], .admin-toolbar input[type=text] { min-width:240px; }

/* دکمه مخرب (حذف) — قرمز تم با تأیید مودال */
button.danger, .danger { background: var(--red); color:#fff; border:0; padding:8px 14px; border-radius:8px; font:inherit; font-size:.85rem; font-weight:700; cursor:pointer; }
button.danger:hover, .danger:hover { background: var(--red-hover); }

/* گالری تصاویر محصول */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:14px; }
.gallery-item { display:flex; flex-direction:column; gap:8px; background:#FAFAFC; border:1px solid var(--border-color); border-radius:12px; padding:10px; }
.gallery-item img.thumb { width:100%; height:120px; }
.gallery-meta { font-size:.75rem; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gallery-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }

/* توضیح کوچک زیر کارت آمار */
.admin-stat .hint { font-size:.72rem; color:var(--text-muted); margin-top:4px; }

/* ============================================================= */
/* ===== بهینه‌سازی کامل ریسپانسیو موبایل (حذف اسکرول افقی) ===== */
/* ============================================================= */

/* ============ حساب کاربری (ac-*) — موبایل‌اول، هر بخش یک صفحه اختصاصی ============ */
.ac-wrap { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; max-width: 1080px; margin-inline: auto; }

/* ردیف بازگشت */
.ac-navrow { display: flex; align-items: center; gap: 10px; }
.ac-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.86rem; font-weight: 700; padding: 8px 4px; min-height: 44px; transition: var(--transition); }
.ac-back:hover { color: var(--red); }
.ac-back .material-symbols-outlined { font-size: 20px; }

/* ناوبری: موبایل = تب افقی اسکرولی | دسکتاپ = سایدبار عمودی */
.ac-nav { display: flex; flex-direction: row; gap: 6px; padding: 10px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ac-nav::-webkit-scrollbar { display: none; }
.ac-tab { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; min-height: 60px; padding: 8px 14px; border-radius: 12px; color: var(--muted); font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: transparent; transition: var(--transition); }
.ac-tab .material-symbols-outlined { font-size: 22px; }
.ac-tab:hover { background: var(--light-blue); color: var(--red); }
.ac-tab.is-active { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(166, 27, 41, 0.22); }

/* کارت خوش‌آمد */
.ac-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #fff 55%, rgba(166, 27, 41, 0.05) 100%); }
.ac-hero-user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ac-avatar { width: 60px; height: 60px; border-radius: 18px; background: var(--red); color: #fff; font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(166, 27, 41, 0.25); }
.ac-hero-text { min-width: 0; }
.ac-hero-text h1 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 900; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hero-text p { margin: 0; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.ac-hero-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--red); background: rgba(166, 27, 41, 0.07); border: 1px solid rgba(166, 27, 41, 0.18); border-radius: 12px; padding: 10px 14px; min-height: 44px; font-size: 0.82rem; font-weight: 700; flex-shrink: 0; transition: var(--transition); }
.ac-hero-edit:hover { background: var(--red); color: #fff; }
.ac-hero-edit .material-symbols-outlined { font-size: 18px; }

/* آمار سفارش‌ها */
.ac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ac-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; text-align: center; transition: var(--transition); }
.ac-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ac-stat .material-symbols-outlined { font-size: 24px; color: var(--red); opacity: 0.85; }
.ac-stat strong { font-size: 1.15rem; font-weight: 900; color: var(--ink); line-height: 1.3; }
.ac-stat small { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.ac-stat-warn .material-symbols-outlined { color: #B98900; }
.ac-stat-warn strong { color: #B98900; }

/* کاشی‌های بخش‌ها */
.ac-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ac-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 16px; transition: var(--transition); }
.ac-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(166, 27, 41, 0.25); }
.ac-tile-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(166, 27, 41, 0.07); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.ac-tile-icon .material-symbols-outlined { font-size: 22px; }
.ac-tile strong { font-size: 0.88rem; font-weight: 800; color: var(--ink); }
.ac-tile small { font-size: 0.72rem; color: var(--muted); line-height: 1.7; }

/* کارت‌ها و فرم‌ها */
.ac-card { padding: 20px 18px; border-radius: 18px; }
.ac-card-head { margin-bottom: 16px; }
.ac-card-head h1 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; font-weight: 900; color: var(--ink); }
.ac-card-head h1 .material-symbols-outlined { color: var(--red); font-size: 22px; }
.ac-card-head p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.9; }
.ac-card-head .ac-on { color: var(--green); }
.ac-form { display: flex; flex-direction: column; gap: 14px; }
.ac-field { display: flex; flex-direction: column; gap: 6px; }
.ac-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.ac-field label i { color: var(--red); font-style: normal; }
.ac-field input, .ac-field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 0.95rem; color: var(--ink); background: #FBFBFE; transition: var(--transition); resize: vertical; }
.ac-field textarea { min-height: 90px; }
.ac-field input:focus, .ac-field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.06); }
.ac-field small { color: var(--muted); font-size: 0.74rem; }
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-btn-primary, .ac-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 13px; padding: 12px 22px; font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: var(--transition); text-align: center; }
.ac-btn-primary { background: var(--red); color: #fff; border: 0; box-shadow: 0 4px 12px rgba(166, 27, 41, 0.18); }
.ac-btn-primary:hover { background: var(--red-hover); }
.ac-btn-ghost { background: var(--light-blue); color: var(--ink); border: 1px solid var(--line); }
.ac-btn-ghost:hover { border-color: var(--red); color: var(--red); }
.ac-btn-primary .material-symbols-outlined, .ac-btn-ghost .material-symbols-outlined, .ac-btn-danger .material-symbols-outlined { font-size: 19px; }
.ac-btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.8rem; border-radius: 11px; box-shadow: none; }
.ac-btn-sm .material-symbols-outlined { font-size: 17px; }
.ac-btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; background: rgba(166, 27, 41, 0.06); color: var(--red); border: 1px solid rgba(166, 27, 41, 0.2); border-radius: 13px; padding: 12px 18px; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.ac-btn-danger:hover { background: var(--red); color: #fff; }
.ac-logout-form { margin: 0; }
.ac-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.78rem; line-height: 1.9; }
.ac-note .material-symbols-outlined { color: var(--green); font-size: 20px; flex-shrink: 0; }
.ac-idcard { display: flex; gap: 12px; align-items: flex-start; background: var(--light-blue); }
.ac-idcard > .material-symbols-outlined { color: var(--red); font-size: 24px; flex-shrink: 0; margin-top: 2px; }
/* تیکت‌های پشتیبانی (صفحهٔ /tickets در قالب داشبورد) */
.ticket-thread { padding: 14px 0; border-top: 1px dashed var(--line); }
.ticket-thread:first-of-type { border-top: 0; padding-top: 0; }
.ticket-thread h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.ticket-msg { margin: 0 0 6px; color: var(--muted); font-size: 0.84rem; line-height: 2; }
.ticket-msg strong { color: var(--ink); }
.ticket-reply { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ticket-reply textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 10px 14px; font: inherit; font-size: 0.9rem; color: var(--ink); background: #FBFBFE; resize: vertical; }
.ticket-reply textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.ticket-reply .ac-btn-ghost { min-height: 42px; padding: 8px 16px; font-size: 0.82rem; align-self: flex-start; }
.ac-idcard strong { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 2px; }
.ac-idcard p { margin: 0 0 4px; font-weight: 800; color: var(--text-main); }
.ac-idcard small { color: var(--muted); font-size: 0.76rem; line-height: 1.8; }

/* سفارش‌ها */
.ac-empty { text-align: center; padding: 30px 12px; }
.ac-empty .material-symbols-outlined { font-size: 48px; color: var(--muted); opacity: 0.5; }
.ac-empty h2 { margin: 10px 0 6px; font-size: 1rem; color: var(--ink); }
.ac-empty p { margin: 0 auto 16px; color: var(--muted); font-size: 0.85rem; max-width: 320px; line-height: 1.9; }
.ac-orders { display: flex; flex-direction: column; gap: 12px; }
.ac-order { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #FDFDFF; transition: var(--transition); }
.ac-order:hover { border-color: rgba(166, 27, 41, 0.3); box-shadow: var(--shadow-sm); }
.ac-order-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-order-no { font-weight: 800; color: var(--red); font-size: 0.9rem; }
.ac-order-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ac-order-total { font-size: 0.95rem; color: var(--ink); }
.ac-order-meta small { color: var(--muted); font-size: 0.76rem; }
.ac-order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- دسکتاپ: سایدبار + محتوا ---------- */
@media (min-width: 920px) {
  .ac-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
  .ac-navrow { display: none; }
  .ac-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .ac-nav { flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; overflow: visible; }
  .ac-tab { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 12px 16px; font-size: 0.88rem; border-radius: 12px; }
  .ac-tab .material-symbols-outlined { font-size: 21px; }
  .ac-hero { padding: 26px 28px; }
  .ac-avatar { width: 68px; height: 68px; font-size: 1.7rem; }
  .ac-hero-text h1 { font-size: 1.25rem; }
  .ac-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .ac-tile { padding: 20px 18px; }
  .ac-stats { gap: 14px; }
  .ac-card { padding: 26px 28px; }
  .ac-form { gap: 16px; }
  .ac-actions { justify-content: flex-start; }
  .ac-actions .ac-btn-primary { min-width: 180px; }
  .ac-btn-danger { width: auto; }
}

/* ============================================================
   پالایش موبایل صفحات فرانت و لیست ادمین (از سمت موازی) — هدر/لوگو/جست‌وجو
   در بلوک بالای همین فایل مدیریت می‌شوند؛ اینجا فقط قواعد غیرمتعارض.
   ============================================================ */
@media (max-width: 768px) {
  /* هدر: ردیف اول فشرده‌تر — جستجو و منو از طریق دکمه‌ها و کشوی کناری */
  /* جستجوی درون‌خطی هدر در موبایل مخفی می‌شود؛ دکمه سرچ کشوی کناری را باز می‌کند */

  /* هیرو اسلایدر متناسب موبایل (تصویر عمودی تمام‌قاب) */
  .pardava-slide { padding: 0 24px; }
  .pardava-slide-content h2 { font-size: 1.3rem; line-height: 1.7; }
  .pardava-slide-content p { font-size: 0.85rem; margin-bottom: 16px; line-height: 1.9; }
  .pardava-slide-btn { padding: 11px 24px; font-size: 0.88rem; }
  .pardava-hero-slider { height: 390px; }
  .pardava-slider-arrow { display: none; }
  .pardava-slider-dots { bottom: 14px; }
  .pardava-dot { width: 30px; }
  .pardava-arrow-right { right: 10px; }
  .pardava-arrow-left { left: 10px; }

  /* بخش‌های خانه */
  .pardava-services-strip { gap: 10px; margin: 18px 0; }
  .pardava-service-box { padding: 14px; gap: 10px; }
  .pardava-service-icon { width: 42px; height: 42px; border-radius: 12px; }
  .pardava-service-text h4 { font-size: 0.82rem; }
  .pardava-service-text p { font-size: 0.7rem; }
  .pardava-promo-banners { grid-template-columns: 1fr; }
  .pardava-promo-banner img { width: 38%; }
  .pardava-promo-text { max-width: calc(62% - 34px); }
  .pardava-promo-text h3 { font-size: .98rem; }
  .pardava-brands-wrap { margin-bottom: 30px; }
  .pardava-brands-section { padding: 16px 12px; border-radius: 16px; }
  .pardava-brands-grid { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 9px; }
  .pardava-brand-card { height: 56px; padding: 6px 8px; border-radius: 11px; }
  .pardava-brand-logo img { max-height: 34px; }
  .pardava-brand-name { font-size: .8rem; }
  .pardava-special-offer-banner { padding: 18px; margin-bottom: 30px; }
  .pardava-offer-content h2 { font-size: 1.35rem; }
  .pardava-offer-content p { font-size: 0.85rem; }
  .pardava-footer-main { padding: 36px 0; gap: 28px; }
  .pardava-footer-socials { justify-content: flex-start; }
  .pardava-footer-bottom { padding: 18px 0; }
  .pardava-trust-badges { justify-content: center; }

  /* کارت محصول در گرید دو ستونه */
  .pardava-product-img { height: 170px; }
  .pardava-product-info { padding: 10px 12px 12px; }
  .pardava-product-name { font-size: 0.8rem; height: 41px; }
  .pardava-product-brand { font-size: 0.68rem; margin-bottom: 6px; }
  .pardava-current-price { font-size: 0.95rem; }
  .pardava-old-price { font-size: 0.7rem; }
  .pardava-add-cart-btn { font-size: 0.78rem; padding: 8px; }
  .pardava-card-actions { margin-top: 8px; }
  .pardava-discount-tag { top: 8px; right: 8px; font-size: 0.7rem; padding: 3px 8px; }
  .pardava-section-header { font-size: 1.02rem; margin-bottom: 14px; }
  .pardava-tab-btn { font-size: 0.78rem; padding: 5px 10px; }

  /* صفحات محتوا */
  .content-head { padding: 18px; gap: 12px; margin: 16px 0 14px; }
  .content-head .material-symbols-outlined { font-size: 30px; }
  .content-head h1 { font-size: 1.15rem; }
  .content-head p { font-size: 0.85rem; }
  .content-cta { padding: 20px; }
  .page-card { padding: 18px; }
  .page-title { font-size: 1.2rem; }
  .pardava-mega-categories { gap: 10px; margin-bottom: 25px; }
  .pardava-cat-card h3 { font-size: 0.78rem; padding: 10px 6px; }
  .pardava-cat-card-img { height: 80px; }

  /* فرم تماس و اطلاعات */
  .contact-form input, .contact-form textarea { padding: 11px 13px; font-size: 0.9rem; }

  /* نقشه محلی تماس — برچسب آدرس نباید از عرض صفحه بیرون بزند */
  .local-map-chip { max-width: calc(100% - 28px); }

  /* حساب کاربری / سبد / تسویه */
  .acct-orders-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cart-cta { font-size: 0.92rem; }
  .co-coupon-form { flex-wrap: wrap; }
  .co-coupon-form input { min-width: 0; }

  /* جدول مقایسه */
  .cmp-add-form { min-width: 0; width: 100%; }
  .cmp-add-form input[type="text"] { min-width: 0; }

  /* لیست محصول ادمین روی موبایل: جستجو همه‌عرض */
  .pl-search-box { min-width: 0; flex: 1 1 100%; }
  .admin-table-wrap { -webkit-overflow-scrolling: touch; }
  /* ستون کالا هنگام اسکرول افقی ثابت می‌ماند */
  .pl-table th:first-child, .pl-table td:first-child {
    position: sticky; right: 0; z-index: 2;
    background: #fff; box-shadow: -8px 0 10px -6px rgba(0,0,0,.12);
  }
  .pl-table thead th:first-child { z-index: 3; background: var(--light-blue); }
  .pl-num { width: 80px; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .admin-topbar h1 { font-size: 1.15rem; }
  .admin-main { padding: 16px 12px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-stat { padding: 14px; }
  .admin-stat .value { font-size: 1.25rem; }
  .admin-panel { padding: 14px; }
}

/* ---------- موبایل ریز ---------- */
@media (max-width: 480px) {
  /* تایپوگرافی و فاصله‌ها در باریک‌ترین عرض‌ها */
  .pardava-slide { padding: 0 18px; }
  .pardava-slide-content h2 { font-size: 1.2rem; }
  .pardava-slide-content p { font-size: 0.82rem; }
  .pardava-hero-slider { height: 360px; }
  .pardava-container, .wrap { padding: 0 14px; }
  .pardava-mega-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pardava-blog-content { padding: 14px; }
  .pd { padding: 14px; }
  .pd-title { font-size: 1.15rem; }
  .pd-price { font-size: 1.2rem; }
  .content-head h1 { font-size: 1.05rem; }
  .art { padding: 18px; }
  .art-title { font-size: 1.2rem; }
  .art-comments { padding: 18px; }
  .admin-login-card { padding: 26px 20px; }
  .svc-card { padding: 18px; }
  .faq-item summary { padding: 14px 14px; }
  .faq-body { margin: 0 14px 14px; padding-bottom: 14px; }

  /* هدر خیلی باریک: فقط آیکون برای حساب/سبد تا همه‌چیز در یک ردیف جا شود */
  .pardava-action-item > span:not(.material-symbols-outline):not(.material-symbols-outlined):not(.pardava-badge) { display: none; }
  .pardava-action-item .material-symbols-outlined { font-size: 24px; }
  .pardava-header-actions { gap: 5px; }

  /* کشوی موبایل در باریک‌ترین عرض‌ها */
}

/* لمس: هاورهای دسکتاپ روی موبایل بی‌معنا هستند ولی کلیک باید روان بماند */
@media (hover: none) {
  .pardava-product-card:hover { transform: none; }
  .pardava-product-card:hover .pardava-product-img img { transform: none; }
}

/* ردیف سبد خرید در موبایل:-thumb | اطلاعات | قیمت، ردیف دوم: تعداد | حذف */
@media (max-width: 900px) {
  .acct-grid, .cart-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; }
  .cart-line-price { grid-column: 3; grid-row: 1; align-self: center; font-size: 0.88rem; }
  .cart-qty-form { grid-column: 2; grid-row: 2; justify-self: start; }
  .cart-remove-form { grid-column: 3; grid-row: 2; justify-self: end; }
  .cart-title { font-size: 0.88rem; }
  .cart-unit { font-size: 0.72rem; }
}

/* ============================================================
   استودیو کالا — ویرایشگر چندتبی با ذخیره لحظه‌ای
   ============================================================ */
.studio-title { font-size: 1.25rem; font-weight: 800; margin: 0; }
.studio-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.studio-topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.studio-topbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.studio-savepill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  border: 1px solid var(--border-color); background: #fff; color: var(--text-muted);
  transition: all .2s ease; user-select: none;
}
.studio-savepill .material-symbols-outlined { font-size: 17px; }
.studio-savepill[data-state="idle"] { background: rgba(23,152,85,.1); border-color: rgba(23,152,85,.35); color: #179855; }
.studio-savepill[data-state="dirty"] { background: rgba(184,134,11,.08); border-color: rgba(184,134,11,.4); color: #B8860B; }
.studio-savepill[data-state="saving"] { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.4); color: #2563EB; }
.studio-savepill[data-state="saving"] .material-symbols-outlined { animation: studio-spin 1.1s linear infinite; }
.studio-savepill[data-state="error"] { background: rgba(194,17,45,.09); border-color: rgba(194,17,45,.45); color: var(--red, #C2112D); cursor: pointer; }
@keyframes studio-spin { to { transform: rotate(360deg); } }

.studio-tabs {
  display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto;
  background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
  padding: 6px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}
.studio-tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 0; background: transparent; padding: 10px 14px; border-radius: 10px;
  font: inherit; font-size: .88rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; position: relative; transition: all .15s ease;
}
.studio-tab .material-symbols-outlined { font-size: 19px; }
.studio-tab:hover { background: var(--light-blue, #F2F5FF); color: var(--text-main); }
.studio-tab.active { background: var(--red, #A61B29); color: #fff; }
.studio-tab.dirty::after {
  content: ""; position: absolute; top: 7px; inset-inline-end: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: #F59E0B;
  box-shadow: 0 0 0 2px #fff;
}
.studio-tab.active.dirty::after { box-shadow: 0 0 0 2px var(--red, #A61B29); }

.studio-panel { display: none; }
.studio-panel.active { display: block; animation: studio-fade .18s ease; }
@keyframes studio-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.studio-create { border: 2px dashed rgba(166,27,41,.35); background: linear-gradient(180deg, #fff, #FFF9FA); }
.studio-create-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.studio-create-foot #createError { color: var(--red, #C2112D); font-weight: 700; font-size: .88rem; }

.quick-add { display: flex; gap: 6px; margin-top: 6px; }
.quick-add input { flex: 1; margin-top: 0; padding: 7px 10px; font-size: .84rem; }
.quick-add .chip { margin: 0; padding: 6px 10px; font-size: .78rem; white-space: nowrap; }

.studio-switch { display: flex; align-items: center; gap: 8px; }
.studio-switch input { width: 17px; height: 17px; margin: 0; accent-color: var(--red, #A61B29); }

.studio-slug-row { display: flex; gap: 8px; align-items: center; }
.studio-slug-row input { flex: 1; }
.seo-count { float: left; font-size: .75rem; color: var(--text-muted); }
.studio-seo-preview {
  margin-top: 18px; border: 1px solid var(--border-color); border-radius: 12px;
  padding: 14px 16px; background: #FBFBFE; max-width: 640px;
}
.seo-preview-url { color: #1a6f2f; font-size: .8rem; direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-preview-title { color: #1a4fb8; font-size: 1.05rem; font-weight: 600; margin: 4px 0; }
.seo-preview-desc { color: var(--text-muted); font-size: .84rem; }

.studio-variants-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.studio-variants-head .studio-mirror { display: flex; gap: 6px; flex-wrap: wrap; }
.studio-variants-head .chip { margin: 0; }
.studio-variant-table input { min-width: 74px; padding: 6px 7px; }
.studio-variant-table input[data-vf="VariantCode"] { min-width: 128px; }
.studio-row-removed { opacity: .45; text-decoration: line-through; background: rgba(194,17,45,.04); }
.studio-rowhint { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }

.studio-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.studio-gallery .gallery-item.is-main { outline: 2px solid rgba(23,152,85,.55); outline-offset: 2px; }

.studio-checklist.all-done { border: 1px solid rgba(23,152,85,.4); background: linear-gradient(180deg, #fff, #F4FBF6); }
.checklist-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist-items li a {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-main);
  padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff;
  font-size: .9rem; transition: all .15s ease;
}
.checklist-items li a:hover { border-color: var(--red, #A61B29); }
.checklist-items li.done a { background: rgba(23,152,85,.06); border-color: rgba(23,152,85,.3); color: #179855; }
.checklist-items li .step-icon { font-size: 20px; color: var(--text-muted); }
.checklist-items li.done .step-icon { color: #179855; }

.studio-toasts { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 1200; display: grid; gap: 8px; max-width: min(360px, 90vw); }
.studio-toast {
  background: #1E2035; color: #fff; padding: 11px 16px; border-radius: 12px;
  font-size: .86rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px); transition: all .25s ease;
}
.studio-toast.show { opacity: 1; transform: none; }
.studio-toast.error { background: var(--red, #C2112D); }

@media (max-width: 768px) {
  .studio-topbar { flex-direction: column; align-items: stretch; }
  .studio-topbar-left { justify-content: space-between; }
  .studio-tab { padding: 9px 11px; font-size: .82rem; }
}

/* ============================================================
   تاکسونومی — ردیف‌های درون‌خطی دسته/برند/واحد با ذخیره لحظه‌ای
   ============================================================ */
.tax-addbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tax-addbar .btn-primary { display: inline-flex; align-items: center; gap: 6px; }
/* جستجوی سریع دسته‌ها در پنل — برای فروشگاه‌های با دسته‌های زیاد */
.tax-searchbar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); border-radius: 12px; padding: 9px 14px; background: #fafafa; margin-bottom: 14px; }
.tax-searchbar .material-symbols-outlined { color: var(--text-muted); font-size: 20px; }
.tax-searchbar input { flex: 1 1 auto; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: .92rem; }
.tax-searchbar .chip { margin: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; }
.tax-searchbar .chip .material-symbols-outlined { font-size: 15px; }
.tax-count { font-size: .75rem; background: var(--light-blue); color: var(--red); border-radius: 999px; padding: 3px 9px; white-space: nowrap; font-weight: 700; }
.tax-rows { display: grid; gap: 8px; }
.tax-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--border-color); border-radius: 12px; background: #fff;
  padding: 9px 12px; padding-inline-start: calc(12px + var(--depth, 0) * 26px);
  position: relative; transition: border-color .2s ease, background .2s ease;
}
.tax-row::before {
  content: ""; position: absolute; inset-inline-start: calc(4px + var(--depth, 0) * 26px);
  top: 50%; width: 10px; height: 2px; background: var(--border-color); display: none;
}
.tax-row[data-depth]:not([data-depth="0"])::before { display: block; }
.tax-row.tax-new { border-style: dashed; }
.tax-row.tax-pending { border-color: rgba(37,99,235,.5); }
.tax-row.tax-saved { border-color: rgba(23,152,85,.55); background: rgba(23,152,85,.04); }
.tax-row.tax-error { border-color: rgba(194,17,45,.6); background: rgba(194,17,45,.03); }
.tax-status { width: 9px; height: 9px; border-radius: 50%; background: transparent; flex: 0 0 auto; }
.tax-row.tax-pending .tax-status { background: #2563EB; animation: studio-spin .9s linear infinite; border-radius: 2px; }
.tax-row.tax-saved .tax-status { background: #179855; }
.tax-row.tax-error .tax-status { background: var(--red, #C2112D); }
.tax-imgcell { display: flex; align-items: center; }
.tax-imgcell .tax-thumb { cursor: pointer; }
.tax-imgcell .tax-thumb.tax-uploading { opacity: .45; }
.tax-row .tax-name { width: min(240px, 40vw); margin: 0; }
.tax-row .tax-parent { width: min(210px, 34vw); margin: 0; padding: 8px 10px; }
.tax-row .tax-sort { width: 64px; margin: 0; }
.tax-row input[data-cf="Symbol"] { width: 110px; margin: 0; }
.tax-active { display: flex; align-items: center; gap: 6px; font-size: .84rem; white-space: nowrap; }
.tax-active input { width: 16px; height: 16px; margin: 0; accent-color: var(--red, #A61B29); }
.tax-slug { font-size: .74rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tax-ops { display: flex; gap: 6px; margin-inline-start: auto; white-space: nowrap; }
.tax-ops .chip, .tax-ops .danger { margin: 0; }
@media (max-width: 860px) {
  .tax-row { align-items: stretch; flex-direction: column; }
  .tax-row .tax-name, .tax-row .tax-parent, .tax-row .tax-sort, .tax-row input[data-cf="Symbol"] { width: 100%; }
  .tax-ops { margin-inline-start: 0; }
}

/* ==================== راهنمای فیلد (؟) — پنل مدیریت ==================== */
.fh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 4px 0 2px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color, #fff);
    color: var(--muted-color, #777);
    font: 700 10px/1 "Shabnam", Tahoma, sans-serif;
    cursor: help;
    vertical-align: middle;
    padding: 0;
    transition: border-color .15s, color .15s, background .15s;
}
.fh:hover, .fh:focus-visible {
    border-color: var(--primary-color, #A61B29);
    color: var(--primary-color, #A61B29);
    background: #fdf2f3;
    outline: none;
}
.fh-pop {
    position: absolute;
    z-index: 2000;
    max-width: 300px;
    padding: 9px 12px;
    background: #241f21;
    color: #fff;
    font: 12px/1.9 "Shabnam", Tahoma, sans-serif;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    text-align: right;
}

/* ==================== اتوکامپلیت فرم‌های ادمین ==================== */
.ac-wrap { position: relative; }
.ac-menu {
    position: absolute;
    z-index: 1900;
    top: calc(100% + 4px);
    inset-inline-start: 0;
    min-width: min(340px, 92vw);
    max-height: 320px;
    overflow: auto;
    background: var(--panel-bg, #fff);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0,0,0,.14);
    padding: 4px;
}
.ac-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    text-align: right;
    font: 13px/1.6 "Shabnam", Tahoma, sans-serif;
    color: var(--text-color, #222);
}
.ac-item img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    flex: none;
    background: #f4f4f4;
}
.ac-item .ac-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-item .ac-sub { font-size: 11px; color: var(--muted-color, #888); margin-inline-start: auto; white-space: nowrap; }
.ac-item:hover, .ac-item.active { background: #fdf2f3; color: var(--primary-color, #A61B29); }
.ac-empty { padding: 12px; text-align: center; color: var(--muted-color, #888); font-size: 12px; }

/* ============================================================
   فروشگاه موبایل — رابط جدا از دسکتاپ (الگوی حرفه‌ای دیجی‌کالا/بایمارد):
   نوار ابزار چسبان (سرچ + دکمه فیلتر با بج + مرتب‌سازی چیپی +
   چیپ‌های فیلتر فعال) + بوتام‌شیت «جستجوی پیشرفته» + کارت افقی
   یک‌ردیفه. دسکتاپ هیچ تغییری نمی‌کند (نوار sf-* بالای 768px).
   ============================================================ */
body.mshop-lock { overflow: hidden; }
.mshop-toolbar { display: none; }

@media (max-width: 768px) {
  /* نوار فیلتر دسکتاپ در موبایل بی‌معناست — به‌جایش نوار ابزار موبایل */
  .shop-filterbar { display: none; }

  /* در موبایل: سرچ صفحه فروشگاه تکرارِ سرچ منوی کشویی است (حذف شد) و
     دسته‌بندی‌ها به‌جای چیپ‌های همه‌شون، داخل شیت «فیلترها» از پایین باز می‌شوند
     (نکته: قاعدهٔ مخفی‌سازیِ .shop-panel در انتهای فایل، بعد از تعریف خودش آمده) */
  .shop-head .shop-count { display: none; }

  /* چیپ‌های دسته‌بندی: ردیف اسکرول افقی به‌جای چند ردیف پیچیده */
  .cats { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .cats::-webkit-scrollbar { display: none; }
  .cats .chip { flex: 0 0 auto; margin: 0 0 0 8px; white-space: nowrap; }

  /* --- نوار ابزار موبایل (ظریف‌شده: ارتفاع و فونت کوچک‌تر برای فضای کم) --- */
  .mshop-toolbar { display: block; margin-bottom: 10px; }
  .mshop-toolbar.can-stick { position: sticky; top: var(--mshop-top, 64px); z-index: 900; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 7px; box-shadow: var(--shadow-sm); }
  .mshop-row { display: flex; align-items: stretch; gap: 6px; }
  .mshop-search { flex: 1; min-width: 0; }
  .mshop-search.sf-search { padding: 5px 10px; border-radius: 10px; }
  .mshop-search.sf-search input { font-size: .88rem; }
  .mshop-search.sf-search .material-symbols-outlined { font-size: 18px; }
  .mshop-filter-btn { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; border: none; border-radius: 10px; padding: 0 11px; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; height: 38px; align-self: center; }
  .mshop-filter-btn .material-symbols-outlined { font-size: 17px; }
  .mshop-badge { position: absolute; top: -6px; left: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #1F1F2E; color: #fff; border: 1.5px solid #fff; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; font-style: normal; }
  .mshop-count { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; font-size: .78rem; color: var(--text-muted); text-align: left; }
  .mshop-count b { color: var(--red); font-weight: 900; font-size: .95rem; }

  /* --- مرتب‌سازی چیپی افقی (ظریف‌تر) --- */
  .mshop-sorts { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-top: 8px; padding-bottom: 2px; }
  .mshop-sorts::-webkit-scrollbar { display: none; }
  .mshop-sort-chip { flex: 0 0 auto; display: inline-block; border: 1px solid var(--border-color); background: #fff; color: var(--text-main); border-radius: 16px; padding: 5px 11px; font-size: .76rem; text-decoration: none; white-space: nowrap; transition: var(--transition); }
  .mshop-sort-chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

  /* --- چیپ‌های فیلتر فعال (هر کدام با × قابل حذف) --- */
  .mshop-active { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
  .mshop-achip { display: inline-flex; align-items: center; gap: 3px; background: var(--light-blue); color: var(--red); border-radius: 14px; padding: 4px 9px; font-size: .72rem; font-weight: 600; text-decoration: none; }
  .mshop-achip .material-symbols-outlined { font-size: 13px; }
  .mshop-achip.reset { background: #fff; border: 1px dashed var(--red); font-weight: 800; }

  /* --- کارت محصول: هر کالا یک ردیف کامل (افقی و بزرگ) --- */
  .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-grid .pardava-product-card { flex-direction: row; align-items: stretch; }
  .shop-grid .pardava-product-img { width: 132px; flex: 0 0 132px; height: auto; min-height: 132px; }
  .shop-grid .pardava-product-img img { height: 100%; }
  .shop-grid .pardava-quick-actions { display: none; }
  .shop-grid .pardava-product-info { padding: 12px 14px 14px; }
  .shop-grid .pardava-product-name { height: auto; font-size: .95rem; line-height: 1.6; }
  .shop-grid .pardava-product-brand { font-size: .74rem; margin-bottom: 6px; }
  .shop-grid .pardava-current-price { font-size: 1.08rem; }
  .shop-grid .pardava-add-cart-btn { padding: 12px; font-size: .9rem; }
}

@media (max-width: 360px) {
  .shop-grid .pardava-product-img { width: 110px; flex-basis: 110px; }
  .mshop-filter-btn { padding: 0 8px; font-size: .74rem; }
  .mshop-filter-btn .material-symbols-outlined { font-size: 15px; }
  .mshop-sort-chip { padding: 4px 9px; font-size: .72rem; }
}

/* --- بوتام‌شیت جستجوی پیشرفته (در موبایل از نوار ابزار باز می‌شود) --- */
.mshop-modal { position: fixed; inset: 0; z-index: 2000; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
.mshop-modal.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mshop-backdrop { position: absolute; inset: 0; background: rgba(15, 15, 30, .5); opacity: 0; transition: opacity .22s ease; }
.mshop-modal.open .mshop-backdrop { opacity: 1; }
.mshop-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86dvh; background: #fff; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .28s cubic-bezier(.32, .72, .35, 1); box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); }
.mshop-modal.open .mshop-sheet { transform: translateY(0); }
.mshop-handle { width: 44px; height: 5px; border-radius: 3px; background: #DCDCE6; margin: 10px auto 2px; flex-shrink: 0; }
.mshop-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 12px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.mshop-head b { font-size: 1.02rem; }
.mshop-close { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; background: var(--bg, #F4F5FF); color: var(--text-main); border-radius: 10px; cursor: pointer; }
.mshop-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: 18px; align-content: start; }
.mshop-group { display: grid; gap: 8px; }
.mshop-glabel { font-size: .88rem; font-weight: 700; color: var(--text-main); }
.mshop-price { display: flex; align-items: center; gap: 8px; }
.mshop-price input { flex: 1; min-width: 0; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 10px; font: inherit; font-size: .95rem; background: var(--bg, #F4F5FF); text-align: center; }
.mshop-price input:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.mshop-dash { color: var(--text-muted); font-size: .85rem; flex-shrink: 0; }
.mshop-body select { width: 100%; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; font: inherit; font-size: .92rem; background: #fff; }
.mshop-switch { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; font-size: .9rem; }
.mshop-switch input { width: 19px; height: 19px; accent-color: var(--red); flex-shrink: 0; }
.mshop-hint { margin: 0; font-size: .76rem; color: var(--text-muted); }
.mshop-foot { display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-color); flex-shrink: 0; background: #fff; }
.mshop-reset { display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--red); color: var(--red); border-radius: 12px; padding: 12px 18px; text-decoration: none; font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.mshop-apply { flex: 1; background: var(--red); color: #fff; border: none; border-radius: 12px; padding: 13px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; transition: var(--transition); }
.mshop-apply:active { transform: scale(.98); }

/* --- لیست رادیویی گزینه‌ها (دسته‌بندی/برند/مرتب‌سازی) — همه آپشن‌ها کامل و دقیق دیده می‌شوند --- */
.mshop-opts { display: grid; gap: 6px; }
.mshop-opt {
  position: relative;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--border-color); border-radius: 12px;
  padding: 11px 12px; font-size: .9rem; transition: border-color .15s ease, background .15s ease;
  background: #fff;
}
.mshop-opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.mshop-opt .mshop-opt-name { flex: 1; min-width: 0; font-weight: 600; }
.mshop-opt .mshop-opt-count { font-size: .74rem; color: var(--text-muted); background: var(--bg, #F4F5FF); border-radius: 8px; padding: 2px 8px; flex-shrink: 0; }
.mshop-opt .mshop-opt-ico { font-size: 20px; color: transparent; flex-shrink: 0; transition: color .15s ease; }
.mshop-opt.on { border-color: var(--red); background: rgba(166, 27, 41, .05); }
.mshop-opt.on .mshop-opt-ico { color: var(--red); }
.mshop-opt:active { background: var(--light-blue); }
.mshop-opt[hidden] { display: none; } /* flex نباید اتربیوت hidden را خنثی کند */

/* --- دراپ‌داون سرچ‌دار دسته‌بندی/برند داخل شیت موبایل (خواسته کاربر: در موبایل دراپ‌داون با جست‌وجو) --- */
.mdd-btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border-color); background: #fff; border-radius: 12px;
  padding: 12px; font: inherit; font-size: .92rem; cursor: pointer; text-align: right;
  transition: border-color .15s ease;
}
.mdd-btn:hover { border-color: var(--red); }
.mdd-btn .mdd-ic { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.mdd-btn .mdd-label { flex: 1; min-width: 0; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdd-btn .mdd-count { font-size: .72rem; color: var(--text-muted); background: var(--bg, #F4F5FF); border-radius: 8px; padding: 2px 8px; flex-shrink: 0; font-weight: 700; font-style: normal; }
.mdd-btn .mdd-chev { font-size: 20px; color: var(--text-muted); flex-shrink: 0; transition: transform .2s ease; }
.mdd.open .mdd-btn { border-color: var(--red); }
.mdd.open .mdd-btn .mdd-chev { transform: rotate(180deg); }
.mdd-panel {
  margin-top: 8px; border: 1px solid var(--border-color); border-radius: 12px;
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
}
.mdd-search { position: relative; border-bottom: 1px solid var(--border-color); background: var(--bg, #F4F5FF); }
.mdd-search input {
  width: 100%; border: none; background: transparent; outline: none;
  padding: 11px 38px 11px 12px; font: inherit; font-size: 16px; /* 16px = بدون زوم iOS */
  color: var(--text-main);
}
.mdd-search input::placeholder { color: var(--text-muted); font-size: .84rem; }
.mdd-search .material-symbols-outlined {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--text-muted); pointer-events: none;
}
.mdd-panel .mshop-opts {
  padding: 8px; max-height: 250px; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.mdd-empty { margin: 0; padding: 14px; text-align: center; font-size: .84rem; color: var(--text-muted); }
.mdd mark { background: rgba(255, 200, 0, .4); color: inherit; border-radius: 3px; padding: 0 1px; }


/* ============================================================
   افزودنی‌های این نسخه: دکمه شناور تماس/بله، بج راهنما، زوم تصویر،
   نمودار قیمت، توست سبد AJAX، بج‌های وضعیت دیدگاه و دوستونی ادمین
   ============================================================ */

/* ---- دکمه‌های شناور تماس (پایین راست) — ابعاد کوچک و کم‌جاشدید ---- */
.sticky-contact { position: fixed; bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 7px; z-index: 1200; }
.sticky-btn { width: 42px; height: 42px; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #fff; text-decoration: none; box-shadow: var(--shadow-md); transition: var(--transition); }
.sticky-btn:hover { transform: translateY(-2px); color: #fff; }
.sticky-bale { background: #fff; border: 1px solid #e3ece8; }
.sticky-bale .bale-ico { display: block; width: 21px; height: 21px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)); }
.sticky-bale-text { font-size: .55rem; font-weight: 800; line-height: 1; color: #091E42; }
.sticky-bale:hover { border-color: #12b886; }
.sticky-top { background: var(--dark-blue); opacity: 0; visibility: hidden; transform: translateY(6px); }
.sticky-top .material-symbols-outlined { font-size: 21px; }
.sticky-top.pardava-show { opacity: 1; visibility: visible; transform: none; }
.sticky-top:hover { background: var(--red); }
.sticky-call { background: var(--red); }
.sticky-call .material-symbols-outlined { font-size: 20px; }
.sticky-call:hover { background: var(--red-hover); }
/* روبیکا — هم‌اندازهٔ بقیهٔ دکمه‌های پشته؛ فقط آیکون کمی درشت‌تر تا مکعب رنگی خوانا بماند */
.sticky-rubika { background: #fff; border: 1px solid #e3ece8; }
.sticky-rubika img { display: block; width: 24px; height: 24px; }
.sticky-rubika:hover { border-color: #8f4bd6; }

/* ---- بج راهنمای بخش‌ها (پایین چپ، بالای دکمه اسکرول) ---- */
.guide-badge { position: fixed; bottom: 26px; right: 26px; z-index: 1190; }
.guide-badge-btn { width: 34px; height: 34px; border: 2px solid var(--red); color: var(--red); background: #fff; border-radius: 10px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-sm); animation: guidePulse 2.4s ease-in-out infinite; }
.guide-badge-btn:hover { background: var(--red); color: #fff; }
@keyframes guidePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(166,27,41,.25); } 50% { box-shadow: 0 0 0 7px rgba(166,27,41,0); } }
.guide-pop { position: absolute; bottom: 44px; right: 0; width: min(300px, 78vw); background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-lg); }
.guide-pop p { margin: 0 0 10px; font-size: .86rem; line-height: 1.9; }
.guide-pop-actions { display: flex; gap: 8px; }
.guide-pop button { border-radius: 9px; padding: 7px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; border: 1px solid var(--border-color); background: #fff; }
.guide-pop .guide-ok { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 720px) { .sticky-contact { bottom: 12px; left: 12px; } .sticky-btn { width: 38px; height: 38px; border-radius: 10px; } .sticky-btn .bale-ico { width: 19px; height: 19px; } .sticky-rubika img { width: 21px; height: 21px; } .guide-badge { bottom: 18px; right: 14px; } }

/* ---- زوم تصویر محصول ---- */
.pd-zoomable { position: relative; overflow: hidden; cursor: zoom-in; }
.pd-zoomable img { transition: transform .25s ease; will-change: transform; }
.pd-zoomable.pd-zoom-on img { transform: scale(2.1); }
.pd-zoom-hint { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(15,15,35,.72); color: #fff; font-size: .74rem; padding: 4px 9px; border-radius: 8px; display: flex; align-items: center; gap: 4px; pointer-events: none; opacity: .85; }
.pd-zoom-hint .material-symbols-outlined { font-size: 15px; }
.pd-lightbox { position: fixed; inset: 0; background: rgba(10,10,20,.88); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 24px; }
/* بدون این قانون، display:flex بر استایل پیش‌فرضِ [hidden] غلبه می‌کند و لایت‌باکس هرگز بسته نمی‌شود */
.pd-lightbox[hidden] { display: none; }
.pd-lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.pd-lightbox-close { position: absolute; top: 14px; inset-inline-end: 18px; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 10px; font-size: 1.7rem; width: 44px; height: 44px; cursor: pointer; }

/* ---- چیپ تگ‌های محصول ---- */
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.pd-tag-chip { font-size: .76rem; color: var(--text-muted); background: var(--light-blue, #F4F5FF); border: 1px solid var(--border-color); border-radius: 8px; padding: 3px 9px; text-decoration: none; }
.pd-tag-chip:hover { color: var(--red); border-color: var(--red); text-decoration: none; }

/* ---- نمودار روند قیمت (ادمین + فرانت) ---- */
.trend-wrap { border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; background: #fff; }
.trend-svg { width: 100%; height: 140px; display: block; }
.trend-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: .82rem; color: var(--text-muted); direction: rtl; }
.pd-price-trend { margin: 20px 0 6px; }
.pd-price-trend h2 { font-size: 1.05rem; margin-bottom: 10px; }

/* ---- توست سبد خرید AJAX ---- */
.cart-toast { position: fixed; bottom: 96px; right: 50%; transform: translateX(50%) translateY(14px); background: #0F0F23; color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 2100; opacity: 0; visibility: hidden; transition: all .25s ease; box-shadow: var(--shadow-lg); font-size: .9rem; }
.cart-toast.show { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
.cart-toast.err { background: var(--red); }
.cart-toast a { color: #ffd7dd; font-weight: 700; text-decoration: underline; }
.cart-toast-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; }

/* ---- ادمین: دو ستونی، بج وضعیت دیدگاه، نوار حذف گروهی ---- */
.admin-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.admin-two-col .admin-panel { margin: 0; }
.status-pill { font-size: .72rem; font-weight: 700; border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.status-pill.st-pending { background: #FFF4D6; color: #8a6100; }
.status-pill.st-approved { background: #DDF5E7; color: #00693B; }
.status-pill.st-rejected { background: #FBE3E6; color: var(--red); }
.cm-moderation { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cm-moderation form { display: contents; }
.cm-approve { border-color: #00A049 !important; color: #00693B !important; }
.cm-reject { border-color: var(--red) !important; color: var(--red) !important; }
.cm-moderation button:disabled { opacity: .45; cursor: default; }
.pl-bulkbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.pl-bulkbar .pl-bulk-del, .pl-bulkbar .pl-bulk-del-filtered { border: 1px solid var(--red); color: var(--red); cursor: pointer; }
.pl-bulkbar .pl-bulk-del:disabled { opacity: .45; cursor: default; }
.pl-check { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }
table.pl-table input[type="checkbox"].pl-check { vertical-align: middle; }
.visit-bar-search .visit-bar-fill { background: #2f6fed; }
.sr-zero td:first-child { color: var(--red); font-weight: 700; }
.pd-comment-login { text-align: center; padding: 22px; }
.pd-comment-login .btn-primary { display: inline-block; margin-top: 8px; }


/* ===== صفحه ۴۰۴ / خطا — رندر درست در موبایل (meta viewport از layout) ===== */
.nf-wrap { max-width: 560px; margin: 48px auto 64px; background: var(--white); border-radius: 20px;
  padding: 44px 28px; text-align: center; box-shadow: var(--shadow-md); }
.nf-wrap .nf-icon { font-size: 56px; color: var(--red); margin-bottom: 10px; }
.nf-wrap h1 { font-size: 1.25rem; font-weight: 900; color: var(--text-main); margin-bottom: 10px; }
.nf-wrap .nf-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 2; margin-bottom: 22px; }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nf-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-color);
  border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: 0.88rem; color: var(--text-main);
  background: var(--light-blue); transition: var(--transition); }
.nf-btn:hover { border-color: var(--red); color: var(--red); }
.nf-btn .material-symbols-outlined { font-size: 20px; }
.nf-btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.nf-btn.primary:hover { background: var(--red-hover); color: #fff; }

/* ============================================================= */
/* ============ منو — موبایل (mnav-*) — کاملاً جدا از دسکتاپ ======= */
/* کشویی از سمت راست؛ همه استایل‌های منوی موبایل فقط همین‌جاست.   */
/* ============================================================= */
.pardava-menu-btn {
  width: 40px; height: 40px; border-radius: 10px; color: var(--text-main);
  display: none; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.pardava-menu-btn:active { background: var(--light-blue); color: var(--red); }
.pardava-menu-btn .material-symbols-outlined { font-size: 24px; }

.mnav-backdrop {
  position: fixed; inset: 0; background: rgba(20, 21, 40, 0.55);
  z-index: 1150; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.mnav-backdrop.mnav-show { opacity: 1; pointer-events: auto; }

.mnav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; z-index: 1200; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none; visibility: hidden;
}
.mnav.mnav-open { transform: translateX(0); box-shadow: -16px 0 48px rgba(0, 0, 0, 0.25); visibility: visible; }

/* قفل اسکرول پس‌زمینه هنگام باز بودن منو */
html.mnav-lock, html.mnav-lock body { overflow: hidden; }

.mnav-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-color);
  background: var(--dark-blue); color: #fff; flex-shrink: 0;
}
.mnav-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 0.95rem; min-width: 0; }
.mnav-brand-img { height: 28px; width: auto; border-radius: 8px; }
.mnav-brand-letter { width: 28px; height: 28px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 900; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mnav-brand { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mnav-close {
  width: 38px; height: 38px; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mnav-close:active { background: var(--red); }
.mnav-close .material-symbols-outlined { font-size: 22px; }

.mnav-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 0 24px; overscroll-behavior: contain; }

/* دکمه‌های ورود / حساب / سبد */
.mnav-cta-row { display: flex; flex-direction: column; gap: 8px; padding: 4px 14px 14px; }
.mnav-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.9rem;
  padding: 12px; border-radius: 12px; min-height: 46px;
}
.mnav-cta .material-symbols-outlined { font-size: 20px; }
.mnav-cta-ghost { background: var(--light-blue); color: var(--red); border: 1px solid rgba(166, 27, 41, 0.18); }

.mnav-section-title {
  display: flex; align-items: center; gap: 6px; padding: 14px 16px 8px;
  font-size: 0.72rem; font-weight: 800; color: var(--text-muted); letter-spacing: 0.3px;
}
.mnav-section-title .material-symbols-outlined { font-size: 16px; color: var(--red); }

.mnav-list { display: flex; flex-direction: column; }
.mnav-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  font-size: 0.92rem; font-weight: 600; color: var(--text-main);
  border-bottom: 1px dashed #EEF0F8; min-height: 46px; transition: var(--transition);
}
.mnav-link:active { background: var(--light-blue); color: var(--red); }
.mnav-link .material-symbols-outlined { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.mnav-link:active .material-symbols-outlined { color: var(--red); }

/* آکاردئون دسته‌بندی در منوی موبایل: اول والد‌ها؛ با هر ضربه روی mnav-cat-toggle
   زیرشاخه‌های همان سطح باز می‌شوند (کلاس cat-open روی li) تا آخرین سطح. */
.mnav-cat-row { display: flex; align-items: stretch; border-bottom: 1px dashed #EEF0F8; }
.mnav-cat-row .mnav-link { flex: 1; min-width: 0; }
.mnav-cat-count { margin-right: auto; font-size: 0.68rem; color: var(--text-muted); background: #f4f4f6; border-radius: 20px; padding: 2px 8px; font-weight: 700; flex-shrink: 0; }
.mnav-cat-toggle { border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; flex-shrink: 0; color: var(--text-muted); transition: var(--transition); font-family: inherit; }
.mnav-cat-toggle:active { color: var(--red); background: var(--light-blue); }
.mnav-cat-toggle .material-symbols-outlined { font-size: 22px; transition: transform 0.18s ease; display: block; }
.mnav-sub { display: none; list-style: none; margin: 0; padding-right: 12px; background: #FBFBFD; }
.mnav-cat.cat-open > .mnav-cat-row .mnav-cat-toggle .material-symbols-outlined { transform: rotate(180deg); }
.mnav-cat.cat-open > .mnav-cat-row .mnav-cat-toggle { color: var(--red); }
.mnav-cat.cat-open > .mnav-cat-row .mnav-link { color: var(--red); }
.mnav-cat.cat-open > .mnav-sub { display: block; }

/* جست‌وجوی داخل منوی کشویی — فرم + اتوکامپلیت کامل داخل کشو */
.mnav-search { padding: 12px 14px 4px; position: relative; }
.mnav-search .pardava-search-bar input { padding: 10px 12px; font-size: 0.9rem; }
.mnav-search .pardava-search-btn { padding: 0 14px; }
.mnav-search .sg-box { max-height: 46dvh; z-index: 30; }

@media (max-width: 768px) {
  .pardava-menu-btn { display: inline-flex; }
}

/* ============================================================= */
/* ============ صفحه فروشگاه (shop-*) — فیلتر مرتب + پیجینیشن ==== */
/* ============================================================= */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.shop-head .pardava-section-header { margin-bottom: 0; flex: 1; min-width: 200px; }
.shop-count {
  display: inline-flex; align-items: center; gap: 6px; background: var(--white);
  border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow-sm);
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap;
}
.shop-count b { color: var(--red); font-weight: 900; }
.shop-count .material-symbols-outlined { font-size: 18px; color: var(--red); }

/* پنل جست‌وجو + فیلتر دسته‌ها — چیپ‌های منظم با فاصله یکسان */
.shop-panel {
  background: var(--white); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow-sm); margin: 16px 0 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.shop-search { max-width: none !important; margin-bottom: 0 !important; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-filters .chip { margin: 0; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 10px; }
.shop-filters .chip .material-symbols-outlined { font-size: 16px; }
.shop-filters-label { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 800; color: var(--text-muted); }
.shop-filters-label .material-symbols-outlined { font-size: 17px; color: var(--red); }

/* ---- دراپ‌داون سرچ‌دار دسته‌بندی‌ها (فقط دسکتاپ؛ موبایل شیت فیلتر دارد) ---- */
/* هماهنگ با قالب: همان شعاع/رنگ/سایه چیپ‌ها و فیلدهای سایت — قرمز برند روی حالت فعال */
.cat-dd { position: relative; display: inline-block; max-width: 100%; }

/* ==== دراپ‌داون سرچ‌دار عمومی پنل (ssd) — هم‌خانواده cat-dd فروشگاه ==== */
.ssd { position: relative; display: inline-block; min-width: 190px; max-width: 100%; }
.ssd .ssd-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; height: 0; padding: 0; border: 0; }
.ssd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 8px 13px; border: 1.5px solid var(--border-color); border-radius: 10px;
  background: #fff; font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--text-main);
  cursor: pointer; transition: var(--transition); text-align: right;
}
.ssd-btn:hover { border-color: var(--red); }
.ssd.open .ssd-btn, .ssd-btn[aria-expanded="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(166,27,41,0.08); }
.ssd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssd-label.ssd-placeholder { color: var(--text-muted); font-weight: 400; }
.ssd-chev { font-size: 19px; color: var(--red); transition: transform .18s; }
.ssd-btn[aria-expanded="true"] .ssd-chev { transform: rotate(180deg); }
.ssd-panel {
  position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 100%; width: max-content; max-width: 320px;
  background: #fff; border: 1px solid var(--border-color); border-radius: 12px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.ssd-search { border-bottom: 1px solid var(--border-color); }
.ssd-input {
  width: 100%; border: 0; outline: 0; padding: 9px 14px; font: inherit; font-size: 0.87rem;
  background: #fafafa;
}
.ssd-list { max-height: 260px; overflow-y: auto; padding: 4px; }
.ssd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  border: 0; background: transparent; font: inherit; font-size: 0.86rem; color: var(--text-main);
  padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: right;
}
.ssd-item:hover, .ssd-item.kb { background: var(--light-blue); }
.ssd-item.on { background: rgba(166,27,41,0.08); color: var(--red); font-weight: 800; }
.ssd-item .ssd-item-check { font-size: 16px; color: var(--red); visibility: hidden; }
.ssd-item.on .ssd-item-check { visibility: visible; }
.ssd-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssd-empty { padding: 12px; text-align: center; font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.cat-dd-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 9px 16px; border: 1.5px solid var(--border-color); border-radius: 10px;
  background: #fff; font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--text-main);
  cursor: pointer; transition: var(--transition); text-align: right;
}
.cat-dd-btn:hover { border-color: var(--red); color: var(--red); }
.cat-dd.open .cat-dd-btn { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px rgba(166,27,41,0.08); }
.cat-dd-btn > .material-symbols-outlined { font-size: 19px; color: var(--red); }
.cat-dd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-dd-label b { font-weight: 900; color: inherit; }
.cat-dd-cnt {
  display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 99px;
  background: rgba(166,27,41,0.08); color: var(--red); font-size: 0.74rem; font-weight: 800; white-space: nowrap;
}
.cat-dd-chev { font-size: 20px !important; color: var(--text-muted) !important; transition: transform 0.25s ease; }
.cat-dd.open .cat-dd-chev { transform: rotate(180deg); }
.cat-dd-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: min(340px, calc(100vw - 60px)); padding: 12px;
  background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
  box-shadow: var(--shadow-lg); animation: catDdIn 0.18s ease both;
}
@keyframes catDdIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cat-dd-search { position: relative; }
.cat-dd-search .material-symbols-outlined {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  font-size: 18px; color: var(--text-muted); pointer-events: none;
}
.cat-dd-search input {
  width: 100%; padding: 9px 36px 9px 12px; border: 1.5px solid var(--border-color);
  border-radius: 10px; background: var(--light-blue); font: inherit; font-size: 0.85rem; color: var(--text-main);
}
.cat-dd-search input:focus { outline: none; border-color: var(--red); background: #fff; }
.cat-dd-list { max-height: 300px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(166,27,41,0.3) transparent; }
.cat-dd-list::-webkit-scrollbar { width: 5px; }
.cat-dd-list::-webkit-scrollbar-thumb { background: rgba(166,27,41,0.3); border-radius: 99px; }
.cat-dd-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px;
  font-size: 0.86rem; font-weight: 600; color: var(--text-main); text-decoration: none;
  padding-inline-start: calc(12px + var(--dd-depth, 0) * 14px); transition: background 0.15s ease, color 0.15s ease;
}
/* display:flex صفت hidden مرورگر را خنثی می‌کند — بدون این، فیلتر زنده پنهان نمی‌شود */
.cat-dd-item[hidden] { display: none !important; }
.cat-dd-item:hover { background: var(--light-blue); color: var(--red); }
.cat-dd-item.kb { background: rgba(166,27,41,0.06); color: var(--red); }
.cat-dd-item.on { background: rgba(166,27,41,0.08); color: var(--red); font-weight: 900; }
.cat-dd-item .cat-dd-item-count {
  margin-inline-start: auto; font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  background: var(--light-blue); border-radius: 99px; padding: 1px 8px; white-space: nowrap;
}
.cat-dd-item .cat-dd-item-ico { font-size: 17px; margin-inline-start: 2px; visibility: hidden; color: var(--red); }
.cat-dd-item.on .cat-dd-item-ico { visibility: visible; }
.cat-dd-item mark { background: rgba(255,200,0,0.35); color: inherit; border-radius: 3px; padding: 0 1px; }
.cat-dd-empty { margin-top: 8px; padding: 10px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }
/* بدون جاوااسکریپت هم دسته‌ها در دسترس بمانند */
.no-js .cat-dd-panel { display: block !important; position: static !important; width: 100% !important; box-shadow: none; animation: none; }

/* پیجینیشن فروشگاه */
.shop-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 50px; }
.shop-pager a, .shop-pager span {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px solid var(--border-color); border-radius: 10px; background: #fff;
  font-weight: 700; font-size: 0.9rem; color: var(--text-main); transition: var(--transition);
}
.shop-pager a:hover { border-color: var(--red); color: var(--red); background: rgba(166, 27, 41, 0.04); }
.shop-pager .on { background: var(--red); border-color: var(--red); color: #fff; }
.shop-pager .dots { border: none; background: none; color: var(--text-muted); min-width: 24px; padding: 0; }
.shop-pager .arrow { font-size: 0.85rem; }
.shop-pager .material-symbols-outlined { font-size: 19px; }
.shop-pager a.disabled { opacity: 0.4; pointer-events: none; }
.shop-pager-info { flex-basis: 100%; text-align: center; font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
  .shop-head { margin-top: 16px; }
  .shop-head .pardava-section-header { padding: 14px 16px; font-size: 1.05rem; }
  .shop-count { padding: 10px 14px; font-size: 0.78rem; }
  /* موبایل: پنل سرچ/چیپ دسته‌ها کلاً حذف — سرچ در منوی کشویی راست،
     دسته‌بندی‌ها در شیت «فیلترها» از پایین (خواسته کاربر؛ بعد از تعریف base آمده تا override تضمین شود) */
  .shop-panel, .shop-filters { display: none; }
  .shop-filters { gap: 6px; }
  .shop-filters .chip { padding: 7px 12px; font-size: 0.8rem; }
  /* پیجینیشن موبایل: لمسی، بدون سرریز — شماره‌ها جمع‌وجور */
  .shop-pager { gap: 5px; margin-bottom: 40px; }
  .shop-pager a, .shop-pager span { min-width: 38px; height: 38px; font-size: 0.85rem; padding: 0 8px; }
}

/* ============================================================
   صفحه ورود (/login) — ورود با کد تأیید (OTP) + ورود سریع
   استایل کامل کارت دو مرحله‌ای؛ RTL، موبایل‌اول، هم‌خانواده تم سایت
   ============================================================ */
.lg-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px 40px;
  background:
    radial-gradient(720px 340px at 85% -8%, rgba(166, 27, 41, 0.10), transparent 62%),
    radial-gradient(560px 300px at 8% 108%, rgba(15, 15, 35, 0.08), transparent 60%),
    var(--light-blue);
}
.lg-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border: 1px solid rgba(224, 224, 230, 0.9);
  border-radius: 22px;
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-lg);
}
.lg-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.lg-brand img { height: 44px; width: 44px; object-fit: contain; border-radius: 12px; }
.lg-brand strong { font-size: 1.12rem; color: var(--text-main); }
.lg-brand-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #C43A46);
  color: #fff; font-size: 1.3rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(166, 27, 41, 0.35);
}

/* استپر مراحل */
.lg-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 18px; }
.lg-step { display: inline-flex; align-items: center; gap: 7px; }
.lg-step i {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  min-width: 27px; height: 27px; padding: 0 6px; border-radius: 50%;
  background: #EEF0F7; color: var(--text-muted);
  font-size: 0.8rem; font-weight: 800; border: 2px solid transparent;
  transition: var(--transition);
}
.lg-step em { font-style: normal; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.lg-step.is-now i { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(166, 27, 41, 0.35); }
.lg-step.is-now em { color: var(--red); font-weight: 800; }
.lg-step.is-done i { background: rgba(0, 160, 73, 0.12); color: var(--green); border-color: rgba(0, 160, 73, 0.4); }
.lg-step.is-done em { color: var(--green); }
.lg-step-line { width: 44px; height: 2px; background: var(--border-color); margin: 0 10px; border-radius: 2px; }
.lg-step.is-done + .lg-step-line { background: rgba(0, 160, 73, 0.45); }

.lg-title { font-size: 1.22rem; font-weight: 800; color: var(--text-main); text-align: center; margin-bottom: 6px; }
.lg-sub { font-size: 0.85rem; color: var(--text-muted); text-align: center; line-height: 1.9; margin-bottom: 18px; }

/* هشدارها */
.lg-alert {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 0.82rem; line-height: 1.8;
  animation: lgSlideIn 0.3s ease;
}
.lg-alert .material-symbols-outlined { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.lg-alert strong { display: block; font-size: 0.86rem; }
.lg-alert small { color: inherit; opacity: 0.85; }
.lg-alert-err { background: rgba(166, 27, 41, 0.07); border: 1px solid rgba(166, 27, 41, 0.25); color: #8A1320; }
.lg-alert-ok { background: rgba(0, 160, 73, 0.07); border: 1px solid rgba(0, 160, 73, 0.3); color: #00743A; }
@keyframes lgSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* فرم */
.lg-form { display: flex; flex-direction: column; gap: 8px; }
.lg-label { font-size: 0.82rem; font-weight: 700; color: var(--text-main); }
.lg-input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--border-color); border-radius: 13px;
  background: #FBFBFD; color: var(--text-main);
  font-family: inherit; font-size: 1rem;
  transition: var(--transition);
}
.lg-input::placeholder { color: #B9BAC8; }
.lg-input:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 4px rgba(166, 27, 41, 0.10);
}
.lg-input-phone { text-align: center; font-size: 1.18rem; font-weight: 800; letter-spacing: 1px; }
.lg-input-otp {
  text-align: center; font-size: 1.5rem; font-weight: 800;
  letter-spacing: 0.55em; padding: 0 16px 0 calc(16px + 0.55em);
  direction: ltr;
}
.lg-input-otp::placeholder { letter-spacing: 0.55em; color: #CDCEDA; }

.lg-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; margin-top: 10px;
  background: linear-gradient(135deg, var(--red), #B92C38);
  color: #fff; font-size: 0.98rem; font-weight: 800;
  border-radius: 13px; box-shadow: 0 8px 20px rgba(166, 27, 41, 0.30);
  transition: var(--transition);
}
.lg-btn-primary:hover { background: linear-gradient(135deg, var(--red-hover), var(--red)); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(166, 27, 41, 0.38); }
.lg-btn-primary:active { transform: none; }
.lg-btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; }
.lg-btn-primary .material-symbols-outlined { font-size: 21px; }

/* ورود سریع */
.lg-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--text-muted); font-size: 0.76rem; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }
.lg-quick {
  border: 1px dashed var(--border-color); border-radius: 14px;
  background: #FAFAFC; overflow: hidden;
}
.lg-quick summary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; cursor: pointer; user-select: none;
  font-size: 0.84rem; font-weight: 700; color: var(--text-main);
  list-style: none;
}
.lg-quick summary::-webkit-details-marker { display: none; }
.lg-quick summary .material-symbols-outlined { font-size: 20px; color: var(--red); }
.lg-quick summary::after { content: "expand_more"; font-family: 'Material Symbols Outlined'; margin-inline-start: auto; font-size: 20px; color: var(--text-muted); transition: var(--transition); }
.lg-quick[open] summary::after { transform: rotate(180deg); }
.lg-quick[open] summary { border-bottom: 1px dashed var(--border-color); }
.lg-quick .lg-form { padding: 14px 16px 16px; }
.lg-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px; margin-top: 8px;
  background: #fff; color: var(--text-main);
  border: 1.5px solid var(--border-color); border-radius: 12px;
  font-size: 0.9rem; font-weight: 700; transition: var(--transition);
}
.lg-btn-ghost:hover { border-color: var(--red); color: var(--red); background: rgba(166, 27, 41, 0.04); }
.lg-btn-ghost .material-symbols-outlined { font-size: 20px; }

/* ارسال مجدد + تغییر شماره */
.lg-resend-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 0.8rem; }
.lg-linkbtn {
  background: none; border: none; padding: 4px 2px;
  color: var(--red); font-weight: 700; font-size: 0.82rem; font-family: inherit;
  border-bottom: 1px dashed rgba(166, 27, 41, 0.4); transition: var(--transition);
}
.lg-linkbtn:hover:not(:disabled) { color: var(--red-hover); border-bottom-style: solid; }
.lg-linkbtn:disabled { color: var(--text-muted); border-bottom-color: transparent; cursor: not-allowed; }
.lg-linkbtn-muted { color: var(--text-muted); font-weight: 600; }
.lg-linkbtn-muted:hover { color: var(--text-main); }
.lg-resend-timer {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EEF0F7; border-radius: 8px; padding: 4px 10px;
  font-size: 0.76rem; font-weight: 700; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* پاورقی کارت + لینک بازگشت */
.lg-foot {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-color);
  font-size: 0.74rem; color: var(--text-muted); line-height: 1.9;
}
.lg-foot .material-symbols-outlined { font-size: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.lg-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  padding: 8px 14px; border-radius: 10px; transition: var(--transition);
}
.lg-back:hover { color: var(--red); background: rgba(166, 27, 41, 0.06); }
.lg-back .material-symbols-outlined { font-size: 18px; }

/* موبایل */
@media (max-width: 480px) {
  .lg-wrap { padding: 18px 12px 32px; }
  .lg-card { padding: 24px 18px 20px; border-radius: 18px; }
  .lg-step-line { width: 26px; margin: 0 6px; }
  .lg-step em { display: none; } /* در موبایل فقط دایره شماره */
  .lg-input-otp { font-size: 1.3rem; letter-spacing: 0.4em; padding-inline-end: calc(16px - 0.4em); }
}
@media (prefers-reduced-motion: reduce) {
  .lg-alert { animation: none; }
  .lg-btn-primary, .lg-input, .lg-back { transition: none; }
}

/* ===== chenar-admin-polish v2 (2026-10-03) — admin login + buttons polish ===== */
.admin-login-wrap { background: linear-gradient(135deg, var(--dark-blue, #1e2145) 0%, #2f2233 55%, var(--red, #A61B29) 135%) !important; }
.admin-login-card { border: 1px solid rgba(166, 27, 41, .22); animation: chenar-login-in .45s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes chenar-login-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.admin-login-card input:focus { border-color: var(--red, #A61B29) !important; box-shadow: 0 0 0 3px rgba(166, 27, 41, .15) !important; outline: none !important; }
.admin-login-card .btn-primary, .admin-panel .btn-primary { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.admin-login-card .btn-primary:hover, .admin-panel .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(166, 27, 41, .28); }
.gd-edit[dir="ltr"] { text-align: left; }

/* ---------- صفحهٔ پرداخت سفارش (pay) — کارت مستطیلی دوردیفه‌ای که در نمای اول جا می‌شود ----------
   دسکتاپ: شبکهٔ دو ستونی (خلاصهٔ سفارش راست / اقدام پرداخت چپ) با نکته‌ها در ردیف پایین.
   موبایل: تک‌ستونی فشرده؛ مبلغ و دکمهٔ پرداخت بالای کارت، اقلام با اسکرول داخلی. */
.pay-card { max-width: 980px; margin: 12px auto; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "head head" "main side" "foot foot"; }
.pay-head { grid-area: head; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.pay-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 200, 0, 0.15); color: #B98900; border-radius: 8px; padding: 5px 11px; font-size: 0.78rem; font-weight: 800; }
.pay-number { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.pay-side { grid-area: side; padding: 13px 20px; border-inline-start: 1px dashed var(--line); display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.pay-main { grid-area: main; padding: 13px 20px; min-width: 0; }
.pay-foot { grid-area: foot; display: grid; grid-template-columns: 1fr; padding: 0 20px 12px; align-items: start; }
.pay-amount-box { background: var(--light-blue); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pay-amount-label { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.pay-amount { margin: 0; font-size: 1.3rem; font-weight: 900; color: var(--red); white-space: nowrap; }
.pay-sec-title { margin: 0 0 8px; font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.pay-lines { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; max-height: 208px; overflow: auto; }
.pay-lines li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink); }
.pay-lines li b { color: var(--ink); white-space: nowrap; }
.pay-line-title small { color: var(--muted); font-size: 0.78rem; }
.pay-totals { border-bottom: 1px dashed var(--line); padding-bottom: 4px; margin-bottom: 12px; }
.pay-meta { display: flex; flex-direction: column; gap: 6px; }
.pay-meta-row { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); line-height: 1.7; }
.pay-meta-row .material-symbols-outlined { font-size: 16px; color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.pay-addr { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* توضیحات سفارش (سقف ۱۰۰۰ کاراکتر) */
.pay-desc label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.pay-desc label small { color: var(--muted); font-weight: 600; }
.pay-desc textarea { width: 100%; min-height: 62px; max-height: 130px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-family: inherit; font-size: 0.84rem; line-height: 1.8; color: var(--ink); background: #fff; }
.pay-desc textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(166, 27, 41, 0.1); }
.pay-desc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.pay-desc-count { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.pay-desc-save { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--text-main); cursor: pointer; font-family: inherit; transition: var(--transition); }
.pay-desc-save:hover { border-color: var(--red); color: var(--red); }
.pay-desc-save.is-saved { border-color: var(--green); color: var(--green); }
.pay-desc-save:disabled { opacity: 0.6; cursor: default; }
.pay-form { display: flex; flex-direction: column; gap: 10px; }
.pay-form .pay-submit { width: 100%; padding: 12px 20px; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; text-align: right; background: var(--light-blue); border-radius: 10px; padding: 10px 12px; font-size: 0.76rem; color: var(--text-main); margin-bottom: 0; line-height: 1.8; }
.pay-note .material-symbols-outlined { font-size: 17px; color: var(--muted); flex-shrink: 0; }
/* هشدار پررنگ فیلترشکن بالای دکمهٔ پرداخت — دلیل اصلی «پرداخت کار نمی‌کند» مسدودسازی IP غیرایران توسط درگاه بانکی است */
.pay-warn { display: flex; gap: 8px; align-items: flex-start; background: rgba(255, 200, 0, 0.13); border: 1px solid rgba(255, 200, 0, 0.45); border-radius: 10px; padding: 8px 11px; font-size: 0.76rem; line-height: 1.8; color: var(--text-main); }
.pay-warn .material-symbols-outlined { font-size: 18px; color: #B98900; flex-shrink: 0; margin-top: 1px; }
/* اطلاع‌رسانی مهلت نگه‌داشت سفارش پرداخت‌نشده */
.pay-ttl { display: flex; gap: 8px; align-items: flex-start; background: var(--light-blue); border: 1px dashed var(--red); border-radius: 10px; padding: 8px 11px; font-size: 0.76rem; line-height: 1.8; color: var(--text-main); }
.pay-ttl .material-symbols-outlined { font-size: 18px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
.pay-ttl b { color: var(--red); }
.pay-expired { display: flex; gap: 8px; align-items: flex-start; background: rgba(166, 27, 41, 0.07); border: 1px solid rgba(166, 27, 41, 0.35); border-radius: 10px; padding: 10px 12px; font-size: 0.8rem; line-height: 1.9; color: var(--text-main); }
.pay-expired .material-symbols-outlined { font-size: 20px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
/* خط مهلت در صفحهٔ وضعیت سفارش */
.ot-ttl { display: flex; gap: 7px; align-items: flex-start; background: var(--light-blue); border: 1px dashed var(--red); border-radius: 10px; padding: 8px 11px; font-size: 0.78rem; line-height: 1.8; margin: 0 0 10px; color: var(--text-main); }
.ot-ttl .material-symbols-outlined { font-size: 17px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
.ot-ttl b { color: var(--red); }
.ot-ttl.ot-ttl-expired { background: rgba(166, 27, 41, 0.07); border-style: solid; }
.ot-ttl.ot-ttl-expired .material-symbols-outlined { color: var(--red); }
.pay-warn b { color: #B98900; }
.pay-hint { display: flex; gap: 5px; align-items: center; justify-content: center; margin: 0; font-size: 0.74rem; font-weight: 700; color: #B98900; }
.pay-hint .material-symbols-outlined { font-size: 14px; }
.pay-status-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 0; font-size: 0.8rem; color: var(--muted); font-weight: 700; align-self: center; }
.pay-status-link:hover { color: var(--red); }
.pay-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: pay-spin 0.7s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.btn-busy { opacity: 0.75; pointer-events: none; }

@media (max-width: 900px) {
  .pay-card { display: flex; flex-direction: column; padding: 12px 14px; gap: 9px; }
  .pay-head { padding: 0 0 7px; }
  .pay-side { padding: 0; border-inline-start: none; gap: 9px; }
  .pay-main { padding: 0; }
  .pay-foot { grid-template-columns: 1fr; padding: 0; gap: 8px; }
  /* در موبایل پیام امنیت در سربرگ صفحه هست؛ جعبهٔ تکراری حذف تا کارت در نمای اول جا شود */
  .pay-foot .pay-note { display: none; }
  .pay-lines { max-height: 120px; margin-bottom: 8px; padding-bottom: 8px; }
  .pay-sec-title { display: none; }
  .pay-totals { gap: 6px; margin-bottom: 10px; }
  .pay-totals li { font-size: 0.8rem; }
  .pay-meta { gap: 4px; }
  .pay-meta-row { font-size: 0.76rem; }
  .pay-addr { -webkit-line-clamp: 1; }
  .pay-amount { font-size: 1.22rem; }
  .pay-desc textarea { min-height: 46px; max-height: 110px; }
}

/* ---------- تأیید پیامکی موبایل در تسویه ---------- */
.co-phone-row { display: flex; gap: 8px; align-items: stretch; direction: ltr; }
.co-phone-row input { flex: 1; direction: ltr; }
/* موبایل کاربر ثبت‌نام‌شده: فقط‌خواندنی — نشانهٔ بصری قفل بودن فیلد */
.co-phone-row input[readonly] { background: #eef0f4; color: var(--text-muted); cursor: not-allowed; }
.co-otp-send, .co-otp-verify { border: 1px solid var(--red); background: var(--red); color: #fff; border-radius: 10px; padding: 0 14px; font-size: 0.8rem; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.co-otp-send:hover, .co-otp-verify:hover { background: var(--red-hover); border-color: var(--red-hover); }
.co-otp-send:disabled, .co-otp-verify:disabled { opacity: 0.55; cursor: not-allowed; }
.co-otp-box { display: flex; gap: 8px; align-items: stretch; }
.co-otp-box input { flex: 1; letter-spacing: 4px; text-align: center; font-weight: 800; }
.co-otp-msg { margin: -6px 0 0; font-size: 0.8rem; line-height: 1.9; }
.co-otp-msg.ok { color: var(--green); }
.co-otp-msg.err { color: var(--red); }
.co-phone-ok { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 160, 73, 0.1); color: var(--green); border-radius: 10px; padding: 0 12px; font-size: 0.8rem; font-weight: 800; white-space: nowrap; direction: rtl; }

/* ---------- صفحهٔ وضعیت سفارش (order thanks) ---------- */
.ot-fail { background: rgba(166, 27, 41, 0.08); color: var(--red); }
.ot-fail p { color: var(--muted); }
.ot-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ot-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 5px 11px; font-size: 0.78rem; font-weight: 800; }
.ot-chip.is-done { background: rgba(0, 160, 73, 0.1); color: var(--green); }
.ot-chip.is-wait { background: rgba(255, 200, 0, 0.15); color: #B98900; }
.ot-chip.is-info { background: rgba(63, 64, 100, 0.08); color: var(--text-main); }
.ot-chip.is-fail { background: rgba(166, 27, 41, 0.1); color: var(--red); }
.ot-sec-title { margin: 0 0 10px; font-size: 0.9rem; font-weight: 800; color: var(--ink); }

@media (max-width: 640px) {
  .co-otp-box { flex-wrap: wrap; }
  .co-otp-verify { padding: 10px 14px; }
}

/* ===================== تسویه‌حساب — نسخهٔ فشرده و ظریف (۱۴۰۵) ===================== */
/* هدف: کاهش ارتفاع صفحه، دکمه‌های ظریف، بدون اسکرول اضافه — موبایل‌محور */

/* ---- سربرگ صفحه + دکمهٔ راهنما ---- */
.content-head.co-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.content-head.co-head > div { min-width: 0; }
.co-help-open { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-color); background: #fff; color: var(--text-main); border-radius: 10px; padding: 7px 13px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: var(--transition); flex: none; }
.co-help-open:hover { border-color: var(--red); color: var(--red); background: var(--light-blue, #fff5f6); }
.co-help-open .material-symbols-outlined { font-size: 17px; }

/* ---- بخش‌بندی فرم: تماس / آدرس / باربری — فشرده ---- */
.co-form .co-sec { display: block; padding: 11px 0 2px; border-top: 1px dashed var(--line); }
.co-form .co-sec:first-of-type { border-top: 0; padding-top: 2px; }
.co-sec-title { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 800; color: var(--ink); margin-bottom: 9px; }
.co-sec-num { font-style: normal; width: 22px; height: 22px; border-radius: 7px; background: var(--red); color: #fff; font-size: .76rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }

.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.co-fields-geo { grid-template-columns: 1fr 1fr; }
.co-form .co-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 7px; min-width: 0; }
.co-label { font-size: .8rem; font-weight: 700; color: var(--text-main); }
.co-req { color: var(--red); font-weight: 800; }

/* ورودی‌ها: ظریف‌تر ولی لمس‌پذیر — ۱۶px در موبایل تا iOS زوم نکند */
.co-form input, .co-form select, .co-form textarea {
  width: 100%; min-width: 0; border: 1.5px solid var(--border-color); border-radius: 10px;
  padding: 9px 12px; font-size: 15px; font-family: inherit; background: #fff; color: var(--text-main);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.co-form input:focus, .co-form select:focus, .co-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(166, 27, 41, .08);
}
.co-form textarea { resize: vertical; min-height: 58px; line-height: 1.8; }
.co-form select { cursor: pointer; }

/* ---- استیت‌های اعتبارسنجی زنده ---- */
.co-field.ok input, .co-field.ok select, .co-field.ok textarea { border-color: var(--green); }
.co-field.err input, .co-field.err select, .co-field.err textarea { border-color: var(--red); background: rgba(166, 27, 41, .035); }
.co-err { display: flex; align-items: center; gap: 4px; color: var(--red); font-size: .73rem; font-weight: 700; line-height: 1.7; margin-top: 1px; }
.co-err .material-symbols-outlined { font-size: 13px; flex: none; }
.co-shake { animation: co-shake .4s ease; }
@keyframes co-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(5px); } 50% { transform: translateX(-4px); } 75% { transform: translateX(3px); } }

/* ---- نوار وضعیت فرم (بالای دکمهٔ ثبت) ---- */
.co-valid-bar { display: flex; align-items: flex-start; gap: 7px; border-radius: 10px; padding: 8px 12px; font-size: .8rem; font-weight: 700; margin: 0 0 10px; line-height: 1.8; }
.co-valid-bar.ok { background: rgba(0, 160, 73, .08); color: var(--green); }
.co-valid-bar.warn { background: rgba(255, 200, 0, .1); color: #8a6d00; }
.co-valid-bar .material-symbols-outlined { font-size: 17px; flex: none; }
.co-valid-bar[hidden] { display: none !important; }
.co-server-alert { margin-bottom: 12px; }

/* ---- دکمهٔ ثبت سفارش: ظریف و تمام‌عرض ---- */
.co-form .co-submit { width: 100%; padding: 11px 16px; font-size: .92rem; border-radius: 11px; margin-top: 2px; justify-content: center; gap: 6px; }

/* ---- خلاصهٔ صورتحساب: فشرده + چسبان در دسکتاپ + جمع‌شونده در موبایل ---- */
.co-summary .cart-totals { gap: 7px; margin-bottom: 12px; }
.co-summary .cart-totals li { font-size: .86rem; }
.co-sum-head { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; user-select: none; }
.co-sum-head::-webkit-details-marker { display: none; }
.co-sum-title { display: inline-flex; align-items: center; gap: 7px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.co-sum-title .material-symbols-outlined { font-size: 20px; color: var(--red); }
.co-sum-total { margin-inline-start: auto; font-weight: 800; color: var(--red); font-size: .95rem; white-space: nowrap; }
.co-sum-chev { font-size: 20px; color: var(--text-muted); transition: transform .2s ease; flex: none; }
.co-sum-details[open] .co-sum-chev { transform: rotate(180deg); }
@media (min-width: 769px) {
  /* دسکتاپ: سربرگ کلاسیک — فلش/کلیک لازم نیست ولی اگر بسته شد باز نمایش داده شود */
  .co-sum-chev { display: none; }
  .co-sum-head { cursor: default; }
}
@media (min-width: 901px) {
  .co-summary { position: sticky; top: 88px; }
}

/* ===================== ماژول باربری — کارت‌های روش (فشرده) ===================== */
/* هشدار: specificity — .contact-form label ستون‌چین است؛ کارت‌ها با .co-form پیشوند می‌گیرند تا چیدمان افقی تضمین شود */
.co-province-select, .co-city-select { width: 100%; }
.co-ship-box { border: 1px solid var(--border-color); border-radius: 11px; padding: 9px 12px 11px; margin: 2px 0 12px; }
.co-ship-box legend { font-size: .84rem; font-weight: 800; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.co-ship-weight { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.co-ship-list { display: flex; flex-direction: column; gap: 6px; }
.co-form .co-ship-card { display: flex; flex-direction: row; align-items: center; gap: 8px; border: 1.5px solid var(--border-color); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; background: #fff; }
.co-form .co-ship-card:hover { border-color: var(--red); }
.co-form .co-ship-card.selected { border-color: var(--red); background: var(--light-blue, #fff5f6); box-shadow: 0 2px 8px rgba(166, 27, 41, .08); }
.co-ship-card input[type="radio"] { accent-color: var(--red); width: 15px; height: 15px; flex: none; }
.co-ship-card.co-ship-off { opacity: .55; cursor: not-allowed; background: var(--light-bg, #f7f7f8); }
.co-ship-card.co-ship-off:hover { border-color: var(--border-color); }
.co-ship-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--light-blue, #f5f5f6); color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.co-ship-icon .material-symbols-outlined { font-size: 18px; }
.co-ship-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.co-ship-name { font-weight: 800; font-size: .85rem; }
.co-ship-desc { font-size: .72rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.co-ship-meta { font-size: .7rem; color: var(--text-muted); }
.co-ship-reason { color: var(--red); font-weight: 700; }
.co-ship-price { flex: none; text-align: left; min-width: 88px; }
.co-ship-price b { font-size: .85rem; color: var(--text-main); white-space: nowrap; }
.co-ship-free { color: var(--green) !important; }
.co-ship-msg { margin: 7px 2px 0; font-size: .74rem; color: var(--text-muted); line-height: 1.8; }
@media (max-width: 640px) {
  .co-form .co-ship-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 9px; }
  .co-ship-desc { display: none; } /* در موبایل پنهان — فقط نام و قیمت، بدون بلندشدگی */
  .co-ship-price { min-width: 0; width: auto; text-align: left; }
  .co-ship-price b { font-size: .82rem; }
  .co-ship-icon { width: 30px; height: 30px; }
  .co-ship-icon .material-symbols-outlined { font-size: 17px; }
}

/* ---- دسکتاپ: روش‌های باربری خیلی کوچک — کارت تک‌خطی، دو ستونه؛ همهٔ فرم در یک نما ---- */
@media (min-width: 641px) {
  .co-ship-box { padding: 6px 10px 8px; margin: 2px 0 10px; }
  .co-ship-box legend { font-size: .78rem; padding: 0 5px; gap: 6px; }
  .co-ship-weight { font-size: .68rem; }
  .co-ship-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 5px; }
  .co-form .co-ship-card { padding: 5px 9px; gap: 7px; border-radius: 9px; }
  .co-ship-card input[type="radio"] { width: 14px; height: 14px; }
  .co-ship-icon { width: 25px; height: 25px; border-radius: 7px; }
  .co-ship-icon .material-symbols-outlined { font-size: 14px; }
  .co-ship-body { flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; }
  .co-ship-name { font-size: .78rem; white-space: nowrap; }
  .co-ship-desc { display: none; } /* در دسکتاپ هم پنهان — کارت تک‌خطی و کوتاه */
  .co-ship-meta { font-size: .67rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .co-ship-price { min-width: 0; }
  .co-ship-price b { font-size: .78rem; }
  .co-ship-msg { font-size: .69rem; margin: 5px 2px 0; }
}

/* ---- مودال راهنمای ثبت سفارش ---- */
.co-help-mask { position: fixed; inset: 0; z-index: 1300; background: rgba(20, 20, 28, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-help-mask[hidden] { display: none !important; }
.co-help-modal { position: relative; background: #fff; border-radius: 16px; padding: 20px 22px; max-width: 640px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: var(--shadow-lg, 0 18px 50px rgba(0,0,0,.22)); }
.co-help-close { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border-color); background: #fff; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.co-help-close:hover { color: var(--red); border-color: var(--red); }
.co-help-close .material-symbols-outlined { font-size: 18px; }
.co-help-modal h3 { display: flex; align-items: center; gap: 7px; font-size: 1rem; margin: 0 0 12px; color: var(--red); }
.co-help-modal h3 .material-symbols-outlined { font-size: 20px; }
.co-help-steps { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: cohelp; display: flex; flex-direction: column; gap: 8px; }
.co-help-steps li { counter-increment: cohelp; position: relative; padding: 0 30px 0 0; font-size: .82rem; line-height: 1.95; color: var(--text-muted); }
.co-help-steps li b { color: var(--text-main); }
.co-help-steps li::before { content: counter(cohelp); position: absolute; right: 0; top: 3px; width: 21px; height: 21px; border-radius: 7px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.co-help-tips { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.co-help-tips p { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .78rem; line-height: 1.9; color: var(--text-muted); }
.co-help-tips p b { color: var(--text-main); }
.co-help-tips .material-symbols-outlined { font-size: 16px; color: var(--red); flex: none; margin-top: 4px; }
.co-help-ok { margin-top: 12px; width: 100%; padding: 10px 16px; font-size: .88rem; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- نوار چسبان پایین موبایل: همیشه مبلغ + دکمهٔ ثبت در دسترس (باریک) ---- */
.co-mbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(0, 0, 0, .09);
  border-top: 1px solid var(--line);
}
.co-mbar[hidden] { display: none !important; }
.co-mbar-txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.co-mbar-txt small { font-size: .68rem; color: var(--text-muted); }
.co-mbar-txt b { font-size: .95rem; color: var(--red); white-space: nowrap; }
.co-mbar-btn { flex: 1; padding: 10px; border-radius: 10px; font-weight: 800; font-size: .88rem; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.co-mbar-btn:disabled { opacity: .55; cursor: not-allowed; }
@media (min-width: 769px) { .co-mbar { display: none !important; } }

/* ---- ابزارهای چسبان صفحه زیر نوار بیایند، نه روی آن ---- */
@media (max-width: 768px) {
  body.co-has-mbar .sticky-contact { bottom: 68px; }
  body.co-has-mbar .guide-badge { bottom: 74px; }
}

/* ---- موبایل: فشرده‌سازی نهایی برای حذف اسکرول اضافه ---- */
@media (max-width: 768px) {
  .co-form-card { padding: 13px 12px 14px; }
  .co-summary { padding: 12px 12px 14px; }
  .co-form input, .co-form select, .co-form textarea { font-size: 16px; padding: 10px 12px; }
  .co-fields, .co-fields-geo { grid-template-columns: 1fr; gap: 0; }
  .cart-total-row b { font-size: 1.12rem; }
  body.co-has-mbar main.pardava-container { padding-bottom: 72px; }
  .co-help-open { padding: 6px 10px; font-size: .78rem; }
  .co-help-modal { padding: 16px 14px; max-height: 88vh; }
}


/* ===================== پنل باربری (/manage/shipping) ===================== */
.sh-intro { line-height: 2.1; }
.sh-quicknav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.sh-quicknav .chip { margin: 0; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 10px; text-decoration: none; }
.sh-quicknav .chip .material-symbols-outlined { font-size: 16px; }
.sh-method { border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; margin-bottom: 16px; background: #fff; }
.sh-method-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sh-method-head .sh-badge { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.sh-badge.on { background: rgba(46, 156, 108, .12); color: var(--green); }
.sh-badge.off { background: rgba(166, 27, 41, .1); color: var(--red); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.sh-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; }
.sh-grid input, .sh-grid select { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 9px; font-size: .85rem; width: 100%; }
.sh-sub { font-weight: 800; font-size: .85rem; margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.sh-zone-list { display: flex; flex-direction: column; gap: 8px; }
.sh-zone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 12px; }
.sh-zone-name { min-width: 110px; font-size: .82rem; }
.sh-zone-field { display: flex; flex-direction: column; gap: 2px; }
.sh-zone-field small { font-size: .68rem; color: var(--text-muted); }
.sh-zone-field input { width: 120px; padding: 6px 8px; border: 1px solid var(--border-color); border-radius: 7px; font-size: .8rem; }
.sh-hint { font-size: .75rem; color: var(--text-muted); line-height: 2; margin-top: 6px; }
.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sh-actions button { padding: 9px 18px; border-radius: 10px; font-weight: 700; font-size: .85rem; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sh-save { background: var(--red); color: #fff; }
.sh-ghost { background: var(--light-blue, #f0f0f1); color: var(--text-main); border: 1px solid var(--border-color) !important; }
.sh-danger { background: rgba(166, 27, 41, .08); color: var(--red); border: 1px solid rgba(166, 27, 41, .3) !important; }
.sh-prov-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sh-prov-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; border: 1px dashed var(--border-color); border-radius: 10px; padding: 7px 10px; }
.sh-prov-row b { min-width: 110px; }
.sh-add-prov { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.sh-add-prov select, .sh-add-prov input { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 9px; font-size: .82rem; }
.sh-sim-result { margin-top: 12px; }
.sh-sim-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.sh-sim-table th, .sh-sim-table td { border: 1px solid var(--border-color); padding: 8px 10px; text-align: center; }
.sh-sim-table th { background: var(--light-blue, #f7f7f8); }
.sh-sim-table td.best { color: var(--green); font-weight: 800; }
.sh-tax-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.sh-tax-state.on { background: rgba(46, 156, 108, .12); color: var(--green); }
.sh-tax-state.off { background: rgba(166, 27, 41, .1); color: var(--red); }
.sh-legal { font-size: .78rem; color: var(--text-muted); line-height: 2; border: 1px dashed var(--border-color); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
/* ---------- دکمه و مودال راهنمای صفحه باربری ---------- */
.sh-help-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 10px;
  border: 1px solid var(--border-color); background: #fff; color: var(--text-main);
  font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; transition: all .15s ease;
}
.sh-help-btn:hover { border-color: var(--red); color: var(--red); background: rgba(166, 27, 41, .05); }
.sh-help-btn .material-symbols-outlined { font-size: 18px; }
.sh-help-mask { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sh-help-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 28, .55); }
.sh-help-modal {
  position: relative; background: #fff; border-radius: 16px; padding: 22px 24px; max-width: 680px; width: 100%;
  max-height: 86vh; overflow: auto; box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.sh-help-close {
  position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border-color); background: #fff; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sh-help-close:hover { color: var(--red); border-color: var(--red); }
.sh-help-modal h3 { display: flex; align-items: center; gap: 7px; font-size: 1rem; margin: 0 0 10px; color: var(--red); }
.sh-help-modal h3 .material-symbols-outlined { font-size: 20px; }
.sh-help-lead { font-size: .8rem; line-height: 2; color: var(--text-muted); background: var(--light-blue, #f7f7f8); border-radius: 10px; padding: 9px 13px; margin: 0 0 12px; }
.sh-help-steps { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: shhelp; display: flex; flex-direction: column; gap: 9px; }
.sh-help-steps li { counter-increment: shhelp; position: relative; padding-right: 32px; font-size: .8rem; line-height: 2; color: var(--text-muted); }
.sh-help-steps li b { color: var(--text-main); }
.sh-help-steps li::before {
  content: counter(shhelp); position: absolute; right: 0; top: 4px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.sh-help-tips { border-top: 1px dashed var(--border-color); padding-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.sh-help-tips p { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .76rem; line-height: 1.9; color: var(--text-muted); }
.sh-help-tips .material-symbols-outlined { font-size: 16px; color: var(--red); flex: none; margin-top: 4px; }

/* ===== نقشهٔ سایت HTML (/sitemap) — فهرست کامل صفحه‌ها/دسته‌ها/کالاها برای کاربر و خزنده ===== */
.hsmap-sec { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 20px 24px; margin-bottom: 18px; }
.hsmap-sec > h2 { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hsmap-sec > h2 .material-symbols-outlined { font-size: 22px; color: var(--red); flex: none; }
.hsmap-sec > p.muted { margin: 0; }
.hsmap-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hsmap-links a {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 999px;
  background: var(--bg, #F4F5FF); color: var(--text-main); font-size: .84rem; font-weight: 600;
  border: 1px solid var(--line, #E0E0E6); transition: var(--transition);
}
.hsmap-links a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.hsmap-cols { columns: 3 240px; column-gap: 34px; }
.hsmap-cat { break-inside: avoid; margin-bottom: 20px; }
.hsmap-cat h3 { font-size: .95rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; display: flex; align-items: baseline; gap: 5px; }
.hsmap-cat h3 a { color: var(--red); }
.hsmap-cat h3 a:hover { text-decoration: underline; }
.hsmap-count { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.hsmap-cat ul { list-style: none; margin: 0; padding: 0; }
.hsmap-cat li a { display: block; padding: 3.5px 0; font-size: .85rem; color: var(--text-muted); transition: var(--transition); }
.hsmap-cat li a:hover { color: var(--red); }
.hsmap-xml {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--white); border: 1px dashed var(--line, #E0E0E6); border-radius: 14px;
  padding: 14px 18px; font-size: .85rem; color: var(--text-muted); margin-top: 22px;
}
.hsmap-xml .material-symbols-outlined { color: var(--red); font-size: 22px; flex: none; }
.hsmap-xml a { color: var(--red); font-weight: 700; }
.hsmap-xml a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .hsmap-sec { padding: 16px 14px; border-radius: 13px; }
  .hsmap-sec > h2 { font-size: 1rem; }
  .hsmap-links a { font-size: .8rem; padding: 6px 11px; }
  .hsmap-cat li a { font-size: .8rem; }
  .hsmap-cols { column-gap: 22px; }
}

/* ===== ذخیرهٔ ریل‌تایم صفحهٔ باربری (تسک ۴۸) — توست و حالت مشغول ===== */
.sh-toast-stack { position: fixed; left: 18px; bottom: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.sh-toast { display: flex; align-items: flex-start; gap: 8px; background: #1f2937; color: #fff; padding: 10px 14px; border-radius: 11px; box-shadow: 0 10px 28px rgba(2, 6, 23, .28); font-size: .84rem; line-height: 1.9; animation: shToastIn .22s ease; }
.sh-toast .material-symbols-outlined { font-size: 19px; flex: none; margin-top: 3px; }
.sh-toast.ok { background: #166534; }
.sh-toast.err { background: #991b1b; }
@keyframes shToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sh-spin { width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: shSpin .7s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
button.sh-busy { opacity: .85; pointer-events: none; }
   تسک ۵۰ — مودال‌های سراسری (ورود سریع / اشتراک‌گذاری) + بنر استیکی پایین
   ============================================================ */

/* ---- سیستم مودال عمومی ---- */
body.sh-modal-open { overflow: hidden; }
.sh-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sh-modal[hidden] { display: none; }
.sh-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 28, .58); backdrop-filter: blur(2px); }
.sh-modal-card {
  position: relative; background: #fff; border-radius: 18px; padding: 26px 24px 22px; width: 100%;
  max-width: 400px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: shModalIn .22s ease-out;
}
@keyframes shModalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.sh-modal-close {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border-color); background: #fff; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.sh-modal-close:hover { color: var(--red); border-color: var(--red); }
.sh-modal-close .material-symbols-outlined { font-size: 19px; }

/* ---- مودال ورود سریع ---- */
.sh-ql-card { max-width: 380px; }
.sh-ql-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.sh-ql-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.sh-ql-brand strong { font-size: .95rem; color: var(--text-main); }
.sh-ql-brand-letter {
  width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.sh-ql-title { font-size: 1.15rem; margin: 0 0 4px; color: var(--text-main); }
.sh-ql-reason {
  margin: 0 0 10px; font-size: .8rem; color: #8a1c2b; background: #fdf1f3; border: 1px solid #f3d3d9;
  border-radius: 10px; padding: 8px 12px; line-height: 1.9;
}
.sh-ql-sub { font-size: .78rem; color: var(--text-muted); line-height: 2; margin: 0 0 12px; }
.sh-ql-label { display: block; font-size: .8rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.sh-ql-input {
  width: 100%; height: 46px; border: 1.5px solid var(--border-color); border-radius: 12px;
  padding: 0 14px; font-size: 1.02rem; font-family: inherit; background: #fafbfc; transition: var(--transition);
}
.sh-ql-input:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(166, 27, 41, .08); }
.sh-ql-code { letter-spacing: 8px; text-align: center; font-weight: 800; font-size: 1.2rem; }
.sh-ql-btn { width: 100%; margin-top: 14px; justify-content: center; display: inline-flex; align-items: center; gap: 7px; }
.sh-ql-btn .material-symbols-outlined { font-size: 19px; }
.sh-ql-resend { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 13px; font-size: .76rem; }
.sh-ql-link { background: none; border: none; color: var(--red); font-family: inherit; font-size: .78rem; cursor: pointer; padding: 0; font-weight: 700; }
.sh-ql-link:hover { text-decoration: underline; }
.sh-ql-link[hidden] { display: none; }
.sh-ql-count { color: var(--text-muted); }
.sh-ql-count[hidden] { display: none; }
.sh-ql-msg { margin: 12px 0 0; font-size: .8rem; line-height: 2; border-radius: 10px; padding: 9px 12px; }
.sh-ql-msg.is-err { color: #8a1c2b; background: #fdf1f3; border: 1px solid #f3d3d9; }
.sh-ql-msg.is-ok { color: #14532d; background: #f0fdf4; border: 1px solid #bbe7c8; }

/* ---- مودال اشتراک‌گذاری ---- */
.sh-share-card { max-width: 430px; }
.sh-share-title { font-size: 1.1rem; margin: 0 0 4px; color: var(--text-main); }
.sh-share-subject {
  font-size: .78rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-share-native {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px;
  border: 1.5px dashed var(--red); color: var(--red); background: #fdf7f8; border-radius: 12px;
  padding: 10px; font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.sh-share-native:hover { background: #fbeaec; }
.sh-share-native .material-symbols-outlined { font-size: 19px; }
.sh-share-group-label { font-size: .72rem; font-weight: 800; color: var(--text-muted); margin: 10px 0 8px; }
.sh-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.sh-share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px;
  border: 1px solid var(--border-color); border-radius: 13px; background: #fff; cursor: pointer;
  font-family: inherit; font-size: .68rem; color: var(--text-main); text-decoration: none; transition: var(--transition);
}
.sh-share-btn:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sh-share-ico { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.sh-share-toast {
  position: fixed; bottom: 26px; right: 50%; transform: translateX(50%) translateY(8px);
  background: #111827; color: #fff; font-size: .8rem; padding: 10px 18px; border-radius: 11px;
  opacity: 0; transition: all .3s ease; z-index: 3200; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.sh-share-toast.show { opacity: 1; transform: translateX(50%) translateY(0); }

/* گزینهٔ ثانویه در گیت دیدگاه */
.pd-comment-login { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pd-comment-login h3 { margin: 0; }
.pd-comment-login .btn-primary { border: none; cursor: pointer; font-family: inherit; }
.pd-comment-login-alt { font-size: .75rem; color: var(--text-muted); text-decoration: underline; }
.pd-comment-login-alt:hover { color: var(--red); }

/* ---- بنر نازک استیکی پایین صفحه (کالاهای موجود، تک‌به‌تک) ---- */
/* وسطِ پایین — دو گوشه برای پشتهٔ تماس (چپ) و بج راهنما (راست) آزاد می‌ماند */
.sh-ticker {
  position: fixed; bottom: 14px; right: 50%; z-index: 1100;
  transform: translateX(50%) translateY(12px);
  display: flex; align-items: center; gap: 4px; width: max-content; max-width: min(430px, calc(100vw - 140px));
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border-color); border-radius: 13px;
  box-shadow: 0 8px 28px rgba(9, 30, 66, .16); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s ease, transform .4s ease;
}
.sh-ticker.sh-tick-show { opacity: 1; transform: translateX(50%) translateY(0); }
.sh-ticker[hidden] { display: none; }
.sh-tick-link {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 12px; min-width: 0;
  text-decoration: none; color: var(--text-main); flex: 1; min-height: 46px;
  transition: opacity .38s ease, transform .38s ease;
}
.sh-ticker.sh-tick-out .sh-tick-link { opacity: 0; transform: translateY(-6px); }
.sh-tick-img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; background: #f3f4f6; }
.sh-tick-ico {
  width: 36px; height: 36px; border-radius: 9px; flex: none; display: inline-flex; align-items: center;
  justify-content: center; background: #f6f1f2; color: var(--red);
}
.sh-tick-ico .material-symbols-outlined { font-size: 19px; }
.sh-tick-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sh-tick-name {
  font-size: .76rem; font-weight: 700; color: var(--text-main); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.sh-tick-price { font-size: .72rem; font-weight: 800; color: var(--red); white-space: nowrap; }
.sh-tick-close {
  flex: none; width: 28px; height: 28px; margin: 0 6px 0 2px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}
.sh-tick-close:hover { background: #f3f4f6; color: var(--red); }
.sh-tick-close .material-symbols-outlined { font-size: 16px; }
@media (max-width: 720px) {
  .sh-ticker { bottom: 10px; max-width: calc(100vw - 128px); }
  .sh-tick-name { max-width: 150px; font-size: .72rem; }
  .sh-tick-price { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-modal-card { animation: none; }
  .sh-ticker, .sh-tick-link { transition: none; }
  .sh-ticker.sh-tick-out .sh-tick-link { opacity: 1; transform: none; }
}
