/* ============================================
   BÖHM Electronics - Product Detail Page
   ============================================ */

/* --- 1. Breadcrumb --- */
.pd-breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-medium);
}

.pd-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  text-decoration: underline;
}

.pd-breadcrumb-sep {
  margin: 0 8px;
  color: #ccc;
}

.pd-breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

/* --- 2. Product Hero --- */
.pd-hero {
  padding: 40px 0 50px;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Gallery (left column) */
.pd-gallery {
  position: relative;
}

.pd-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-light);
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pd-main-image:hover img {
  transform: scale(1.5);
}

.pd-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.pd-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--bg-light);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumb.active,
.pd-thumb:hover {
  border-color: var(--primary);
}

/* Info (right column) */
.pd-info {
  display: flex;
  flex-direction: column;
}

.pd-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pd-short-desc {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pd-manufacturer {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.pd-manufacturer span {
  font-weight: 600;
  color: var(--primary);
}

/* --- 3. Specs Table --- */
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.pd-specs-table tr {
  border-bottom: 1px solid var(--border);
}

.pd-specs-table td {
  padding: 10px 12px;
  font-size: 14px;
}

.pd-specs-table td:first-child {
  color: var(--text-medium);
  width: 140px;
  font-weight: 500;
}

.pd-specs-table td:last-child {
  color: var(--text-dark);
}

/* --- 4. Capability Tags --- */
.pd-cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pd-cap-tag {
  padding: 6px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dark);
}

/* --- 5. Contact Box --- */
.pd-contact-box {
  margin-top: auto;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pd-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-medium);
}

.pd-contact-row:last-child {
  margin-bottom: 0;
}

.pd-contact-row a {
  color: var(--primary);
  text-decoration: none;
}

.pd-contact-row a:hover {
  text-decoration: underline;
}

.pd-contact-row svg {
  flex-shrink: 0;
}

/* --- 6. Tabs --- */
.pd-tabs-section {
  padding: 0 0 40px;
}

.pd-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.pd-tab {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-medium);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  background: none;
}

.pd-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.pd-tab-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

/* --- 7. Tab Content Lists --- */
.pd-content-list {
  list-style: none;
  padding: 0;
}

.pd-content-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.pd-content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.pd-content-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* --- 8. Related Products --- */
.pd-related {
  padding: 40px 0 60px;
  background: var(--bg-light);
}

.pd-related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pd-related-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.pd-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pd-related-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--bg-white);
  padding: 8px;
}

.pd-related-card-body {
  padding: 12px;
}

.pd-related-card-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-related-card-body p {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 9. Not Found --- */
.pd-not-found {
  text-align: center;
  padding: 80px 20px;
}

.pd-not-found h2 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pd-not-found p {
  color: var(--text-medium);
  margin-bottom: 24px;
}

/* --- 10. Responsive --- */
@media (max-width: 900px) {
  .pd-hero-grid {
    grid-template-columns: 1fr;
  }

  .pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pd-related-grid {
    grid-template-columns: 1fr;
  }

  .pd-title {
    font-size: 22px;
  }

  .pd-hero {
    padding: 24px 0 30px;
  }
}

/* --- 11. RTL (Arabic) --- */
body.rtl .pd-breadcrumb-sep {
  transform: scaleX(-1);
}

body.rtl .pd-contact-row svg {
  order: 1;
}
