/* ========================================
   HIBOUAIR PM SENSOR PRODUCT PAGE
======================================== */

.pm-product-page {
  background: var(--white);
}

.pm-hero-visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 18%,
      rgba(76, 176, 193, 0.14),
      transparent 34%
    ),
    linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.pm-hero-img {
  height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(10, 63, 81, 0.16));
}

.pm-hero-product-badge {
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(10, 63, 81, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(10, 63, 81, 0.08);
  padding: 0.75rem 0.9rem;
}

.pm-hero-product-badge span {
  color: var(--brand-2);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pm-hero-product-badge strong {
  color: var(--brand);
  font-size: 0.95rem;
  line-height: 1.25;
}

.pm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.45rem;
}

.pm-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: var(--brand-3);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.2;
}

.pm-hero-meta .pm-price {
  border-color: transparent;
  background: var(--brand);
  color: var(--white);
  font-size: 1.15rem;
}

.pm-sensor-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pm-primary-card {
  /* grid-column: span 2; */
  min-height: 190px;
  background: linear-gradient(180deg, #fcfeff 0%, #edf8fb 100%);
  border-color: rgba(10, 63, 81, 0.16);
}

.pm-primary-card span {
  font-size: 1.35rem;
}

.pm-sensor-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0.75rem 0 0;
  max-width: 520px;
}

.pm-why-section,
.pm-data-section,
.pm-deployment-section,
.pm-usecase-section {
  background: var(--bg-panel);
}

.pm-image-panel {
  background: linear-gradient(180deg, #dddddd 0%, #dcdcdc 100%);
}

.pm-image-panel img {
  max-height: 360px;
}

.pm-mini-card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.pm-mini-card-row span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(10, 63, 81, 0.05);
  color: var(--brand);
  padding: 0.85rem 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.pm-mini-card-row i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand-3);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.pm-data-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f2fafc 100%);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.pm-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pm-data-grid .duo-feature-block {
  min-height: 180px;
}

.pm-deployment-grid,
.pm-usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pm-deployment-grid .duo-feature-block,
.pm-usecase-grid .duo-feature-block {
  min-height: 210px;
}

.pm-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pm-app-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.desktop-video-card,
.solution-video-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.solution-video-card {
  position: relative;
  width: 100%;
  display: block;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  font: inherit;
}

.solution-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.video-play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--transition),
    background var(--transition);
}

.solution-video-card:hover .video-play-button,
.solution-video-card:focus-visible .video-play-button {
  transform: translate(-50%, -50%) scale(1.06);
  background: #10627c;
}

.solution-video-card:focus-visible {
  outline: 3px solid rgba(21, 154, 184, 0.35);
  outline-offset: 4px;
}

.solution-video-modal .modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.solution-video-modal .modal-header {
  border-bottom: 1px solid var(--border-soft);
}

.solution-video-modal .modal-title {
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 800;
}

.solution-video-modal .modal-body {
  padding: 1rem;
}

.solution-video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.solution-video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.pm-buy-section {
  background: var(--white);
  scroll-margin-top: 100px;
}

.pm-buy-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, #fcfeff 0%, #eef8fb 100%);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.pm-buy-gallery {
  display: grid;
  gap: 1rem;
}

.pm-buy-main-image {
  border: 1px solid rgba(10, 63, 81, 0.08);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(10, 63, 81, 0.08);
  padding: 1.5rem;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-buy-main-image img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(10, 63, 81, 0.13));
}

.pm-buy-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pm-buy-thumbnails span {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 0.65rem;
  box-shadow: 0 10px 24px rgba(10, 63, 81, 0.05);
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-buy-thumbnails img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  display: block;
}

.pm-buy-content .section-title,
.pm-buy-content .section-copy {
  max-width: 100%;
}

.pm-part-number {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-3);
  color: var(--brand);
  padding: 0.5rem 0.8rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.pm-buy-price {
  color: var(--brand);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  margin: 1rem 0 1.35rem;
}

