/* ── Modal ── */
.modal-overlay{display:none;position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,0.85);align-items:center;justify-content:center;padding:24px;}
.modal-overlay.open{display:flex;}
.modal-box{background:var(--white);border-radius:var(--radius-xl);padding:40px;max-width:560px;width:100%;position:relative;max-height:90vh;overflow-y:auto;}
.modal-close{position:absolute;top:16px;left:16px;background:none;border:none;font-size:1.3rem;cursor:pointer;color:var(--gray);}
.modal-title{font-size:1.2rem;font-weight:700;margin-bottom:4px;}
.modal-subtitle{font-size:0.85rem;color:var(--gray);margin-bottom:24px;}
.schema-hidden{display:none;}

/* ══════════════════════════════
   Sticky Breadcrumb Bar
══════════════════════════════ */
.product-sticky-nav {
  position: sticky;
  top: 72px;
  z-index: 90;
  padding: 10px 32px;
  pointer-events: none;
}
.sticky-nav-inner {
  background: #505050;
  border-radius: 50px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  pointer-events: all;
  max-width: 1280px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.sticky-nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-nav-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sticky-nav-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
}
.sticky-nav-crumbs a {
  color: rgba(255,255,255,0.5);
  transition: 0.3s ease;
}
.sticky-nav-crumbs a:hover { color: #fff; }
.crumb-sep { color: rgba(255,255,255,0.25); font-size: 0.75rem; }
.crumb-current { color: #fff; font-weight: 600; }
.sticky-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sticky-nav-link {
  padding: 6px 16px;
  color: rgba(255,255,255,0.55);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 100px;
  transition: 0.3s ease;
  position: relative;
}
.sticky-nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.sticky-nav-link.active { color: #fff; font-weight: 600; }
.sticky-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 16px; left: 16px;
  height: 2px;
  background: var(--lime);
  border-radius: 1px;
}
.sticky-nav-btn {
  background: var(--lime);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-right: 10px;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sticky-nav-btn:hover { background: var(--lime-dark); }

/* ══════════════════════════════
   Hero Card
══════════════════════════════ */
.product-hero-wrap {
  background: var(--gray-bg);
  padding: 104px 32px 24px;
}
.product-hero-outer {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 28px rgba(0,0,0,0.09);
}
.product-hero-card {
  background: #fff;
  display: flex;
  align-items: stretch;
  min-height: 460px;
  position: relative;
}
.hero-card-text {
  flex: 1;
  padding: 44px 48px 64px;
  display: flex;
  flex-direction: column;
}
.hero-card-image {
  width: 45%;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}
.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.hero-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-bg);
  color: var(--gray-dark, #333);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.hero-cat-tag i { color: var(--lime-dark); }
.hero-card-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--lime-dark);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hero-card-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 18px;
}
.hero-card-desc {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.85;
  flex: 1;
}
.hero-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--lime);
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  transition: 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}
.hero-btn-primary:hover { background: var(--lime-dark); }
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid #ccc;
  transition: 0.3s ease;
}
.hero-btn-outline:hover { border-color: var(--dark); }
.hero-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: #25d366;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid #c8efd3;
  transition: 0.3s ease;
}
.hero-btn-wa:hover { background: #f0fff4; }
.hero-card-arrows {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 6px;
}
.hero-card-arrows button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: #fff;
  color: var(--gray);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  cursor: pointer;
  font-family: inherit;
}
.hero-card-arrows button:hover { border-color: var(--dark); color: var(--dark); }

/* ══════════════════════════════
   Spec Icons Bar
══════════════════════════════ */
.product-specs-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 32px;
}
.spec-icons-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.spec-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  min-height: 110px;
  padding: 14px 10px 12px;
  background: #fff;
  border: 2px solid #d8d8d8;
  border-radius: 14px;
  gap: 4px;
  transition: 0.3s ease;
}
.spec-icon-card:hover {
  border-color: var(--lime-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.spec-icon-symbol {
  font-size: 1.4rem;
  color: var(--gray-light, #999);
  margin-bottom: 4px;
  line-height: 1;
}
.spec-icon-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
}
.spec-icon-label {
  font-size: 0.65rem;
  color: var(--gray-light, #999);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
}

/* ══════════════════════════════
   Accordions Card
══════════════════════════════ */
.product-accordions {
  background: var(--gray-bg);
  padding: 24px 32px 32px;
}
.accordions-card {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 28px rgba(0,0,0,0.09);
  padding: 0 48px 40px;
  overflow: hidden;
}
.prd-accordion {
  border-bottom: 1px solid var(--border);
}
.prd-accordion:first-child { border-top: 1px solid var(--border); margin-top: 32px; }
.prd-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  transition: 0.3s ease;
}
.prd-accordion-header:hover .prd-accordion-title { color: var(--lime-dark); }
.prd-accordion-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s ease;
}
.prd-accordion-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray);
  flex-shrink: 0;
  transition: 0.3s ease;
  border-radius: 4px;
}
.prd-accordion.open .prd-accordion-icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--dark);
  transform: rotate(45deg);
}
.prd-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.prd-accordion.open .prd-accordion-body {
  max-height: 3000px;
  padding-bottom: 28px;
}
.prd-accordion-content {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 860px;
}

