/* ==========================================================================
   components/economic-lenses/economic-lenses.css — استایل اختصاصی صفحه عدسی‌های طبی اقتصادی
   ========================================================================== */

:root {
  --eco-primary: #059669;
  --eco-primary-dark: #065f46;
  --eco-primary-light: #d1fae5;
  --eco-accent: #0284c7;
  --eco-dark: #0f172a;
  --eco-slate: #1e293b;
  --eco-border: #e2e8f0;
  --eco-bg: #f8fafc;
  --eco-radius: 16px;
  --eco-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.economic-lenses-page {
  padding-top: 25px;
  padding-bottom: 70px;
  font-family: 'Vazirmatn', 'Outfit', sans-serif;
  color: #1e293b;
}

/* ۱. بنر هدر اصلی */
.page-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #064e3b 100%);
  border-radius: var(--eco-radius);
  padding: 50px 35px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  margin-bottom: 45px;
  position: relative;
  overflow: hidden;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-banner .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero-banner .hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 18px;
  line-height: 1.4;
  color: #ffffff;
}

.page-hero-banner .hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 850px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

/* ویژگی‌های برجسته هدر */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
  text-align: right;
}

.hero-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-feature-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.hero-feature-card .feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.hero-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-feature-card p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ۲. بخش محصولات و تب‌ها */
.products-section {
  margin-bottom: 55px;
}

.section-header-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title-wrap .section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrap .section-desc {
  color: #64748b;
  font-size: 0.95rem;
  margin-top: 6px;
}

.category-filters-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.filter-tab-btn.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* شبکه محصولات */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* استایل کارت‌های محصول (هماهنگ با essence-product-card) */
.essence-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--eco-radius);
  overflow: hidden;
  box-shadow: var(--eco-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.essence-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 210px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.card-image-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.card-index-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.card-brand-logo-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-content-box {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.meta-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.meta-tag.color-ar {
  background: #ecfdf5;
  color: #059669;
}

.meta-tag.color-blue {
  background: #eff6ff;
  color: #2563eb;
}

.meta-tag.color-photo {
  background: #f5f3ff;
  color: #7c3aed;
}

.meta-tag.color-material {
  background: #f1f5f9;
  color: #475569;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.product-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* جدول قیمت داخل کارت */
.pricing-table-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
}

.pricing-table-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  display: block;
  margin-bottom: 8px;
}

.card-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.card-pricing-table th {
  background: #e2e8f0;
  color: #1e293b;
  padding: 6px 8px;
  text-align: right;
  font-weight: 700;
  border-radius: 4px;
}

.card-pricing-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.card-pricing-table tr:last-child td {
  border-bottom: none;
}

.card-pricing-table .range-info {
  color: #475569;
}

.card-pricing-table .price-val {
  color: #64748b;
  font-size: 0.8rem;
}

.card-pricing-table .price-val-pair {
  color: #059669;
  font-weight: 800;
  font-size: 0.9rem;
}

.card-pricing-table .currency {
  font-size: 0.72rem;
  font-weight: normal;
}

/* دکمه‌ها و اکشن‌ها */
.btn-buy-now {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-buy-now:hover {
  background: #047857;
}

.btn-mark-wizard {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mark-wizard:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-mark-wizard.active-marked {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

.btn-mount-own-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px dashed #0284c7;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-mount-own-frame:hover {
  background: #f0f9ff;
  border-color: #0369a1;
}

/* آکاردئون نظرات */
.lens-reviews-accordion {
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
  padding-top: 8px;
}

.lens-reviews-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.lens-reviews-toggle:hover {
  color: #0f172a;
}

.lens-reviews-content {
  display: none;
  padding-top: 10px;
}

.lens-reviews-content.is-open {
  display: block;
}

.lens-review-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.reviewer-name {
  font-weight: 700;
  color: #1e293b;
}

.review-date {
  color: #94a3b8;
  font-size: 0.72rem;
}

.review-comment {
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.5;
}

/* ۳. بنر CTA ویزارد */
.wizard-cta-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  border-radius: var(--eco-radius);
  padding: 40px 30px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 55px;
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.2);
}

.wizard-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.wizard-cta-banner h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.wizard-cta-banner p {
  font-size: 0.95rem;
  color: #d1fae5;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.btn-wizard-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #065f46;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-wizard-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ۴. راهنمای سئو و مقایسه */
.lens-guide-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--eco-radius);
  padding: 40px;
  margin-bottom: 55px;
  box-shadow: var(--eco-shadow);
}

.guide-article-box h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 18px;
}

.guide-article-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 25px;
  margin-bottom: 12px;
}

.guide-article-box p {
  color: #475569;
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.comparison-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.comp-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 18px;
}

.comp-icon {
  font-size: 1.6rem;
  color: #059669;
  margin-bottom: 12px;
}

.comp-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.comp-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* جدول مقایسه کامل */
.table-responsive-box {
  overflow-x: auto;
  margin: 20px 0;
}

.guide-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 0.9rem;
}

.guide-comparison-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
}

.guide-comparison-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.guide-comparison-table tr:nth-child(even) {
  background: #f8fafc;
}

.badge-price-green {
  background: #d1fae5;
  color: #065f46;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.custom-guide-list {
  padding-right: 20px;
  color: #475569;
  line-height: 2;
  font-size: 0.93rem;
}

.custom-guide-list li {
  margin-bottom: 8px;
}

/* ۵. بخش پرسش‌های متداول */
.faq-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--eco-radius);
  padding: 40px;
  box-shadow: var(--eco-shadow);
}

.faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.faq-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
}

.faq-question-btn {
  width: 100%;
  padding: 16px 20px;
  background: #f8fafc;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question-btn:hover {
  background: #f1f5f9;
}

.faq-question-btn i {
  color: #64748b;
  transition: transform 0.25s ease;
}

.faq-accordion-item.is-open .faq-question-btn i {
  transform: rotate(180deg);
}

.faq-answer-content {
  display: none;
  padding: 16px 20px;
  background: #ffffff;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.8;
  border-top: 1px solid #f1f5f9;
}

.faq-accordion-item.is-open .faq-answer-content {
  display: block;
}

/* ریسپانسیو موبایل و تبلت */
@media (max-width: 992px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero-banner {
    padding: 35px 20px;
  }
  .page-hero-banner .hero-title {
    font-size: 1.5rem;
  }
  .hero-features-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .lens-guide-content,
  .faq-section {
    padding: 24px 16px;
  }
}
