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

/* -------------------------------------------------
   HERO / BG (PRODUCT)
------------------------------------------------- */

body:has(.product-hero) .hero-wrapper{
  min-height: 0;
}

/* product bg: only what differs from base .hero-bg */
.hero-bg.hero-bg--product::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 30px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) 35%,
    rgba(0,0,0,0.75) 70%,
    rgba(0,0,0,1) 100%
  );
  pointer-events:none;
  z-index: 1;
}

/* content above bg */
.site-header,
.product-hero{
  position: relative;
}

/* hero */
.product-hero{
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}


/* -------------------------------------------------
   PRODUCT FEATURES
------------------------------------------------- */

.product-features{
  display: flex;
  flex-direction: column;
  gap: 68px;
  padding-bottom: 68px;
}

.product-feature-slot-inner{
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 100px;
}

.slot-right .product-feature-slot-inner{
  grid-template-columns: 420px 1fr;
}

.product-features-col{
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-features .feature-head{
  display: flex;
  align-items: center;
  gap: 28px;
}

.product-features .feature-icon{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.product-features .feature-title{
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}

.product-features .feature-text{
  margin: 34px 0 0;
  font-size: 16px;
  line-height: 22px;
  color: #fff;
  max-width: 380px;
}


/* IMAGE */

.product-image-wrap{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-wrap::before{
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.05) 35%,
    rgba(0,0,0,0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.product-image-wrap::after{
  content:"";
  position:absolute;
  inset:-140px;
  background: url('/wp-content/themes/atga-theme/assets/img/img.svg') center / contain no-repeat;
  z-index: 0;
  pointer-events:none;
}

.product-image{
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  display:block;
}


/* -------------------------------------------------
   SPECIFICATIONS
------------------------------------------------- */

.specs-title{
  margin: 0 0 32px;
  font-size: 30px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

.specs-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin-bottom: 80px;
}

.spec-item{
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  column-gap: 19px;
}

.spec-label-wrap{
  width: 220px;
  height: 52px;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 16px;
  border-radius: 10px;
}

.spec-label{
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.spec-value{
  margin: 0;
  text-align: left;
  line-height: 1.2;
  font-family: var(--font-primary);
  font-size: 16px;
  color: #fff;
}


/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */

/* TABLET <= 1200 */
@media (max-width: 1200px){

  .product-hero{
    min-height: 44vh;
    margin-bottom: 40px;
  }

  .product-title{ font-size: 48px; }

  .product-feature-slot-inner,
  .slot-right .product-feature-slot-inner{
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .product-features-col{
    align-items: center;
    text-align: center;
  }

  .product-features .feature-text{ max-width: 680px; }

  .product-image{ max-width: 380px; }
  .product-image-wrap::before{ width: 380px; height: 380px; }
  .product-image-wrap::after{ inset: -90px; }

  .specs-grid{ gap: 18px 26px; }
  .spec-label-wrap{ width: 200px; }
}

/* TABLET/MOBILE <= 992 */
@media (max-width: 992px){

  .product-hero{
    min-height: 38vh;
    margin-bottom: 34px;
  }

  .product-title{ font-size: 42px; }

  .product-features{
    gap: 54px;
    padding-bottom: 54px;
  }

  .product-features-col{ gap: 34px; }
  .product-features .feature-head{ gap: 18px; }
  .product-features .feature-title{ font-size: 18px; }

  .product-features .feature-text{
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  .product-image{ max-width: 330px; }
  .product-image-wrap::before{ width: 330px; height: 330px; }
  .product-image-wrap::after{ inset: -70px; }

  .specs-title{
    font-size: 26px;
    margin-bottom: 24px;
  }

  .specs-grid{
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 60px;
  }

  .spec-item{
    justify-content: space-between;
    gap: 14px;
  }

  .spec-label-wrap{
    width: auto;
    height: 48px;
    padding: 0 14px;
    justify-content: center;
    flex: 0 0 auto;
  }

  .spec-value{
    text-align: right;
    flex: 1 1 auto;
  }

  /* MOBILE: always Text -> Image for both slots */
  .product-feature-slot-inner,
  .slot-right .product-feature-slot-inner{
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .product-feature-slot-inner .product-features-col{ order: 1; }
  .product-feature-slot-inner .product-image-wrap{ order: 2; }
  .slot-right .product-feature-slot-inner .product-features-col{ order: 1; }
  .slot-right .product-feature-slot-inner .product-image-wrap{ order: 2; }
}

/* MOBILE <= 768 */
@media (max-width: 768px){

  body:has(.product-hero) .hero-wrapper{
    min-height: auto;
  }

  .hero-wrapper{
    position: relative;
  }

  .hero-bg.hero-bg--product{
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-bg.hero-bg--product img{
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .site-header,
  .product-hero{
    position: relative;
  }

  .product-hero{
    min-height: 36vh;
    margin-bottom: 28px;
  }

  .product-title{
    font-size: 34px;
    padding-inline: 10px;
  }

  .product-feature-slot-inner{ gap: 70px; }

  .product-features{
    gap: 44px;
    padding-bottom: 75px;
  }

  .product-features .feature-icon{ width: 34px; height: 34px; }
  .product-features .feature-title{ font-size: 17px; }
  .product-features .feature-text{ font-size: 14px; line-height: 1.65; }

  .product-image{ max-width: 280px; }
  .product-image-wrap::before{ width: 280px; height: 280px; }
  .product-image-wrap::after{ inset: -55px; background-size: contain; }

  .specs-title{ font-size: 22px; }
  .spec-label{ font-size: 13px; }
  .spec-value{ font-size: 15px; }
}

/* SMALL MOBILE <= 420 */
@media (max-width: 420px){

  .product-title{ font-size: 30px; }

  .product-image{ max-width: 250px; }
  .product-image-wrap::before{ width: 250px; height: 250px; }
  .product-image-wrap::after{ inset: -45px; }
}

