/* ===================================
   PRODUCT.CSS
   Shared styles for all product pages
   =================================== */

/* ── Product Hero (White - matches 4500 range page) ── */
.product-hero {
  position: relative;
  z-index: 2;                          /* Sits above wave background */
  background: #ffffff;                 /* Solid white - no transparency */
  padding: 9rem 3rem 3rem;
  margin-top: -60px;
  text-align: center;
  isolation: isolate;                  /* Creates new stacking context */
}

.product-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 1.5rem;
}

.product-description {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--deep-blue);
}

/* ── Page Content Wrapper ── */
.product-content {
  position: relative;
  z-index: 2;                          /* Sits above wave background */
  isolation: isolate;                  /* Creates new stacking context */
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 0 3rem 6rem;
}

/* ── Top Two-Column Grid ── */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;    /* Equal width columns */
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1100px;                 /* Stops them stretching too wide */
  margin-left: auto;
  margin-right: auto;
}

/* ── Content Blocks ──
   The key fix: solid background + z-index + isolation
   prevents the wave animation bleeding through         */
.content-block {
  background: #ffffff;                 /* Hard white - not a variable */
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow:
    0 20px 60px rgba(21, 97, 109, 0.15),
    0 0 0 1px rgba(21, 97, 109, 0.08);
  position: relative;
  isolation: isolate;                  /* Stops wave bleeding through */
  transition: all 0.4s ease;
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow:
    0 30px 80px rgba(21, 97, 109, 0.25),
    0 0 0 1px rgba(21, 97, 109, 0.15);
}

.content-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--aqua));
  border-radius: 0 5px 5px 0;
}

/* ── Block Header ── */
.block-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.block-icon {
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--midnight);
  margin: 0;
}

/* ── Features List ── */
.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.features-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--deep-blue);
  line-height: 1.6;
}

.features-list li::before {
  content: "•";
  color: var(--teal);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* ── Image Gallery ── */
.image-gallery {
  margin: 3rem auto;
  max-width: 1100px;                 /* Matches the cards above */
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.gallery-image {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(21, 97, 109, 0.1);
  transition: all 0.3s ease;
  isolation: isolate;
}

.gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(21, 97, 109, 0.2);
}

.gallery-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
}

.image-caption {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

/* ── Technical Specifications Block ── */
.specifications-block {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow:
    0 20px 60px rgba(21, 97, 109, 0.15),
    0 0 0 1px rgba(21, 97, 109, 0.08);
  margin-top: 3rem;
  max-width: 1100px;                 /* Matches the cards above */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  isolation: isolate;
}

.specifications-block h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 2rem;
  text-align: center;
}

.dimension-image {
  text-align: center;
  margin: 2rem 0 3rem;
}

.dimension-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(21, 97, 109, 0.15);
}

.dimensions-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dimension-item {
  text-align: center;
  background: #f0f9fc;
  border: 2px solid var(--aqua);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dimension-item:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 139, 158, 0.2);
}

.dimension-label {
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
}

.dimension-value {
  font-size: 1.3rem;
  color: var(--teal);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* ── Responsive ── */
@media (max-width: 968px) {

  .product-hero {
    padding: 6rem 2rem 2rem;
    margin-top: -50px;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-description {
    font-size: 1rem;
  }

  .product-content {
    padding: 0 2rem 4rem;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-block {
    padding: 2rem;
  }

  .block-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .specifications-block {
    padding: 2rem;
  }

  .dimensions-table {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .dimension-item {
    padding: 1rem 0.75rem;
  }

  .dimension-label {
    font-size: 0.75rem;
  }

  .dimension-value {
    font-size: 1.1rem;
  }

}