/* ==========================================================================
   BRAND | Wood - Building - Trade
   فایل استایل اصلی صفحه خانه
   ساختار: توکن‌های طراحی -> عمومی -> هدر -> هیرو -> دسته‌بندی‌ها ->
           پروژه‌ها -> چرا ما -> محصولات -> همکاری -> مقالات -> فوتر
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) توکن‌های طراحی (رنگ‌ها، تایپوگرافی، فاصله‌ها)
   بر اساس پالت رنگی طرح: سبز تیره، قهوه‌ای چوب، تن روشن، کرم و مشکی
   -------------------------------------------------------------------------- */
:root {
  /* پالت رنگی برند */
  --color-forest: #173a35;      /* سبز تیره - رنگ اصلی برند */
  --color-forest-light: #21524a;
  --color-wood: #8a5a32;        /* قهوه‌ای چوب - رنگ ثانویه */
  --color-wood-light: #b08a57;  /* تن روشن‌تر چوب - رنگ تاکیدی */
  --color-sand: #d8c6a5;        /* شنی روشن - پس‌زمینه‌های ملایم */
  --color-cream: #f7f5f0;       /* کرم - پس‌زمینه عمومی سایت */
  --color-ink: #262521;         /* مشکی گرم - متن اصلی */
  --color-muted: #6f6a60;       /* خاکستری گرم - متن فرعی */
  --color-white: #ffffff;
  --color-border: #e6e0d4;

  /* تایپوگرافی: یک فونت با وزن‌های متفاوت برای حفظ یکپارچگی */
  --font-base: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;

  /* شعاع گوشه‌ها و سایه‌ها - هماهنگ با ظاهر نرم و گرم طرح */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px -12px rgba(23, 58, 53, 0.18);

  --container-max: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--color-ink);
  background-color: var(--color-cream);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .2s ease; }
img { max-width: 100%; display: block; }

.container-brand {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--color-ink); margin: 0; }

/* عنوان‌های سکشن: بدون لیبل تزئینی اضافه، فقط سلسله‌مراتب تایپوگرافی */
.section-heading { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.section-pad { padding: 72px 0; }

.link-arrow {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-wood);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow:hover { color: var(--color-forest); }

/* دکمه‌ها */
.btn-brand-primary {
  background: var(--color-forest);
  color: var(--color-white);
  border: 1px solid var(--color-forest);
  border-radius: var(--radius-sm);
  padding: 13px 30px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s ease;
}
.btn-brand-primary:hover { background: var(--color-forest-light); color: var(--color-white); }

.btn-brand-outline {
  background: var(--color-cream);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 30px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s ease;
}
.btn-brand-outline:hover { background: var(--color-white); border-color: var(--color-wood-light); }

/* --------------------------------------------------------------------------
   2) هدر بالای سایت (اطلاعات تماس) و منوی اصلی
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--color-forest);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}
.topbar .container-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-contact { display: flex; align-items: center; gap: 22px; }
.topbar-contact a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a:hover { color: var(--color-sand); }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-links a:hover { color: var(--color-sand); }
.lang-switch { border-inline-start: 1px solid rgba(255,255,255,.25); padding-inline-start: 18px; }

.main-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 999;
}
.main-nav .container-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo .logo-mark {
  width: 44px; height: 44px;
  background: var(--color-forest);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-sand);
  font-size: 1.3rem;
}
.brand-logo .logo-text { line-height: 1.2; }
.brand-logo .logo-text strong { display: block; font-size: 1.15rem; letter-spacing: .5px; }
.brand-logo .logo-text span { display: block; font-size: .68rem; color: var(--color-muted); letter-spacing: 1.5px; }

.nav-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-menu a { font-weight: 500; font-size: .95rem; color: var(--color-ink); }
.nav-menu a:hover, .nav-menu .active a { color: var(--color-wood); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-cream);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.nav-actions .icon-btn:hover { background: var(--color-sand); }
/* ریست استایل پیش‌فرض دکمه‌ها برای آیکون‌هایی که از تگ button ساخته شده‌اند */
button.icon-btn {
  font: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   پنل جستجوی سایت (Overlay)
   با کلیک روی آیکون ذره‌بین نمایش داده می‌شود و روی کل صفحه قرار می‌گیرد
   -------------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 58, 53, .55);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-panel {
  background: var(--color-white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 640px;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.35);
}
.search-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-ink);
}
.search-close:hover { background: var(--color-sand); }

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 8px 8px 16px;
}
.search-form i { color: var(--color-muted); font-size: 1.1rem; }
.search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-base);
  font-size: 1rem;
  background: transparent;
  padding: 8px 4px;
}
.search-form button { white-space: nowrap; }