.pm-buy-lists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.pm-buy-lists > div {
  border: 1px solid rgba(10, 63, 81, 0.08);
  border-radius: 20px;
  background: var(--white);
  padding: 1rem;
}

.pm-buy-lists h3 {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.pm-buy-lists span {
  display: flex;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 0.55rem;
}

.pm-buy-lists i {
  color: var(--brand-2);
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.pm-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.pm-product-actions .btn {
  align-self: auto;
}

@media (max-width: 991.98px) {
  .pm-sensor-grid,
  .pm-deployment-grid,
  .pm-usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pm-data-grid,
  .pm-buy-lists {
    grid-template-columns: 1fr;
  }

  .pm-buy-main-image {
    min-height: 320px;
  }
}

@media (max-width: 767.98px) {
  .pm-hero-visual {
    min-height: 320px;
  }

  .pm-hero-img {
    height: 260px;
  }

  .pm-sensor-grid,
  .pm-deployment-grid,
  .pm-usecase-grid {
    grid-template-columns: 1fr;
  }

  .pm-primary-card {
    grid-column: span 1;
  }

  .pm-deployment-grid .duo-feature-block,
  .pm-usecase-grid .duo-feature-block {
    min-height: auto;
  }

  .pm-hero-product-badge {
    left: 1rem;
    top: 1rem;
  }

  .pm-data-panel,
  .pm-buy-panel {
    border-radius: 22px;
    padding: 1.15rem;
  }

  .pm-data-grid {
    grid-template-columns: 1fr;
  }

  .pm-buy-thumbnails {
    gap: 0.55rem;
  }

  .pm-buy-thumbnails span {
    min-height: 84px;
    padding: 0.45rem;
  }

  .pm-buy-thumbnails img {
    height: 66px;
  }

  .pm-product-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.pm-buy-thumbnails span {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pm-buy-thumbnails span:hover,
.pm-buy-thumbnails span.active {
  border-color: var(--ssd-primary, #0b5364);
  box-shadow: 0 12px 30px rgba(11, 83, 100, 0.16);
  transform: translateY(-2px);
}

.pm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pm-hero-details-link {
  color: #0b4656;
  font-weight: 800;
  text-decoration: none;
  padding-left: 0;
  padding-right: 0;
}

.pm-hero-details-link:hover {
  color: #19b99a;
  text-decoration: underline;
}

.pm-sticky-buy {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1040;
  width: min(calc(100% - 2rem), 760px);
  transform: translate(-50%, 130%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.pm-sticky-buy.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.pm-sticky-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(11, 70, 86, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 55px rgba(11, 70, 86, 0.18);
  backdrop-filter: blur(14px);
}

.pm-sticky-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.pm-sticky-copy strong {
  color: #0b4656;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-sticky-copy span {
  color: #607d87;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .pm-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pm-hero-details-link {
    width: auto !important;
    margin-inline: auto;
  }

  .pm-sticky-buy {
    bottom: 12px;
    width: calc(100% - 20px);
  }

  .pm-sticky-buy-inner {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .pm-sticky-buy-inner .btn {
    width: 100%;
  }
}

/* ========================================
   PM SENSOR CLOUD PRODUCT PAGE
======================================== */

.pm-cloud-product-page .pm-cloud-hero-visual {
  border-radius: 28px;
}

.pm-cloud-product-page .pm-cloud-hero-img {
  object-fit: contain;
}

.pm-cloud-product-page .pm-cloud-chips {
  margin-top: 1.45rem;
}

.pm-cloud-product-page .pm-cloud-mini-flow {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.pm-cloud-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pm-cloud-product-page .dashboard-feature-list {
  margin-top: 1.35rem;
}

.pm-cloud-product-page .config-summary-card {
  position: sticky;
  top: 110px;
}

.pm-cloud-usecase-grid {
  grid-template-columns: repeat(5, 1fr);
}

.pm-cloud-usecase-grid .duo-feature-block {
  min-height: 230px;
}

@media (max-width: 1199.98px) {
  .pm-cloud-usecase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .pm-cloud-product-page .pm-cloud-mini-flow,
  .pm-cloud-flow-grid {
    grid-template-columns: 1fr;
  }

  .pm-cloud-product-page .pm-cloud-mini-flow .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .pm-cloud-product-page .config-summary-card {
    position: static;
  }

  .pm-cloud-usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .pm-cloud-usecase-grid {
    grid-template-columns: 1fr;
  }

  .pm-cloud-product-page .pm-cloud-hero-img {
    max-height: 220px;
  }
}

/* ========================================
   CISCO SPACES PRODUCT PAGES
======================================== */

.cisco-spaces-page .cisco-hero-visual {
  background:
    radial-gradient(circle at 20% 18%, rgba(76, 176, 193, 0.14), transparent 34%),
    linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.cisco-spaces-page .cisco-hero-img {
  max-height: 330px;
  object-fit: contain;
}

.cisco-workflow-section,
.cisco-video-section {
  background: var(--white);
}

.cisco-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.cisco-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-3);
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

.cisco-flow i {
  color: var(--brand);
  font-size: 1.15rem;
}

.cisco-image-panel,
.cisco-mobile-card {
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.cisco-image-panel img,
.cisco-mobile-card img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.cisco-dashboard-wrap {
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.cisco-dashboard-shot {
  position: static;
  transform: none;
}

.cisco-dashboard-shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cisco-video-card img {
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .cisco-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .cisco-flow i {
    transform: rotate(90deg);
    align-self: center;
  }

  .cisco-flow span {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   RHT SENSOR PRODUCT PAGE
======================================== */

.rht-product-page .rht-hero-visual {
  background:
    radial-gradient(circle at 20% 18%, rgba(76, 176, 193, 0.14), transparent 34%),
    linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.rht-product-page .rht-hero-img,
.rht-product-page .pm-buy-main-image img {
  max-height: 360px;
  object-fit: contain;
}

.rht-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.rht-image-panel {
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.rht-image-panel img,
.rht-mobile-card img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.rht-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.rht-feature-list span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.35;
  padding: 0.85rem 0.95rem;
}

.rht-feature-list i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand-3);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.rht-longterm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.rht-longterm-grid .duo-feature-block {
  min-height: 220px;
}

.rht-how-section {
  background: var(--bg-panel);
}

.rht-mobile-card {
  background: var(--white);
}

.rht-usecase-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfeff 0%, #edf8fb 100%);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 3rem;
  margin-bottom: 1rem;
}

@media (max-width: 1199.98px) {
  .rht-longterm-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .rht-card-grid,
  .rht-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .rht-card-grid,
  .rht-feature-list,
  .rht-longterm-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   OUTDOOR AIR QUALITY PRODUCT PAGES
======================================== */

.outdoor-product-page .outdoor-hero-visual {
  background:
    radial-gradient(circle at 20% 18%, rgba(76, 176, 193, 0.14), transparent 34%),
    linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.outdoor-product-page .outdoor-hero-img,
.outdoor-product-page .pm-buy-main-image img {
  max-height: 360px;
  object-fit: contain;
}

.outdoor-measure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.outdoor-dashboard-shot {
  position: static;
  transform: none;
}

.outdoor-dashboard-shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.outdoor-connectivity-section {
  background: var(--bg-panel);
}

.outdoor-image-panel {
  background: linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.outdoor-image-panel img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.outdoor-usecase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.outdoor-usecase-grid .duo-feature-block {
  min-height: 240px;
}

@media (max-width: 1199.98px) {
  .outdoor-measure-grid,
  .outdoor-usecase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .outdoor-measure-grid,
  .outdoor-usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .outdoor-measure-grid,
  .outdoor-usecase-grid {
    grid-template-columns: 1fr;
  }
}
