/* ========================================
   PRODUCT DETAIL — HELPCALL (WooCommerce)
   ======================================== */

/* ===== BREADCRUMB ===== */
.pd-breadcrumb {
  padding: calc(var(--nav-height) + 1.5rem) 0 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
}

.pd-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.pd-breadcrumb-list a {
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.pd-breadcrumb-list a:hover {
  color: var(--primary);
}

.pd-breadcrumb-list .separator {
  opacity: 0.4;
  font-size: 0.7em;
}

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

/* ===== PRODUCT MAIN ===== */
.pd-main {
  padding: 2.5rem 0 4rem;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ===== IMAGE SECTION ===== */
.pd-image-section {
  position: sticky;
  top: 100px;
}

.pd-image-main {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.pd-image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transition: transform 0.5s var(--ease);
}

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

.pd-image-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.pd-image-badge.hot { background: #e74c3c; }
.pd-image-badge.sale { background: #f39c12; }

/* Gallery */
.pd-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-gallery::-webkit-scrollbar { display: none; }

.pd-gallery-thumb {
  min-width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.pd-gallery-thumb:hover {
  border-color: var(--primary-pale);
}

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

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

/* ===== INFO SECTION ===== */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-brand {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.pd-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.pd-rating .stars {
  color: #f59e0b;
  letter-spacing: 1px;
  display: flex;
  gap: 2px;
}

.pd-rating strong {
  font-weight: 700;
  color: var(--text);
}

/* ===== PRICE ===== */
.pd-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pd-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.pd-price del {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.pd-price ins {
  text-decoration: none;
}

/* ===== DESCRIPTION ===== */
.pd-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pd-desc p { margin-bottom: 0.75rem; }
.pd-desc p:last-child { margin-bottom: 0; }

/* ===== SPECS TABLE ===== */
.pd-specs {
  margin-bottom: 1.5rem;
}

.pd-specs h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pd-specs h3 i {
  color: var(--primary);
}

.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
}

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

.pd-specs-table tr:last-child {
  border-bottom: none;
}

.pd-specs-table td {
  padding: 0.6rem 0;
  font-size: 0.85rem;
}

.pd-specs-table td:first-child {
  color: var(--text-light);
  width: 40%;
  font-weight: 500;
}

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

/* ===== STATUS BADGES ===== */
.pd-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pd-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
}

.pd-stock.out {
  color: #e74c3c;
  background: #ffeaea;
}

.pd-stock i { font-size: 1.1em; }

.pd-warranty {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.pd-warranty i { color: var(--primary); font-size: 1.1em; }

/* ===== ACTIONS ===== */
.pd-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.pd-actions .btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
}

/* ===== TRUST BADGES ===== */
.pd-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.pd-trust-item {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.pd-trust-item i {
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
}

.pd-trust-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
  display: block;
}

/* ===== FULL DESCRIPTION ===== */
.pd-full-desc {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.pd-full-desc h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-full-desc h2 i {
  color: var(--primary);
}

.pd-full-desc-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
}

.pd-full-desc-content p { margin-bottom: 1rem; }
.pd-full-desc-content img { max-width: 100%; height: auto; border-radius: var(--radius-lg); margin: 1rem 0; }
.pd-full-desc-content h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 0.75rem; }
.pd-full-desc-content ul, .pd-full-desc-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.pd-full-desc-content li { margin-bottom: 0.4rem; }

/* ===== RELATED PRODUCTS ===== */
.pd-related {
  padding: 3rem 0 4rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.pd-related .section-header {
  margin-bottom: 2rem;
}

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

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

.pd-related-card:hover {
  border-color: var(--primary-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pd-related-card-img {
  height: 265px;
  overflow: hidden;
  background: var(--bg-alt);
}

.pd-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.pd-related-card:hover .pd-related-card-img img {
  transform: scale(1.05);
}

.pd-related-card-body {
  padding: 1rem;
}

.pd-related-card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pd-related-card-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.3rem 0 0.25rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-related-card-price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pd-image-section {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }

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

@media (max-width: 640px) {
  .pd-main { padding: 1.5rem 0 3rem; }
  .pd-name { font-size: 1.3rem; }
  .pd-price { font-size: 1.3rem; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
  .pd-trust { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .pd-related-card-img { height: 120px; }
  .pd-related-card-body { padding: 0.75rem; }
}
