
.top-badges-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-eco {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Header transition and smart hide/reveal */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-wrapper.header-hidden {
  transform: translateY(-100%);
}
:root {
  --primary: #15803d;
  --primary-dark: #14532d;
  --primary-light: #22c55e;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-dark: #b45309;
  --accent-red: #dc2626;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-card: #182234;
  --gray-bg: #f8fafc;
  --gray-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

/* ۱. نوار اعلامیه بالای سایت */
.top-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-info a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
}

.top-info .sep {
  opacity: 0.4;
}

.badge-gold {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ۲. هدر اصلی و منوی تب‌ها */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.main-header .header-container {
  width: 96%;
  max-width: 1380px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text h1 span {
  color: var(--primary);
  white-space: nowrap;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* دکمه‌های ناوبری تب‌ها - طراحی شکیل، مدرن و تک‌خطی */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: 0.81rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.tab-btn i {
  font-size: 0.92rem;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.6);
}

.tab-btn:hover i {
  color: var(--primary);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-btn.active i {
  color: var(--primary);
}

.badge-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 12px;
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: space-around;
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ۳. معماری تب‌ها (Tab Panes) */
.tabs-content-wrapper {
  min-height: 70vh;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
  display: block;
}

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

/* ۴. دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(21, 128, 61, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--gray-border);
}

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

.hero-banner .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.hero-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-banner .btn-outline i {
  color: #fbbf24;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.pulse-btn {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

/* ۵. سرتیتر سکشن‌ها */
.section-heading {
  margin-bottom: 40px;
}

.sec-badge {
  display: inline-block;
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ۶. هیرو بنر تب اصلی */
.hero-banner {
  background: linear-gradient(135deg, #09150d 0%, #0d2818 100%);
  color: #ffffff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.badge-hero {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-text h2 {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-text h2 span {
  color: #fbbf24;
}

.hero-text p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.h-feat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h-feat i {
  color: #4ade80;
}

.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(251, 191, 36, 0.3);
  max-width: 360px;
  margin: 0 auto;
}

.hero-prod-img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.floating-badge i {
  font-size: 1.6rem;
  color: #fbbf24;
}

.floating-badge strong {
  display: block;
  font-size: 0.9rem;
}

.floating-badge small {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* ۷. بنرهای اختصاصی پروموشن */
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.promo-banner {
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.promo-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.banner-1 {
  background: linear-gradient(135deg, #14532d 0%, #064e3b 100%);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.banner-2 {
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.promo-content .p-sub {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.85;
}

.promo-content h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 6px 0 8px;
}

.promo-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.btn-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ۸. کارت‌های ۴ گانه ویژگی */
.features-4col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: #ffffff;
  padding: 26px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feat-icon {
  width: 50px;
  height: 50px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feat-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ۹. فروشگاه و لیست محصولات */
.product-type-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--gray-border);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.products-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.product-box {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.product-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.box-featured {
  border: 2px solid var(--gold);
  background: #fffdf9;
}

.box-pain {
  border: 1.5px solid #dc2626;
}

.box-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tag-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tag-pain {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.box-img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 25px;
  margin-bottom: 16px;
  background: #f8fafc;
}

.box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.box-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  min-height: 60px;
}

.box-price {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.p-currency {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.box-shipping {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.free-ship {
  color: var(--primary);
  font-weight: 700;
}

.shipping-note {
  font-size: 0.78rem;
  color: #ef4444;
  display: block;
  margin-top: 4px;
}
.shipping-note.free-ship {
  color: #22c55e;
  font-weight: 700;
}

.prod-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
  white-space: nowrap;
}
.prod-badge.highlight {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.prod-badge.combo {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.4);
}

.prod-specs {
  list-style: none;
  margin: 12px 0 16px;
}
.prod-specs li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prod-specs li i {
  color: var(--primary);
  font-size: 0.75rem;
}

.prod-price-tag {
  margin-bottom: 16px;
}
.curr-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.old-price {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
  margin-bottom: 2px;
}
.select-prod-btn {
  margin-top: auto;
}

.product-box.popular {
  border: 2px solid var(--gold);
  background: #fffdf9;
}

/* ۱۰. فرم تسویه و سفارش */
.order-checkout-section {
  max-width: 850px;
  margin: 0 auto;
}

.order-box-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  box-shadow: var(--shadow-md);
}

.order-box-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-border);
}

.order-box-header i {
  font-size: 2.2rem;
  color: var(--primary);
}

.order-box-header h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.order-box-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  background: #ffffff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.form-submit-wrapper {
  margin-top: 25px;
}

.btn-submit-order {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
}

.order-success-msg {
  text-align: center;
  padding: 25px 0;
}

.order-success-msg.hidden {
  display: none;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.order-success-msg h4 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.order-success-msg p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 20px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ۱۱. گرید ۵۰ تایی رضایت مشتریان */
.reviews-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.rev-filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--gray-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.rev-filter-btn.active, .rev-filter-btn:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.review-meta {
  flex: 1;
  margin: 0 10px;
}

.reviewer-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--dark);
}

.review-verified {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.75rem;
  display: flex;
  gap: 2px;
}

.review-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #334155;
  font-style: italic;
}

/* ۱۲. پایه علمی و سوالات متداول */
.science-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 40px;
}

.sci-box {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
}

.sci-icon {
  width: 52px;
  height: 52px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.sci-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sci-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.science-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
}

.science-table th, .science-table td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.92rem;
}

.science-table th {
  background: var(--dark);
  color: #ffffff;
  font-weight: 800;
}

.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dark);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.faq-answer p {
  padding-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ۱۳. درباره ما */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--dark);
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-badges-row {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.a-badge {
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.a-badge i {
  color: var(--primary);
}

.about-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* بنر اعتماد و مزایا */
.trust-strip {
  background: #ffffff;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 30px 0;
  margin-top: 50px;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.t-col {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-col i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.t-col strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 2px;
}
.t-col span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ۱۴. فوتر سایت با پس‌زمینه تیره و متون روشن */
.main-footer, .site-footer {
  background: #080c14 !important;
  color: #94a3b8 !important;
  padding: 60px 0 25px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.main-footer .footer-grid, .site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr;
  gap: 36px;
  margin-bottom: 45px;
}

.footer-col h4, .footer-col h3 {
  color: #ffffff !important;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-col p {
  color: #cbd5e1 !important;
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ستون برند و لوگو */
.brand-col .f-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.brand-col .f-logo img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.brand-col .f-logo h4 {
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 1.05rem;
}
.brand-col .f-logo h4::after {
  display: none;
}

/* شبکه‌های اجتماعی */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.4);
}

/* لیست دسترسی سریع */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links li a {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.footer-links li a i {
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.footer-links li a:hover {
  color: #fbbf24 !important;
  transform: translateX(-4px);
}
.footer-links li a:hover i {
  color: #fbbf24;
}

/* لیست تماس و ارتباط */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}
.footer-contact li i {
  color: #fbbf24;
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.footer-contact li a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}
.footer-contact li a:hover {
  color: #fbbf24 !important;
}

/* بخش اینماد */
.enamad-col .enamad-desc {
  font-size: 0.84rem;
  color: #94a3b8 !important;
  margin-bottom: 14px;
}
.enamad-container {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* کپی‌رایت انتهای فوتر */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  margin-top: 10px;
  font-size: 0.82rem;
}
.footer-bottom p {
  color: #94a3b8 !important;
  margin: 0;
}

/* ۱۵. دکمه‌های شناور و نوار تب موبایل */
.floating-contact {
  position: fixed;
  bottom: 80px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.phone-btn { background: var(--gold); }
.ig-btn { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.float-btn:hover { transform: scale(1.1); }

.mobile-bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  justify-content: space-around;
}

.m-tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
  font-family: inherit;
}

.m-tab i {
  font-size: 1.15rem;
}

.m-tab.active {
  color: var(--primary);
}

.m-tab.highlight-tab {
  background: var(--primary);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
}

/* ۱۶. ریسپانسیو موبایل و تبلت */
@media (max-width: 1024px) {
  .products-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-info {
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
  }
  .top-info .sep { display: none; }
  .top-tag { display: none; }

  .brand-img { height: 42px; width: 42px; border-radius: 50%; }
  .brand-text h1 { font-size: 1.05rem; white-space: nowrap; }
  .brand-text p { display: none; }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .tabs-nav {
    display: none !important;
  }
  .tabs-nav.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 10px !important;
    gap: 6px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
    z-index: 2000 !important;
  }
  .header-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    padding: 8px 12px;
  }
  .tabs-nav.open .tab-btn {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
  }
  .top-badges-wrap {
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }
  .badge-gold {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
    text-align: center;
  }

  .tab-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .header-actions .pulse-btn {
    display: none;
  }
  .header-actions .btn-auth-header,
  .header-actions .btn-cart-header {
    display: inline-flex;
    padding: 7px 10px;
    font-size: 0.76rem;
  }
  .cart-side-toggle {
    padding: 10px 7px;
  }

  .mobile-bottom-tabs {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .badge-hero { margin: 0 auto 15px; }
  .hero-cta-group { justify-content: center; }
  .hero-features { justify-content: center; }
  .hero-text h2 { font-size: 1.7rem; }

  .banners-grid {
    grid-template-columns: 1fr;
  }

  .products-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto 40px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .science-content-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
  }

  .trust-strip-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-col h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  .brand-col .f-logo, 
  .footer-socials, 
  .footer-links li a, 
  .footer-contact li {
    justify-content: center;
  }

  .main-footer, .site-footer {
    padding-bottom: 95px;
  }
}

/* ==========================================================================
   بخش‌های تکمیلی تب‌ها، بنرها و کامپوننت‌های مدرن فروشگاهی
   ========================================================================== */

/* بنر گالری اینفوگرافیک */
.banners-infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.info-banner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.info-banner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.banner-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.info-banner-card:hover .banner-img-wrap img {
  transform: scale(1.05);
}

.banner-card-desc {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.banner-card-desc h4 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-card-desc h4 i {
  color: var(--gold);
}

.banner-card-desc p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* بخش معرفی ویژه خواص مو با تصویر مدل */
.hair-spotlight-section {
  background: #ffffff;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 70px 0;
}

.hair-spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 50px;
}

.spotlight-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gray-border);
  background: #0f172a;
  max-width: 440px;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.spotlight-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.16);
}