/* Spec bullet list */
.spec-bullet-list { list-style: none; display: flex; flex-direction: column; gap: 0; max-width: 580px; }
.spec-bullet-list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-bullet-list li:last-child { border-bottom: none; }
.spec-bullet { color: #c8f000; font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.spec-key { font-weight: 700; color: var(--dark); flex-shrink: 0; min-width: 160px; }
.spec-key::after { content: ":"; margin-right: 2px; color: #ccc; font-weight: 400; }
.spec-val { color: #444; font-weight: 500; }

/* Spec table inside accordion */
.prd-spec-table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.prd-spec-table tr { border-bottom: 1px solid var(--border); }
.prd-spec-table tr:last-child { border-bottom: none; }
.prd-spec-table td { padding: 12px 16px; }
.prd-spec-table td:first-child { font-weight: 600; color: var(--dark); width: 200px; }
.prd-spec-table td:last-child { color: var(--gray); }
.prd-spec-table tr:nth-child(even) { background: var(--gray-bg); }

/* Dynamic spec table */
.spec-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th { background: #c8f000; color: #1a1a1a; padding: 12px 16px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 2px solid #a8d000; text-align: center; }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--gray); text-align: center; }
.spec-table tr:last-child td { border-bottom: none; }

/* Documents */
.doc-list { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.doc-item:hover { border-color: var(--dark); }
.doc-icon { width: 40px; height: 40px; background: #fee2e2; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #dc2626; font-size: 1.1rem; flex-shrink: 0; }
.doc-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.doc-size { font-size: 0.75rem; color: var(--gray-light, #999); }

/* Acc badge */
.acc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; background: var(--gray-bg);
  color: var(--gray); font-size: 0.65rem; font-weight: 700; border-radius: 100px;
}

/* FAQ list */
.faq-list { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q { font-weight: 700; font-size: 0.97rem; color: var(--dark); margin-bottom: 8px; }
.faq-a { font-size: 0.9rem; color: var(--gray); line-height: 1.85; }

/* Rich content from CKEditor */
.rich-content p { margin-bottom: 1em; }
.rich-content ul, .rich-content ol { padding-right: 1.5em; margin-bottom: 1em; }
.rich-content li { margin-bottom: 0.4em; }

/* ══════════════════════════════
   מוצרים קשורים
══════════════════════════════ */
.related-section {
  background: #fff;
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
}
.related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.related-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 6px;
}
.related-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.related-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: 0.3s ease;
  white-space: nowrap;
  padding-bottom: 4px;
}
.related-all-link:hover { color: var(--dark); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  border-color: var(--lime-dark);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.related-card-img {
  height: 170px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.4s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-no-img {
  font-size: 2.5rem;
  color: #ddd;
}
.related-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.related-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-dark);
}
.related-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-top: 2px;
}
.related-card-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 4px;
  flex: 1;
}
.related-card-arrow {
  margin-top: 12px;
  color: var(--lime-dark);
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.3s ease;
}
.related-card:hover .related-card-arrow { transform: translateX(-4px); }

/* ══════════════════════════════
   מידות ואופטיקה
══════════════════════════════ */
.dim-optics-section {
  background: #f4f4f2;
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
}
.dim-optics-header { margin-bottom: 28px; }
.dim-optics-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dim-optics-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--lime);
  border-radius: 2px;
}
.dim-optics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dim-optics-grid.single {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
}
.dim-optics-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dim-optics-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dim-optics-label i { color: var(--lime-dark); }
.dim-optics-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 200px;
}
.dim-optics-img-wrap img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .related-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dim-optics-grid { grid-template-columns: 1fr; }
  .product-hero-wrap { padding: 12px 16px 16px; }
  .product-hero-card { flex-direction: column; }
  .hero-card-image { width: 100%; min-height: 260px; }
  .hero-card-text { padding: 32px 24px 56px; }
  .product-sticky-nav { padding: 8px 16px; }
  .sticky-nav-crumbs { display: none; }
  .product-accordions { padding: 16px 16px 24px; }
  .accordions-card { padding: 0 20px 32px; border-radius: 16px; }
  .spec-icon-card { width: 90px; min-height: 90px; }
  .spec-icon-value { font-size: 1rem; }
}
