/* Arigato Life — Product Detail Page Refined Architectural UI
   Open non-boxy layout · Hover-to-Zoom & Pan Gallery · Live GST Pricing · Technical Diagrams · Terms & Warranty */

body.ar-product-detail-page {
  background: #ffffff;
  color: #071e35;
}

/* Breadcrumb */
body.ar-product-detail-page .v6-crumb-wrap {
  background: #ffffff !important;
  border-bottom: 1px solid #edf2f7 !important;
  padding: 13px 0 !important;
}
body.ar-product-detail-page .v6-breadcrumb {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
}
body.ar-product-detail-page .v6-breadcrumb a {
  color: #0a68a4 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
body.ar-product-detail-page .v6-breadcrumb a:hover {
  color: #ed182b !important;
}

/* 1. Hero Product Section — Open Two-Column Editorial Stage */
.pd-hero-section {
  padding: 18px 0 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e9eff6 !important;
}
.pd-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(340px, 1.02fr) minmax(360px, 0.98fr) !important;
  gap: 48px !important;
  align-items: start !important;
}

/* Gallery with Smooth Hover-to-Zoom & Pan (No Click Modal) */
.pd-gallery {
  position: sticky;
  top: 94px;
  min-width: 0;
}
.pd-info {
  min-width: 0;
}
.pd-main-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  user-select: none;
  padding: 24px;
  box-sizing: border-box;
}
.pd-main-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}
.pd-main-stage.is-zooming img {
  transform: scale(2.15);
}
.pd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #071e35;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 30, 54, 0.14);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  z-index: 3;
}
.pd-nav-btn:hover {
  background: #ed182b;
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}
.pd-prev { left: 14px; }
.pd-next { right: 14px; }
.pd-photo-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 30, 53, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 2;
  transition: opacity 0.2s ease;
}
.pd-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: #071e35;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(7, 30, 54, 0.1);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.pd-main-stage .v29-inbuilt-pill {
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pd-main-stage.is-zooming .pd-zoom-hint,
.pd-main-stage.is-zooming .pd-photo-count,
.pd-main-stage.is-zooming .v29-inbuilt-pill {
  opacity: 0;
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: thin;
}
.pd-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 58px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #ffffff;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pd-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.pd-thumb.is-active {
  opacity: 1;
  border-color: #ed182b;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Product Info Column — Clean, Unboxed Editorial Flow */
.pd-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pd-cat-label {
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ed182b;
}
.pd-meta-dot {
  color: #cbd5e1;
  font-weight: 900;
}
.pd-warranty-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f7a3c;
}

.pd-info h1 {
  font: 800 clamp(28px, 3.1vw, 40px)/1.12 'Manrope', sans-serif !important;
  letter-spacing: -0.03em;
  color: #071e35 !important;
  margin: 0 0 12px !important;
}
.pd-lead {
  font-size: 16.5px !important;
  line-height: 1.58 !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 0 0 22px !important;
}

/* Open Architectural Price Strip (Replaces Heavy Dark Box) */
.pd-price-strip {
  padding: 18px 0 16px 18px;
  border-left: 4px solid #ed182b;
  border-top: 1px solid #e6eef5;
  border-bottom: 1px solid #e6eef5;
  background: linear-gradient(90deg, #fafcff 0%, #ffffff 100%);
  margin-bottom: 22px;
}
.pd-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.pd-price-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.13em;
  color: #0a68a4;
  margin-bottom: 4px;
}
.pd-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-price-main strong {
  font: 900 clamp(22px, 2.5vw, 32px)/1.2 'Manrope', sans-serif;
  color: #071e35;
  letter-spacing: -0.02em;
}
.pd-gst-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f7ee;
  color: #0f7a3c;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.pd-price-base {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}
