/* ==========================================================================
   Product Detail Page — Sany-Inspired Premium Design
   ========================================================================== */

/* ── Breadcrumbs ─────────────────────────────────────── */
.pdp-breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid #eee;
}
.pdp-breadcrumbs span {
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════
   HERO — Sany split layout
   ══════════════════════════════════════════════════════ */
.pdp-hero {
  padding: 48px 0 40px;
}
.pdp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* Left: Product Info */
.pdp-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.pdp-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Quick Specs — clean label:value rows */
.pdp-quick-specs {
  margin-bottom: 24px;
}
.qs-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}
.qs-label {
  color: #888;
}
.qs-val {
  color: #222;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

/* Tip */
.pdp-tip {
  font-size: 13px;
  color: #666;
  border: 1px dashed #ddd;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* CTA Buttons — Sany style: red + white inline */
.pdp-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.pdp-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--dm-primary);
  color: #fff;
  border: 2px solid var(--dm-primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.pdp-cta-primary:hover {
  background-color: #c00;
  border-color: #c00;
}
.pdp-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: #fff;
  color: #222;
  border: 2px solid #ccc;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.pdp-cta-secondary:hover {
  border-color: #222;
}
.pdp-cta-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dm-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.pdp-cta-tertiary:hover {
  opacity: 0.7;
}

/* Right: Media */
.pdp-hero-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pdp-media-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.pdp-media-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdp-media-main iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbnails */
.pdp-thumbs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.thumb-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: #333;
  transition: all 0.2s;
  padding: 0;
}
.thumb-nav-btn:hover {
  background: #fff;
  color: var(--dm-primary);
  border-color: var(--dm-primary);
}
.thumb-nav-btn.prev {
  left: -16px;
}
.thumb-nav-btn.next {
  right: -16px;
}
.pdp-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.pdp-thumbs::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.pdp-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #f5f5f5;
  transition: border-color 0.2s;
}
.pdp-thumb.active {
  border-color: var(--dm-primary);
}
.pdp-thumb:hover {
  border-color: var(--dm-primary);
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════
   STICKY TAB BAR — Red accent (Sany signature)
   ══════════════════════════════════════════════════════ */
.pdp-tab-bar {
  background-color: var(--dm-primary);
  position: sticky;
  top: var(--header-height, 80px);
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.pdp-tab-bar::-webkit-scrollbar {
  display: none;
}
.pdp-tab-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}
.pdp-tab-model {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.pdp-tab-nav {
  display: flex;
  gap: 0;
}
.pdp-tab {
  padding: 0 24px;
  line-height: 50px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.pdp-tab:hover, .pdp-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* ══════════════════════════════════════════════════════
   SECTIONS — Shared layout
   ══════════════════════════════════════════════════════ */
.pdp-section {
  padding: 64px 0;
}
.pdp-section-alt {
  background-color: #fafafa;
}
.pdp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  border-bottom: none;
}
.pdp-section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  margin-bottom: 0;
  position: relative;
}
.pdp-section-sub {
  font-size: 15px;
  color: #888;
  margin-top: 8px;
}
.pdp-brochure-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dm-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.pdp-brochure-link:hover {
  text-decoration: underline;
}
.pdp-view-more {
  color: #666;
  font-size: 14px;
  text-decoration: none;
}
.pdp-view-more:hover {
  color: var(--dm-primary);
}

/* ══════════════════════════════════════════════════════
   FEATURES — Cards style
   ══════════════════════════════════════════════════════ */
.pdp-features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.pdp-feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pdp-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: var(--dm-primary);
}
.pdp-feature-card .feat-icon {
  color: var(--dm-primary);
  flex-shrink: 0;
}
.pdp-feature-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* Body Content Accordion */
.pdp-body-accordion {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
}
.pdp-body-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  transition: background-color 0.2s;
}
.pdp-body-accordion summary::-webkit-details-marker { display: none; }
.pdp-body-accordion summary:hover {
  background: #f0f0f0;
}
.pdp-body-accordion[open] summary {
  border-bottom: 1px solid #eee;
}
.pdp-body-accordion .icon-toggle {
  color: #888;
  transition: transform 0.3s;
}
.pdp-body-accordion[open] .icon-toggle {
  transform: rotate(180deg);
}
.pdp-body-accordion .pdp-body-content {
  padding: 24px;
  background: #fff;
}

