/* ============================
   Pflanze des Tages – CSS FULL
   ============================ */

/* Intro */
.pdt-intro { margin-top: 20px; }
.pdt-intro h2{
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pdt-intro p{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.92;
}

/* Section Layout */
.pdt-section { width: 100%; }
.pdt-header{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Nav buttons – circle */
.pdt-nav{
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.pdt-nav:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
.pdt-nav:active{ transform: translateY(0); box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
.pdt-nav:disabled{ opacity: .35; box-shadow:none; cursor: default; }

/* Viewport/Track */
.pdt-viewport{
  overflow: hidden;
  width: 100%;
  position: relative;
  background: #fff;
}
.pdt-track{
  display: flex;
  gap: 22px;
  will-change: transform;
  transform: translate3d(0,0,0);
  padding: 10px 6px;
  background: #fff;
  margin-top: 50px; /* Desktop: Platz für scale */
  box-sizing: border-box;
}

/* Cards (Desktop default: 3 visible) */
.pdt-card{
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: calc((100% - 44px) / 3);
  position: relative;
  box-sizing: border-box;
}

/* Image wrap + image */
.pdt-imageWrap{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 12px 34px rgba(0,0,0,0.14);
  transform-origin: center center;
  transition: transform 220ms ease, filter 220ms ease;
  clip-path: inset(0 round 18px);
  background-clip: padding-box;
}
.pdt-image{
  display: block;
  width: 100%;
  height: 460px;         /* <- wie gewünscht ~100px kleiner als 560 */
  object-fit: cover;
  border-radius: 18px;
}

/* 3D-ish only for Desktop */
.pdt-card.is-left  .pdt-imageWrap,
.pdt-card.is-right .pdt-imageWrap{
  transform: scale(0.83) translateY(-14px);
  filter: saturate(0.92) contrast(0.96);
}
.pdt-card.is-center .pdt-imageWrap{
  transform: scale(1.1);
  z-index: 2;
}

/* Zoom hint */
.pdt-zoomHint{
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.pdt-card.is-center .pdt-imageWrap:hover .pdt-zoomHint{
  opacity: 1;
  transform: translateY(0);
}

/* Profile */
.pdt-profile{
  margin-top: 28px;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.55;
}
.pdt-name{
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.pdt-row{
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  margin: 6px 0;
  opacity: 0.95;
}
.pdt-row i{ width: 22px; opacity: .85; transform: translateY(2px); }
.pdt-row strong{ font-weight: 900; }

.pdt-priceRow{
  display: flex;
  justify-content: flex-end;
  font-weight: 900;
  font-size: 20px;
  margin-top: 10px;
}
.pdt-priceRow,
.pdt-priceRow .woocommerce-Price-amount,
.pdt-priceRow .pdt-price{
  white-space: nowrap;
}
.pdt-price-note{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: #9a9a9a;
  text-align: right;
}

.pdt-ctaWrap{
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* Add to cart button (no shadow) */
.product-add-to-cart{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  background: var(--bg-dark);
  color: #fff;
  box-shadow: none;
  transform: translateY(0);
  transition: transform .12s ease, filter .16s ease;
}
.product-add-to-cart:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.product-add-to-cart:active{ transform: translateY(0); filter: brightness(.98); }

/* Count 1/2 (Desktop centering) */
.pdt-track.is-count-1 .pdt-card,
.pdt-track.is-count-2 .pdt-card{ flex: 0 0 320px; min-width: 320px; }
.pdt-track.is-count-1,
.pdt-track.is-count-2{ justify-content: center; }

/* ============================
   MODAL
   ============================ */
.pdt-modal{ position: fixed; inset: 0; z-index: 9999; display: none; }
.pdt-modal.is-open{ display: block; }
.pdt-modal__backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,0.55); }

.pdt-modal__panel{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}
.pdt-modal__close{
  position: absolute;
  right: 10px; top: 10px;
  border: 0;
  background: rgba(0,0,0,0.08);
  width: 38px; height: 38px;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
}

.pdt-modal__slider{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 10px;
  background: #fff;
}
.pdt-modal__nav{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.pdt-modal__nav:disabled{ opacity: .35; box-shadow: none; cursor: default; }

.pdt-modal__viewport{ overflow: hidden; width: 100%; background: #fff; }
.pdt-modal__track{ display: flex; gap: 12px; will-change: transform; transform: translate3d(0,0,0); background: #fff; }

.pdt-modal__imgWrap{
  flex: 0 0 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.pdt-modal__img{
  width: 100%;
  height: min(70vh, 680px);
  object-fit: contain;
  display: block;
  background: #fff;
}

.pdt-modal__thumbs{
  display: flex;
  gap: 10px;
  padding: 0 14px 14px;
  overflow-x: auto;
  background: #fff;
}
.pdt-thumb{
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 86px;
  width: 86px;
  height: 110px;
  cursor: pointer;
  background: #f2f2f2;
}
.pdt-thumb.is-active{ border-color: var(--bg-dark); }
.pdt-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }


/* ============================
   MOBILE – SINGLE CARD ONLY
   (harter Override mit !important)
   ============================ */
@media (max-width: 960px){

  /* KEINE 3D/scale/side-cards auf Mobile */
  .pdt-track{
    margin-top: 10px !important;
    gap: 0 !important;
    padding: 10px 0 !important;
  }

  .pdt-card{
    flex: 0 0 100% !important;
    min-width: 100% !important;
    padding: 0 16px !important;   /* schöner Rand */
    box-sizing: border-box !important;
  }

  .pdt-imageWrap{
    transform: none !important;
    filter: none !important;
  }
  .pdt-card.is-left  .pdt-imageWrap,
  .pdt-card.is-right .pdt-imageWrap,
  .pdt-card.is-center .pdt-imageWrap{
    transform: none !important;
    filter: none !important;
  }

  /* Mobile Bildhöhe */
  .pdt-image{ height: 460px !important; }

  /* Text nicht abschneiden */
  .pdt-profile{ margin-top: 16px !important; }
}

/* Mobile/Tablet: nur ein Slide sichtbar (JS setzt .is-active) */
@media (max-width: 960px){
  .pdt-track{
    display: block !important;   
    margin-top: 10px !important;
    padding: 0 !important;
  }

  .pdt-card{
    display: none;               
    width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .pdt-card.is-center{
    display: block;              
  }

  /* auf <=960 kein 3D-scale */
  .pdt-imageWrap{
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 960px){
  .pdt-card { width: 100%; }
  .pdt-modal__panel { top: 10%; }
}

.vs_price_old {
  padding-right: 8px;
}
/* Admin Copy-Link Button oben rechts im Bild */
.pdt-imageWrap{
  position: relative; /* falls noch nicht vorhanden */
}

.pdt-copyLink{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.pdt-copyLink:hover{
  transform: translateY(-1px);
}

.pdt-copyLink i{
  font-size: 16px;
}