.search-suggestions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--color-muted);
}
.search-suggestions a {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--color-ink);
}
.search-suggestions a:hover { background: var(--color-sand); }

/* --------------------------------------------------------------------------
   3) بخش هیرو (تصویر شاخص + عنوان + دکمه‌ها)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(20,32,29,.88) 0%, rgba(20,32,29,.45) 55%, rgba(20,32,29,.05) 100%),
              url('../img/demo-13.jpg') center/cover no-repeat;
}
.hero-content { max-width: 620px; color: var(--color-white); }
.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.5;
  margin-bottom: 18px;
}
.hero-content p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-brand-outline { background: var(--color-cream); }

/* --------------------------------------------------------------------------
   4) کارت‌های دسته‌بندی (بازرگانی، چوب، ساختمان، مبلمان)
   -------------------------------------------------------------------------- */
.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.category-card .cat-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-sand);
  color: var(--color-forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 22px 22px 0;
}
.category-card .cat-body { padding: 14px 22px 22px; }
.category-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.category-card p { font-size: .9rem; color: var(--color-muted); margin-bottom: 0; }
.category-card .cat-image { height: 150px; overflow: hidden; margin-top: 14px; }
.category-card .cat-image img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   5) پروژه‌های منتخب
   -------------------------------------------------------------------------- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}
.project-card { border-radius: var(--radius-md); overflow: hidden; position: relative; height: 100%; }
.project-card .project-img { height: 230px; overflow: hidden; }
.project-card .project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-card .project-info { padding: 16px 4px 0; }
.project-card .project-info h3 { font-size: 1.02rem; margin-bottom: 4px; }
.project-card .project-info p { font-size: .85rem; color: var(--color-muted); margin: 0; }

/* --------------------------------------------------------------------------
   6) نوار آماری «چرا ما؟»
   -------------------------------------------------------------------------- */
.stats-band { background: var(--color-forest); color: var(--color-white); }
.stats-band .stat-item { text-align: center; padding: 8px 10px; }
.stats-band .stat-icon { font-size: 1.6rem; color: var(--color-sand); margin-bottom: 10px; }
.stats-band .stat-number { font-size: 1.9rem; font-weight: 700; }
.stats-band .stat-label { font-size: .85rem; color: rgba(255,255,255,.75); }
.stats-band .stats-copy h3 { color: var(--color-white); font-size: 1.6rem; margin-bottom: 12px; }
.stats-band .stats-copy p { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------------------
   7) محصولات منتخب (اسلایدر)
   -------------------------------------------------------------------------- */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.product-card:hover { box-shadow: var(--shadow-soft); }
.product-card .product-img { height: 190px; overflow: hidden; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-info { padding: 14px 16px 18px; }
.product-card .product-info h3 { font-size: .98rem; margin-bottom: 4px; }
.product-card .product-info span { font-size: .82rem; color: var(--color-muted); }

.slider-nav-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink);
  transition: all .2s ease;
}
.slider-nav-btn:hover { background: var(--color-forest); color: var(--color-white); border-color: var(--color-forest); }

/* --------------------------------------------------------------------------
   8) بنر همکاری با نمایندگان
   -------------------------------------------------------------------------- */
