/* ===== PRODUCTS LISTING PAGE STYLES ===== */

/* ===== PRODUCTS SECTION ===== */
.prod-section {
  background: #fff;
}

.prod-section-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 40px;
}

/* Individual product card */
.product-cta-holder {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Background photo (covers the entire card) */
.horizontal-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient overlays — exact values from reference stylesheet */
.gradient-layer-full-dark,
.gradient-layer-full-red,
.gradient-layer-full-blue,
.gradient-layer-full-magenta,
.gradient-layer-full-teal,
.gradient-layer-full-none {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.gradient-layer-full-dark {
  background: rgb(26 33 43 / 1%);
  background-image: linear-gradient(107deg, rgb(26 33 43) 35%, rgb(12 15 20 / 48%) 90%);
}

.gradient-layer-full-red {
  background: rgb(26 33 43 / 1%);
  background-image: linear-gradient(107deg, rgb(26 33 43) 35%, rgb(255 0 55 / 20%) 90%);
}

.gradient-layer-full-blue {
  background: rgb(26 33 43 / 1%);
  background-image: linear-gradient(107deg, rgb(26 33 43) 35%, rgb(147 171 204 / 69%) 90%);
}

.gradient-layer-full-magenta {
  background: rgb(26 33 43 / 1%);
  background-image: linear-gradient(107deg, rgb(26 33 43) 35%, rgb(158 31 99 / 69%) 90%);
}

.gradient-layer-full-teal {
  background: rgb(26 33 43 / 1%);
  background-image: linear-gradient(107deg, rgb(26 33 43) 35%, rgb(26 84 73 / 70%) 90%);
}

.gradient-layer-full-none {
  background: transparent;
}

/* Pixel line decoration */
.line-pixels {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  opacity: 0.25;
  z-index: 2;
  pointer-events: none;
}

.line-pixels img {
  width: 100%;
  display: block;
}

/* Small pixel decorations (top-right corner) */
.pixels-small {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.pixel-top-right {
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
}

.pixel-small-1,
.pixel-small-2 {
  background: rgba(255, 0, 55, 0.6);
}

.pixel-small-1 {
  width: 16px;
  height: 16px;
}

.pixel-small-2 {
  width: 8px;
  height: 8px;
  align-self: flex-end;
}

/* Info block (positioned inside the card) */
.cta-info-holder {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 60px 60px 60px;
  min-height: 480px;
  max-width: 860px;
}

/* Icon + product name row */
.icon-title-holder {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.icon-holder-prod img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.prod-title h3 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1px;
}

.prod-title h3 span {
  color: #ca125a;
}

/* Content block */
.inner-cta-info-holder {
  width: 100%;
}

.sub-title-info h4 {
  font-size: 1.8em;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.prod-intro p {
  color: #cccccc;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1rem;
}

.prod-desc p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 620px;
}

/* "Learn More" button — ghost style with red border */
.primary-button-grey {
  display: inline-block;
  padding: 14px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  line-height: 1.5;
}

.primary-button-grey.red-border {
  border-color: #ff0037;
}

.primary-button-grey:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 2px rgba(175, 175, 175, 0.5);
  transform: scale(0.97);
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .product-listing-card {
    padding: 3.5rem 1.5rem;
    min-height: 0;
  }

  .product-listing-name h3 {
    font-size: 1.5rem;
  }

  .product-listing-headline {
    font-size: 1.2rem;
  }

  .product-listing-icon {
    width: 56px;
    height: 56px;
  }

  .cta-info-holder {
    padding: 40px 24px;
    min-height: 0;
  }

  .icon-title-holder {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .icon-holder-prod img {
    width: 60px;
    height: 60px;
  }

  .prod-title h3 {
    font-size: 1.8rem;
  }

  .sub-title-info h4 {
    font-size: 1.3em;
  }

  .line-pixels {
    width: 100%;
    opacity: 0.12;
  }
}

/* ── Overview / Interactive Diagram Section ─────────────────────────── */

.products-overview-section {
  background: #edf0f4;
  padding: 72px 24px 80px;
}

.products-overview-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.products-overview-heading {
  text-align: center;
  margin-bottom: 40px;
}

.products-overview-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a212b;
  margin: 0 0 18px;
  line-height: 1.2;
}

.products-overview-divider {
  width: 40px;
  height: 3px;
  background: #e9001e;
  margin: 0 auto 18px;
  border-radius: 2px;
}

.products-overview-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a6572;
  margin: 0;
}

.products-diagram-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  cursor: default;
  user-select: none;
}

.protection-diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* SVG button groups — JS controls opacity; CSS handles transition */
#xNexus-btn,
#xCarbon-btn,
#xCarbon-btn-2,
#xCarbon-btn-3,
#xZeta-btn,
#xScope-btn,
#xScope-btn-2 {
  transition: opacity 0.22s ease;
  cursor: pointer;
  pointer-events: none;
  /* JS re-enables on hover */
}

/* ── Diagram Animations ─────────────────────────────────────────────── */

/* Dashed line running animation */
@keyframes products-pathdash {
  to {
    stroke-dashoffset: 300;
  }
}

/* Search/lens icon pulse animation */
@keyframes products-expand {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.002);
  }

  50% {
    transform: scale(1.005);
  }

  75% {
    transform: scale(1.008);
  }

  100% {
    transform: scale(1.001);
  }
}

/* Red dotted arrows */
.protection-diagram-svg #dotted,
.protection-diagram-svg #dotted-2 {
  stroke-dasharray: 5;
  animation: products-pathdash 5s linear infinite;
  animation-direction: reverse;
}

/* Connecting lines between boxes */
.protection-diagram-svg #line,
.protection-diagram-svg [data-name="line"] {
  stroke-dasharray: 15;
  animation: products-pathdash 5s linear infinite reverse;
  stroke: #ccc;
}

/* Wheel circles — rotating dash stroke simulates spinning */
.protection-diagram-svg circle {
  stroke-dasharray: 5;
  animation: products-pathdash 15s linear infinite reverse;
  stroke: #ccc;
}

/* Specific car-arc paths */
.protection-diagram-svg path[d="M964.57,375.61a20,20,0,0,1-33.31,19.85"],
.protection-diagram-svg path[d="M926.23,387a20.24,20.24,0,0,1-.83-5.72,20,20,0,0,1,34.15-14.14"] {
  stroke-dasharray: 55;
  animation: products-pathdash 8s linear infinite reverse;
  stroke: #ccc;
}

/* Large outer circle (no movement) */
.protection-diagram-svg circle[cx="368.08"] {
  stroke-dasharray: 555;
  animation: none;
  stroke: #ccc;
  transform: scale(1);
}

/* Magnifier / search icon pulse */
.protection-diagram-svg #search {
  stroke-dasharray: 555;
  animation: products-expand 1s linear infinite;
  animation-direction: reverse;
  stroke: #ccc;
  transform-origin: center;
}

@media (max-width: 768px) {
  .products-overview-section {
    padding: 48px 16px 56px;
  }

  .products-overview-heading h2 {
    font-size: 1.45rem;
  }

  .products-diagram-wrapper {
    max-width: 100%;
  }
}