/**
 * components/polarized-lenses/polarized-lenses.css
 * استایل‌های اختصاصی، علمی و مدرن صفحه عدسی‌های پلاریزه طبی
 * عینک صدف
 */

:root {
  --color-primary: #0f172a;
  --color-secondary: #475569;
  --color-brand: #e21b5a;
  --color-brand-rgb: 226, 27, 90;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(226, 27, 90, 0.15);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 20px 40px -15px rgba(226, 27, 90, 0.12);
  --color-polarized-light: #f1f5f9;
  --color-polarized-dark: #0f172a;
  --color-polarized-accent: #0284c7; /* آبی قطبی */
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.polarized-hero {
  position: relative;
  background: radial-gradient(130% 100% at 90% 0%, #f0fdf4 0%, #f8fafc 50%, #f0f9ff 100%);
  padding: 100px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.polarized-hero-glow-1 {
  position: absolute;
  top: -10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: rgba(2, 132, 199, 0.15);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.polarized-hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: rgba(22, 163, 74, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.polarized-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.polarized-hero-content {
  text-align: right;
  direction: rtl;
}

.polarized-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--color-polarized-accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(2, 132, 199, 0.15);
  margin-bottom: 25px;
}

.polarized-hero-title {
  font-size: 40px;
  line-height: 1.3;
  color: var(--color-primary);
  font-weight: 900;
  margin-bottom: 20px;
}

.polarized-title-highlight {
  color: var(--color-polarized-accent);
  background: linear-gradient(120deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.polarized-hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-secondary);
  margin-bottom: 35px;
  text-align: justify;
}

.polarized-hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-polarized-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.3);
  transition: all 0.3s ease;
}

.btn-polarized-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.4);
}

.btn-polarized-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #16a34a !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
  transition: all 0.3s ease;
}

.btn-polarized-secondary:hover {
  background: #16a34a;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.3);
}

.polarized-hero-pills {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.polarized-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--color-secondary);
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.polarized-pill i {
  color: var(--color-polarized-accent);
}

/* Float Card Visual */
.polarized-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.polarized-floating-card {
  position: relative;
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  height: 320px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.polarized-wave-grid {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  height: 120px;
  opacity: 0.3;
  background-image: linear-gradient(90deg, #94a3b8 1px, transparent 1px),
                    linear-gradient(#94a3b8 1px, transparent 1px);
  background-size: 15px 15px;
  border-radius: 12px;
}

.polarized-lens-glass {
  position: relative;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(51, 65, 85, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-radius: 50%;
  margin: 40px auto 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 4px 10px rgba(255,255,255,0.2);
  border: 2px solid #64748b;
  overflow: hidden;
}

.filter-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 132, 199, 0.2) 50%);
  background-size: 100% 6px;
}

.polarized-card-content {
  text-align: center;
  z-index: 2;
  direction: rtl;
}

.polarized-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.polarized-card-content p {
  font-size: 12px;
  color: var(--color-secondary);
}

/* ==========================================================================
   2. INTERACTIVE SIMULATOR (BEFORE/AFTER SLIDER)
   ========================================================================== */
.polarized-simulator-section {
  padding: 80px 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  direction: rtl;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.7;
}

.simulator-wrapper {
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #fff;
  background: #e2e8f0;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  user-select: none;
  overflow: hidden;
  border-radius: 16px;
  direction: ltr !important; /* Fix RTL reverse dragging bug */
}

.sim-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.view-polarized {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.view-polarized .sim-bg-image {
  /* Enhance contrast and color saturation for polarized view */
  filter: contrast(1.15) saturate(1.2) brightness(0.9);
  background-color: rgba(15, 23, 42, 0.15);
  background-blend-mode: multiply;
}

.view-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* dynamic clipping in JS */
  clip-path: inset(0 calc(100% - 50%) 0 0);
  transition: none;
}

.view-glare .sim-bg-image {
  /* Wash out colors and lower contrast to simulate raw sunlight reflection */
  filter: contrast(0.7) brightness(1.25) saturate(0.8);
}

.glare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Blinding hot spot of sun glare on the road ahead */
  background: radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0) 55%),
              linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.simulation-label-polarized {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  direction: rtl;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.simulation-label-glare {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  direction: rtl;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Tooltips */
.sim-tooltip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  direction: rtl;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}

.tooltip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
}

.view-polarized .tooltip-icon {
  background: #22c55e;
  color: #fff;
}

.view-glare .tooltip-icon {
  background: #ef4444;
  color: #fff;
}

/* Position tooltips on the scene */
.polarized-tooltip-1 { top: 78%; right: 15%; }
.polarized-tooltip-2 { top: 56%; right: 48%; }
.polarized-tooltip-3 { top: 22%; right: 25%; }