.partner-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(110deg, rgba(46,32,20,.92) 10%, rgba(46,32,20,.55) 60%, rgba(46,32,20,.15) 100%),
              url('../img/demo-03.jpg') center/cover no-repeat;
  color: var(--color-white);
  padding: 48px;
}
.partner-features { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.partner-features .pf-item { text-align: center; font-size: .82rem; color: rgba(255,255,255,.85); max-width: 100px; }
.partner-features .pf-item i { font-size: 1.5rem; display: block; margin-bottom: 8px; color: var(--color-sand); }
.partner-banner h3 { color: var(--color-white); font-size: 1.7rem; margin-bottom: 12px; max-width: 480px; }
.partner-banner p { color: rgba(255,255,255,.75); max-width: 480px; margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   9) آخرین مقالات
   -------------------------------------------------------------------------- */
.article-card { border-radius: var(--radius-md); overflow: hidden; background: var(--color-white); border: 1px solid var(--color-border); height: 100%; }
.article-card .article-img { height: 190px; overflow: hidden; }
.article-card .article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card .article-body { padding: 18px; }
.article-card h3 { font-size: 1rem; margin-bottom: 10px; }
.article-card .article-meta { font-size: .78rem; color: var(--color-muted); }

/* --------------------------------------------------------------------------
   10) فوتر
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-forest); color: rgba(255,255,255,.75); }
.newsletter-row { border-bottom: 1px solid rgba(255,255,255,.12); padding: 40px 0; }
.newsletter-row h3 { color: var(--color-white); font-size: 1.15rem; margin-bottom: 4px; }
.newsletter-row p { color: rgba(255,255,255,.6); font-size: .88rem; margin: 0; }
.newsletter-form { display: flex; max-width: 380px; margin-right: 0; margin-inline-start: auto; }
.newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--color-white);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 11px 16px;
}
[dir="rtl"] .newsletter-form input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
  background: var(--color-wood-light);
  color: var(--color-ink);
  border: none;
  padding: 0 20px;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[dir="rtl"] .newsletter-form button { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

.footer-cols { padding: 44px 0 20px; }
.footer-cols h4 { color: var(--color-white); font-size: .98rem; margin-bottom: 18px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; font-size: .88rem; }
.footer-cols a:hover { color: var(--color-sand); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-wood-light); color: var(--color-ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  font-size: .8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* --------------------------------------------------------------------------
   11) واکنش‌گرایی (Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .nav-menu { display: none; }
  .topbar-links { display: none; }
  .hero { min-height: 460px; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .newsletter-form { margin: 14px 0 0; }
  .partner-banner { padding: 30px; text-align: center; }
  .partner-features { justify-content: center; }
  .partner-banner h3, .partner-banner p { margin-inline: auto; }
}

@media (max-width: 575.98px) {
  .section-pad { padding: 48px 0; }
  .stats-band .stat-number { font-size: 1.5rem; }
}

/* دسترس‌پذیری: نمایش واضح فوکوس صفحه‌کلید */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-wood-light);
  outline-offset: 2px;
}

/* احترام به کاربرانی که کاهش انیمیشن را ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   صفحات داخلی: هدر صفحه، مسیر راهنما (Breadcrumb)
   ========================================================================== */
.page-header {
  background: var(--color-forest);
  padding: 34px 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(216,198,165,.08), transparent 55%);
  pointer-events: none;
}
.page-header .container-brand { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.page-header h1 { color: var(--color-white); font-size: 1.5rem; margin: 0; }
.breadcrumb-brand { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb-brand a { color: rgba(255,255,255,.75); }
.breadcrumb-brand a:hover { color: var(--color-sand); }
.breadcrumb-brand .sep { color: rgba(255,255,255,.35); }
.breadcrumb-brand .current { color: var(--color-sand); }

/* ==========================================================================
   صفحه لیست محصولات
   ========================================================================== */
.filter-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.filter-card + .filter-card { margin-top: 18px; }
.filter-card h4 { font-size: .95rem; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { margin-bottom: 12px; }
.filter-list label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .88rem; color: var(--color-ink); cursor: pointer; gap: 8px;
}
.filter-list label .count { color: var(--color-muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--color-forest); border-color: var(--color-forest); }
.price-range-inputs { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.price-range-inputs input {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: .82rem; background: var(--color-cream); color: var(--color-ink);
}
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag-btn {
  border: 1px solid var(--color-border); background: var(--color-cream); color: var(--color-ink);
  border-radius: 999px; padding: 6px 14px; font-size: .8rem; cursor: pointer; transition: all .2s ease;
}
.filter-tag-btn.active, .filter-tag-btn:hover { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-white); }
.btn-clear-filters { font-size: .82rem; color: var(--color-wood); background: none; border: none; padding: 0; }
.btn-clear-filters:hover { color: var(--color-forest); text-decoration: underline; }

.toolbar-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border);
}
.result-count { font-size: .9rem; color: var(--color-muted); }
.result-count strong { color: var(--color-ink); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.sort-select {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white);
  color: var(--color-ink); padding: 9px 14px; font-size: .85rem; min-width: 170px;
}
.view-toggle { display: flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button {
  width: 38px; height: 38px; border: none; background: var(--color-white); color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
}
.view-toggle button.active { background: var(--color-forest); color: var(--color-white); }

.shop-product-card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.shop-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.shop-product-card .spc-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  background: var(--color-wood-light); color: var(--color-ink); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.shop-product-card .spc-fav {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center; color: var(--color-ink);
}
.shop-product-card .spc-fav:hover, .shop-product-card .spc-fav.active { color: #b5443a; }
.shop-product-card .spc-img { height: 210px; overflow: hidden; background: var(--color-cream); }
.shop-product-card .spc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shop-product-card:hover .spc-img img { transform: scale(1.05); }
.shop-product-card .spc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spc-cat { font-size: .76rem; color: var(--color-wood); font-weight: 600; }
.spc-title { font-size: 1rem; margin: 0; }
.spc-title a { color: var(--color-ink); }
.spc-title a:hover { color: var(--color-wood); }
.spc-rating { display: flex; align-items: center; gap: 4px; color: var(--color-wood-light); font-size: .78rem; }
.spc-rating span { color: var(--color-muted); }
.spc-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.spc-price { font-size: 1.02rem; font-weight: 700; color: var(--color-forest); }
.spc-price del { font-size: .8rem; font-weight: 400; color: var(--color-muted); margin-inline-start: 6px; }
.spc-add-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-forest);
  background: var(--color-forest); color: var(--color-white); display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.spc-add-btn:hover { background: var(--color-forest-light); }

.pagination-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; list-style: none; padding: 0; }
.pagination-brand button, .pagination-brand span {
  min-width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--color-white); color: var(--color-ink); display: flex; align-items: center; justify-content: center;
  font-size: .88rem; padding: 0 6px;
}
.pagination-brand button.active { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-white); }
.pagination-brand button:hover:not(.active) { border-color: var(--color-wood-light); }
.pagination-brand button:disabled { opacity: .4; }

