/* ==========================================================================
   components/safety-lenses/safety-lenses.css — استایل اختصاصی صفحه عدسی‌های سیفتی بلژیک
   ========================================================================== */

:root {
  --safety-primary: #334155;
  --safety-primary-dark: #1E293B;
  --safety-accent: #E63946;
  --safety-dark: #0F172A;
  --safety-gray-light: #F8FAFC;
  --safety-gray-border: #E2E8F0;
  --safety-glow-blue: rgba(51, 65, 85, 0.15);
}

.safety-lenses-page {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Outfit', 'Vazirmatn', sans-serif;
  line-height: 1.8;
  padding-bottom: 60px;
  overflow-x: hidden;
}

/* 1. Hero Banner */
.safety-hero-banner {
  position: relative;
  background-color: var(--safety-dark);
  background-image: radial-gradient(circle at 10% 20%, rgb(15, 23, 42) 0%, rgb(2, 6, 23) 90%);
  color: var(--text-white);
  padding: 80px 0 95px;
  border-bottom: 5px solid var(--safety-primary);
  overflow: hidden;
  margin-bottom: 40px;
}

.safety-hero-glow-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(51, 65, 85, 0.22) 0%, transparent 70%);
  top: -150px;
  right: -50px;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  animation: floatGlowSafety1 8s ease-in-out infinite alternate;
}

.safety-hero-glow-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  animation: floatGlowSafety2 8s ease-in-out infinite alternate;
}

@keyframes floatGlowSafety1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.1); }
}

@keyframes floatGlowSafety2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.1); }
}

.safety-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.safety-hero-content {
  text-align: right;
}

.safety-hero-badge-top {
  display: inline-block;
  margin-bottom: 20px;
}

.safety-hero-badge-top .safety-tagline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.safety-hero-title {
  font-size: 2.5rem;
  font-weight: 850;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.safety-text-highlight {
  color: #cbd5e1;
  position: relative;
  display: inline-block;
}

.safety-text-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--safety-accent);
  border-radius: var(--radius-full);
}

.safety-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 35px;
  text-align: justify;
  line-height: 1.9;
}

.safety-hero-cta-group {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--safety-primary) 0%, var(--safety-primary-dark) 100%);
  color: #fff !important;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(51, 65, 85, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 65, 85, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.safety-hero-badges-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-badge-pill i {
  color: var(--safety-primary);
}

.safety-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.safety-brand-display-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 35px;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.safety-brand-logo-large {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 10px;
}

.brand-square-logo {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

.safety-brand-title-box .brand-text-title {
  display: block;
  font-size: 1.6rem;
  font-weight: 850;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.safety-brand-title-box .brand-subtext {
  font-size: 0.75rem;
  color: var(--safety-primary);
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.brand-card-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.spec-label {
  color: rgba(255, 255, 255, 0.5);
}

.spec-val {
  color: #fff;
  font-weight: 500;
}

/* 2. Highlights */
.safety-intro-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.safety-intro-highlights .highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.safety-intro-highlights .highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(51, 65, 85, 0.08);
  border-color: var(--safety-primary);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: var(--safety-glow-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--safety-primary);
  margin-bottom: 20px;
}

.highlight-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.highlight-card.text-highlight {
  background: linear-gradient(135deg, var(--safety-primary) 0%, var(--safety-primary-dark) 100%);
  color: #fff;
  border: none;
}

.highlight-card.text-highlight h3 {
  color: #fff;
}

.highlight-card.text-highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.highlight-card.text-highlight .highlight-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* 3. Products Section */
.safety-products-section {
  margin-bottom: 60px;
}

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

.section-header-center h2 {
  font-size: 1.8rem;
  font-weight: 850;
  margin-bottom: 15px;
}

.section-header-center p {
  color: var(--text-muted);
}

.safety-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.safety-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .safety-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 700px) {
  .safety-products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.safety-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.safety-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--border-hover);
}

.card-image-box {
  position: relative;
  background: #f7f9fa;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
}

.card-image-box img {
  max-height: 100%;
  object-fit: contain;
}

.card-index-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--safety-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: bold;
}

.card-warranty-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  border: 1px solid #ecc94b;
  color: #b7791f;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: bold;
}

.card-brand-logo-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  height: 25px !important;
  background: #fff;
  border-radius: 4px;
  padding: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.color-ar { background: #e0f2fe; color: #0369a1; }
.color-material { background: #f3e8ff; color: #6b21a8; }
.color-warn { background: #fffbeb; color: #b45309; }
.color-blue { background: #ecfdf5; color: #047857; }
.color-photo { background: #fff1f2; color: #be123c; }
.color-thin { background: #f0fdf4; color: #166534; }

.product-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 50px;
}

/* Pricing Table */
.pricing-table-container {
  margin-bottom: 20px;
}

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

.card-pricing-table th, .card-pricing-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--safety-gray-border);
}

.card-pricing-table th {
  font-weight: bold;
  color: var(--text-muted);
}

.price-val-pair {
  font-weight: 800;
  color: var(--safety-primary);
  text-align: left;
}

.currency {
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--text-muted);
}

/* Card Actions */
.btn-buy-now {
  background: var(--safety-primary);
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-buy-now:hover {
  background: var(--safety-primary-dark);
}

.btn-mark-wizard {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-mark-wizard.active-marked {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.btn-mount-own-frame {
  display: block;
  text-align: center;
  border: 1px dashed var(--safety-primary);
  color: var(--safety-primary) !important;
  font-size: 0.8rem;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-mount-own-frame:hover {
  background: var(--safety-glow-blue);
}

/* Reviews Accordion */
.lens-reviews-accordion {
  border: 1px solid var(--safety-gray-border);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.lens-reviews-toggle {
  width: 100%;
  padding: 12px;
  background: #f8fafc;
  border: none;
  text-align: right;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lens-reviews-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.lens-reviews-accordion.open .lens-reviews-content {
  max-height: 350px;
  overflow-y: auto;
  padding: 15px;
}

.lens-reviews-accordion.open .toggle-icon {
  transform: rotate(180deg);
}

.no-reviews-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 10px 0;
}

.lens-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lens-review-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.lens-review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lens-reviewer-name {
  font-weight: bold;
  font-size: 0.82rem;
}

.lens-review-text {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #475569;
}

/* 4. FAQ Section */
.safety-faq-section {
  border-top: 1px solid var(--safety-gray-border);
  padding-top: 50px;
}

.section-title-center {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 850;
  margin-bottom: 35px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.02rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item.open .faq-answer-panel {
  padding-bottom: 20px;
}

.faq-item.open .faq-question-btn {
  color: var(--safety-primary);
}

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

/* Responsive */
@media (max-width: 991px) {
  .safety-hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .safety-hero-visual {
    order: -1;
  }
}
