/* ==========================================================================
   فروشگاه اینترنتی عطارخونه (AttarKhooneh)
   سیستم طراحی دقیق، هماهنگ و منطبق بر موکاپ ارائه‌شده (Pixel-Perfect Mockup Match)
   رنگ‌بندی طبیعی: سبز زمردی جنگلی، طلایی کهربایی و پس‌زمینه گرم ارگانیک
   ========================================================================== */

:root {
  /* پالت رنگی کلاسیک سبک رضوی و گیاهی اصیل (Razavi Lifestyle Classic Herbal Palette) */
  --primary-dark: #143529;
  --primary: #1b4133;
  --primary-light: #265a44;
  --primary-subtle: #f2f7f4;
  --primary-border: #d4e2db;

  /* طلایی کهربایی و اصیل رضوی (Persian Gold) */
  --gold: #d2aa65;
  --gold-hover: #c29953;
  --gold-light: #e4bb73;
  --gold-glow: rgba(210, 170, 101, 0.35);
  --gold-subtle: #faf4e8;
  --gold-border: #eedcb6;

  --amber: #d2aa65;
  --amber-dark: #c29953;
  --amber-light: #fdf6e7;

  --text-dark: #26423b;
  --text-title: #143529;
  --text-muted: #5a7367;
  --text-light: #8fa198;

  /* پس‌زمینه گرم پوست‌آهویی / عاجی کلاسیک (Classic Parchment Ivory) */
  --bg-page: #f9f5ec;
  --bg-header: #faf6ed;
  --bg-card: #ffffff;
  --border: #e8e2d2;
  --border-light: #f1ede3;
  --border-color: #e8e2d2;

  --accent: #d2aa65;
  --warning: #eab308;
  --danger: #ef4444;
  --success: #15803d;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(20, 53, 41, 0.04);
  --shadow-sm: 0 2px 5px 0 rgba(20, 53, 41, 0.06);
  --shadow-md: 0 4px 14px -2px rgba(20, 53, 41, 0.08);
  --shadow-card: 0 3px 12px rgba(20, 53, 41, 0.06);
  --shadow-gold: 0 4px 16px rgba(210, 170, 101, 0.28);
}

/* سبک آیکون‌های وکتور ارگانیک پروژه سبک زندگی رضوی (Streamline Freehand Organic Icons) */
.app-icon.streamline-freehand {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, fill 0.2s ease;
}
button:hover .app-icon.streamline-freehand,
a:hover .app-icon.streamline-freehand {
  transform: scale(1.08);
}

/* بازنشانی */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vazirmatn', 'IRANSans', 'Noto Sans Arabic UI', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   ۱. هدر و ناوبری اصلی (مطابق موکاپ)
   ========================================================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
}

/* لوگوی برند عطارخونه سمت راست */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 1px;
}

.logo-shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* کادر جستجوی کپسولی وسط */
.header-search-wrap {
  flex: 1;
  max-width: 450px;
  position: relative;
  margin: 0 14px;
}

.header-search-wrap input {
  width: 100%;
  padding: 8px 18px 8px 40px;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: all 0.2s;
}

.header-search-wrap input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.header-search-wrap button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* آیکون‌های گرد سمت چپ */
.header-user-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #374151;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: all 0.15s;
  position: relative;
}

.icon-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary-dark);
}

.cart-floating-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #1b4332;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 4px;
}

/* منوی ناوبری اصلی هدر */
.site-nav {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.nav-links-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 24px;
  padding: 8px 0;
}

.nav-link-item a {
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 500;
  padding-bottom: 6px;
  position: relative;
  display: block;
}

.nav-link-item a:hover,
.nav-link-item.active a {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-link-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* ==========================================================================
   ۲. بنر قهرمان صفحه اصلی (Hero Banner) - ابعاد دست‌ودلباز و استاندارد
   ========================================================================== */

.mockup-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #1e3a2f url('/static/img/ui/hero_real.jpg') center/cover no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
  margin: 12px 0 20px 0;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: linear-gradient(270deg, rgba(20, 45, 33, 0.94) 0%, rgba(20, 45, 33, 0.82) 48%, rgba(20, 45, 33, 0.28) 100%);
  display: flex;
  align-items: center;
  padding: 48px 56px;
}