.spotlight-img-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hair-spotlight-content h2 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.4;
  margin: 12px 0 16px;
}

.hair-spotlight-content h2 span {
  color: var(--primary);
}

.spotlight-lead {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 25px;
}

.spotlight-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.s-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--gray-bg);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  transition: all 0.25s ease;
}

.s-feat-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.s-feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.s-feat-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.s-feat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spotlight-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hair-spotlight-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }
  .spotlight-img-card {
    max-width: 380px;
  }
  .spotlight-features-list {
    text-align: right;
  }
  .spotlight-cta-row {
    justify-content: center;
  }
}

/* محصولات برگزیده در صفحه اصلی */
.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 35px;
}

.product-card-featured {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-featured .p-img {
  position: relative;
  height: 380px;
  background: #08100b;
  overflow: hidden;
}

.product-card-featured .p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-featured:hover .p-img img {
  transform: scale(1.04);
}

.p-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.p-badge.best-seller {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.p-badge.pain-relief {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.product-card-featured .p-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-featured h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-card-featured .p-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.7;
}

.product-card-featured .p-volumes {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.product-card-featured .p-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

/* مشخصات و برچسب‌های کارت محصول فروشگاه */
.prod-specs {
  list-style: none;
  margin: 15px 0;
  text-align: right;
}

.prod-specs li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-specs li i {
  color: var(--primary-light);
  font-size: 0.8rem;
}

.prod-price-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
}

.prod-price-tag .old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.85rem;
}

.prod-price-tag .curr-price {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.15rem;
}

/* تگ‌های دسته‌بندی نظرات مشتریان */
.rev-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.rev-tag-hair {
  background: #dcfce7;
  color: #15803d;
}

.rev-tag-pain {
  background: #ffedd5;
  color: #c2410c;
}

.rev-tag-eyebrow {
  background: #f3e8ff;
  color: #7e22ce;
}

.verified-buyer {
  font-size: 0.78rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* تب پایه علمی و آنالیز */
.science-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.science-text h3 {
  font-size: 1.45rem;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.science-text p {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 25px;
}

.science-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
}

.sp-item i {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 3px;
}

.sp-item strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.sp-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.science-media .science-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
  background: #0c1a12;
}

.science-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.science-media .caption {
  padding: 12px 18px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.85rem;
  text-align: center;
}

/* جدول مقایسه آزمایشگاهی */
.lab-comparison-box {
  background: #fff;
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.lab-comparison-box h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 25px;
}

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.comparison-table th {
  background: #f8fafc;
  color: var(--dark);
  padding: 14px 18px;
  border-bottom: 2px solid var(--gray-border);
  font-weight: 700;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.7;
}

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

.comparison-table td:nth-child(2) {
  font-weight: 600;
  color: var(--primary-dark);
}

/* آکاردئون سوالات متداول */
.faq-accordion-wrapper {
  max-width: 850px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: right;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: #f8fafc;
  color: var(--primary);
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fafafa;
}

.faq-answer p {
  padding: 18px 22px;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.85;
  border-top: 1px solid #f1f5f9;
}

/* تب درباره ما */
.about-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.45rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-text p {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.c-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.c-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.c-card strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.c-card a, .c-card span {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
}

.about-media .about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-border);
  position: relative;
}

