/* ===========================================
 *  PDP FIX v7 - AK-MADEWITHLOVE.DE (ex 5696)
 * =========================================== */

/* ---- Fix Image Stretching ---- */
body.single-product .product .uk-slideshow-items{min-height:0 !important;height:auto !important;overflow:visible !important}
body.single-product .product .uk-slideshow-items > div{position:relative !important;height:auto !important;min-height:0 !important;z-index:1 !important}
body.single-product .product .uk-slideshow-items > .uk-active{z-index:2 !important;display:block !important;overflow:visible !important}
body.single-product .product .uk-slideshow-items img.el-image,
body.single-product .product .uk-slideshow-items .uk-cover,
body.single-product .product .uk-slideshow-items img{position:relative !important;top:auto !important;left:auto !important;right:auto !important;bottom:auto !important;width:100% !important;height:auto !important;max-height:none !important;object-fit:contain !important;object-position:center center !important}
body.single-product .product .uk-slideshow{min-height:0 !important}
body.single-product .product .uk-position-relative.uk-visible-toggle{min-height:0 !important}

/* ---- Thumbnails ---- */
body.single-product .product .uk-thumbnav{display:flex !important;gap:10px !important;margin-top:12px !important;justify-content:flex-start !important;flex-wrap:wrap !important}
body.single-product .product .uk-thumbnav > *{width:70px !important;height:70px !important;margin:0 !important}
body.single-product .product .uk-thumbnav > * > a{display:block !important;width:100% !important;height:100% !important;border:2px solid #e0e0e0 !important;border-radius:6px !important;overflow:hidden !important;transition:border-color 0.2s ease !important}
body.single-product .product .uk-thumbnav > *.uk-active > a,
body.single-product .product .uk-thumbnav > * > a:hover{border-color:#c5a880 !important}
body.single-product .product .uk-thumbnav img{width:100% !important;height:100% !important;object-fit:cover !important}

/* ---- Preis ---- */
body.single-product .product p.price,
body.single-product .product span.price{font-size:20px !important;font-weight:700 !important;color:#333 !important}

/* ---- Google Bewertungen ausrichten ---- */
body.single-product .product .uk-position-relative.uk-text-left:not(.uk-visible-toggle):not(.uk-panel){left:0 !important}

/* ---- CTA-Button ---- */
body.single-product .product .single_add_to_cart_button{background-color:#c5a880 !important;color:#ffffff !important;border:none !important;border-radius:6px !important;padding:14px 30px !important;font-size:16px !important;font-weight:600 !important;text-transform:none !important;letter-spacing:0.5px !important;transition:background-color 0.3s ease, transform 0.2s ease !important;width:100% !important;cursor:pointer !important}
body.single-product .product .single_add_to_cart_button:hover{background-color:#b0935e !important;transform:translateY(-1px) !important}

/* ---- Cross-Sells / Upsells ---- */
body.single-product .upsells.products,
body.single-product .related.products,
body.single-product .cross-sells{box-sizing:border-box !important}
body.single-product .uk-container.uk-container-small{box-sizing:border-box !important}

/* ---- Desktop ---- */
@media (min-width:960px){
  body.single-product .product .uk-grid.tm-grid-expand{display:flex !important;flex-wrap:wrap !important}
  body.single-product .product .uk-grid.tm-grid-expand > .uk-first-column{width:55% !important;flex:0 0 55% !important;max-width:55% !important;padding-right:30px !important;position:sticky !important;top:20px !important;align-self:flex-start !important}
  body.single-product .product .uk-grid.tm-grid-expand > div:nth-child(2){width:45% !important;flex:0 0 45% !important;max-width:45% !important;margin-top:0 !important}
  body.single-product .upsells.products,
  body.single-product .related.products,
  body.single-product .cross-sells{max-width:700px !important;margin-left:auto !important;margin-right:auto !important;padding:0 20px !important}
  body.single-product .uk-container.uk-container-small{max-width:700px !important}
}

/* ---- Mobile ---- */
@media (max-width:959px){
  body.single-product .tm-page-container,
  body.single-product .tm-page{overflow-x:hidden !important}
  body.single-product .product .uk-grid.tm-grid-expand > div{width:100% !important;flex:0 0 100% !important;max-width:100% !important;padding-right:0 !important}
  body.single-product .product .uk-slideshow-items img{max-height:70vh !important;width:auto !important;margin:0 auto !important;display:block !important}
  body.single-product .product .uk-thumbnav > *{width:55px !important;height:55px !important}
  body.single-product .product .single_add_to_cart_button{margin-top:15px !important}
  body.single-product .product p.price,
  body.single-product .product span.price{font-size:18px !important}
  body.single-product .upsells.products,
  body.single-product .related.products,
  body.single-product .cross-sells{max-width:100% !important;margin-left:0 !important;margin-right:0 !important;padding:0 15px !important}
  body.single-product .uk-container.uk-container-small{max-width:100% !important;padding-left:15px !important;padding-right:15px !important}
}

/* ===========================================
 *  Fix: Produktgalerie Slideshow (ex 5854)
 * =========================================== */
body.single-product .product .uk-slideshow .uk-slideshow-items{aspect-ratio:1 / 1 !important;overflow:hidden !important}
body.single-product .product .uk-slideshow .uk-slideshow-items > div{position:absolute !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important}
body.single-product .product .uk-slideshow .uk-slideshow-items > .uk-active{position:relative !important;overflow:hidden !important}
body.single-product .product .uk-slideshow .uk-slideshow-items img{height:100% !important;object-fit:contain !important}

/* ===========================================
 *  PDP Beschreibung: Snackable Design & FAQ (ex 5704)
 * =========================================== */

/* Kleinere Ueberschriften */
.woocommerce-Tabs-panel h2,
.product .uk-accordion-content h2,
.product [class*="accordion"] h2{font-size:1.1rem !important;letter-spacing:0.05em !important;text-transform:none !important;font-weight:600 !important;margin-top:1.5rem !important;margin-bottom:0.5rem !important}
.woocommerce-Tabs-panel h3,
.product .uk-accordion-content h3,
.product [class*="accordion"] h3{font-size:0.95rem !important;letter-spacing:0 !important;text-transform:none !important;font-weight:600 !important}

/* FAQ Akkordeon */
.product-faq-accordion{border:none;margin:0}
.product-faq-accordion .faq-item{border-bottom:1px solid #e5e5e5;padding:0}
.product-faq-accordion .faq-question{display:flex;justify-content:space-between;align-items:center;padding:16px 0;cursor:pointer;font-size:0.95rem;font-weight:500;color:#1a1a1a;background:none;border:none;width:100%;text-align:left;line-height:1.4;transition:color 0.2s;font-family:inherit}
.product-faq-accordion .faq-question:hover{color:#555}
.product-faq-accordion .faq-question::after{content:'+';font-size:1.2rem;font-weight:300;color:#999;flex-shrink:0;margin-left:16px;transition:transform 0.3s}
.product-faq-accordion .faq-item.active .faq-question::after{content:'\2212'}
.product-faq-accordion .faq-answer{max-height:0;overflow:hidden;transition:max-height 0.3s ease, padding 0.3s ease;padding:0}
.product-faq-accordion .faq-item.active .faq-answer{max-height:500px;padding:0 0 16px 0}
.product-faq-accordion .faq-answer p{font-size:0.9rem;color:#555;line-height:1.6;margin:0}

/* Snackable Highlights */
.product-highlights{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0}
.product-highlight-item{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;background:#faf9f7;border-radius:8px;font-size:0.9rem;line-height:1.4}
.product-highlight-item .highlight-icon{font-size:1.1rem;flex-shrink:0}
.product-highlight-item .highlight-text strong{display:block;font-size:0.9rem;color:#1a1a1a}
.product-highlight-item .highlight-text span{font-size:0.85rem;color:#666}

/* In den Warenkorb Button: kompakter */
.product .single_add_to_cart_button{line-height:1.4 !important;padding:12px 24px !important;font-size:15px !important}

/* Produkt-Attribut-Tabelle */
.product-attributes-table{width:100%;margin:16px 0}
.product-attributes-table .attr-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0f0f0;font-size:0.9rem}
.product-attributes-table .attr-row:last-child{border-bottom:none}
.product-attributes-table .attr-label{display:flex;align-items:center;gap:8px;color:#1a1a1a;font-weight:500}
.product-attributes-table .attr-value{color:#555}

/* Produktliste: Buttons einheitlich + braun */
.products .product a.button,
.products .product a.add_to_cart_button{background-color:#c5a880 !important;color:#fff !important;border:none !important;border-radius:6px !important;padding:10px 20px !important;font-size:12px !important;line-height:1.4 !important;height:auto !important;text-align:center !important;display:inline-block !important;white-space:nowrap !important}
.products .product a.button:hover,
.products .product a.add_to_cart_button:hover{background-color:#b8976e !important;color:#fff !important}

/* Produktliste: Preise kleiner */
.upsells.products .product .price,
.related.products .product .price,
.cross-sells .product .price,
.tm-element-woo-products .product .price{font-size:14px !important;font-weight:600 !important}

/* YOOtheme Produktliste: Buttons braun */
.tm-element-woo-products .product a.button,
.tm-element-woo-products .product a.add_to_cart_button{background-color:#c5a880 !important;color:#fff !important;border:none !important;border-radius:6px !important;padding:10px 20px !important;font-size:12px !important;line-height:1.4 !important;height:auto !important;white-space:nowrap !important}
.tm-element-woo-products .product a.button:hover,
.tm-element-woo-products .product a.add_to_cart_button:hover{background-color:#b8976e !important;color:#fff !important}