.hero-text-content {
  max-width: 560px;
  color: #ffffff;
}

.hero-brand-name {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 18.5px;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-amber-remedy {
  background: #f59e0b;
  color: #1b4332;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-amber-remedy:hover {
  background: #d97706;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.btn-outline-intro {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.btn-outline-intro:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   ۳. نوار چهارگانه خدمات و ضمانت‌ها (عین موکاپ)
   ========================================================================== */

.mockup-features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.feature-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   ۴. دسته‌بندی محصولات (Categories Strip) - تصاویر دایره‌ای درشت و شکیل
   ========================================================================== */

.mockup-categories-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cat-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cat-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.carousel-arrow {
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.carousel-arrow:hover {
  color: var(--primary-dark);
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.cat-circle-card:hover {
  background: #f0fdf4;
  transform: translateY(-4px);
}

.cat-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 3px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.cat-circle-card:hover .cat-img-wrap {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(45, 106, 79, 0.25);
  transform: scale(1.05);
}

.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-title-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.2s;
}

.cat-circle-card:hover .cat-title-label {
  color: var(--primary-dark);
}

/* ==========================================================================
   ۵. کارت‌های محصول فروشگاه (Product Cards) - عین موکاپ و استانداردهای فروشگاهی
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.product-img-box {
  background: #ffffff;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.product-img-box img {
  max-height: 155px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

.product-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.product-title a {
  color: var(--text-dark);
}

.product-title a:hover {
  color: var(--primary);
}

.product-rating-stars {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.stars-gold {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 2px;
}

.rating-num {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.product-price-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price-values {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 10.5px;
  color: var(--text-light);
  text-decoration: line-through;
}

.current-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary-dark);
}

.btn-card-add-cart {
  background: #1b4332;
  color: #ffffff;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-card-add-cart:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   ۶. دستیار هوشمند سلامت (Remedy Wizard) - عین موکاپ
   ========================================================================== */

.remedy-mockup-header {
  text-align: center;
  margin-bottom: 20px;
}

.remedy-header-img-wrap {
  max-width: 420px;
  margin: 0 auto 12px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.remedy-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.remedy-main-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.remedy-sub-title {
  font-size: 12.5px;
  color: var(--text-muted);
}

.remedy-mockup-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.remedy-form-column, .remedy-result-column {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.column-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.remedy-field-group {
  margin-bottom: 14px;
}

.remedy-field-group label {
  display: block;
  font-size: 11.5px;
  color: var(--text-dark);
  margin-bottom: 5px;
  font-weight: 600;
}

.custom-select-wrap select {
  width: 100%;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.btn-green-submit-remedy {
  width: 100%;
  background: #1b4332;
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: background 0.15s;
}

.btn-green-submit-remedy:hover {
  background: var(--primary);
}

/* ستون نتیجه */
.result-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.result-check-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #15803d;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.result-recommendation-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.result-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.result-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}

.green-circle-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #15803d;
  color: #ffffff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-outline-details {
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-outline-details:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ==========================================================================
   ۷. صفحه فروشگاه (Shop Page Layout) - عین موکاپ
   ========================================================================== */

.shop-mockup-header-banner {
  background: linear-gradient(270deg, rgba(27, 67, 50, 0.94) 0%, rgba(45, 106, 79, 0.88) 55%, rgba(27, 67, 50, 0.72) 100%), url('/static/img/ui/hero_real.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 34px 40px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  text-align: right;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.12);
}

.shop-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.shop-subtitle {
  font-size: 13.5px;
  color: #dcfce7;
  font-weight: 500;
}

.shop-mockup-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  margin-bottom: 40px;
}

.shop-filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  align-self: flex-start;
}

.filter-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 8px;
}

.filter-group-block {
  margin-bottom: 16px;
}

.filter-group-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.checkboxes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #374151;
  cursor: pointer;
}

.custom-checkbox-row input[type="checkbox"] {
  accent-color: var(--primary);
}

.range-slider-mockup {
  position: relative;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 14px 6px 10px 6px;
}

.slider-track-active {
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--primary);
  border-radius: 2px;
}

.slider-thumb-dot {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-thumb-dot.right-dot {
  right: 0;
}

.slider-thumb-dot.left-dot {
  left: 0;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-green-apply-filter {
  width: 100%;
  background: #1b4332;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
}

.shop-top-sorter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sort-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sort-select {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  outline: none;
}

/* ==========================================================================
   ۸. صفحه جزئیات کالا (Product Detail) - عین موکاپ
   ========================================================================== */

.mockup-breadcrumbs {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--primary-dark);
  font-weight: 600;
}

.product-detail-mockup-card {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 35px;
}

.main-image-frame {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.main-image-frame img {
  max-height: 250px;
  width: auto;
  object-fit: contain;
}

.thumbnails-row {
  display: flex;
  gap: 10px;
}

.thumb-box {
  width: 68px;
  height: 68px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
}

.thumb-box.active, .thumb-box:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(45, 106, 79, 0.15);
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.detail-product-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rating-badge-score {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.review-count-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.current-price-huge {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-dark);
}

.old-price-strike {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.badge-special-discount {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.detail-product-description {
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
}

.variants-selector-box {
  margin-bottom: 20px;
}

.variant-label-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
}

.variant-chips-wrap {
  display: flex;
  gap: 10px;
}

.variant-chip-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-chip-btn.selected, .variant-chip-btn:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-wide-dark-green-cart {
  width: 100%;
  background: #1b4332;
  color: #ffffff;
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
  transition: all 0.2s ease;
}

.btn-wide-dark-green-cart:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.35);
}

.detail-guarantees-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-light);
  padding-top: 22px;
  margin-top: 12px;
}

.guarantee-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  font-weight: 700;
}

