/* Nafthera product detail — homepage-card style */
.single-product .ast-woocommerce-container{max-width:1380px;margin:0 auto}
.single-product div.product{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(390px,.98fr);
  gap:clamp(42px,6vw,88px);
  align-items:start;
}

.single-product div.product .woocommerce-product-gallery{
  width:100%!important;
  float:none!important;
  position:sticky!important;
  top:126px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.single-product .woocommerce-product-gallery__trigger{display:none!important}
.single-product .woocommerce-product-gallery__wrapper{display:none!important}
.single-product .flex-control-thumbs{display:none!important}

/* Custom homepage-style detail card */
.nt-detail-gallery{width:100%;display:block}
.nt-detail-hero{
  position:relative;
  min-height:680px;
  overflow:hidden;
  border-radius:34px;
  border:1px solid rgba(23,27,63,.08);
  box-shadow:0 28px 70px rgba(23,27,63,.10);
  isolation:isolate;
  cursor:default;
}
.nt-detail-hero:before{
  content:"";
  position:absolute;
  width:72%;
  aspect-ratio:1;
  left:14%;
  top:11%;
  border-radius:50%;
  background:radial-gradient(circle at 42% 38%,rgba(255,255,255,.82),rgba(255,255,255,.34) 46%,rgba(255,255,255,0) 72%);
  border:1px solid rgba(23,27,63,.09);
  pointer-events:none;
}
.nt-detail-hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(255,255,255,.08),transparent 38%,rgba(255,255,255,.10));
  pointer-events:none;
}
.nt-detail-hero.nt-tone-mint{background:linear-gradient(160deg,#eaf6ef 0%,#d3eddc 62%,#bfe4cb 100%)}
.nt-detail-hero.nt-tone-coral{background:linear-gradient(160deg,#fbebe6 0%,#f3d4cb 62%,#e9ad9c 100%)}
.nt-detail-hero.nt-tone-blush{background:linear-gradient(160deg,#fff5f3 0%,#f2dfdc 62%,#ebc8c3 100%)}
.nt-detail-hero.nt-tone-blue{background:linear-gradient(160deg,#f1faff 0%,#d9eef7 62%,#b9deed 100%)}
.nt-detail-hero.nt-tone-ice{background:linear-gradient(160deg,#f8fbfc 0%,#e5f1f5 62%,#d1e5ed 100%)}
.nt-detail-hero.nt-tone-cream{background:linear-gradient(160deg,#fdfbf6 0%,#f0eee6 62%,#e3dfd3 100%)}
.nt-detail-hero.nt-tone-neutral{background:linear-gradient(160deg,#fbfaf5 0%,#eaf2ef 58%,#f1ded9 100%)}

.nt-detail-top{
  position:absolute;
  top:28px;
  left:30px;
  right:30px;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--nt-ink);
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.nt-detail-price{letter-spacing:.02em;font-size:13px}
.nt-detail-stage{
  position:absolute;
  inset:76px 28px 150px;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
}
.nt-detail-stage img{
  display:block;
  width:100%;
  height:100%;
  max-width:76%;
  object-fit:contain;
  object-position:center;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 30px 24px rgba(23,27,63,.17));
  transition:transform .55s cubic-bezier(.2,.8,.2,1),filter .35s ease;
}
.nt-detail-hero:hover .nt-detail-stage img{
  transform:translateY(-5px) scale(1.015) rotate(-.4deg);
  filter:drop-shadow(0 36px 28px rgba(23,27,63,.20));
}
.nt-detail-hero.is-photo .nt-detail-stage{
  inset:76px 34px 150px;
}
.nt-detail-hero.is-photo .nt-detail-stage img{
  max-width:100%;
  border-radius:22px;
  object-fit:contain;
  filter:drop-shadow(0 18px 22px rgba(23,27,63,.10));
}
.nt-detail-hero.is-photo:hover .nt-detail-stage img{transform:none}

.nt-detail-copy{
  position:absolute;
  left:30px;
  right:30px;
  bottom:28px;
  z-index:4;
}
.nt-detail-eyebrow{
  display:block;
  margin-bottom:7px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--nt-ink);
}
.nt-detail-copy h2{
  margin:0 0 5px!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(38px,4vw,56px)!important;
  line-height:.95!important;
  font-weight:400!important;
  letter-spacing:-.045em!important;
  color:var(--nt-ink)!important;
}
.nt-detail-copy p{
  margin:0!important;
  color:#515a71!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.nt-detail-zoom{
  display:none!important;
  position:absolute;
  right:24px;
  top:70px;
  z-index:5;
  width:42px;height:42px;
  border-radius:50%;
  place-items:center;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(23,27,63,.08);
  box-shadow:0 8px 20px rgba(23,27,63,.08);
  font-size:18px;
  color:var(--nt-ink);
}

.nt-detail-thumbs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.nt-detail-thumb{
  position:relative;
  aspect-ratio:1/1;
  padding:7px;
  border:1px solid rgba(23,27,63,.08);
  border-radius:16px;
  overflow:hidden;
  background:transparent;
  cursor:pointer;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.nt-detail-thumb:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(23,27,63,.06)}
.nt-detail-thumb.is-active{border-color:var(--nt-ink);box-shadow:inset 0 0 0 1px var(--nt-ink)}
.nt-detail-thumb img{width:100%;height:100%;object-fit:contain;border-radius:11px;background:transparent!important}
.nt-detail-thumb[data-image*="No1.png"],
.nt-detail-thumb[data-image*="Nafthera-LOGO-NAME"]{display:none!important}

/* Right-side product information */
.single-product div.product .summary{
  width:100%!important;
  float:none!important;
  margin:0!important;
  padding:34px 0 20px!important;
}
.single-product div.product .summary:before{
  content:"NAFTHERA · AUSGEWÄHLTE NAFTALAN-PFLEGE";
  display:block;
  margin-bottom:18px;
  color:#737a8c;
  font-size:10px;
  line-height:1.4;
  font-weight:800;
  letter-spacing:.18em;
}
.single-product div.product .product_title{
  max-width:11ch;
  font-size:clamp(50px,5.2vw,82px)!important;
  line-height:.92!important;
  margin-bottom:22px!important;
}
.single-product div.product .summary .price{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
  color:var(--nt-ink)!important;
  font-size:28px!important;
  font-weight:700!important;
  margin:0 0 18px!important;
}
.single-product .woocommerce-product-details__short-description{
  max-width:620px;
  padding:22px 0;
  border-top:1px solid var(--nt-line);
  border-bottom:1px solid var(--nt-line);
  color:#555d74;
  font-size:17px;
  line-height:1.7;
}
.single-product form.cart{
  display:grid!important;
  grid-template-columns:88px 1fr;
  gap:12px!important;
  align-items:center!important;
  margin:26px 0 0!important;
}
.single-product .quantity .qty{width:88px!important;height:56px!important;text-align:center}
.single-product .single_add_to_cart_button{
  min-height:56px!important;width:100%;font-size:13px!important;
  box-shadow:0 12px 30px rgba(23,27,63,.14);
}
.single-product .nt-provenance{margin-top:18px;background:linear-gradient(135deg,#e4f1e9,#d6eadf)!important}
.single-product .nt-formula-card{margin-top:18px!important}
.single-product .product_meta{margin-top:26px!important;padding-top:18px;border-top:1px solid var(--nt-line);color:#737a8c;font-size:11px!important;line-height:1.7}
.single-product .woocommerce-tabs{margin-top:70px!important}
.single-product .woocommerce-tabs .panel{padding:clamp(26px,4vw,48px)!important;border:1px solid rgba(23,27,63,.08);box-shadow:0 18px 44px rgba(23,27,63,.06)}
.single-product .related.products{padding-top:28px}
.single-product .related.products>h2{font-size:clamp(42px,5vw,68px)!important;margin-bottom:28px!important}

@media(max-width:1100px){
  .single-product div.product{grid-template-columns:1fr!important}
  .single-product div.product .woocommerce-product-gallery{position:relative!important;top:auto!important}
  .single-product div.product .summary{padding-top:10px!important}
}

/* Server-rendered homepage-style card replaces WooCommerce's native first gallery */
.single-product div.product > .nt-server-card{
  position:relative;
  top:auto;
  width:100%;
  min-width:0;
  align-self:start;
  z-index:1;
  grid-column:1;
  grid-row:1;
}
.single-product div.product > .summary{
  grid-column:2;
  grid-row:1;
  position:relative;
  z-index:2;
}
.single-product div.product > .woocommerce-product-gallery{
  display:none!important;
}
@media(max-width:1100px){
  .single-product div.product > .nt-server-card{position:relative;top:auto;grid-column:1;grid-row:1}
  .single-product div.product > .summary{grid-column:1;grid-row:2}
}


/* Bundle/Sparpaket cards: keep photo and copy in separate zones */
.single-product .nt-detail-hero.nt-tone-neutral{
  display:grid;
  grid-template-rows:auto minmax(360px,1fr) auto;
  min-height:680px;
  padding:28px 30px 28px;
  gap:18px;
}
.single-product .nt-detail-hero.nt-tone-neutral:before{
  width:64%;
  left:18%;
  top:12%;
}
.single-product .nt-detail-hero.nt-tone-neutral .nt-detail-top{
  position:relative;
  inset:auto;
}
.single-product .nt-detail-hero.nt-tone-neutral .nt-detail-stage{
  position:relative;
  inset:auto;
  min-height:360px;
  padding:0 8px;
}
.single-product .nt-detail-hero.nt-tone-neutral .nt-detail-stage img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:390px;
  object-fit:contain;
  border-radius:22px;
  filter:drop-shadow(0 18px 20px rgba(23,27,63,.10));
}
.single-product .nt-detail-hero.nt-tone-neutral .nt-detail-copy{
  position:relative;
  inset:auto;
  padding-top:4px;
}
.single-product .nt-detail-hero.nt-tone-neutral .nt-detail-copy h2{
  max-width:14ch;
  font-size:clamp(34px,3.5vw,52px)!important;
  line-height:.98!important;
}
.single-product .nt-detail-hero.nt-tone-neutral .nt-detail-copy p{
  max-width:760px;
}

/* Product cutout thumbnails should float, not sit on white cards */
.single-product .nt-detail-thumb img[src*="Kremgel-scaled.png"],
.single-product .nt-detail-thumb img[src*="Dermaduo-1-scaled.png"],
.single-product .nt-detail-thumb img[src*="Krema-s-ureom.png"],
.single-product .nt-detail-thumb img[src*="Naftalan-sampon-scaled.png"],
.single-product .nt-detail-thumb img[src*="Naftalan-ulje-scaled.png"],
.single-product .nt-detail-thumb img[src*="Obicna-krema.png"]{
  padding:8px;
  background:transparent!important;
  border-radius:0;
  filter:drop-shadow(0 10px 12px rgba(23,27,63,.10));
}

@media(max-width:640px){
  .single-product .nt-detail-hero.nt-tone-neutral{
    grid-template-rows:auto minmax(280px,1fr) auto;
    min-height:560px;
    padding:20px;
  }
  .single-product .nt-detail-hero.nt-tone-neutral .nt-detail-stage{
    min-height:280px;
  }
  .single-product .nt-detail-hero.nt-tone-neutral .nt-detail-stage img{
    max-height:310px;
  }
}

@media(max-width:640px){
  .single-product .site-content>.ast-container{padding-left:10px!important;padding-right:10px!important}
  .nt-detail-hero{min-height:560px;border-radius:24px}
  .nt-detail-top{top:20px;left:20px;right:20px}
  .nt-detail-stage{inset:62px 16px 132px}
  .nt-detail-stage img{max-width:88%}
  .nt-detail-copy{left:20px;right:20px;bottom:20px}
  .nt-detail-copy h2{font-size:42px!important}
  .nt-detail-zoom{right:16px;top:56px}
  .nt-detail-thumbs{gap:6px}
  .nt-detail-thumb{border-radius:12px;padding:5px}
  .single-product div.product .product_title{font-size:50px!important}
  .single-product form.cart{grid-template-columns:1fr!important}
  .single-product .quantity .qty{width:100%!important}
}