/* =========================================================
   PRODUCT PAGE STYLES
   ========================================================= */

/* ----------------------------------------------------------
   PRODUCT HERO
   ---------------------------------------------------------- */
.product-hero {
  background: var(--clr-charcoal);
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-20);
  position: relative;
  overflow: hidden;
}

.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,196,140,.06) 0%, transparent 70%);
  pointer-events: none;
}

.product-hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,196,140,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,140,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.product-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.product-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.product-hero h1 {
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.product-hero h1 em {
  font-style: normal;
  color: var(--clr-teal);
}

.product-hero__tagline {
  font-size: 1.125rem;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 52ch;
}

.product-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

/* Stats bar below hero text */
.product-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.product-hero__stat {
  background: rgba(255,255,255,.04);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
}

.product-hero__stat-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-teal);
}

.product-hero__stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  line-height: 1.3;
}

/* Product image / visual */
.product-hero__visual {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-12);
}

.product-hero__visual-placeholder svg {
  width: 80px;
  height: 80px;
  stroke: var(--clr-teal);
  fill: none;
  opacity: .3;
}

.product-hero__visual-placeholder p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* ----------------------------------------------------------
   PRODUCT OVERVIEW SECTION
   ---------------------------------------------------------- */
.product-overview {
  background: var(--clr-white);
}

.product-overview__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.product-overview__text h2 {
  margin-bottom: var(--sp-4);
}

.product-overview__text p {
  margin-bottom: var(--sp-4);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.product-overview__img {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--clr-stone);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-overview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------
   FEATURES GRID
   ---------------------------------------------------------- */
.product-features {
  background: var(--clr-stone);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.feature-tile {
  background: var(--clr-white);
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  padding: var(--sp-7);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}

.feature-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,196,140,.25);
}

.feature-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(0,196,140,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.feature-tile__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--clr-teal);
  fill: none;
}

.feature-tile__title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-2);
}

.feature-tile__desc {
  font-size: var(--fs-sm);
  color: var(--clr-grey-dark);
  line-height: 1.6;
  max-width: 100%;
}

/* ----------------------------------------------------------
   SPECIFICATIONS TABLE
   ---------------------------------------------------------- */
.product-specs {
  background: var(--clr-white);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}

.specs-table thead tr {
  background: var(--clr-charcoal);
}

.specs-table thead th {
  padding: var(--sp-4) var(--sp-6);
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.specs-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
}

.specs-table tbody tr:nth-child(even) {
  background: var(--clr-stone);
}

.specs-table tbody tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  line-height: 1.5;
  vertical-align: middle;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--clr-charcoal);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--clr-grey-dark);
}

.spec-contact {
  color: var(--clr-teal);
  font-weight: 600;
  font-style: italic;
}

/* Mobile table */
@media (max-width: 600px) {
  .specs-table thead { display: none; }
  .specs-table, .specs-table tbody, .specs-table tr, .specs-table td {
    display: block;
    width: 100%;
  }
  .specs-table tr {
    margin-bottom: var(--sp-4);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    overflow: hidden;
  }
  .specs-table td {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
  }
  .specs-table td:first-child {
    background: var(--clr-stone);
    width: 100%;
  }
}

/* ----------------------------------------------------------
   HOW IT WORKS
   ---------------------------------------------------------- */
.how-it-works {
  background: var(--clr-charcoal);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
  margin-top: var(--sp-12);
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.6% + 24px);
  right: calc(16.6% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--clr-teal), rgba(0,196,140,.2));
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-item__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,196,140,.1);
  border: 2px solid rgba(0,196,140,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-teal);
  position: relative;
  z-index: 1;
  background: var(--clr-charcoal);
}

.step-item__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--sp-3);
}

.step-item__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 24ch;
  margin-inline: auto;
}

/* ----------------------------------------------------------
   PRODUCT APPLICATIONS
   ---------------------------------------------------------- */
.product-applications {
  background: var(--clr-stone);
}

.product-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.product-app-tile {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  text-decoration: none;
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}

.product-app-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,196,140,.3);
}

.product-app-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--clr-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-app-tile__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--clr-teal);
  fill: none;
}

.product-app-tile__title {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-1);
}

.product-app-tile__desc {
  font-size: var(--fs-sm);
  color: var(--clr-grey-mid);
  line-height: 1.5;
  max-width: 100%;
}

/* ----------------------------------------------------------
   RELATED PRODUCTS
   ---------------------------------------------------------- */
.related-products {
  background: var(--clr-white);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.related-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  text-decoration: none;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card__img {
  width: 140px;
  background: var(--clr-charcoal);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card__img svg {
  width: 40px;
  height: 40px;
  stroke: var(--clr-teal);
  fill: none;
  opacity: .4;
}

.related-card__body {
  padding: var(--sp-6);
}

.related-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-2);
}

.related-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-grey-mid);
  margin-bottom: var(--sp-4);
}

.related-card__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-teal);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

/* ----------------------------------------------------------
   PAGE-LEVEL CTA (Contact Form Inline)
   ---------------------------------------------------------- */
.product-cta {
  background: var(--clr-charcoal);
}

.product-cta-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-16);
  align-items: start;
}

.product-cta__text h2 {
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.product-cta__text p {
  color: rgba(255,255,255,.6);
  line-height: 1.75;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .product-hero__layout    { grid-template-columns: 1fr; }
  .product-overview__layout { grid-template-columns: 1fr; }
  .features-grid           { grid-template-columns: repeat(2, 1fr); }
  .product-cta-layout      { grid-template-columns: 1fr; }
  .product-hero__stats     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-app-grid { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: 1fr; }
  .steps-row        { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .features-grid    { grid-template-columns: 1fr; }
}