/* ==========================================================================
   ۹. سبد خرید (Cart Page) - استانداردهای تمیز و خوش‌ساخت
   ========================================================================== */

.cart-mockup-header-title h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.cart-mockup-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.cart-items-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-item-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.cart-item-row-card:hover {
  border-color: var(--primary-border);
  background: #ffffff;
}

.cart-item-thumb-box {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-center-info {
  flex: 1;
  margin: 0 16px;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.cart-stepper-and-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-item-unit-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-dark);
}

.stepper-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: #ffffff;
  overflow: hidden;
}

.stepper-btn {
  padding: 4px 10px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  font-size: 13px;
  transition: background 0.15s;
}

.stepper-btn:hover {
  background: #f1f5f9;
  color: var(--primary-dark);
}

.stepper-val {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-right: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
}

.btn-trash-delete {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.btn-trash-delete:hover svg {
  stroke: #ef4444;
}

.cart-total-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 8px 0;
  border-top: 1.5px solid var(--border);
  font-size: 16px;
  font-weight: 800;
}

.total-amount-digits {
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 900;
}

.btn-wide-dark-green-checkout {
  width: 100%;
  background: #1b4332;
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
  transition: all 0.2s ease;
}

.btn-wide-dark-green-checkout:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.35);
}

.cart-gift-wrap-section {
  background: #fefce8;
  border: 1px dashed #facc15;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 12px 0;
}

.gift-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.gift-message-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #fde047;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 11.5px;
}

.btn-save-gift-msg {
  background: #fef08a;
  border: 1px solid #facc15;
  padding: 4px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-xs);
  margin-top: 4px;
}

.cart-coupon-row {
  margin: 10px 0;
}

.coupon-text-field {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 11.5px;
}

