/* =================================================================
   TAUDTMANN — Produktdetail-Seite
   2-Spalter mit allen Sektionen genau nach Mockup
   Klassen mit pdp- Präfix zur Vermeidung von Konflikten
   ================================================================= */

/* ----------------------------------------------------------------
   PDP-HAUPTLAYOUT
   ---------------------------------------------------------------- */
.pdp-wrap {
  padding: 8px 0 60px;
}
.pdp-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ----------------------------------------------------------------
   LINKE SPALTE
   ---------------------------------------------------------------- */
.pdp-left { min-width: 0; }

/* Galerie */
.pdp-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  margin-bottom: 56px;
}
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-thumb {
  width: 72px;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.pdp-thumb:hover { border-color: var(--line-strong); }
.pdp-thumb.active { border-color: var(--ink); }
.pdp-thumb .mini {
  width: 50%;
  aspect-ratio: 0.7;
  background: linear-gradient(180deg, #f2d4a8 0%, #d8a368 100%);
  border-radius: 3px;
}
.pdp-thumb .mini.dark { background: linear-gradient(180deg, #2a1812 0%, #1a0e0a 100%); }
.pdp-thumb .mini.light { background: linear-gradient(180deg, #fafafa 0%, #d8d8d8 100%); }

.pdp-image {
  aspect-ratio: 1/1;
  background: linear-gradient(170deg, var(--bg-soft) 0%, #ebebeb 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-image::before {
  content: 'TAUDTMANN';
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.45;
}
.pdp-image .jar {
  width: 38%;
  aspect-ratio: 0.7;
  background: linear-gradient(180deg, #f2d4a8 0%, #d8a368 100%);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
}
.pdp-image .jar::before {
  content: '';
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 8%;
  background: #444;
  border-radius: 4px 4px 0 0;
}
.pdp-image .jar-label {
  position: absolute;
  top: 28%;
  left: 10%;
  right: 10%;
  background: #fff;
  padding: 16px 12px;
  border-radius: 4px;
  text-align: center;
}
.pdp-image .jar-label .brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 6px;
}
.pdp-image .jar-label .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-strong);
  letter-spacing: 0.04em;
}
.pdp-image .jar-label .sub {
  font-size: 8px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* Langbeschreibung */
.pdp-long-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 48px;
}
.pdp-long-desc p { margin-bottom: 16px; }
.pdp-long-desc p:last-child { margin-bottom: 0; }

/* FAQs linke Spalte */
.pdp-faqs-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pdp-faq-list { margin: 0; padding: 0; }
.pdp-faq-item {
  border-bottom: 1px solid var(--line);
}
.pdp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 50px 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.pdp-faq-item summary::-webkit-details-marker { display: none; }
.pdp-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-mute);
}
.pdp-faq-item[open] summary { color: var(--pink-strong); font-weight: 600; }
.pdp-faq-item[open] summary::after { content: "−"; color: var(--pink-strong); }
.pdp-faq-answer {
  padding: 0 50px 22px 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ----------------------------------------------------------------
   RECHTE SPALTE — gesamte Produktinfo + Kauf-Sektion
   ---------------------------------------------------------------- */
.pdp-right { min-width: 0; }

.pdp-cat {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.pdp-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.pdp-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.pdp-price-meta {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin-bottom: 22px;
}
.pdp-price-meta span { display: block; }
.pdp-short-desc {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.65;
  margin: 0 0 22px;
}
.pdp-article-meta {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.pdp-article-meta div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pdp-article-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.pdp-article-meta a {
  color: var(--ink-mute);
  text-decoration: none;
}
.pdp-article-meta a:hover { color: var(--pink-strong); }
.pdp-delivery {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
}
.pdp-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 20px;
}
.pdp-wishlist::before { content: '♡'; font-size: 16px; }
.pdp-wishlist:hover { color: var(--pink-strong); }

.pdp-share {
  display: flex;
  gap: 10px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.pdp-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
}
.pdp-share a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Related (kompakt) in der rechten Spalte */
.pdp-related-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.pdp-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.pdp-related-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.pdp-related-item:hover {
  border-color: var(--ink);
  transform: translateX(2px);
}
.pdp-related-item .img {
  width: 60px;
  height: 60px;
  background: var(--bg-soft);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-related-item .img .mini {
  width: 50%;
  aspect-ratio: 0.7;
  background: linear-gradient(180deg, #2a1812 0%, #1a0e0a 100%);
  border-radius: 2px;
}
.pdp-related-item .img .mini.light { background: linear-gradient(180deg, #fafafa 0%, #d8d8d8 100%); }
.pdp-related-item .info { flex: 1; min-width: 0; }
.pdp-related-item .info h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px;
}
.pdp-related-item .info .sub {
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.pdp-related-item .info .price {
  font-size: 13px;
  font-weight: 700;
}

/* Buy-Sektion */
.pdp-buy {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.pdp-qty button {
  width: 38px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.pdp-qty .val {
  min-width: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  height: 46px;
  line-height: 46px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pdp-cart-btn {
  flex: 1;
  height: 46px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.pdp-cart-btn:hover { background: #2a2a2a; }

/* Spec-Blöcke (PRODUKTDETAILS, NÄHRWERTE) */
.pdp-spec {
  margin-bottom: 24px;
}
.pdp-spec-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pdp-spec-unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.pdp-spec-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  font-size: 13px;
  margin: 0;
}
.pdp-spec-table dt {
  color: var(--ink-mute);
}
.pdp-spec-table dd {
  color: var(--ink);
  font-weight: 500;
  margin: 0;
  text-align: right;
}
.pdp-spec-table dt.sub,
.pdp-spec-table dd.sub {
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 12px;
}

/* ----------------------------------------------------------------
   "Komplettes Set" — 2-col Sektion mit grauem Hintergrund
   ---------------------------------------------------------------- */
.pdp-komplett {
  margin: 80px 0 60px;
  padding: 50px 48px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.pdp-komplett-h {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.pdp-komplett p {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.pdp-komplett .btn-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pdp-komplett .btn-all:hover { background: #2a2a2a; }
.pdp-komplett-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-komplett-items .pdp-related-item { background: var(--bg); }

/* ----------------------------------------------------------------
   "Zuletzt angesehene Produkte" — horizontale Karten
   ---------------------------------------------------------------- */
.pdp-recent {
  margin: 60px 0 80px;
}
.pdp-recent-h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pdp-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ----------------------------------------------------------------
   "Unsere Geschenkboxen" Sektion
   ---------------------------------------------------------------- */
.pdp-boxes {
  margin: 80px 0 60px;
  text-align: center;
}
.pdp-boxes-h {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 40px;
}
.pdp-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pdp-box-card {
  background: var(--bg-soft);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.pdp-box-card:hover { transform: translateY(-3px); }
.pdp-box-card .box-visual {
  aspect-ratio: 1.3/1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-box-card .box-visual.dark { background: linear-gradient(170deg, #1a1a1a 0%, #050505 100%); }
.pdp-box-card .box-visual.light { background: linear-gradient(170deg, #fafafa 0%, #d8d8d8 100%); }
.pdp-box-card .box-visual .acryl {
  position: absolute;
  bottom: 18%;
  height: 6px;
  width: 60%;
  left: -5%;
  border-radius: 3px;
}
.pdp-box-card .box-visual .acryl.pink { background: linear-gradient(90deg, var(--pink), var(--pink-strong)); }
.pdp-box-card .box-visual .acryl.blue { background: linear-gradient(90deg, var(--blue), var(--blue-strong)); }
.pdp-box-card .box-visual .acryl.yellow { background: linear-gradient(90deg, var(--yellow), var(--yellow-strong)); }
.pdp-box-card .box-foot {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  text-align: left;
}
.pdp-box-card .box-foot h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}
.pdp-box-card .box-foot .sub {
  font-size: 12px;
  color: var(--ink-mute);
}
.pdp-box-card .box-foot .arr {
  font-size: 20px;
  color: var(--ink-mute);
}

/* ----------------------------------------------------------------
   "Inspirations" Sektion
   ---------------------------------------------------------------- */
.pdp-inspirations {
  margin: 60px 0 40px;
  padding: 56px 48px;
  background: var(--bg-soft);
  border-radius: 12px;
  text-align: center;
}
.pdp-inspirations-h {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
}
.pdp-insp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pdp-insp-card {
  aspect-ratio: 1.3/1;
  background: var(--bg);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s;
}
.pdp-insp-card:hover { transform: translateY(-3px); }
.pdp-insp-card::before {
  content: 'TAUDTMANN';
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.45;
}
.pdp-insp-card .stripe {
  position: absolute;
  bottom: 22%;
  height: 5px;
  width: 60%;
  left: -5%;
  border-radius: 3px;
}
.pdp-insp-card .stripe.pink { background: linear-gradient(90deg, var(--pink), var(--pink-strong)); }
.pdp-insp-card .stripe.blue { background: linear-gradient(90deg, var(--blue), var(--blue-strong)); }
.pdp-insp-card .stripe.yellow { background: linear-gradient(90deg, var(--yellow), var(--yellow-strong)); }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 48px; }
  .pdp-komplett { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .pdp-recent-grid { grid-template-columns: repeat(3, 1fr); }
  .pdp-boxes-grid { grid-template-columns: 1fr; }
  .pdp-insp-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-inspirations { padding: 40px 28px; }
}
@media (max-width: 768px) {
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
  .pdp-thumb { width: 60px; flex-shrink: 0; }
  .pdp-recent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pdp-buy { flex-direction: column; }
  .pdp-cart-btn { width: 100%; }
  .pdp-recent-grid, .pdp-insp-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   STICKY ADD-TO-CART BAR (unten am Bildschirmrand)
   ================================================================= */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.12);
  z-index: 60;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.pdp-sticky-bar.is-visible {
  transform: translateY(0);
}
.pdp-sticky-bar::before {
  /* Akzentstreifen Pink → Blau → Gelb */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--pink) 0%,
    var(--pink-strong) 28%,
    var(--blue) 32%,
    var(--blue-strong) 60%,
    var(--yellow) 64%,
    var(--yellow-strong) 100%
  );
  opacity: 0.55;
}
.pdp-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
.pdp-sticky-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.pdp-sticky-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(170deg, var(--bg-soft) 0%, #ebebeb 100%);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-sticky-img .mini {
  width: 50%;
  aspect-ratio: 0.7;
  background: linear-gradient(180deg, #f2d4a8 0%, #d8a368 100%);
  border-radius: 2px;
}
.pdp-sticky-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdp-sticky-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdp-sticky-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pdp-sticky-price .meta {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 6px;
}
.pdp-sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pdp-sticky-actions .pdp-qty button { height: 42px; width: 34px; font-size: 14px; }
.pdp-sticky-actions .pdp-qty .val { height: 42px; line-height: 42px; min-width: 38px; font-size: 13px; }
.pdp-sticky-actions .pdp-cart-btn {
  height: 42px;
  padding: 0 22px;
  font-size: 13px;
  flex: 0 0 auto;
}

/* Body-Padding, damit der letzte Content nicht von der Sticky-Bar verdeckt wird */
body.pdp-has-sticky main { padding-bottom: 90px; }

/* Mobile-Optimierung */
@media (max-width: 768px) {
  .pdp-sticky-img { width: 42px; height: 42px; }
  .pdp-sticky-name { font-size: 13px; max-width: 200px; }
  .pdp-sticky-actions .pdp-qty { display: none; }
  .pdp-sticky-actions .pdp-cart-btn {
    padding: 0 18px;
    font-size: 12px;
  }
  .pdp-sticky-inner { padding: 10px 0; gap: 12px; }
}
@media (max-width: 420px) {
  .pdp-sticky-name { max-width: 140px; font-size: 12px; }
  .pdp-sticky-price { font-size: 13px; }
  .pdp-sticky-price .meta { display: none; }
  .pdp-sticky-actions .pdp-cart-btn { padding: 0 14px; }
}


/* =================================================================
   FIXED ASPECT RATIO FOR PRODUCT DETAIL PAGE GALLERY
   Forces the WooCommerce product gallery main image into a 1:1 square,
   regardless of uploaded image dimensions. Center-crops via object-fit.
   ================================================================= */

/* Main gallery wrapper (woocommerce_show_product_images output) */
.pdp-gallery-wrap .woocommerce-product-gallery,
.pdp-left .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
}

/* Main image container */
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image--placeholder {
  display: block;
  margin: 0;
}

/* The actual main image — contain, centered, with inset so it doesn't touch the border */
.woocommerce-product-gallery__image > a,
.woocommerce-product-gallery__image > a > img,
.woocommerce-product-gallery__image > img,
.woocommerce-product-gallery__wrapper > img,
.woocommerce-product-gallery__wrapper > a > img,
.pdp-gallery-wrap .wp-post-image {
  width: calc(100% - 24px) !important;
  height: calc(100% - 24px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
}

/* Hide mockup placeholders when real gallery is rendered */
.pdp-gallery-wrap .woocommerce-product-gallery ~ .pdp-image,
.pdp-gallery-wrap:has(.woocommerce-product-gallery) > .pdp-image {
  display: none;
}

/* Thumbnail row (additional gallery images) */
.flex-control-thumbs,
.woocommerce-product-gallery .flex-control-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 14px 0 0 !important;
  margin: 0 !important;
  width: 100%;
}
.flex-control-thumbs li,
.woocommerce-product-gallery .flex-control-nav li {
  width: 72px !important;
  flex: 0 0 72px;
  margin: 0 !important;
  list-style: none;
}
.flex-control-thumbs img,
.woocommerce-product-gallery .flex-control-nav img {
  width: 72px !important;
  height: 72px !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  padding: 4px;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  display: block;
}
.flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--line-strong);
}
.flex-control-thumbs img.flex-active,
.flex-control-thumbs .flex-active img {
  opacity: 1;
  border-color: var(--ink) !important;
}

/* WC's flexslider override - it injects inline styles, we counter them */
.woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.woocommerce-product-gallery .flex-viewport ul.flex-slides,
.woocommerce-product-gallery .flex-viewport ol.flex-slides {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
}
.woocommerce-product-gallery .flex-viewport ul.flex-slides li,
.woocommerce-product-gallery .flex-viewport ol.flex-slides li {
  list-style: none;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0;
  left: 0;
}
.woocommerce-product-gallery .flex-viewport ul.flex-slides li img,
.woocommerce-product-gallery .flex-viewport ol.flex-slides li img {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  width: calc(100% - 24px) !important;
  height: calc(100% - 24px) !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

/* Zoom + lightbox triggers shouldn't break the layout */
.woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 99;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  text-indent: -9999px;
  overflow: hidden;
}
.woocommerce-product-gallery__trigger::before {
  content: '⛶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
  font-size: 18px;
  color: var(--ink);
}

/* Hide mockup placeholder when real gallery is present */
.pdp-gallery-wrap .woocommerce-product-gallery + .pdp-gallery,
.pdp-gallery-wrap:has(img.wp-post-image) > .pdp-gallery:not(:has(img)) {
  display: none;
}

/* Sticky bar product thumbnail — also 1:1 */
.pdp-sticky-img img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
}

/* Upsell/related cards on PDP */
.pdp-related-item .img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
}
.pdp-related-item .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}


/* =================================================================
   PDP — INFO TRIGGER LIST (right column, under buy button)
   Clean list of triggers (Produktbeschreibung, Zusätzliche
   Informationen, Nährwertangaben, Herstellerangaben) — each opens
   its own slide-in drawer from the right.
   ================================================================= */

.pdp-info-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.pdp-info-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: padding-left 0.18s ease, color 0.15s;
}
.pdp-info-trigger:hover {
  padding-left: 4px;
}
.pdp-info-trigger:hover .label {
  color: var(--ink);
}
.pdp-info-trigger:hover .arrow {
  transform: translateX(4px);
}
.pdp-info-trigger:focus-visible {
  outline: 2px solid var(--pink-strong);
  outline-offset: 2px;
}
.pdp-info-trigger .label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.pdp-info-trigger .arrow {
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Overlay */
.pdp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 9997;
  transition: opacity 0.25s ease, visibility 0s 0.25s;
}
.pdp-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

/* The Drawer itself - slides in from right */
.pdp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}
.pdp-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Head */
.pdp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.pdp-drawer-head h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.pdp-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.pdp-drawer-close:hover {
  background: var(--bg-soft);
}
.pdp-drawer-close svg {
  width: 22px;
  height: 22px;
}

/* Drawer Body (scrollable) */
.pdp-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}
.pdp-drawer-product-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--ink);
}
.pdp-drawer-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.pdp-drawer-content p {
  margin: 0 0 16px;
}
.pdp-drawer-content p:last-child {
  margin-bottom: 0;
}
.pdp-drawer-content h2,
.pdp-drawer-content h3,
.pdp-drawer-content h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
  color: var(--ink);
}
.pdp-drawer-content ul,
.pdp-drawer-content ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
.pdp-drawer-content li {
  margin-bottom: 6px;
}
.pdp-drawer-content a {
  color: var(--pink-strong);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.pdp-drawer-content a:hover {
  text-decoration-color: var(--pink-strong);
}
.pdp-drawer-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 16px 0;
}
.pdp-drawer-content blockquote {
  border-left: 3px solid var(--pink-strong);
  padding: 8px 0 8px 18px;
  margin: 20px 0;
  color: var(--ink-mute);
  font-style: italic;
}

/* Mobile */
@media (max-width: 720px) {
  .pdp-drawer {
    width: 100vw;
  }
  .pdp-drawer-head {
    padding: 18px 22px;
  }
  .pdp-drawer-body {
    padding: 22px;
  }
}


/* =================================================================
   PDP DRAWER — Internal table styles for attributes & nutrition
   ================================================================= */

/* WC attribute table (rendered by wc_display_product_attributes) */
.pdp-drawer-attrs .woocommerce-product-attributes,
.pdp-drawer-attrs table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}
.pdp-drawer-attrs .woocommerce-product-attributes-item th,
.pdp-drawer-attrs table.shop_attributes th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  width: 45%;
  vertical-align: top;
}
.pdp-drawer-attrs .woocommerce-product-attributes-item td,
.pdp-drawer-attrs table.shop_attributes td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
.pdp-drawer-attrs .woocommerce-product-attributes-item td p,
.pdp-drawer-attrs table.shop_attributes td p {
  margin: 0;
  font-style: normal;
}
.pdp-drawer-attrs .woocommerce-product-attributes-item:last-child th,
.pdp-drawer-attrs .woocommerce-product-attributes-item:last-child td {
  border-bottom: 0;
}

/* Nährwert-Tabelle */
.pdp-drawer-unit {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}
.pdp-drawer-table {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  font-size: 14px;
}
.pdp-drawer-table dt {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
}
.pdp-drawer-table dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pdp-drawer-table dt.sub {
  padding-left: 16px;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 13px;
}
.pdp-drawer-table dd.sub {
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 13px;
}
.pdp-drawer-table dt:last-of-type,
.pdp-drawer-table dd:last-of-type {
  border-bottom: 0;
}
