/* =============================================
   product_detail.css
   Tipco Engineering – Product Detail Page
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --brand:       #206c6d;
  --brand-light: #37b9ba;
  --brand-10:    rgba(32,108,109,0.10);
  --brand-20:    rgba(32,108,109,0.20);
  --bg:          #ffffff;
  --bg-alt:      #f8f9fa;
  --border:      #e5e7eb;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --font-main:   'Inter', Helvetica, sans-serif;
  --font-head:   'Inter', sans-serif;
}

/* ---------- Reset / Base ---------- */
.pd-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.pd-wrap {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.pd-breadcrumb .pd-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.pd-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.pd-breadcrumb a:hover { color: var(--brand); }
.pd-breadcrumb svg { flex-shrink: 0; opacity: .5; }
.pd-breadcrumb .pd-bc-current {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Layout Container ---------- */
.pd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero Section ---------- */
.pd-hero { padding: 40px 0; }
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .pd-hero-grid { grid-template-columns: 1fr; }
}

/* --- Image Gallery --- */
.pd-gallery-wrap {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.pd-gallery-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 var(--radius-xs) 0;
}
.pd-gallery-main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.pd-gallery-main img {
  max-height: 300px;
  max-width: 100%;
  object-fit: contain;
  transition: opacity .3s;
}
.pd-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.pd-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xs);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  background: var(--bg-alt);
}
.pd-thumb:hover { transform: translateY(-2px); border-color: var(--brand-light); }
.pd-thumb.pd-thumb-active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Product Info --- */
.pd-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-10);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-decoration: none;
}
.pd-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.pd-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 24px;
}
.pd-description p { margin-bottom: 12px; }

/* --- CTA Buttons --- */
.pd-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-main);
}
.pd-btn-primary { background: var(--brand); color: #fff; }
.pd-btn-primary:hover {
  background: #175859;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32,108,109,.35);
}
.pd-btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.pd-btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

/* --- Enquiry Sidebar --- */
.pd-sidebar { position: sticky; top: 90px; }
.pd-enquiry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.pd-enquiry-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-10);
}
.pd-form-group { margin-bottom: 12px; }
.pd-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.pd-form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-10);
}
.pd-form-input::placeholder { color: var(--text-light); }
textarea.pd-form-input { resize: vertical; min-height: 90px; }
.pd-btn-submit {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  margin-top: 4px;
}
.pd-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin: 14px 0;
  position: relative;
}
.pd-divider::before, .pd-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.pd-divider::before { left: 0; }
.pd-divider::after  { right: 0; }
.pd-btn-phone { width: 100%; justify-content: center; padding: 10px; }
.pd-contact-items { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pd-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pd-contact-item a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* ---------- Sticky Tab Nav ---------- */
.pd-tabs {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 80px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.pd-tabs .pd-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tabs .pd-container::-webkit-scrollbar { display: none; }
.pd-tab-link {
  padding: 16px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.pd-tab-link:hover { color: var(--brand); }
.pd-tab-link.pd-tab-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ---------- Section Common ---------- */
.pd-section { padding: 64px 0; scroll-margin-top: 130px; }
.pd-section-alt { background: var(--bg-alt); }
.pd-section-title { text-align: center; margin-bottom: 40px; }
.pd-section-title h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.pd-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 4px;
  background: var(--brand);
  border-radius: 2px;
}
.pd-section-title p { margin-top: 12px; font-size: 14px; color: var(--text-muted); }

/* ---------- Features / Benefits Rich HTML ---------- */
.pd-rich-content ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  padding: 0;
  margin: 0;
}
@media (max-width: 640px) { .pd-rich-content ul { grid-template-columns: 1fr; } }
.pd-rich-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  padding-left: 0;
  list-style: none;
}
.pd-rich-content ul li::before { display: none; }
.pd-rich-content ul li .pd-li-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--brand-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
/* Remove inline styles from DB rich text */
.pd-rich-content span,
.pd-rich-content font { font-size: inherit !important; font-family: inherit !important; color: inherit !important; }

