/* ================= PRODUCTS PAGE STYLES ================= */

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 245, 255, 0.9));
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(18, 50, 105, 0.08);
  padding-inline: 28px;
}

.product-image-section img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 20px 36px rgba(17, 58, 118, 0.16);
}

.product-info-section h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--text-dark);
  background-image: linear-gradient(var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-info-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  background: #eef5ff;
  border: 1px solid #d7e7ff;
  border-radius: 30px;
  padding: 8px 16px;
}

.back-link:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-info-section h1 {
    font-size: 1.8em;
  }

  .product-image-section img {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================= RTL SUPPORT ================= */
html[dir="rtl"] .back-link::before {
  content: " ← ";
  margin-right: 5px;
}

html[dir="rtl"] .back-link::after {
  content: none;
}

html[dir="ltr"] .back-link::after {
  content: " → ";
  margin-left: 5px;
}

html[dir="ltr"] .back-link::before {
  content: none;
}