.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  color: #fbbf24;
  padding: 30px 20px 15px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* تنظیمات eNamad */
.enamad-container img {
  max-width: 130px;
  height: auto;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.enamad-container img:hover {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .science-grid, .about-content-grid {
    grid-template-columns: 1fr;
  }
}

/* اصلاحات فوتر */
.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.footer-contact a:hover {
  color: var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}
.enamad-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.enamad-container {
  margin-top: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: inline-block;
}

/* Product box without image - adjust spacing */
.product-box {
  min-height: auto;
}

/* استایل لینک مقالات علمی در سوالات متداول */
.science-faq-link {
  color: #10b981;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: all 0.2s ease;
  padding: 0 4px;
}
.science-faq-link:hover {
  color: #34d399;
  text-decoration-color: #f59e0b;
}

/* استایل‌های اختصاصی صفحه مقالات علمی (papers.html) */
.papers-page-hero {
  background: radial-gradient(circle at 50% 20%, #153225 0%, #0b1510 80%);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  position: relative;
}
.papers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.papers-hero-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.4;
}
.papers-hero-title span {
  color: #34d399;
}
.papers-hero-desc {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
}
.papers-stats-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.papers-stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 24px;
  text-align: center;
  flex: 1;
  min-width: 220px;
}
.papers-stat-card strong {
  display: block;
  font-size: 24px;
  color: #fbbf24;
  font-weight: 800;
}
.papers-stat-card span {
  font-size: 13px;
  color: #94a3b8;
}