.btn-coupon-apply {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

/* ==========================================================================
   ۱۰. پنل کاربری (User Dashboard / Profile) - عین موکاپ
   ========================================================================== */

.dashboard-mockup-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.dashboard-user-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-user-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.user-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid var(--border);
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-card-fullname {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.user-card-phone {
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-menu-nav {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-xs);
}

.dashboard-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}

.dashboard-menu-item:hover {
  background: #f8fafc;
  color: var(--primary-dark);
}

.dashboard-menu-item.active {
  background: #1b4332;
  color: #ffffff;
  font-weight: 700;
}

.dashboard-welcome-banner {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}

.welcome-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.welcome-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-stat-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.user-stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-card-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-card-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-star-icon {
  color: #f59e0b;
  font-size: 14px;
}

.dashboard-green-promo-banner {
  background: linear-gradient(135deg, #1e3a2f 0%, #15803d 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.promo-text-side h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.promo-text-side p {
  font-size: 11.5px;
  color: #dcfce7;
}

.promo-gift-side img {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ==========================================================================
   ۱۱. فوتر سایت - مدرن، چشم‌نواز، هماهنگ با تم روشن و ارگانیک عطارخونه
   ========================================================================== */

.site-footer {
  background: #ffffff;
  color: #475569;
  padding: 40px 0 20px 0;
  margin-top: 50px;
  font-size: 12px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.footer-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.trust-item-icon {
  font-size: 22px;
}

.trust-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

.trust-item-desc {
  font-size: 10.5px;
  color: #64748b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.1fr 1.3fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-col h4 {
  color: var(--primary-dark);
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col p {
  color: #64748b;
  line-height: 1.8;
  font-size: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: #475569;
  font-size: 12px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '•';
  color: var(--primary);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--primary-dark);
  font-weight: 600;
  transform: translateX(-3px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #475569;
}

.footer-social-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.social-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
  transition: all 0.15s;
}

.social-pill:hover {
  background: #f0fdf4;
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   ۱۲. واکنش‌گرایی موبایل و تبلت (کارگاه ۲۵)
   ========================================================================== */

@media (max-width: 992px) {
  .mockup-features-bar {
    grid-template-columns: 1fr 1fr;
  }
  .cat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .remedy-mockup-card, .shop-mockup-layout, .product-detail-mockup-card, .dashboard-mockup-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-wrap: wrap;
  }
  .header-search-wrap {
    order: 3;
    max-width: 100%;
    margin: 8px 0 0 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
  }
  .site-nav.mobile-active {
    display: block;
  }
  .nav-links-list {
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
  }
  .mockup-features-bar {
    grid-template-columns: 1fr;
  }
  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-overlay {
    padding: 20px;
  }
  .hero-brand-name {
    font-size: 26px;
  }
}

/* ==========================================================================
   ۱۳. فرم‌ها، دکمه‌های کنشی، بج‌ها و جداول (تسویه حساب، فاکتور، داشبورد کارمند)
   ========================================================================== */

/* کنترل‌های ورودی مدرن */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-dark);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.12);
}

/* دکمه‌های عمومی پروژه */
.btn-hero {
  background: #1b4332;
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.btn-hero:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-action {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #f0fdf4;
}

/* نشان‌ها و برچسب‌های وضعیت */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

/* اعلان‌ها و پیام‌های فلش */
.messages-container {
  margin: 12px auto;
}

.alert {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.alert-error, .alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ساختار صفحه تسویه حساب (Checkout Layout) */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.cart-summary-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 80px;
}

.carrier-options, .payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carrier-label, .payment-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.carrier-label:hover, .payment-label:hover {
  background: #f0fdf4;
  border-color: var(--primary-light);
}

/* جداول اقلام، سفارش‌ها و آزمایش سلامت */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #ffffff;
}

.cart-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: right;
  padding: 9px 12px;
  border-bottom: 1.5px solid var(--border);
}

.cart-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
  vertical-align: middle;
}

.cart-table tr:hover td {
  background: #f8fafc;
}

/* استایل برگه فاکتور چاپی رسمی (کارگاه ۲۴) */
.invoice-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}

.invoice-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  text-align: center;
}

.invoice-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.invoice-stamp-box {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  padding-top: 20px;
}