/* ==========================================================================
   صفحه جزئیات محصول
   ========================================================================== */
.product-gallery-main { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; height: 420px; background: var(--color-white); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.product-gallery-thumbs .thumb-item {
  width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent;
  cursor: pointer; opacity: .7; transition: all .2s ease;
}
.product-gallery-thumbs .thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs .thumb-item.active { border-color: var(--color-wood-light); opacity: 1; }

.pd-info .pd-cat { color: var(--color-wood); font-size: .85rem; font-weight: 600; }
.pd-info h1 { font-size: 1.55rem; margin: 8px 0 10px; }
.pd-rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pd-rating-row .stars { color: var(--color-wood-light); font-size: .9rem; }
.pd-rating-row .rv-count { font-size: .82rem; color: var(--color-muted); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-price-row .price-now { font-size: 1.7rem; font-weight: 700; color: var(--color-forest); }
.pd-price-row .price-old { font-size: 1rem; color: var(--color-muted); text-decoration: line-through; }
.pd-price-row .price-off { background: var(--color-sand); color: var(--color-forest); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pd-desc { color: var(--color-muted); font-size: .92rem; margin-bottom: 20px; }
.pd-availability { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 22px; }
.pd-availability .dot { width: 9px; height: 9px; border-radius: 50%; background: #3f8a5a; display: inline-block; }

.qty-stepper { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-stepper button { width: 42px; height: 44px; border: none; background: var(--color-cream); color: var(--color-ink); font-size: 1.1rem; }
.qty-stepper button:hover { background: var(--color-sand); }
.qty-stepper input { width: 48px; height: 44px; border: none; border-inline: 1px solid var(--color-border); text-align: center; background: var(--color-white); font-size: .95rem; }

.pd-actions-row { display: flex; align-items: center; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.btn-icon-outline {
  width: 46px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--color-white); color: var(--color-ink); display: flex; align-items: center; justify-content: center;
}
.btn-icon-outline:hover { border-color: var(--color-wood-light); color: #b5443a; }

.pd-quicklist { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--color-border); }
.pd-quicklist li { display: flex; justify-content: space-between; font-size: .85rem; padding: 8px 0; border-bottom: 1px dashed var(--color-border); }
.pd-quicklist li span:first-child { color: var(--color-muted); }
.pd-quicklist li span:last-child { font-weight: 600; }

.pd-share { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: .82rem; color: var(--color-muted); }
.pd-share a { width: 32px; height: 32px; border-radius: 50%; background: var(--color-cream); display: flex; align-items: center; justify-content: center; color: var(--color-ink); }
.pd-share a:hover { background: var(--color-sand); }

.pd-tabs .nav-tabs { border-bottom: 1px solid var(--color-border); gap: 6px; }
.pd-tabs .nav-tabs .nav-link {
  border: none; color: var(--color-muted); font-weight: 600; font-size: .92rem; padding: 12px 4px; margin-inline-end: 26px;
  border-radius: 0; background: transparent;
}
.pd-tabs .nav-tabs .nav-link.active { color: var(--color-forest); border-bottom: 2px solid var(--color-forest); }
.pd-tab-content { padding: 30px 0; color: var(--color-ink); font-size: .93rem; line-height: 2; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table td { padding: 12px 6px; font-size: .88rem; }
.spec-table td:first-child { color: var(--color-muted); width: 220px; }
.spec-table td:last-child { font-weight: 600; }

.review-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-sand); color: var(--color-forest); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.review-item .r-name { font-weight: 700; font-size: .9rem; }
.review-item .r-date { font-size: .76rem; color: var(--color-muted); margin-inline-start: 10px; }
.review-item .r-stars { color: var(--color-wood-light); font-size: .8rem; margin: 4px 0 8px; }
.review-item p { margin: 0; font-size: .88rem; color: var(--color-muted); }
.review-summary { display: flex; align-items: center; gap: 24px; padding: 20px; background: var(--color-cream); border-radius: var(--radius-md); margin-bottom: 24px; flex-wrap: wrap; }
.review-summary .rs-score { text-align: center; }
.review-summary .rs-score .num { font-size: 2.4rem; font-weight: 700; color: var(--color-forest); line-height: 1; }
.review-summary .rs-score .stars { color: var(--color-wood-light); margin: 6px 0; }
.review-summary .rs-score .count { font-size: .78rem; color: var(--color-muted); }
.rs-bars { flex: 1; min-width: 220px; }
.rs-bar-row { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--color-muted); margin-bottom: 6px; }
.rs-bar-row .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--color-border); overflow: hidden; }
.rs-bar-row .bar span { display: block; height: 100%; background: var(--color-wood-light); }

/* ==========================================================================
   صفحه سبد خرید
   ========================================================================== */
.cart-table-wrap { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th { background: var(--color-cream); font-size: .8rem; color: var(--color-muted); font-weight: 600; padding: 14px 16px; text-align: start; }
.cart-table tbody td { padding: 18px 16px; border-top: 1px solid var(--color-border); vertical-align: middle; font-size: .9rem; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-info img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.cart-item-info .ci-name { font-weight: 600; font-size: .92rem; }
.cart-item-info .ci-cat { font-size: .78rem; color: var(--color-muted); }
.cart-remove-btn { background: none; border: none; color: var(--color-muted); font-size: 1rem; }
.cart-remove-btn:hover { color: #b5443a; }
.cart-line-total { font-weight: 700; color: var(--color-forest); }

.cart-mobile-item { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; display: flex; gap: 14px; margin-bottom: 14px; }
.cart-mobile-item img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-mobile-item .cmi-body { flex: 1; }
.cart-mobile-item .cmi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cart-mobile-item .cmi-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.coupon-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.coupon-row input {
  flex: 1; min-width: 180px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .88rem; background: var(--color-white);
}

.order-summary-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 100px; }
.order-summary-card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 10px 0; color: var(--color-muted); }
.summary-row.total { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 16px; font-size: 1.05rem; font-weight: 700; color: var(--color-ink); }
.summary-row.discount span:last-child { color: #3f8a5a; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 3.2rem; color: var(--color-sand); margin-bottom: 20px; display: block; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--color-muted); margin-bottom: 24px; }

/* ==========================================================================
   صفحه چک‌اوت (پرداخت)
   ========================================================================== */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.checkout-steps .cs-step { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--color-muted); }
.checkout-steps .cs-num {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; color: var(--color-muted);
}
.checkout-steps .cs-step.active .cs-num { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-white); }
.checkout-steps .cs-step.active { color: var(--color-ink); font-weight: 600; }
.checkout-steps .cs-step.done .cs-num { background: var(--color-sand); border-color: var(--color-sand); color: var(--color-forest); }
.checkout-steps .cs-line { width: 46px; height: 1px; background: var(--color-border); }

.checkout-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; margin-bottom: 20px; }
.checkout-card h3 { font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-card h3 i { color: var(--color-wood); }
.form-label-brand { font-size: .84rem; color: var(--color-muted); margin-bottom: 6px; display: block; }
.form-control-brand {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white);
  padding: 11px 14px; font-size: .9rem; color: var(--color-ink);
}
.form-control-brand:focus { outline: none; border-color: var(--color-wood-light); box-shadow: 0 0 0 3px rgba(176,138,87,.15); }

.radio-option-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all .2s ease; margin-bottom: 12px;
}
.radio-option-card:hover { border-color: var(--color-wood-light); }
.radio-option-card input:checked ~ .roc-body,
.radio-option-card:has(input:checked) { border-color: var(--color-forest); background: rgba(23,58,53,.04); }
.roc-body { flex: 1; }
.roc-body .roc-title { font-weight: 600; font-size: .9rem; }
.roc-body .roc-desc { font-size: .78rem; color: var(--color-muted); }
.roc-price { font-size: .85rem; font-weight: 700; color: var(--color-forest); }