.pd-moq-inline {
  padding-left: 18px;
  border-left: 1px solid #e2eaf2;
  text-align: left;
}
.pd-moq-inline span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.pd-moq-inline strong {
  display: block;
  font: 900 22px/1.15 'Manrope', sans-serif;
  color: #071e35;
  margin-top: 2px;
}
.pd-indicative-line {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #9a5b00;
}
.pd-price-disclaimer {
  margin: 10px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.48 !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

/* Variant & Sensor Controls */
.pd-controls-block {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.pd-selector-label {
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 8px;
}
.pd-var-pills,
.pd-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-var-btn,
.pd-mode-btn {
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid #cfdbe8;
  background: #ffffff;
  color: #071e35;
  font: 800 14px/1.2 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pd-var-btn:hover,
.pd-mode-btn:hover:not(:disabled) {
  border-color: #071e35;
  background: #f5f9fd;
}
.pd-var-btn.is-active {
  background: #ed182b;
  border-color: #ed182b;
  color: #ffffff;
}
.pd-mode-btn.is-active {
  background: #071e35;
  border-color: #071e35;
  color: #ffffff;
}
.pd-mode-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.pd-mode-static {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 800;
  color: #071e35;
  padding: 4px 0;
  border-bottom: 2px solid #0a68a4;
}

/* Architectural Key Specs List (Hairlines Instead of 4 Mini Boxes) */
.pd-specs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin: 0 0 18px;
  border-top: 1px solid #e6eef5;
}
.pd-spec-row {
  padding: 11px 0;
  border-bottom: 1px solid #e6eef5;
}
.pd-spec-row dt {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
}
.pd-spec-row dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #000000;
  line-height: 1.35;
}

.pd-var-note {
  margin: 0 0 16px !important;
  padding: 8px 0 8px 12px;
  border-left: 3px solid #d97706;
  color: #7c4a03 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Action Buttons */
.pd-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
.pd-rfq-btn,
.pd-quote-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px !important;
  padding: 12px 18px !important;
  border-radius: 9px !important;
  font: 850 13.5px/1.2 'Manrope', sans-serif !important;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
}
.pd-rfq-btn {
  background: #ed182b !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(237, 24, 43, 0.24) !important;
}
.pd-rfq-btn:hover {
  background: #d01224 !important;
  transform: translateY(-1px);
}
.pd-rfq-btn.is-added {
  background: #169c4c !important;
}
.pd-quote-btn {
  background: #071e35 !important;
  color: #ffffff !important;
  border: none !important;
}
.pd-quote-btn:hover {
  background: #0f365c !important;
  transform: translateY(-1px);
}

/* Shared Section Headers */
.pd-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pd-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.14em;
  color: #ed182b;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.pd-section-head h2,
.pd-details-col h2 {
  font: 800 clamp(25px, 2.8vw, 36px)/1.14 'Manrope', sans-serif !important;
  letter-spacing: -0.025em;
  color: #071e35 !important;
  margin: 0 0 6px !important;
}
.pd-section-head h2 em {
  color: #ed182b;
  font-style: normal;
}
.pd-section-head p {
  font-size: 16px !important;
  line-height: 1.52 !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 0 !important;
}
.pd-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 850;
  color: #0a68a4;
  text-decoration: none;
}
.pd-dl-link:hover {
  color: #ed182b;
}

/* 2. Variants Pricing & Specs Table — Clean Flush Editorial Table */
.pd-table-section {
  padding: 20px 0 22px !important;
  background: #fafcfe !important;
  border-bottom: 1px solid #e9eff6 !important;
}
.pd-table-wrap {
  overflow-x: auto;
  background: transparent;
}
.pd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.pd-table thead th {
  background: #f1f5f9;
  color: #071e35;
  font: 850 13px/1.3 'Manrope', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 2px solid #071e35;
  white-space: nowrap;
}
.pd-table tbody tr {
  background: #ffffff;
  border-bottom: 1px solid #e6eef5;
  cursor: pointer;
  transition: background 0.14s ease;
}
.pd-table tbody tr:hover {
  background: #f5f9fd;
}
.pd-table tbody tr.is-selected {
  background: #fff4f5;
  box-shadow: inset 3px 0 0 #ed182b;
}
.pd-table td {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  vertical-align: middle;
}
.pd-table td small {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f7a3c;
  margin-top: 2px;
}
.pd-table td .pd-row-note {
  color: #0a68a4;
}
.pd-na {
  color: #94a3b8;
  font-weight: 700;
}
.pd-table-note {
  margin: 14px 0 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}
.pd-mode-pill-cell {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0b3962;
  background: #edf5fc;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pd-table-quote-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 850;
  color: #ed182b;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.pd-table-quote-link:hover {
  color: #c00e1f;
  text-decoration: underline;
}