/* کارت تشریح EPA */
.epa-spotlight-box {
  background: linear-gradient(135deg, #0d2318 0%, #133324 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 18px;
  padding: 32px;
  color: #f1f5f9;
  margin: 40px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.epa-spotlight-box h3 {
  color: #fbbf24;
  font-size: 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.epa-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .epa-spotlight-grid {
    grid-template-columns: 1fr;
  }
}
.epa-feature-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
}
.epa-feature-item h4 {
  color: #34d399;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.epa-feature-item p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* کارت‌های مقالات */
.papers-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 0;
}
.paper-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border-color: #10b981;
}
.paper-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}
.paper-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.paper-badges-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.paper-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.paper-badge.badge-pubmed {
  background: #0071bc;
  color: #ffffff;
}
.paper-badge.badge-sciencedirect {
  background: #ff6c00;
  color: #ffffff;
}
.paper-badge.badge-peer {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.paper-badge.badge-metric {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.paper-meta-details {
  font-size: 13px;
  color: #64748b;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.paper-title-fa {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 8px;
}
.paper-title-en {
  font-size: 14px;
  font-style: italic;
  color: #475569;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #94a3b8;
  margin-bottom: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.paper-abstract-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}
.paper-abstract-box h5 {
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.paper-abstract-box p {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.9;
  margin: 0;
}
.paper-takeaway {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  color: #065f46;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.paper-takeaway i {
  color: #10b981;
  font-size: 18px;
  margin-top: 2px;
}
.paper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-source-pubmed {
  background: #f0f7ff;
  color: #0071bc;
  border: 1px solid #bfdbfe;
}
.btn-source-pubmed:hover {
  background: #0071bc;
  color: #ffffff;
}
.btn-source-sciencedirect {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}
.btn-source-sciencedirect:hover {
  background: #ea580c;
  color: #ffffff;
}

/* جدول مقایسه منابع اسید چرب */
.epa-table-wrapper {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.epa-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 14.5px;
}
.epa-table-wrapper th {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 700;
}
.epa-table-wrapper td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.epa-table-wrapper tr:last-child td {
  border-bottom: none;
}
.epa-table-wrapper tr.highlight-row {
  background: #ecfdf5;
  font-weight: 700;
}
.epa-table-wrapper tr.highlight-row td {
  color: #065f46;
}

/* باکس دعوت به اقدام انتهای صفحه */
.papers-cta-banner {
  background: linear-gradient(135deg, #091a13 0%, #143525 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  color: #ffffff;
  margin: 50px 0 30px;
}
.papers-cta-banner h3 {
  font-size: 24px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 12px;
}
.papers-cta-banner p {
  color: #cbd5e1;
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto 24px;
}
.papers-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* استایل نشان‌های سابقه و اینستاگرام */
.hero-top-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.badge-hero.badge-exp {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}
.badge-hero.badge-exp i {
  color: #f59e0b;
}
.badge-hero.badge-insta {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.22), rgba(131, 58, 180, 0.22));
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.45);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  transition: all 0.25s ease;
}
.badge-hero.badge-insta:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.38), rgba(131, 58, 180, 0.38));
  border-color: #f472b6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.35);
}
.badge-hero.badge-insta i {
  color: #f472b6;
  font-size: 14px;
}
.badge-hero.badge-insta:hover i {
  color: #ffffff;
}
.hero-float-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.92), rgba(131, 58, 180, 0.92));
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  z-index: 5;
}
.hero-float-badge-top:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(225, 48, 108, 0.5);
}

