/* ============================================================
   PRODUCT DETAIL PAGE STYLES
   ============================================================ */

/* === Hero Section: Two-column layout === */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

/* --- Gallery --- */
.pd-gallery { display: flex; flex-direction: column; gap: 10px; }

.pd-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Image & Video view containers inside main image */
.pd-main-img-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #c0ccc4;
  font-size: 14px;
}

.pd-thumbnails {
  display: flex;
  gap: 8px;
}

.pd-thumb {
  width: 68px;
  height: 68px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  padding: 0;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

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

.pd-thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7faf8, #e8efea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
}

/* Video Thumbnail */
.pd-thumb-video-ph {
  background: linear-gradient(135deg, #1a3a28, #2d5a40);
  color: rgba(255, 255, 255, 0.7);
}

.pd-thumb-video:hover .pd-thumb-video-ph,
.pd-thumb-video.active .pd-thumb-video-ph {
  background: linear-gradient(135deg, #2d5a40, #3d7a55);
}

/* Main Video View */
.pd-main-video-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-video-embed {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f5f2, #e4ebe6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-sub);
}

.pd-video-embed span {
  font-size: 16px;
  font-weight: 600;
}

.pd-video-embed small {
  font-size: 12px;
  opacity: 0.65;
}

/* --- Product Info Panel --- */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
}

.pd-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 0;
}

.pd-subtitle {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
}

/* Key Specs Grid */
.pd-key-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0;
}

.pd-spec-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-spec-label {
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.pd-spec-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* === Headed Cards (product detail instance) ===
   Appearance is shared with .cq-card via .headed-card (style.css).
   Only the vertical beat is overridden: product pages use 32px. */
.headed-card.pd-content-card {
  margin-bottom: 32px;
}

.headed-card.pd-content-card .headed-card-header h2 {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

/* Text Block */
.pd-text-block {
  margin-bottom: 0;
}

.pd-text-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.pd-text-block p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 12px;
}


/* === Specifications Table === */
.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pd-spec-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

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

.pd-spec-table tr:hover {
  background: var(--bg);
}

.pd-spec-table td {
  padding: 11px 14px;
  vertical-align: top;
}

.pd-spec-table td:first-child {
  font-weight: 600;
  color: var(--text-sub);
  width: 190px;
  white-space: nowrap;
}

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


/* === Colors Grid === */
.pd-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0;
}

.pd-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pd-color-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-color-swatch:hover .pd-color-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pd-color-swatch span {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}


/* === Video Placeholder === */
.pd-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f0f5f2, #e4ebe6);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-sub);
}

.pd-video-placeholder span {
  font-size: 15px;
  font-weight: 600;
}

.pd-video-placeholder small {
  font-size: 12px;
  opacity: 0.65;
}


/* === Sample Grid === */
.pd-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pd-sample-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.pd-sample-ph {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f7faf8, #e2e9e4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 13px;
}

.pd-sample-card p {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
}


/* === Inquiry CTA Section === */
.pd-inquiry {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: 2px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(12, 52, 32, 0.25);
}

.pd-inquiry-inner h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.pd-inquiry-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.65;
}


/* === Trust Badges === */
.pd-trust {
  margin-bottom: 32px;
}

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

.pd-trust-item {
  text-align: center;
  padding: 22px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pd-trust-icon {
  color: var(--accent);
  margin-bottom: 10px;
}

.pd-trust-item h4 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
}

.pd-trust-item p {
  font-size: 12px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}


/* === Related Products === */
.pd-related {
  margin-bottom: 32px;
}

.pd-related h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.pd-related-ph {
  height: 200px;
  background: linear-gradient(135deg, #f7faf8, #e2e9e4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-related-ph span {
  font-size: 36px;
  color: var(--accent);
  opacity: 0.5;
}


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

  .pd-trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pd-title {
    font-size: 24px;
  }

  .pd-key-specs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .pd-spec-item {
    padding: 8px 10px;
  }

  .pd-spec-table td:first-child {
    width: 110px;
    font-size: 13px;
  }

  .pd-sample-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pd-trust-grid {
    grid-template-columns: 1fr;
  }

  .pd-inquiry {
    padding: 28px 18px;
  }

  .pd-thumb {
    width: 56px;
    height: 56px;
  }
}

/* === CTA Dropdown Component === */
.pd-cta-wrapper {
  position: relative;
  margin-top: 6px;
}

/* === Full-width spec item (span 2 columns) === */
.pd-spec-item-full {
  grid-column: 1 / -1;
}
/* Trust item as link */
a.pd-trust-item {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.pd-trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Gallery Images === */
.pd-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* === Video Embed === */
.pd-main-video-view {
  width: 100%;
  height: 100%;
}

.pd-video-iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

/* Video thumbnail play overlay */
.pd-thumb-video {
  position: relative;
}
.pd-thumb-play {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