@media print {
  .btn-print-hide, .site-header, .site-footer, .messages-container {
    display: none !important;
  }
  .invoice-container {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* شبیه‌ساز درگاه اینترنتی شاپرک */
.mock-gateway-container {
  max-width: 480px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.gateway-header {
  background: #1b4332;
  color: #ffffff;
  padding: 22px;
  text-align: center;
}

.gateway-body {
  padding: 24px;
}

.card-input-group {
  margin-bottom: 14px;
}

.card-input-group label {
  display: block;
  font-size: 11px;
  color: #475569;
  margin-bottom: 4px;
  font-weight: 600;
}

.card-input-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.card-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15);
}

/* ==========================================================================
   تعاملات پویا: هدر کاربری، منوی کشویی، نشان‌های علاقه‌مندی و اعلان‌های توست
   ========================================================================== */

/* دکمه ورود / ثبت‌نام برای کاربران مهمان */
.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0fdf4;
  color: #1b4332;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-header-login:hover {
  background: #1b4332;
  color: #ffffff;
  border-color: #1b4332;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.25);
}

/* کپسول کاربر احراز هویت شده و منوی کشویی */
.header-user-dropdown-wrap {
  position: relative;
}

.btn-user-capsule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  color: #1e293b;
  transition: all 0.15s ease;
}

.btn-user-capsule:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.user-capsule-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-capsule-name {
  font-weight: 600;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-arrow {
  color: #64748b;
  transition: transform 0.2s;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 195px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  z-index: 1000;
  display: none;
}

.user-dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 8px 14px 4px;
  display: flex;
  flex-direction: column;
}

.dropdown-header strong {
  font-size: 12px;
  color: #0f172a;
}

.dropdown-phone {
  font-size: 10.5px;
  color: #94a3b8;
  direction: ltr;
  text-align: right;
  margin-top: 2px;
}

.dropdown-divider {
  margin: 6px 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 11.5px;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary-dark);
}

.dropdown-item.staff-link {
  color: #15803d;
  font-weight: 600;
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* آیکون و بج علاقه‌مندی‌ها */
.wishlist-floating-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.btn-wishlist-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.btn-wishlist-toggle:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
}

.btn-wishlist-toggle.active {
  color: #ef4444;
}

.btn-wishlist-toggle-round {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wishlist-toggle-round:hover,
.btn-wishlist-toggle-round.active {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* سامانه اعلان توست شناور (Toast Notification) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  line-height: 1.5;
  color: #1e293b;
  border-right: 4px solid #1b4332;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 360px;
}

.toast-item.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.toast-hide {
  transform: translateY(-10px);
  opacity: 0;
}

.toast-item.toast-success {
  border-right-color: #10b981;
}

.toast-item.toast-error {
  border-right-color: #ef4444;
}

.toast-item.toast-warning {
  border-right-color: #f59e0b;
}

.toast-item.toast-info {
  border-right-color: #3b82f6;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  display: block;
}

.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-info .toast-icon { color: #3b82f6; }

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  padding: 4px;
}

.toast-close:hover {
  color: #334155;
}

.loading-spinner-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: middle;
}

.loading-spinner-inline svg {
  animation: spinnerRotate 0.9s linear infinite;
  display: block;
}

@keyframes spinnerRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.badge-danger-tag {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-left: 5px;
}

.badge-bump {
  animation: badgeBump 0.35s ease;
}

@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); background: #2d6a4f; }
  100% { transform: scale(1); }
}



/* ==========================================================================
   طرح بازسازی کلاسیک عطارخونه (Hero Slider, Categories Showcase, Carousel, COA)
   ========================================================================== */

/* اسلایدر چنداسلایده مجلل هیرو */
.hero-slider-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  min-height: 380px;
  background: #143529;
}