/* Body content (markdown rendered) */
.pdp-body-content {
  line-height: 1.8;
  color: #444;
  font-size: 15px;
}
.pdp-body-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #111;
}
.pdp-body-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #222;
}
.pdp-body-content ul, .pdp-body-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
.pdp-body-content li {
  margin-bottom: 8px;
}
.pdp-body-content strong {
  color: #111;
}

/* ══════════════════════════════════════════════════════
   PARAMETERS TABLE — Sany clean lines
   ══════════════════════════════════════════════════════ */
.pdp-params-table {
  width: 100%;
  border-collapse: collapse;
}
.pdp-params-table td {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.pdp-params-table tr:last-child td {
  border-bottom: none;
}
.pdp-params-table .pt-name {
  color: #222;
  font-weight: 500;
  width: 45%;
}
.pdp-params-table .pt-val {
  color: #555;
  text-align: right;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   SAMPLES GALLERY
   ══════════════════════════════════════════════════════ */
.pdp-samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.pdp-sample-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pdp-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pdp-sample-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* Lightbox */
.pdp-lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pdp-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.pdp-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.pdp-lightbox.active img {
  transform: scale(1);
}

/* ══════════════════════════════════════════════════════
   FAQ — Clean accordion
   ══════════════════════════════════════════════════════ */
.pdp-faq-list {
  width: 100%;
}
.pdp-faq-item {
  border-bottom: 1px solid #eee;
}
.pdp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  gap: 16px;
}
.pdp-faq-item summary::-webkit-details-marker { display: none; }
.pdp-faq-item summary:hover { color: var(--dm-primary); }
.pdp-faq-item .faq-toggle {
  color: #ccc;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.pdp-faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  color: var(--dm-primary);
}
.pdp-faq-item .faq-answer {
  padding: 0 0 24px 0;
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════
   RECOMMENDED — Sany-style product cards
   ══════════════════════════════════════════════════════ */
.pdp-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.pdp-rec-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.pdp-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.rec-img {
  height: 200px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rec-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.rec-body {
  padding: 20px;
}
.rec-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.rec-actions {
  display: flex;
  gap: 8px;
}
.rec-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}
.rec-btn-primary {
  background-color: var(--dm-primary);
  color: #fff;
  border: 1px solid var(--dm-primary);
}
.rec-btn-primary:hover {
  background-color: #c00;
  color: #fff;
}
.rec-btn-outline {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
}
.rec-btn-outline:hover {
  border-color: #222;
}

/* ══════════════════════════════════════════════════════
   INQUIRY FORM — Sany-style structured form
   ══════════════════════════════════════════════════════ */
.pdp-inquiry-section {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #eee;
}
.pdp-inquiry-title {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  margin-bottom: 40px;
  text-align: center;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .pdp-tab-bar { top: var(--header-height-mobile, 60px); }
  .pdp-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pdp-hero-info { order: 2; }
  .pdp-hero-media { order: 1; }

  .pdp-title { font-size: 28px; }
  .pdp-section-head h2 { font-size: 26px; }

  .pdp-tab-model { display: none; }
  .pdp-tab { padding: 0 16px; font-size: 13px; }


}

@media (max-width: 767px) {
  .pdp-hero { padding: 24px 0 20px; }
  .pdp-title { font-size: 24px; }
  .pdp-section { padding: 40px 0; }
  .pdp-section-head h2 { font-size: 22px; }

  .pdp-cta-row {
    flex-direction: column;
  }
  .pdp-cta-primary, .pdp-cta-secondary {
    width: 100%;
    text-align: center;
  }

  .pdp-tab-bar { overflow-x: auto; }
  .pdp-tab-inner { min-width: 400px; }
  .pdp-tab { padding: 0 12px; font-size: 13px; }

  /* Hide thumb nav buttons on mobile as they can swipe */
  .thumb-nav-btn {
    display: none !important;
  }
  .pdp-thumbs {
    padding-left: 2px;
    padding-right: 2px;
  }

  .pdp-rec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rec-img { height: 140px; }
  .rec-title { font-size: 13px; min-height: 36px; }
  .rec-btn { font-size: 12px; padding: 8px 0; }

  .pdp-inquiry-title { font-size: 24px; }
}
