/* ===== PRODUCT DETAIL SECTIONS ===== */
.product-detail { padding: 5rem 2rem; }
.product-detail:nth-child(odd) { background: var(--off-white); }
.product-detail:nth-child(even) { background: var(--white); }

.product-detail-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.product-detail:nth-child(even) .product-detail-img { order: 2; }

.product-detail-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: var(--gray-100);
}

.product-detail-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 800; color: var(--navy); margin-bottom: 0.5rem;
}
.product-detail-body .ar-name {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1rem; color: var(--teal);
  font-weight: 600; direction: rtl; margin-bottom: 1rem;
}
.product-detail-body .desc {
  font-size: 0.95rem; color: var(--gray-600);
  line-height: 1.8; margin-bottom: 1.5rem;
}

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th {
  text-align: left; padding: 8px 12px;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.specs-table td {
  padding: 8px 12px; font-size: 0.85rem;
  color: var(--navy); border-bottom: 1px solid var(--gray-100);
}
.specs-table td:first-child { font-weight: 600; }

.product-detail-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem;
}
.product-detail-tags span {
  background: white; padding: 4px 8px;
  border-radius: 4px; font-size: 0.7rem;
  font-weight: 600; color: var(--navy);
  border: 1px solid var(--gray-100);
}

/* ===== COMPARISON TABLE ===== */
.comparison-section { background: var(--off-white); padding: 5rem 2rem; }
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.comparison-table {
  width: 100%; background: white;
  border-collapse: collapse;
}
.comparison-table thead th {
  background: var(--navy); color: white;
  padding: 12px 16px; font-size: 0.8rem;
  font-weight: 600; text-align: left;
}
.comparison-table tbody td {
  padding: 12px 16px; font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-100); color: var(--text-dark);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--off-white); }
.comparison-table tbody td:first-child { font-weight: 600; color: var(--navy); }

/* ===== APPLICATION GUIDES ===== */
.guides-section { background: white; padding: 5rem 2rem; }
.guides-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.guide-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-100);
  transition: border-color 0.2s, transform 0.2s;
}
.guide-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.guide-card .step-number {
  width: 48px; height: 48px;
  background: rgba(29,184,160,0.08);
  border: 1px solid rgba(29,184,160,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-weight: 800; font-size: 1.25rem;
  margin-bottom: 1rem;
}
.guide-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem;
}
.guide-card p {
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.7;
}

/* ===== CTA ===== */
.products-cta {
  background: var(--navy-deep); padding: 5rem 2rem;
  text-align: center;
}
.products-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800; color: white; margin-bottom: 1rem;
}
.products-cta p {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  max-width: 560px; margin: 0 auto 2rem; line-height: 1.7;
}

/* ===== SECTION RHYTHM OVERRIDE ===== */
/* product5(off-white)→comparison(white)→guides(off-white)→CTA(navy) */
.product-detail + .comparison-section { background: white; }
.comparison-section + .guides-section { background: var(--off-white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail:nth-child(even) .product-detail-img { order: 0; }
}
@media (max-width: 768px) {
  .guides-grid { grid-template-columns: 1fr; }
}