.order-mini-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.order-mini-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); }
.order-mini-item .omi-name { font-size: .84rem; font-weight: 600; }
.order-mini-item .omi-qty { font-size: .75rem; color: var(--color-muted); }
.order-mini-item .omi-price { font-size: .82rem; font-weight: 700; margin-inline-start: auto; }

/* ==========================================================================
   صفحه ورود پنل نمایندگی
   ========================================================================== */
.auth-wrapper { min-height: calc(100vh - 300px); display: flex; align-items: center; padding: 60px 0; }
.auth-shell {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--color-white);
}
.auth-visual {
  background: linear-gradient(160deg, rgba(23,58,53,.92), rgba(23,58,53,.75)),
              url('../img/demo-02.jpg') center/cover no-repeat;
  color: var(--color-white); padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-visual h2 { color: var(--color-white); font-size: 1.5rem; margin-bottom: 14px; }
.auth-visual p { color: rgba(255,255,255,.75); font-size: .9rem; }
.auth-visual .av-list { list-style: none; padding: 0; margin: 26px 0 0; }
.auth-visual .av-list li { display: flex; align-items: center; gap: 10px; font-size: .86rem; margin-bottom: 14px; color: rgba(255,255,255,.85); }
.auth-visual .av-list i { color: var(--color-sand); }
.auth-form-side { padding: 48px 40px; }
.auth-form-side h1 { font-size: 1.35rem; margin-bottom: 6px; }
.auth-form-side .auth-sub { color: var(--color-muted); font-size: .88rem; margin-bottom: 28px; }
.auth-tabs { display: flex; gap: 6px; background: var(--color-cream); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 28px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; color: var(--color-muted); }
.auth-tabs button.active { background: var(--color-white); color: var(--color-forest); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.input-icon-group { position: relative; }
.input-icon-group i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--color-muted); }
.input-icon-group input { padding-inline-start: 40px; }
.input-icon-group .toggle-pass { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 14px; inset-inline-start: auto; cursor: pointer; }
.auth-form-side .form-check-label { font-size: .84rem; color: var(--color-muted); }
.auth-form-side .forgot-link { font-size: .84rem; color: var(--color-wood); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--color-muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.auth-form-side .auth-footer-note { text-align: center; font-size: .86rem; color: var(--color-muted); margin-top: 22px; }

@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 480px; }
  .auth-visual { display: none; }
  .order-summary-card { position: static; margin-top: 20px; }
}
@media (max-width: 767.98px) {
  .toolbar-row { align-items: flex-start; }
  .cart-table-wrap { display: none; }
}
@media (min-width: 768px) {
  .cart-mobile-list { display: none; }
}

