/* ==========================================================
   3D-Druck.org - Shop-UX Paket 1
   Ergaenzt die Produktseite: USP-Zeile, Vertrauensblock,
   Farbauswahl, praesenterer Preis, kompakter Seitenkopf.
   Farbe/Schrift folgen dem Theme (Akzent #FF3D00, Poppins/Rubik).
   ========================================================== */

/* ---------- 1. USP-Zeile unter dem Produkttitel ---------- */
ul.ddshop-usp {
	list-style: none;
	margin: 4px 0 20px;
	padding: 14px 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 22px;
	border-top: 1px solid #E5E8E6;
	border-bottom: 1px solid #E5E8E6;
}
ul.ddshop-usp li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Rubik', sans-serif;
	font-size: 14.5px;
	line-height: 1.35;
	color: #26332C;
	font-weight: 500;
}
ul.ddshop-usp .ddshop-ico {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #FFF1EC;
	color: #FF3D00;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
ul.ddshop-usp .ddshop-ico svg { width: 16px; height: 16px; display: block; }

/* ---------- 2. Vertrauensblock in der Kaufbox ---------- */
.ddshop-trust {
	margin: 20px 0 10px;
	padding: 16px 18px;
	background: #F7F9F8;
	border: 1px solid #E5E8E6;
	border-radius: 8px;
}
.ddshop-trust ul {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 9px;
}
.ddshop-trust ul li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-family: 'Rubik', sans-serif;
	font-size: 14.5px;
	line-height: 1.45;
	color: #26332C;
	margin: 0;
}
.ddshop-trust ul li svg { flex: 0 0 16px; width: 16px; height: 16px; color: #178A4C; margin-top: 3px; }
.ddshop-trust ul li b { color: #001D08; font-weight: 600; }
.ddshop-pay { border-top: 1px dashed #DFE5E1; padding-top: 13px; }
.ddshop-pay-label {
	display: block;
	font-family: 'Rubik', sans-serif;
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #7C8A82;
	margin-bottom: 8px;
}
.ddshop-pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ddshop-pay-chip {
	font-family: 'Poppins', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	color: #26332C;
	background: #FFFFFF;
	border: 1px solid #E0E5E2;
	border-radius: 3px;
	padding: 4px 9px;
	line-height: 1.25;
}

/* ---------- 3. Farbauswahl als Farbkreise ---------- */
.ddshop-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 2px 0 6px;
}
.ddshop-swatch {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid #FFFFFF;
	background: #EEEEEE;
	cursor: pointer;
	box-shadow: 0 0 0 1px #D5DCD8;
	transition: box-shadow .15s ease, transform .15s ease;
	position: relative;
}
.ddshop-swatch:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #93A29A; }
.ddshop-swatch.is-active { box-shadow: 0 0 0 2px #FF3D00, 0 0 0 4px #FFFFFF; transform: none; }
.ddshop-swatch.is-disabled { opacity: .35; cursor: not-allowed; }
.ddshop-swatch.is-disabled::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(to top right, transparent 44%, #C0392B 45%, #C0392B 55%, transparent 56%);
}
.ddshop-swatch-name {
	font-family: 'Rubik', sans-serif;
	font-size: 14.5px;
	color: #646464;
	margin-left: 2px;
}
.ddshop-swatch-name b { color: #001D08; font-weight: 600; }
.ddshop-select-ausgeblendet {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- 4. Preis praesenter ---------- */
.single-product .summary .price {
	font-family: 'Poppins', sans-serif !important;
	color: #001D08 !important;
	font-size: 27px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin: 2px 0 4px !important;
}
.single-product .summary .price del { font-size: 18px; color: #93A29A; margin-right: 6px; }
.single-product .summary .price ins { text-decoration: none; }

/* ---------- 5. Kompakter Seitenkopf statt 296px Leerraum ---------- */
.single-product .breadcrumb__area.breadcrumb-space {
	padding-top: 70px !important;
	padding-bottom: 55px !important;
}
.single-product .breadcrumb__area .breadcrumb__title {
	font-size: 32px !important;
	line-height: 1.25 !important;
	max-width: 900px;
	margin: 0 auto;
}

/* ---------- 6. Bewertungszeile (nur wenn vorhanden) ---------- */
.summary .ddshop-bewertungen {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
}
.summary .ddshop-bewertungen .star-rating { margin: 0; }
.summary .ddshop-bewertungen a { font-size: 14px; color: #646464; text-decoration: underline; }

/* ---------- 7. Mobil ---------- */
@media (max-width: 767px) {
	ul.ddshop-usp { grid-template-columns: 1fr; gap: 9px; }
	.single-product .breadcrumb__area.breadcrumb-space { padding-top: 45px !important; padding-bottom: 35px !important; }
	.single-product .breadcrumb__area .breadcrumb__title { font-size: 24px !important; }
	.ddshop-trust { padding: 14px; }
}
/* ============================================================
   Paket 2 - Galerie, Versand-Info, FAQ, Sticky-Warenkorb
   ============================================================ */

/* Kaufbox: tote Abstaende der Zahlungs-Widgets entschaerfen */
.single-product .summary .wcpay-express-checkout-wrapper { margin-top: 0 !important; margin-bottom: 0 !important; }
.single-product .summary .woocommerce-product-details__short-description { margin-bottom: 16px; }
.single-product .summary .product_meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eceff3; display: block !important; }
.single-product .summary .product_meta > span { display: block; margin-bottom: 4px; }

/* Galerie */
.single-product .woocommerce-product-gallery .flex-viewport { border-radius: 14px; overflow: hidden; }
.single-product .woocommerce-product-gallery__image { border-radius: 14px; overflow: hidden; cursor: zoom-in; }

/* Eigener Hover-Zoom - ersetzt den flackernden WooCommerce-Zoom (jquery.zoom).
   Nur das Bild wird skaliert und der Bildausschnitt folgt dem Mauszeiger;
   keine Bibliothek baut dabei Elemente um, also kann nichts pulsieren. */
.single-product .woocommerce-product-gallery__image img {
  transition: transform .3s ease !important;
}
.single-product .woocommerce-product-gallery__image.ddshop-zooming img {
  /* !important, weil der Flexslider des Themes den Galerie-Bildern ein
     eigenes transform: translate3d(0,0,0) mitgibt und spaeter geladen wird. */
  transform: scale(2.1) !important;
}
.single-product .flex-control-thumbs { display: flex !important; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 !important; padding: 0; }
.single-product .flex-control-thumbs li { width: auto !important; flex: 0 0 84px; margin: 0 !important; }
.single-product .flex-control-thumbs img { border-radius: 10px; border: 2px solid #e9ecf1; opacity: .75; transition: opacity .18s, border-color .18s; }
.single-product .flex-control-thumbs img:hover,
.single-product .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--rr-theme-primary, #FF3D00); }
.single-product .woocommerce-product-gallery__trigger { border-radius: 50%; }

/* Info-Sektion Versand & Lieferung */
.ddshop-versand { margin: 46px 0 10px; }
.ddshop-versand-titel, .ddshop-faq-titel { font-size: 22px; line-height: 1.3; margin: 0 0 18px; }
.ddshop-versand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ddshop-versand-karte { background: #f7f8fa; border: 1px solid #e9ecf1; border-radius: 12px; padding: 18px 14px; text-align: center; }
.ddshop-versand-karte .ddshop-ico { display: block; margin-bottom: 8px; color: var(--rr-theme-primary, #FF3D00); }
.ddshop-versand-karte .ddshop-ico svg { width: 26px; height: 26px; margin: 0 auto; display: block; }
.ddshop-versand-label { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #7a8494; }
.ddshop-versand-wert { display: block; font-weight: 600; font-size: 15px; margin-top: 4px; color: #1c2430; }
.ddshop-versand-links { font-size: 13px; color: #6b7482; margin: 14px 0 0; }

/* FAQ */
.ddshop-faq { margin: 40px 0 10px; }
.ddshop-frage { border-bottom: 1px solid #e9ecf1; }
.ddshop-frage:first-of-type { border-top: 1px solid #e9ecf1; }
.ddshop-frage summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 40px 16px 0; position: relative; list-style: none; }
.ddshop-frage summary::-webkit-details-marker { display: none; }
.ddshop-frage summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; line-height: 1; color: var(--rr-theme-primary, #FF3D00); }
.ddshop-frage[open] summary::after { content: '\2013'; }
.ddshop-antwort { padding: 0 40px 18px 0; color: #4a5361; line-height: 1.7; }
.ddshop-antwort p { margin: 0; }

/* Sticky-Warenkorb */
body.ddshop-has-sticky { padding-bottom: 78px; }
.ddshop-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid #e6e9ee; box-shadow: 0 -6px 24px rgba(16,24,40,.08); transform: translateY(115%); transition: transform .25s ease; }
.ddshop-sticky.is-visible { transform: translateY(0); }
.ddshop-sticky-inner { max-width: 1200px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 16px; }
.ddshop-sticky-text { flex: 1 1 auto; min-width: 0; }
.ddshop-sticky-name { display: block; font-weight: 600; font-size: 14px; color: #1c2430; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddshop-sticky-price { display: block; font-size: 14px; color: #4a5361; }
.ddshop-sticky-btn { flex: 0 0 auto; background: var(--rr-theme-primary, #FF3D00); color: #fff; border: 0; border-radius: 6px; padding: 12px 26px; font-weight: 600; font-size: 15px; cursor: pointer; }
.ddshop-sticky-btn:hover { filter: brightness(.93); }

@media (max-width: 900px) { .ddshop-versand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ddshop-versand { margin-top: 32px; }
  .ddshop-versand-titel, .ddshop-faq-titel { font-size: 19px; }
  .ddshop-sticky-inner { padding: 8px 12px; gap: 10px; }
  .ddshop-sticky-name { font-size: 13px; }
  .ddshop-sticky-btn { padding: 11px 18px; font-size: 14px; }
}
/* ============================================================
   Archiv-Banner kompakt (Shop, Kategorien, Schlagwoerter)
   Das Theme setzt aus dem Customizer 296px oben + 160px unten =
   584px leeres Band vor das Produktraster. Produktseiten waren
   schon gestrafft, hier dieselbe flache Variante.
   ============================================================ */
.woocommerce-page .breadcrumb__area.breadcrumb-space {
  padding-top: 45px !important;
  padding-bottom: 35px !important;
}

/* Titelgroesse: Produktseiten bleiben bei 24px (langer Titel),
   Uebersichtsseiten bekommen 30px. */
.woocommerce-shop .breadcrumb__area .breadcrumb__title,
.post-type-archive-product .breadcrumb__area .breadcrumb__title,
.tax-product_cat .breadcrumb__area .breadcrumb__title,
.tax-product_tag .breadcrumb__area .breadcrumb__title {
  font-size: 30px !important;
  line-height: 1.25 !important;
}

/* Die Dekor-Formen sind fuer ein 456px hohes Band positioniert und
   wuerden in der flachen Variante angeschnitten - deshalb aus. */
.woocommerce-page .breadcrumb__area .banner-all-shape-wrapper {
  display: none !important;
}
/* Individuelle FAQ: Zwischenueberschriften */
.ddshop-faq .ddshop-faq-gruppe {
	margin: 28px 0 12px;
	font-size: 17px;
	line-height: 1.35;
}
.ddshop-faq .ddshop-faq-gruppe:first-of-type {
	margin-top: 8px;
}