/* ==========================================================================
   CONSOLIDATED MOBILE OPTIMIZATION & BUG FIXES (max-width: 768px)
   Placed at the end to guarantee absolute cascade priority
   ========================================================================== */

@media (max-width: 768px) {
  /* ۱. پیشگیری قطعی از اسکرول افقی در تمام صفحات */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
  }

  body {
    padding-bottom: 85px !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* ۲. اصلاح اساسی هدر، لوگو و منوی همبرگری در موبایل */
  .header-container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    position: relative !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    cursor: pointer !important;
  }

  .brand-img {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  .brand-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  .brand-text h1 {
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .header-actions {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .header-actions .btn-auth-header,
  .header-actions .btn-cart-header {
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
  }

  .header-actions .btn-cart-header span:not(.cart-count-badge),
  .header-actions .btn-auth-header span {
    display: none !important;
  }

  .brand-text h1 span {
    color: var(--primary) !important;
    white-space: nowrap !important;
    display: inline !important;
  }

  .brand-text p {
    display: none !important;
  }

  /* نوار تب‌های هدر به صورت منوی همبرگری بازشونده در موبایل */
  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .tabs-nav {
    display: none !important;
  }

  .tabs-nav.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 10px !important;
    gap: 6px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
    z-index: 2000 !important;
    box-sizing: border-box !important;
  }

  .tabs-nav.open .tab-btn {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* ۳. نوار بالای سایت */
  .top-bar-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
  }

  .top-info {
    justify-content: center !important;
    flex-wrap: wrap !important;
    font-size: 0.76rem !important;
  }

  .top-badges-wrap {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  /* ۴. بخش هیرو و بنرها */
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 28px !important;
  }

  .hero-content {
    text-align: center !important;
  }

  .hero-top-badges {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-badges-row {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .banners-infographic-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .featured-products-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
    margin: 25px auto !important;
  }

  .products-showcase-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
    margin: 20px auto 40px !important;
  }

  .hair-spotlight-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 24px !important;
  }

  .s-feat-item {
    text-align: right !important;
  }

  .spotlight-cta-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .spotlight-cta-row .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ۵. ستون اعتماد و فوتر */
  .trust-strip-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .trust-strip-inner .t-col {
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 28px !important;
  }

  .footer-col h4::after {
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .brand-col .f-logo,
  .footer-socials,
  .footer-links li a,
  .footer-contact li {
    justify-content: center !important;
  }

  /* ۶. کنتراست متن‌ها و عنوان‌ها در تب‌های فروشگاه، نظرات و مقالات */
  .sec-title, .section-header h2 {
    color: #0f172a !important;
  }

  .sec-subtitle {
    color: #15803d !important;
    background: rgba(21, 128, 61, 0.1) !important;
  }

  .sec-desc {
    color: #475569 !important;
  }

  .filter-btn, .rev-filter-btn {
    color: #334155 !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
  }

  .filter-btn.active, .rev-filter-btn.active {
    color: #ffffff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
  }

  .faq-question {
    color: #0f172a !important;
  }

  .faq-question span {
    color: #0f172a !important;
  }

  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .table-responsive, .epa-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  /* ۷. نوار چسبان پایین صفحه (Bottom Navigation) */
  .mobile-bottom-tabs {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    z-index: 99999 !important;
    padding: 8px 10px !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .m-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    transition: all 0.2s ease !important;
  }

  .m-tab i {
    font-size: 1.15rem !important;
  }

  .m-tab.active {
    color: #15803d !important;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    gap: 8px !important;
  }
  .brand-img {
    height: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    border-radius: 50% !important;
  }
  .brand-text h1 {
    font-size: 1.05rem !important;
    white-space: nowrap !important;
  }
  .badge-hero {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
}

@media (max-width: 360px) {
  .brand-text h1 {
    font-size: 0.95rem !important;
  }
}

/* ========================================================
   استایل‌های احراز هویت پیامکی ورود و ثبت سفارش (Pappus OTP)
   ======================================================== */
.phone-auth-group {
  position: relative;
}
.phone-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.phone-input-row input {
  flex: 1;
  direction: ltr;
  text-align: right;
  font-family: inherit;
}
.btn-otp-action {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid #16a34a;
  background: #f0fdf4;
  color: #15803d;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.btn-otp-action:hover:not(:disabled) {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}
.btn-otp-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.otp-box-container {
  margin-top: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  animation: fadeInDown 0.3s ease;
}
.otp-box-header {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.otp-box-header i {
  color: #16a34a;
}
.otp-box-row {
  display: flex;
  gap: 8px;
}
.otp-input-field {
  flex: 1;
  text-align: center !important;
  letter-spacing: 8px;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  padding: 8px 12px;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  direction: ltr !important;
  font-family: monospace, sans-serif !important;
  background: #ffffff;
}
.otp-input-field:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  outline: none;
}
.btn-verify-otp {
  white-space: nowrap;
  padding: 8px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  border-radius: 8px !important;
  background: #16a34a !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-verify-otp:hover {
  background: #15803d !important;
}
.otp-box-footer {
  margin-top: 10px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
}
.timer-countdown {
  font-weight: bold;
  color: #d97706;
  direction: ltr;
  display: inline-block;
}
.btn-resend-link {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}
.btn-resend-link:hover {
  color: #0369a1;
}
.phone-verified-badge {
  margin-top: 8px;
  padding: 8px 14px;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #065f46;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}
.phone-verified-badge i {
  color: #10b981;
  margin-left: 4px;
}
.btn-change-num {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.btn-change-num:hover {
  color: #ef4444;
}

/* ========================================================
   بنر سینمایی تمام‌صفحه تب فروشگاه با محوشدگی گرادینت به سمت پایین
   ======================================================== */
.shop-cinematic-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #070a14;
}

/* تصویر اصلی کاربر به‌صورت افقی سرتاسری بدون افزودن حاشیه چپ و راست */
.shop-cinematic-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(460px, 50vw, 640px);
  object-fit: cover;
  object-position: center 46%;
}

.shop-cinematic-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(7, 10, 20, 0.72) 0%, rgba(7, 10, 20, 0.25) 55%, rgba(7, 10, 20, 0) 100%);
  backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
}

/* محوشدن انتهای بنر به پس‌زمینه روشن فروشگاه */
.shop-cinematic-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 95px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(7, 10, 20, 0) 0%, rgba(120, 128, 145, 0.55) 60%, #f8fafc 100%);
  pointer-events: none;
}

