/* ============================================================
   BotDirectPro – Product Detail Page
   Shared stylesheet for individual robot product pages
   ============================================================ */

:root {
  --ink: #1b1a2e;
  --brand: #00796b;
  --brand-deep: #0f4f49;
  --brand-light: #eefbf7;
  --accent: #f4b400;
  --muted: #5f6878;
  --line: rgba(27, 26, 46, 0.12);
  --shadow: 0 20px 50px rgba(15, 79, 73, 0.12);
  --radius: 20px;
  --max-width: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #fafbfc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.prod-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
}
.prod-nav-logo { width: 254px; height: auto; border-radius: 6px; }
.prod-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
}
.prod-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s;
}
.prod-nav-links a:hover { color: var(--brand); }

.prod-breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 10px;
  font-size: 13px;
  color: var(--muted);
}
.prod-breadcrumb a { color: var(--muted); text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--brand); }
.prod-breadcrumb .sep { margin: 0 6px; }

.prod-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 24px auto 40px;
  padding: 0 24px;
  align-items: center;
}
.prod-hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f0f4f3;
  border-radius: var(--radius);
  padding: 20px;
}
.prod-hero-company {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}
.prod-hero-name {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.prod-hero-tagline {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.prod-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.prod-hero-cta--primary {
  background: var(--brand);
  color: #fff;
}
.prod-hero-cta--primary:hover { background: var(--brand-deep); }
.prod-hero-cta--secondary {
  border: 1.5px solid var(--line);
  color: var(--ink);
  margin-left: 10px;
}
.prod-hero-cta--secondary:hover { border-color: var(--brand); color: var(--brand); }

.prod-section {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  padding: 0 24px;
}
.prod-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-light);
}

.prod-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.prod-spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.prod-spec-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.prod-spec-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.prod-param-table {
  display: grid;
  gap: 10px;
}
.prod-param-table--compact {
  max-width: 760px;
  margin: 0 auto;
}
.prod-param-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prod-param-label {
  padding: 12px 14px;
  background: var(--brand-light);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 800;
}
.prod-param-value {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: pre-line;
}

.prod-source-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.prod-source-list a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.prod-source-list a:hover { text-decoration: underline; }

.prod-video {
  width: 100%;
  max-height: 680px;
  border-radius: var(--radius);
  background: #101820;
  border: 1px solid var(--line);
}

.prod-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.prod-features--spotlight {
  display: block;
}
.prod-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  border-left: 4px solid var(--brand);
}
.prod-feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.prod-feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.prod-feature-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.prod-feature-list li::marker {
  color: var(--ink);
}
.prod-feature-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}
.prod-feature-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f8fc;
}
.prod-feature-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.prod-feature-stack {
  display: grid;
  gap: 16px;
}
.prod-feature-stack .prod-feature {
  min-height: 0;
}

.prod-description {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  font-size: 16px;
  color: var(--brand-deep);
  line-height: 1.8;
}

.prod-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.prod-scenario {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.prod-scenario:hover { box-shadow: var(--shadow); }
.prod-scenario-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.prod-scenario-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.prod-scenario-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.prod-users {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prod-user-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.prod-bottom {
  max-width: var(--max-width);
  margin: 60px auto 80px;
  padding: 0 24px;
  text-align: center;
}
.prod-bottom-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: var(--accent);
  color: #2d2500;
  transition: all 0.2s;
}
.prod-bottom-cta:hover { filter: brightness(0.95); }
.prod-bottom-link {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.prod-bottom-link:hover { color: var(--brand); }

@media (max-width: 768px) {
  .prod-hero { grid-template-columns: 1fr; gap: 24px; }
  .prod-hero-img { aspect-ratio: 16/10; }
  .prod-nav-links { gap: 16px; }
  .prod-nav-links a { font-size: 13px; }
  .prod-param-row { grid-template-columns: 1fr; }
}
/* ── Media Carousel ── */
.prod-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f0f4f3;
}
.prod-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.prod-carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.prod-carousel-slide img,
.prod-carousel-slide video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  padding: 20px;
  border-radius: var(--radius);
}
.prod-carousel-slide figcaption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 14px;
}
.prod-carousel-slide figcaption strong {
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}
.prod-carousel-slide figcaption span {
  text-align: right;
}
.prod-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.prod-carousel-btn:hover { border-color: var(--brand); color: var(--brand); }
.prod-carousel-btn--prev { left: 10px; }
.prod-carousel-btn--next { right: 10px; }
.prod-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.prod-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.prod-carousel-dot.active { background: var(--brand); width: 24px; border-radius: 4px; }
.prod-carousel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 768px) {
  .prod-carousel-slide img,
  .prod-carousel-slide video { aspect-ratio: 16/10; padding: 10px; }
  .prod-carousel-slide figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 20px;
  }
  .prod-carousel-slide figcaption span { text-align: left; }
}

