/* =========================
   GEWI Single Product – FINAL
   Purpose: Sticky product image aligned with inquiry box
   ========================= */

body.single-product .gewi-sp{
  max-width:1180px;
  margin:0 auto;
  padding:24px 14px 44px;
}
body.single-product .gewi-sp *{
  box-sizing:border-box;
}

/* ================= HERO ================= */

body.single-product .gewi-hero{
  display:grid;
  grid-template-columns:1.1fr 1fr 0.95fr;
  gap:24px;
  align-items:start;
}

/* Allow sticky behavior (Astra wrappers fix) */
body.single-product .site,
body.single-product .site-content,
body.single-product #content,
body.single-product #primary,
body.single-product .content-area,
body.single-product .ast-container,
body.single-product .ast-container-fluid,
body.single-product .gewi-sp,
body.single-product .gewi-hero{
  overflow:visible !important;
}

/* ================= MOBILE ORDER ================= */

@media (max-width:1100px){
  body.single-product .gewi-hero{ grid-template-columns:1fr; }
  body.single-product .gewi-hero__right{ order:3; }
  body.single-product .gewi-hero__media{ order:2; }
  body.single-product .gewi-inquiry{
    position:static;
    top:auto;
  }
}

/* ================= LEFT ================= */

body.single-product .gewi-hero__title{
  margin:0 0 6px;
  font-size:42px;
  line-height:1.08;
}
body.single-product .gewi-hero__subtitle{
  font-size:18px;
  opacity:.85;
  margin:0 0 10px;
}
body.single-product .gewi-hero__lead{
  font-size:16px;
  line-height:1.55;
  opacity:.9;
  margin:0 0 16px;
  max-width:60ch;
}

body.single-product .gewi-hero__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 16px;
}
body.single-product .gewi-chip{
  padding:7px 12px;
  border-radius:999px;
  background:#eef2f6;
  font-size:13px;
  font-weight:500;
}

/* ================= IMAGE (STICKY – FIXED ARCHITECTURE) ================= */

/* Sticky is applied to the GRID ITEM (parent) */
body.single-product .gewi-hero__media{
  position:sticky;
  top:18px;
  align-self:flex-start;
  padding-top:12px;
  z-index:2;
}

/* Gallery remains normal block */
body.single-product .gewi-hero__media .woocommerce-product-gallery{
  position:relative !important;
  float:none !important;
  width:100% !important;
  margin:0 !important;
}

body.single-product .gewi-hero__media .woocommerce-product-gallery__wrapper{
  width:100% !important;
  max-width:520px;
  margin:0 auto;
}

body.single-product .gewi-hero__media img,
body.single-product .gewi-hero__media .wp-post-image{
  width:100% !important;
  height:auto !important;
  object-fit:contain;
  display:block;
}

body.single-product .gewi-hero__media .flex-control-thumbs{
  display:none !important;
}

/* Disable sticky image on mobile */
@media (max-width:1100px){
  body.single-product .gewi-hero__media{
    position:static;
    top:auto;
  }
}

/* ================= CARDS ================= */

body.single-product .gewi-card{
  background:#fff;
  border:1px solid #e6e9ef;
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}
body.single-product .gewi-card h2{
  margin:0 0 12px;
  font-size:20px;
}
body.single-product .gewi-card h3{
  margin:0 0 8px;
  font-size:16px;
}
body.single-product .gewi-card p{
  margin:0 0 12px;
  line-height:1.55;
}
body.single-product .gewi-card--plain{
  margin-top:14px;
  box-shadow:none;
  border:0;
  padding:0;
}

/* ================= BELOW GRID ================= */

body.single-product .gewi-sections{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:24px;
}
@media (max-width:980px){
  body.single-product .gewi-sections{
    grid-template-columns:1fr;
  }
}
body.single-product .gewi-card--full{
  grid-column:1 / -1;
}

/* ================= INQUIRY ================= */

body.single-product .gewi-inquiry{
  position:sticky;
  top:18px;
  align-self:flex-start;
}

body.single-product .gewi-inquiry__box{
  background:#fff;
  border:1px solid #e6e9ef;
  border-radius:16px;
  padding:18px;
  box-shadow:0 12px 32px rgba(0,0,0,.06);
}
body.single-product .gewi-inquiry__box h3{
  margin:0 0 14px;
  font-size:18px;
}

body.single-product .gewi-field{
  display:grid;
  gap:6px;
  margin-bottom:12px;
}
body.single-product .gewi-field label{
  font-size:13px;
  opacity:.8;
}
body.single-product .gewi-field input,
body.single-product .gewi-field textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d6dbe3;
  background:#fff;
  font-size:14px;
}
body.single-product .gewi-field textarea{
  min-height:110px;
  resize:vertical;
}

body.single-product .gewi-btn{
  width:100%;
  margin-top:6px;
  padding:13px 14px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  background:#2f6fa6;
  color:#fff;
  font-weight:700;
}
body.single-product .gewi-btn:hover{
  filter:brightness(.96);
}

body.single-product .gewi-inquiry__hint{
  font-size:13px;
  opacity:.75;
  margin-top:14px;
  line-height:1.45;
}
body.single-product .gewi-inquiry__contact{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #edf0f4;
  font-size:13px;
  opacity:.9;
}

/* ================= OVERVIEW ================= */

body.single-product .gewi-ov-title{
  margin:18px 0 10px;
  font-size:20px;
  line-height:1.2;
}

body.single-product .gewi-overview{
  margin-top:0;
  border:0;
  border-radius:0;
  overflow:visible;
  background:transparent;
}
body.single-product .gewi-overview__row{
  padding:10px 0;
  border-bottom:1px solid #edf0f4;
}
body.single-product .gewi-overview__row:last-child{
  border-bottom:0;
}
body.single-product .gewi-overview__topic{
  font-weight:700;
  margin:0 0 4px;
}
body.single-product .gewi-overview__text{
  line-height:1.55;
  opacity:.92;
}

/* ================= LISTS ================= */

body.single-product .gewi-list{
  margin:0;
  padding-left:18px;
}
body.single-product .gewi-list li{
  margin:6px 0;
}

/* ================= DOWNLOADS ================= */

body.single-product .gewi-downloads{
  list-style:none;
  padding:0;
  margin:0;
}
body.single-product .gewi-downloads__item{
  padding:10px 0;
  border-bottom:1px solid #edf0f4;
}
body.single-product .gewi-downloads__item:last-child{
  border-bottom:0;
}
body.single-product .gewi-downloads__link{
  text-decoration:none;
  font-weight:700;
}
body.single-product .gewi-downloads__link:hover{
  text-decoration:underline;
}
