/* Product Detail page styles. Loaded before portal-theme.css. */
.hero {
  touch-action: pan-y;
}
.hero-grid {
  isolation: isolate;
}
.hero-slide-out {
  pointer-events: none;
}
.hero-slide-out .hero-copy,
.hero-slide-out .hero-image {
  will-change: transform;
}
.hero-copy,
.hero-image {
  backface-visibility: hidden;
}
.carousel-controls {
  position: absolute;
  z-index: 5;
  bottom: 25px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.carousel-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #afc1cf;
  border-radius: 50%;
  background: #ffffffb3;
  color: var(--navy);
  cursor: pointer;
  font-size: 22px;
}
.carousel-arrow:hover {
  background: white;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #9cb2c3;
  padding: 0;
  cursor: pointer;
}
.carousel-dot[aria-pressed='true'] {
  width: 26px;
  border-radius: 6px;
  background: var(--blue);
}
.carousel-status {
  font-size: 11px;
  color: #567086;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-copy {
  padding-bottom: 95px;
}
@media (max-width: 780px) {
  .carousel-controls {
    left: 20px;
    bottom: 20px;
    background: #ffffffdc;
    padding: 8px 12px;
    border-radius: 30px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
}
.nav a:first-child {
  color: var(--ink);
}
.nav a[href='hongwu-international-products.html'] {
  color: var(--blue);
}
.detail-top {
  background: var(--light);
  padding: 35px 0 65px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 35px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.equipment-stage {
  background: linear-gradient(135deg, #daeaf5, #fff);
  height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.equipment-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-grid h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 15px 0;
}
.detail-grid p {
  color: var(--muted);
  font-size: 16px;
}
.subnav {
  border-bottom: 1px solid var(--line);
  background: white;
}
.subnav .container {
  display: flex;
  gap: 35px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}
.detail-section {
  padding: 70px 0;
  scroll-margin-top: 100px;
}
.detail-section h2 {
  font-size: 36px;
  margin: 12px 0 25px;
  letter-spacing: -0.03em;
}
.spec-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 35px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  background: var(--navy);
  color: white;
}
.spec-table tbody tr:nth-child(even) {
  background: var(--light);
}
.spec-table td:first-child {
  width: 48%;
  font-weight: 700;
}
.spec-table td {
  color: #526b81;
}
.spec-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.data-guide {
  background: var(--light);
  padding: 25px;
  align-self: start;
}
.data-guide h3 {
  margin: 0 0 10px;
  font-size: 21px;
}
.data-guide p {
  font-size: 14px;
  color: var(--muted);
}
.data-guide .btn {
  font-size: 12px;
  width: 100%;
  gap: 8px;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  background: white;
}
.gallery-open {
  border: 0;
  padding: 0;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #eaf2f7;
  cursor: zoom-in;
  position: relative;
  display: block;
}
.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-open.crop-left img {
  transform: scale(2.2);
  transform-origin: 24% 48%;
}
.gallery-open.crop-right img {
  transform: scale(2.2);
  transform-origin: 76% 48%;
}
.gallery-card figcaption {
  padding: 18px;
  font-weight: 700;
  font-size: 15px;
}
.gallery-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}
.photo-pending {
  height: 260px;
  display: grid;
  place-items: center;
  padding: 25px;
  text-align: center;
  color: #6a8297;
  border: 1px dashed #abc0d0;
  background: #edf4f9;
  font-size: 14px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-box {
  padding: 26px;
  border-left: 3px solid var(--aqua);
  background: var(--light);
}
.feature-box h3 {
  font-size: 19px;
  margin: 0 0 9px;
}
.feature-box p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.detail-cta {
  background: var(--blue);
  color: white;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.detail-cta h2 {
  font-size: 30px;
  margin: 0 0 10px;
}
.detail-cta p {
  margin: 0;
  color: #d4e7f6;
}
dialog {
  border: 0;
  padding: 24px;
  width: min(950px, 94vw);
  max-height: 90vh;
  background: white;
  color: var(--ink);
}
dialog::backdrop {
  background: #06182cbd;
}
dialog img {
  display: block;
  width: 100%;
  height: 65vh;
  object-fit: contain;
  background: var(--light);
}
.dialog-close {
  float: right;
  border: 0;
  padding: 8px 14px;
  font-size: 22px;
  background: var(--light);
  cursor: pointer;
}
.dialog-caption {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .detail-grid,
  .spec-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .equipment-stage {
    height: 330px;
  }
  .detail-gallery,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid h1 {
    font-size: 39px;
  }
  .detail-cta {
    display: block;
  }
  .detail-cta .btn {
    margin-top: 20px;
  }
}
@media (max-width: 520px) {
  .detail-gallery,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .subnav .container {
    gap: 20px;
    font-size: 12px;
  }
  .equipment-stage {
    height: 290px;
  }
  .spec-table th,
  .spec-table td {
    padding: 12px 10px;
    font-size: 12px;
  }
  .detail-section {
    padding: 50px 0;
  }
  .detail-grid h1 {
    font-size: 34px;
  }
}
/* Preserve paragraph breaks in the CMS equipment description. */
.product-description {
  white-space: pre-wrap;
}