.glare-tooltip-1 { top: 78%; left: 15%; }
.glare-tooltip-2 { top: 56%; left: 48%; }

/* Slider Handle & Controls */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.handle-button {
  width: 48px;
  height: 48px;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
  font-size: 16px;
  z-index: 2;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.slider-container:hover .handle-button {
  transform: scale(1.1);
  background-color: #0369a1;
}

.slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
  z-index: 8;
  margin: 0;
}

@media (max-width: 600px) {
  .sim-tooltip {
    display: none !important;
  }
}

/* ==========================================================================
   3. SCIENTIFIC CORE (HOW IT WORKS)
   ========================================================================== */
.polarized-science-section {
  padding: 80px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

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

.science-content {
  text-align: right;
  direction: rtl;
}

.science-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.science-content p {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.science-highlight-card {
  background: #fff;
  border-right: 4px solid var(--color-polarized-accent);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-top: 30px;
}

.science-highlight-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-polarized-accent);
  margin-bottom: 10px;
}

.science-highlight-card p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Wave Visualizer Graphics */
.science-graphics {
  display: flex;
  justify-content: center;
}

.wave-visualizer {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  text-align: center;
}

.wave-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  position: relative;
}

.box-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.badge-red { background: #ef4444; }
.badge-green { background: #22c55e; }

.arrows-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  margin: 10px auto;
  border: 2px dashed #cbd5e1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-v { color: #0284c7; font-size: 24px; position: absolute; }
.arrow-h { color: #ef4444; font-size: 24px; position: absolute; }
.arrow-diag { color: #94a3b8; font-size: 20px; position: absolute; opacity: 0.5; }

.wave-box p {
  font-size: 12px;
  color: var(--color-secondary);
  margin: 10px 0 0;
}

.polarizer-filter-wall {
  width: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 8px;
  padding: 15px;
  color: #fff;
  position: relative;
}

.vertical-slits {
  height: 30px;
  background-image: linear-gradient(90deg, transparent 8px, #fff 8px, #fff 10px, transparent 10px);
  background-size: 14px 100%;
  margin-bottom: 5px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
}

/* ==========================================================================
   4. PROS & CONS (STRENGTHS & WEAKNESSES)
   ========================================================================== */
.polarized-pros-cons-section {
  padding: 80px 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.pc-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
}

.pc-card-header {
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #f1f5f9;
  direction: rtl;
}

.pc-card-header i {
  font-size: 28px;
}

.pc-card-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.text-green { color: #16a34a; }
.text-red { color: #dc2626; }

.pros-card { border-top: 5px solid #16a34a; }
.cons-card { border-top: 5px solid #dc2626; }

.pc-card-body {
  padding: 30px;
  direction: rtl;
}

.pc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pc-list li {
  position: relative;
  padding-right: 25px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-secondary);
  text-align: justify;
}

.pc-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pros-card .pc-list li::before { background: #16a34a; }
.cons-card .pc-list li::before { background: #dc2626; }

.pc-list li strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   5. RX PRESCRIPTION GUIDE (ORDER WITH RX)
   ========================================================================== */
.polarized-rx-section {
  padding: 80px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.rx-card-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e2e8f0;
}

.rx-image-box {
  display: flex;
  justify-content: center;
}

.rx-glass-visual {
  position: relative;
  width: 260px;
  height: 260px;
  background: radial-gradient(135deg, #0284c7 0%, #0c4a6e 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.2);
  overflow: hidden;
}

.lens-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  filter: blur(20px);
}

.rx-glass-visual i {
  font-size: 70px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.prescription-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: monospace;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  direction: ltr;
}

.rx-content-box {
  text-align: right;
  direction: rtl;
}

.rx-badge {
  display: inline-block;
  background: rgba(226, 27, 90, 0.08);
  color: var(--color-brand);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  border: 1px solid rgba(226, 27, 90, 0.15);
}

.rx-content-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.rx-content-box p {
  font-size: 16px;
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

.rx-materials-table {
  margin-top: 30px;
}

.table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.table-grid {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13.5px;
  color: var(--color-secondary);
}

.table-row.header {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--color-primary);
}

.table-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   6. HOW TO ORDER STEP-BY-STEP
   ========================================================================== */
.polarized-steps-section {
  padding: 80px 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.step-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  direction: rtl;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: var(--card-shadow);
  border-color: #e2e8f0;
}

.step-num {
  width: 45px;
  height: 45px;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   7. CURATED POLARIZED SUNGLASSES CONNECTION
   ========================================================================== */
.polarized-sunglasses-cta {
  padding: 80px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sunglasses-cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 50px;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.sunglasses-cta-content {
  text-align: right;
  direction: rtl;
  z-index: 2;
}

.sunglasses-cta-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

.sunglasses-cta-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 30px;
  text-align: justify;
}

.btn-sunglasses-shop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-brand);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(226, 27, 90, 0.3);
  transition: all 0.3s ease;
}

.btn-sunglasses-shop:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(226, 27, 90, 0.4);
}

.sunglasses-cta-icon {
  display: flex;
  justify-content: center;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ==========================================================================
   8. CONTACT & SUPPORT SECTION (CTA)
   ========================================================================== */
.polarized-contact-section {
  padding: 80px 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.polarized-contact-card {
  position: relative;
  background: radial-gradient(100% 100% at 100% 0%, #f0fdf4 0%, #fff 70%, #f0f9ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 50px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.contact-card-content {
  text-align: center;
  direction: rtl;
  z-index: 2;
  position: relative;
}

.contact-icon {
  font-size: 45px;
  color: var(--color-polarized-accent);
  margin-bottom: 20px;
}

.contact-card-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.contact-card-content p {
  font-size: 16px;
  color: var(--color-secondary);
  max-width: 800px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-contact-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.3s ease;
}

.btn-contact-primary:hover {
  transform: translateY(-3px);
  background: #1e293b;
}

.btn-contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #16a34a;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
  transition: all 0.3s ease;
}

.btn-contact-whatsapp:hover {
  transform: translateY(-3px);
  background: #15803d;
}

.btn-contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-primary) !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.btn-contact-tel:hover {
  transform: translateY(-3px);
  border-color: #94a3b8;
  background: #f8fafc;
}

/* ==========================================================================
   9. FAQ SECTION
   ========================================================================== */
.polarized-faq-section {
  padding: 80px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

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

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.faq-toggle {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  text-align: right;
  outline: none;
  transition: background 0.3s ease;
}

.faq-toggle:hover {
  background: #f8fafc;
}

.faq-toggle i {
  font-size: 14px;
  color: var(--color-secondary);
  transition: transform 0.3s ease;
}

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

.faq-content p {
  padding-bottom: 20px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-secondary);
  text-align: justify;
}

/* Active FAQ Item state */
.faq-item.active .faq-toggle {
  background: #f0f9ff;
  color: var(--color-polarized-accent);
}

.faq-item.active .faq-toggle i {
  transform: rotate(180deg);
  color: var(--color-polarized-accent);
}

.faq-item.active .faq-content {
  max-height: 500px;
}

/* ==========================================================================
   10. REFERENCES & SCIENTIFIC SOURCES
   ========================================================================== */
.polarized-references-section {
  padding: 60px 0;
  background: #fff;
}

.references-inner {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 40px;
  direction: rtl;
  text-align: right;
}

.references-inner h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.references-inner h3 i {
  color: var(--color-polarized-accent);
}

.references-inner p {
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: 25px;
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ref-list li {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-secondary);
  text-align: justify;
}

.ref-list li strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 3px;
}

.ref-list li a {
  display: inline-block;
  color: var(--color-polarized-accent);
  text-decoration: none;
  font-weight: 700;
  margin-right: 5px;
}

.ref-list li a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ========================================================================== */
@media (max-width: 992px) {
  .polarized-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .polarized-hero-content {
    text-align: center;
  }
  
  .polarized-hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .polarized-hero-cta {
    justify-content: center;
  }
  
  .polarized-hero-pills {
    justify-content: center;
  }
  
  .science-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  
  .rx-card-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sunglasses-cta-inner {
    grid-template-columns: 1fr;
  }
  
  .sunglasses-cta-icon {
    display: none;
  }
}

@media (max-width: 600px) {
  .polarized-hero {
    padding: 70px 0 50px;
  }
  
  .polarized-hero-title {
    font-size: 28px;
  }
  
  .polarized-hero-desc {
    font-size: 15px;
  }
  
  .slider-container {
    height: 280px;
  }
  
  .simulation-label-polarized,
  .simulation-label-glare {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .table-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 15px;
  }
  
  .table-row.header {
    display: none;
  }
  
  .table-row div::before {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-block;
    width: 100px;
  }
  
  .table-row div:nth-child(1)::before { content: "نوع عدسی: "; }
  .table-row div:nth-child(2)::before { content: "ضریب فشردگی: "; }
  .table-row div:nth-child(3)::before { content: "مناسب نمره: "; }
  .table-row div:nth-child(4)::before { content: "ویژگی: "; }
  
  .polarized-contact-card,
  .sunglasses-cta-inner {
    padding: 30px 20px;
  }
  
  .contact-card-content h2,
  .sunglasses-cta-content h2 {
    font-size: 20px;
  }
}