.shop-cinematic-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 20px 36px 20px;
  /* شروع نوشته‌ها دقیقاً از زیر چانه مار */
  margin: -275px auto 0 auto;
}

.shop-cinematic-content .shop-cinematic-title,
.shop-cinematic-content .shop-cinematic-subtitle {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
}

.shop-cinematic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.25);
  color: #f1f5f9;
  border: 1px solid rgba(167, 139, 250, 0.6);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.shop-cinematic-badge i {
  color: #fbbf24;
}

.shop-cinematic-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 58, 237, 0.45);
}

.shop-cinematic-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  font-weight: 500;
  margin: 0 0 18px 0;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.shop-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: 1.5px solid rgba(251, 191, 36, 0.75);
  border-radius: 9999px;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(21, 128, 61, 0.45), 0 0 20px rgba(251, 191, 36, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shop-scroll-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(21, 128, 61, 0.6), 0 0 26px rgba(251, 191, 36, 0.35);
}

.shop-scroll-cta i {
  color: #fde047;
  animation: shopArrowBounce 1.5s infinite ease-in-out;
}

@keyframes shopArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.shop-content-container {
  padding-top: 15px !important;
}

@media (max-width: 768px) {
  .shop-cinematic-img {
    height: clamp(380px, 95vw, 460px);
    object-position: center 35%;
  }
  .shop-cinematic-title {
    font-size: 1.45rem;
  }
  .shop-cinematic-subtitle {
    font-size: 0.92rem;
  }
  .shop-cinematic-content {
    padding-bottom: 48px;
    margin-top: -215px;
  }
}