/* ==========================================================================
   صفحه مستقل ورود (بدون هدر/فوتر کامل سایت)
   ========================================================================== */
.auth-standalone-body {
  background: linear-gradient(180deg, var(--color-forest) 0%, var(--color-forest) 260px, var(--color-cream) 260px, var(--color-cream) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-mini-header { padding: 26px 0; }
.auth-mini-header .container-brand { display: flex; align-items: center; justify-content: space-between; }
.auth-mini-header .brand-logo .logo-mark { background: var(--color-sand); color: var(--color-forest); }
.auth-mini-header .brand-logo .logo-text strong { color: var(--color-white); }
.auth-mini-header .brand-logo .logo-text span { color: rgba(255,255,255,.65); }
.auth-back-link { color: rgba(255,255,255,.85); font-size: .88rem; display: inline-flex; align-items: center; }
.auth-back-link:hover { color: var(--color-sand); }

.auth-wrapper-standalone { flex: 1; padding: 20px 0 60px; }

.auth-mini-footer {
  padding: 20px 0;
  font-size: .78rem;
  color: var(--color-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 575.98px) {
  .auth-standalone-body { background: linear-gradient(180deg, var(--color-forest) 0%, var(--color-forest) 170px, var(--color-cream) 170px, var(--color-cream) 100%); }
  .auth-mini-header { padding: 18px 0; }
  .auth-mini-header .logo-text span { display: none; }
}