/* 3. Features & Applications — Open Split Layout (No Heavy Cards) */
.pd-details-section {
  padding: 20px 0 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e9eff6 !important;
}
.pd-details-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  align-items: start;
}
.pd-details-col {
  padding-right: 40px;
}
.pd-details-col-right {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid #e6eef5;
}
.pd-details-col p {
  font-size: 16px !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 8px 0 16px !important;
}
.pd-feature-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}
.pd-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 700;
  color: #000000;
}
.pd-feature-list li::before {
  content: "✓";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fdecef;
  color: #ed182b;
  font-weight: 900;
  font-size: 12px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.pd-app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-app-tags span {
  padding: 7px 14px;
  border-radius: 999px;
  background: #f3f7fb;
  font-size: 14px;
  font-weight: 800;
  color: #071e35;
}

/* 4. Smart Sensor Diagrams + Detection Range & Wiring Diagrams (Full Uncropped Images, Heading Only, No Zoom) */
.pd-explainer-section {
  padding: 20px 0 22px !important;
  background: #f8fafd !important;
  border-bottom: 1px solid #e9eff6 !important;
}
.pd-diagram-group.has-top-divider {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dfe8f2;
}
.pd-diagram-heading {
  font: 800 clamp(24px, 2.6vw, 34px)/1.16 'Manrope', sans-serif !important;
  letter-spacing: -0.025em;
  color: #071e35 !important;
  margin: 0 0 12px !important;
}
.pd-diagram-heading em {
  color: #ed182b;
  font-style: normal;
}
.pd-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pd-diagram-media {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e9eff6;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-diagram-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Technical Sheet — Clean Borderless Stage (Full Uncropped, No Zoom) */
.pd-sheet-section {
  padding: 20px 0 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e9eff6 !important;
}
.pd-sheet-stage {
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafd;
  padding: 12px;
  text-align: center;
}
.pd-sheet-stage img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* 5. Terms, Conditions & Warranty — Clean Architectural Numbered Grid (No Heavy Boxes) */
.pd-terms-section {
  padding: 20px 0 24px !important;
  background: #f8fafd !important;
  border-bottom: 1px solid #e9eff6 !important;
}
.pd-terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}
.pd-term-item {
  padding-top: 12px;
  border-top: 2px solid #071e35;
}
.pd-term-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.pd-term-num {
  font: 900 16px/1 'Manrope', sans-serif;
  color: #ed182b;
  letter-spacing: 0.04em;
}
.pd-term-item h3 {
  font: 850 18px/1.25 'Manrope', sans-serif !important;
  color: #071e35 !important;
  margin: 0 !important;
}
.pd-term-item p {
  font-size: 14.5px !important;
  line-height: 1.54 !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 0 !important;
}

/* 6. Related Products — Clean Editorial Grid */
.pd-related-section {
  padding: 20px 0 24px !important;
  background: #ffffff !important;
}
body.ar-product-detail-page .v24-red-cta {
  padding: 24px 0 !important;
}
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.pd-rel-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.pd-rel-photo {
  position: relative;
  height: 210px;
  border-radius: 12px;
  background: #f4f7fa;
  overflow: hidden;
}
.pd-rel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pd-rel-card:hover .pd-rel-photo img {
  transform: scale(1.06);
}
.pd-rel-body {
  padding: 14px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-rel-body span {
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: #ed182b;
  text-transform: uppercase;
}
.pd-rel-body strong {
  font: 800 18px/1.3 'Manrope', sans-serif;
  color: #071e35;
  transition: color 0.15s ease;
}
.pd-rel-card:hover .pd-rel-body strong {
  color: #ed182b;
}
.pd-rel-body small {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

/* Responsive */
@media (max-width: 980px) {
  .pd-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .pd-gallery {
    position: static;
  }
  .pd-details-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .pd-details-col {
    padding-right: 0;
    min-width: 0;
  }
  .pd-details-col-right {
    padding-left: 0;
    padding-top: 22px;
    border-left: none;
    border-top: 1px solid #e6eef5;
    min-width: 0;
  }
  .pd-explainer-grid,
  .pd-terms-grid,
  .pd-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .pd-actions {
    grid-template-columns: 1fr;
  }
  .pd-specs-list {
    grid-template-columns: 1fr;
  }
  .pd-moq-inline {
    padding-left: 0;
    border-left: none;
  }
  .pd-price-strip {
    padding-left: 14px;
  }
  .pd-main-stage {
    cursor: default;
  }
  .pd-main-stage.is-zooming img {
    transform: scale(1) !important;
  }
  .pd-zoom-hint {
    display: none !important;
  }
  .pd-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .pd-var-btn,
  .pd-mode-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .pd-table {
    min-width: 540px;
  }
}

@media (hover: none) {
  .pd-main-stage {
    cursor: default;
  }
  .pd-main-stage.is-zooming img {
    transform: scale(1) !important;
  }
  .pd-zoom-hint {
    display: none !important;
  }
}