/* Generated product-family pages */
.prod-detail-page {
  padding-bottom: 1px;
}
.prod-hero--detail {
  align-items: stretch;
}
.prod-hero--detail > * {
  min-width: 0;
}
.prod-hero--detail .prod-carousel {
  min-height: 460px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.prod-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 460px;
  padding: 44px;
  border-radius: var(--radius);
  background: #102239;
  color: #fff;
}
.prod-hero-panel .prod-hero-company {
  color: #7fd7cb;
}
.prod-hero-panel .prod-hero-name {
  color: #fff;
  overflow-wrap: anywhere;
}
.prod-hero-panel .prod-hero-tagline {
  color: rgba(255,255,255,.78);
}
.prod-hero-reference {
  margin: -4px 0 16px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  font-weight: 700;
}
.prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.prod-hero-panel .prod-hero-cta--secondary {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  margin-left: 0;
}
.prod-hero-panel .prod-hero-cta--secondary:hover {
  border-color: #7fd7cb;
  color: #7fd7cb;
}
.prod-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.prod-spec-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f6f8fc;
}
.prod-spec-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.prod-spec-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.prod-spec-matrix th,
.prod-spec-matrix td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prod-spec-matrix th:last-child,
.prod-spec-matrix td:last-child { border-right: none; }
.prod-spec-matrix tr:last-child th,
.prod-spec-matrix tr:last-child td { border-bottom: none; }
.prod-spec-matrix thead th {
  background: var(--brand-light);
  color: var(--brand-deep);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prod-spec-matrix tbody th {
  width: 190px;
  color: var(--brand-deep);
  font-weight: 800;
}
.prod-spec-matrix--notes { min-width: 680px; }
.prod-application-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.prod-application-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}
.prod-application-icon svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prod-source-note {
  margin-top: 14px;
  font-size: 14px;
}
.prod-source-note a {
  color: var(--brand-deep);
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* UBTECH generated product pages */
.ubtech-product-page .prod-hero-panel .prod-hero-name {
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.ubtech-product-page .prod-carousel {
  background: #102239;
}

.ubtech-product-page .prod-carousel-slide img {
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.16), rgba(255,255,255,.04) 52%, rgba(255,255,255,0) 78%);
}

.ubtech-product-page .prod-carousel-slide figcaption {
  color: rgba(255,255,255,.72);
}

.ubtech-product-page .prod-carousel-slide figcaption strong {
  color: #fff;
}

@media (max-width: 768px) {
  .prod-hero-panel {
    min-height: auto;
    padding: 28px 24px;
  }
  .prod-hero--detail .prod-carousel { min-height: auto; }
  .prod-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .prod-nav-logo { width: 220px; }
  .prod-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
  }
  .prod-nav-links {
    row-gap: 10px;
  }
  .prod-spec-matrix {
    min-width: 640px;
    font-size: 13px;
  }
  .ubtech-product-page .prod-hero {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    margin: 24px auto 40px;
    padding: 0;
    overflow-x: hidden;
  }
  .ubtech-product-page .prod-hero--detail {
    display: block;
  }
  .ubtech-product-page .prod-carousel,
  .ubtech-product-page .prod-hero-panel {
    width: 100%;
    max-width: 100%;
  }
  .ubtech-product-page .prod-hero-panel {
    margin-top: 24px;
  }
  .ubtech-product-page .prod-hero-panel .prod-hero-name {
    font-size: clamp(28px, 9vw, 36px);
  }
  .ubtech-product-page .prod-hero-tagline {
    overflow-wrap: anywhere;
  }
  .ubtech-product-page .prod-carousel-slide figcaption,
  .ubtech-product-page .prod-carousel-slide figcaption span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
  }
  .prod-feature-spotlight {
    grid-template-columns: 1fr;
  }
  .prod-feature-visual img {
    min-height: auto;
  }
}