.hero-slides-track {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  display: flex;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 380px;
  background: linear-gradient(90deg, rgba(20, 53, 41, 0.95) 0%, rgba(27, 67, 50, 0.82) 45%, rgba(20, 53, 41, 0.45) 100%);
  display: flex;
  align-items: center;
  padding: 40px 48px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  color: #fdfcf7;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}

.hero-nav-btn:hover {
  background: var(--gold);
  color: #143529;
  border-color: var(--gold);
}

.hero-nav-prev { right: 18px; }
.hero-nav-next { left: 18px; }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.hero-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--gold);
}

/* سربرگ بخش‌های کلاسیک */
.section-classic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-light);
}

.section-title-classic {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gold-accent-line {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

.section-subtitle-classic {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.section-link-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.section-link-more:hover {
  gap: 7px;
  color: var(--primary-dark);
}

/* ویترین کلاسیک دسته‌بندی‌ها */
.botanical-categories-showcase {
  margin: 32px 0;
}

.botanical-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.botanical-cat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.botanical-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: 0 8px 20px rgba(20, 53, 41, 0.08);
}

.cat-card-media {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #f8fafc;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.botanical-cat-card:hover .cat-card-media img {
  transform: scale(1.08);
}

.cat-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20, 53, 41, 0.35) 100%);
}

.cat-card-body {
  padding: 10px 12px;
  text-align: center;
  background: #ffffff;
}

.cat-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px 0;
}

.cat-card-count {
  font-size: 11px;
  color: #64748b;
}

/* اسلایدر افقی محصولات محبوب */
.popular-products-carousel-section {
  margin: 32px 0;
}

.carousel-nav-arrows {
  display: flex;
  gap: 6px;
}

.carousel-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.carousel-arrow-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.popular-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -6px;
  padding: 6px;
}

.popular-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.popular-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.popular-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-product-item {
  flex: 0 0 calc(25% - 12px);
  min-width: 240px;
}

.badge-organic-seal {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(20, 53, 41, 0.88);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
}

.product-scientific-latin {
  font-size: 10.5px;
  color: #5a7367;
  font-style: italic;
  direction: ltr;
  text-align: right;
  margin-top: -3px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* تب‌های صفحه جزئیات کالا و جدول شناسنامه آزمایشگاهی (COA) */
.product-tabs-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-tabs-nav {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  background: #fafaf9;
}

.tab-nav-btn {
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-nav-btn:hover {
  color: var(--primary);
  background: #f5f5f4;
}

.tab-nav-btn.active {
  color: var(--primary-dark);
  background: #ffffff;
  border-bottom-color: var(--primary);
}

.tab-content-panel {
  display: none;
  padding: 26px 28px;
}

.tab-content-panel.active {
  display: block;
}

.coa-card-wrapper {
  background: #ffffff;
}

.coa-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.coa-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 4px 0;
}

.coa-subtitle {
  font-size: 11.5px;
  color: #64748b;
}

.coa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.coa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 18px;
}

.coa-table th, .coa-table td {
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}

.coa-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.status-pass {
  background: #ecfdf5;
  color: #047857;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.coa-footer-license {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12px;
}

.clinical-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dossier-block {
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.dossier-block.danger-block {
  background: #fffbeb;
  border-color: #fde68a;
}

.dossier-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: #334155;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.qa-item {
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.qa-question {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.qa-answer {
  background: #ffffff;
  border-right: 3px solid var(--primary);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #334155;
}

.qa-expert-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.qa-form-card {
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

/* فوتر رگولاتوری و حقوقی */
.footer-regulatory-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.reg-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

/* کامپوننت پیج‌بندی کلاسیک */
.pagination-wrapper {
  margin: 32px 0 16px 0;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border);
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  gap: 4px;
}

.page-item .page-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-dark);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.page-item.disabled .page-link {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

/* واکنش‌گرایی موبایل و تبلت */
@media (max-width: 992px) {
  .botanical-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .carousel-product-item {
    flex: 0 0 calc(50% - 8px);
  }
  .clinical-dossier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .botanical-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-product-item {
    flex: 0 0 80%;
  }
  .hero-slide-overlay {
    padding: 30px 20px;
  }
  .detail-tabs-nav {
    flex-direction: column;
  }
}