/* ---------- Applications Grid ---------- */
.pd-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.pd-app-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  display: block;
}
.pd-app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pd-app-card-img { overflow: hidden; height: 150px; }
.pd-app-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.pd-app-card:hover .pd-app-card-img img { transform: scale(1.08); }
.pd-app-card-label {
  text-align: center;
  padding: 10px;
  background: linear-gradient(316deg, #206c6d 0%, #37b9ba 100%);
}
.pd-app-card-label h3 { color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- Technical Table ---------- */
.pd-tech-wrap { overflow-x: auto; }
.pd-rich-technical { 
  overflow-x: auto; 
  margin: 24px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
/* Cancel any negative margins or outer indent from Google Docs paste */
.pd-rich-technical div {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}
.pd-rich-technical table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 13.5px;
  min-width: 580px;
  background: #ffffff;
  border: 1px solid #cbd5e1 !important;
  margin: 0 !important;
}

/* Reset all paragraph, div, span margins and line-heights inside table cells */
.pd-rich-technical table p,
.pd-rich-technical table div {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
  display: block;
}
.pd-rich-technical table span,
.pd-rich-technical table font {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Base cell styling - perfect vertical centering */
.pd-rich-technical table td,
.pd-rich-technical table th {
  border: 1px solid #cbd5e1 !important;
  padding: 12px 18px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

/* ----------------------------------------------------
   1. TOP HEADER ROW (Row 0)
   Always Brand Background & Pure White Text
   ---------------------------------------------------- */
.pd-rich-technical table thead th,
.pd-rich-technical table thead td,
.pd-rich-technical table tr:first-child th,
.pd-rich-technical table tr:first-child td {
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
}
.pd-rich-technical table thead th *,
.pd-rich-technical table thead td *,
.pd-rich-technical table tr:first-child th *,
.pd-rich-technical table tr:first-child td * {
  color: #ffffff !important;
}

/* Top-Left Header Cell: TIPCO HSD Series: / Parameter */
.pd-rich-technical table thead th:first-child,
.pd-rich-technical table thead td:first-child,
.pd-rich-technical table tr:first-child th:first-child,
.pd-rich-technical table tr:first-child td:first-child {
  text-align: left !important;
  padding-left: 20px !important;
  white-space: nowrap !important;
  color: #ffffff !important;
}
.pd-rich-technical table thead th:first-child *,
.pd-rich-technical table thead td:first-child *,
.pd-rich-technical table tr:first-child th:first-child *,
.pd-rich-technical table tr:first-child td:first-child * {
  text-align: left !important;
  color: #ffffff !important;
}

/* Other Top Header Cells (Model Names: HS-0.5, HS-1, etc.) */
.pd-rich-technical table thead th:not(:first-child),
.pd-rich-technical table thead td:not(:first-child),
.pd-rich-technical table tr:first-child th:not(:first-child),
.pd-rich-technical table tr:first-child td:not(:first-child) {
  text-align: center !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
.pd-rich-technical table thead th:not(:first-child) *,
.pd-rich-technical table thead td:not(:first-child) *,
.pd-rich-technical table tr:first-child th:not(:first-child) *,
.pd-rich-technical table tr:first-child td:not(:first-child) * {
  text-align: center !important;
  color: #ffffff !important;
}

/* ----------------------------------------------------
   2. FIRST COLUMN (Parameter / Row Labels)
   Always Brand Background & Pure White Text, Left-Aligned
   ---------------------------------------------------- */
.pd-rich-technical table tbody tr td:first-child,
.pd-rich-technical table tbody tr th:first-child,
.pd-rich-technical table tr td:first-child,
.pd-rich-technical table tr th:first-child {
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding-left: 20px !important;
  padding-right: 18px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}
.pd-rich-technical table tbody tr td:first-child *,
.pd-rich-technical table tbody tr th:first-child *,
.pd-rich-technical table tr td:first-child *,
.pd-rich-technical table tr th:first-child * {
  color: #ffffff !important;
  text-align: left !important;
}

/* ----------------------------------------------------
   3. DATA CELLS (Model Values: strictly tr:not(:first-child))
   White/Zebra Background, Dark text, Center aligned
   ---------------------------------------------------- */
.pd-rich-technical table tbody tr:not(:first-child) td:not(:first-child),
.pd-rich-technical table tbody tr:not(:first-child) th:not(:first-child),
.pd-rich-technical table tr:not(:first-child) td:not(:first-child),
.pd-rich-technical table tr:not(:first-child) th:not(:first-child) {
  text-align: center !important;
  vertical-align: middle !important;
  color: #1e293b !important;
}
.pd-rich-technical table tbody tr:not(:first-child) td:not(:first-child) *,
.pd-rich-technical table tbody tr:not(:first-child) th:not(:first-child) *,
.pd-rich-technical table tr:not(:first-child) td:not(:first-child) *,
.pd-rich-technical table tr:not(:first-child) th:not(:first-child) * {
  text-align: center !important;
  color: #1e293b !important;
}

/* Alternating zebra row background for data columns */
.pd-rich-technical table tr:nth-child(even) td:not(:first-child) { 
  background: #f8fafc; 
}
.pd-rich-technical table tr:nth-child(odd) td:not(:first-child) { 
  background: #ffffff; 
}

/* Guarantee white text on ANY cell or header with colored background */
.pd-rich-technical table tr:first-child td,
.pd-rich-technical table tr:first-child th,
.pd-rich-technical table thead td,
.pd-rich-technical table thead th,
.pd-rich-technical table td:first-child,
.pd-rich-technical table th:first-child,
.pd-rich-technical table td[style*="background"],
.pd-rich-technical table th[style*="background"] {
  background-color: var(--brand) !important;
  color: #ffffff !important;
}
.pd-rich-technical table tr:first-child td *,
.pd-rich-technical table tr:first-child th *,
.pd-rich-technical table thead td *,
.pd-rich-technical table thead th *,
.pd-rich-technical table td:first-child *,
.pd-rich-technical table th:first-child *,
.pd-rich-technical table td[style*="background"] *,
.pd-rich-technical table th[style*="background"] * {
  color: #ffffff !important;
}

/* ----------------------------------------------------
   4. FULL-WIDTH / COLSPAN CELLS (Notes or Special Info)
   ---------------------------------------------------- */
.pd-rich-technical table td[colspan],
.pd-rich-technical table th[colspan] {
  text-align: left !important;
  padding: 14px 20px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  white-space: normal !important;
}
.pd-rich-technical table td[colspan] *,
.pd-rich-technical table th[colspan] * {
  text-align: left !important;
  color: #334155 !important;
}

/* ---------- Related Products ---------- */
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.pd-related-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: block;
}
.pd-related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}
.pd-related-img {
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-related-img img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .4s;
}
.pd-related-card:hover .pd-related-img img { transform: scale(1.05); }
.pd-related-info { padding: 16px; border-top: 1px solid var(--border); }
.pd-related-info h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.pd-related-info p {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pd-related-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin-top: 10px;
  transition: gap .2s;
}
.pd-related-card:hover .pd-related-arrow { gap: 8px; }

/* ---------- CTA Banner ---------- */
.pd-cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #37b9ba 100%);
  padding: 56px 0;
}
.pd-cta-banner .pd-container { text-align: center; }
.pd-cta-banner h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.pd-cta-banner p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 28px; }

/* CTA with per-product image (Admin > Product > CTA Banner Image): image only, content on the right */
.pd-cta-banner.pd-cta-has-image {
  background-color: #eaf6f8;
  background-position: left center; /* if content ever needs more height, crop the plain right side, not the machine */
  background-size: cover;
  background-repeat: no-repeat;
  padding: 56px 0;
  display: flex;
  align-items: center; /* min height = image's aspect-ratio (set inline); padding lets it grow a bit taller */
}
.pd-cta-banner.pd-cta-has-image .pd-container { text-align: left; width: 100%; }
.pd-cta-banner.pd-cta-has-image h3 { font-size: clamp(18px, 1.7vw, 26px); margin-bottom: 8px; }
.pd-cta-banner.pd-cta-has-image p { margin-bottom: 18px; }
.pd-cta-banner.pd-cta-has-image .pd-container > * { margin-left: auto; max-width: 55%; }
.pd-cta-banner.pd-cta-has-image .pd-container > div { justify-content: flex-start !important; }
/* image is light on the right, so dark text + brand buttons */
.pd-cta-banner.pd-cta-has-image h3 { color: #123f40; }
.pd-cta-banner.pd-cta-has-image p { color: #2f4f50; font-weight: 500; }
.pd-cta-banner.pd-cta-has-image .pd-btn-white { background: var(--brand); color: #fff; border-color: var(--brand); }
.pd-cta-banner.pd-cta-has-image .pd-btn-white:hover { background: #18595a; color: #fff; }
.pd-cta-banner.pd-cta-has-image .pd-btn:not(.pd-btn-white) {
  background: #fff !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.pd-cta-banner.pd-cta-has-image .pd-btn:not(.pd-btn-white):hover { background: var(--brand-10) !important; }
@media (max-width: 991px) {
  /* the image ratio would make the banner wider than the phone (content height x ratio): size by content instead */
  .pd-cta-banner.pd-cta-has-image { background-position: right center; aspect-ratio: auto !important; width: 100%; max-width: 100%; }
  .pd-cta-banner.pd-cta-has-image .pd-container { text-align: center; }
  .pd-cta-banner.pd-cta-has-image .pd-container > * { max-width: 100%; }
  .pd-cta-banner.pd-cta-has-image .pd-container > div { justify-content: center !important; }
}
.pd-btn-white { background: #fff; color: var(--brand); border-color: #fff; font-weight: 700; }
.pd-btn-white:hover {
  background: rgba(255,255,255,.9);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* ---------- Alerts ---------- */
.pd-success-msg {
  background: #d1fae5; color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-xs);
  padding: 10px 14px; font-size: 13px;
  margin: 12px 0 0; display: none;
}
.pd-error-msg {
  background: #fee2e2; color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-xs);
  padding: 10px 14px; font-size: 13px;
  margin: 12px 0 0; display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pd-hero { padding: 24px 0; }
  .pd-section { padding: 40px 0; }
  .pd-container { padding: 0 16px; }
  .pd-hero-grid { gap: 24px; }
  .pd-gallery-wrap { min-height: 260px; padding: 16px; }
  .pd-gallery-main img { max-height: 220px; }
  .pd-enquiry-card { padding: 20px; }
  .pd-tabs { top: 70px; }
  .pd-related-grid { grid-template-columns: 1fr 1fr; }
  .pd-apps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pd-related-grid { grid-template-columns: 1fr; }
  .pd-rich-content ul { grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE OVERRIDES: Product Detail (Tablet & Mobile Only)
   ========================================================= */
@media (max-width: 1024px) {
  .pd-tech-wrap,
  .pd-rich-technical {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .pd-rich-technical table {
    min-width: 580px !important;
  }
  .pd-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .pd-sidebar {
    position: static !important;
  }
}
@media (max-width: 767px) {
  .pd-container {
    padding: 0 16px !important;
  }
  .pd-gallery-wrap {
    min-height: 240px !important;
    padding: 16px !important;
  }
  .pd-gallery-main img {
    max-height: 200px !important;
  }
  .pd-thumb {
    width: 60px !important;
    height: 60px !important;
  }
  .pd-hero {
    padding: 20px 0 !important;
  }
  .pd-section {
    padding: 32px 0 !important;
  }
  .pd-cta-banner {
    padding: 40px 0 !important;
  }
  .pd-enquiry-card {
    padding: 18px !important;
  }
  .pd-enquiry-card h3 {
    font-size: 16px !important;
    margin-bottom: 14px !important;
  }
}
@media (max-width: 480px) {
  .pd-apps-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .pd-related-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pd-cta-banner h3 {
    font-size: 20px !important;
  }
  .pd-cta-banner p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }
}

/* Gallery thumbnails: show the whole machine instead of a cropped part */
.pd-thumb { background: #ffffff; }
.pd-thumb img { object-fit: contain; padding: 4px; }

/* Breadcrumb removed: a little more space between the header and the product */
.pd-hero { padding-top: 64px; }
@media (max-width: 768px) { .pd-hero { padding-top: 36px !important; } }
