/* ============================================================
   PRODUCT DETAIL PAGE — product-detail.css
   Theme colors: teal #15656c | red #be1e2c | green #70a232
   ============================================================ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.product-breadcrumb {
  padding: 14px 0 6px;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  gap: 6px;
}

/* ── Datasheet modal (webform gate) ─────────────────────────── */
.datasheet-modal[hidden] { display: none !important; }
.datasheet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.datasheet-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.55);
  backdrop-filter: blur(2px);
}
.datasheet-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  height: min(80vh, 720px);
  margin: 8vh auto 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.datasheet-modal__title {
  margin: 0;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid #eef2f6;
}
.datasheet-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e4e8ee;
  background: #fff;
  color: #555;
  cursor: pointer;
}
.datasheet-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
}
.datasheet-modal__note {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 576px) {
  .datasheet-modal__dialog {
    width: 96vw;
    height: 78vh;
    margin-top: 10vh;
    border-radius: 10px;
  }
}
.product-breadcrumb a {
  color: #15656c;
  text-decoration: none;
}
.product-breadcrumb a:hover {
  text-decoration: underline;
}

/* ── Page wrapper ────────────────────────────────────────────── */
.product-detail-page {
  padding: 15px 0 70px;
 
}

/* ── Hero row ────────────────────────────────────────────────── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
  padding: 40px;
  margin-bottom: 40px;
}

/* ── Image panel ─────────────────────────────────────────────── */
.product-image-panel {
  position: sticky;
  top: 100px;
}
.product-main-image {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border: 1px solid #e8eaed;
}
.product-main-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.product-main-image:hover img {
  transform: scale(1.04);
}

/* ── Info panel ──────────────────────────────────────────────── */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Category badge */
.product-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21, 101, 108, 0.08);
  color: #15656c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(21, 101, 108, 0.2);
  width: fit-content;
}
.product-category-badge .field--name-field-category,
.product-category-badge .field--name-field-product-category {
  display: inline;
}
.product-category-badge a {
  color: inherit;
  text-decoration: none;
}

/* Title */
.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 0;
}

/* Divider accent */
.product-title-divider {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, #15656c, #70a232);
  border-radius: 4px;
  margin: 2px 0 4px;
}

/* Short description */
.product-short-desc {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.75;
  border-left: 3px solid #15656c;
  padding-left: 16px;
}
.product-short-desc p {
  margin: 0;
}

/* CTA buttons */
.product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn-datasheet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #15656c;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(21,101,108,0.28);
}
.btn-datasheet svg {
  flex-shrink: 0;
}
.btn-datasheet:hover {
  background: #0f4c52;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21,101,108,0.35);
  color: #fff;
  text-decoration: none;
}

.btn-enquire {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #15656c;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #15656c;
  transition: all 0.25s;
}
.btn-enquire:hover {
  background: #15656c;
  color: #fff;
  text-decoration: none;
}

/* Trust badges strip */
.product-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
}
.trust-item svg {
  color: #70a232;
  flex-shrink: 0;
}

/* ── Details section (tabs) ──────────────────────────────────── */
.product-details-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Tab nav */
.pd-tabs-nav {
  display: flex;
  border-bottom: 2px solid #e8eaed;
  background: #f7f8fa;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tabs-nav::-webkit-scrollbar { display: none; }

.pd-tab-btn {
  flex-shrink: 0;
  padding: 16px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.pd-tab-btn:hover {
  color: #15656c;
}
.pd-tab-btn.active {
  color: #15656c;
  border-bottom-color: #15656c;
  background: #fff;
}

/* Tab panes */
.pd-tab-pane {
  padding: 15px 40px;
  animation: fadeTabIn 0.3s ease;
}
.pd-tab-pane.active {
  display: block;
}
@keyframes fadeTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Features content */
.pd-tab-pane h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-tab-pane h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  background: linear-gradient(180deg, #15656c, #70a232);
  border-radius: 3px;
}

.product-features-content,
.product-benefits-content {
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.8;
}
.product-features-content ul,
.product-benefits-content ul {
  padding-left: 0;
  list-style: none;
}
.product-features-content ul li,
.product-benefits-content ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dashed #edf0f4;
}
.product-features-content ul li:last-child,
.product-benefits-content ul li:last-child {
  border-bottom: none;
}
.product-features-content ul li::before,
.product-benefits-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #15656c;
}

/* Benefits grid override */
.product-benefits-content ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
}
@media (max-width: 640px) {
  .product-benefits-content ul {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }
  .product-image-panel {
    position: static;
  }
  .product-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .product-detail-page {
    padding: 20px 0 50px;
  }
  .product-hero {
    padding: 20px;
    border-radius: 10px;
  }
  .product-main-image {
    min-height: 260px;
  }
  .product-title {
    font-size: 1.4rem;
  }
  .pd-tab-pane {
    padding: 24px 18px;
  }
  .pd-tab-btn {
    padding: 14px 18px;
  }
  .product-ctas {
    flex-direction: column;
  }
  .btn-datasheet,
  .btn-enquire {
    justify-content: center;
  }
}