.otp-status-msg {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.25s ease;
}
.otp-status-msg.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.otp-status-msg.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.otp-status-msg.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ========================================================
   دکمه پنل کاربری و سبد خرید کشویی از سمت چپ سایت
   ======================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-actions .btn-auth-header,
.header-actions .btn-cart-header,
.header-actions .pulse-btn {
  padding: 8px 11px;
  font-size: 0.81rem;
  white-space: nowrap;
}

.btn-auth-header {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-auth-header:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.btn-auth-header.logged-in {
  background: #ecfdf5;
  color: #15803d;
  border-color: #86efac;
}

.btn-cart-header {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-cart-header:hover {
  background: #ffedd5;
  border-color: #fdba74;
}

.cart-count-badge {
  background: #ea580c;
  color: #ffffff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* دکمه شناور لبه سمت چپ سایت */
.cart-side-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 995;
  background: linear-gradient(180deg, #15803d, #166534);
  color: #ffffff;
  border: none;
  border-radius: 0 14px 14px 0;
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.22);
  transition: padding-left 0.2s ease, background 0.2s ease;
}

.cart-side-toggle:hover {
  padding-left: 14px;
  background: #14532d;
}

.cart-side-toggle i {
  font-size: 1.15rem;
}

.cart-side-label {
  writing-mode: vertical-rl;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.cart-side-badge {
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 900;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* پس‌زمینه تیره سبد خرید کشویی */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* پنل کشویی سبد خرید از سمت چپ */
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 390px;
  max-width: 92vw;
  background: #ffffff;
  z-index: 100001;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.22);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cart-drawer-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer-header h4 i {
  color: #15803d;
}

.cart-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cart-drawer-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
}

.cart-empty-state i {
  font-size: 2.6rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: block;
}

.cart-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.45;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  font-size: 0.95rem;
}

.cart-item-remove:hover {
  color: #b91c1c;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 3px 6px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: #15803d;
  color: #ffffff;
}

.cart-qty-val {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: #15803d;
}

.cart-drawer-footer {
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  background: #f8fafc;
}

.cart-summary-rows {
  margin-bottom: 14px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 6px;
}

.cart-summary-row.total {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1rem;
  color: #0f172a;
}

.cart-summary-row.total strong {
  color: #15803d;
  font-size: 1.08rem;
}

/* باکس سبد خرید در فرم ثبت سفارش */
.checkout-cart-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.checkout-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.checkout-cart-header i {
  color: #15803d;
}

.btn-link-cart {
  background: none;
  border: none;
  color: #15803d;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.checkout-cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  flex-wrap: wrap;
}

.checkout-totals-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.quick-add-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.quick-add-row select {
  flex: 1;
}

.quick-add-btn {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .quick-add-row {
    flex-direction: column;
  }
}



