/*
 * bm-product-detail.css
 * buchundmehrammarkt.de — Produktdetail, Warenkorb, Checkout
 * Stand: 2026-04-14
 * Ergänzt bm-modern-v3.css — überschreibt gezielt wo nötig
 */

/* ============================================================
   CSS-Variablen (Ergänzung zu bm-modern-v3)
   ============================================================ */
:root {
  --bm-navy:       #1a2e52;
  --bm-navy-dark:  #12203b;
  --bm-red:        #c8102e;
  --bm-red-dark:   #a50d26;
  --bm-green:      #2e7d32;
  --bm-green-bg:   #e8f5e9;
  --bm-gray-bg:    #f7f7f7;
  --bm-border:     #e0e0e0;
  --bm-text:       #333333;
  --bm-text-light: #666666;
  --bm-white:      #ffffff;
  --bm-shadow:     0 2px 12px rgba(0,0,0,0.08);
  --bm-radius:     8px;
  --bm-font:       'Poppins', sans-serif;
}

/* ============================================================
   1. PRODUKTDETAILSEITE — verfeinern
   ============================================================ */

/* Grundlayout */
.single-product .ast-woocommerce-container {
  background: var(--bm-gray-bg) !important;
  padding: 24px !important;
}

.single-product div.product {
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  padding: 32px !important;
  box-shadow: var(--bm-shadow) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 32px !important;
  align-items: flex-start !important;
}

/* Gallery / Cover */
.single-product .woocommerce-product-gallery {
  flex: 0 0 280px !important;
  max-width: 280px !important;
}

.single-product .woocommerce-product-gallery img.wp-post-image {
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Summary */
.single-product div.product .summary {
  flex: 1 1 320px !important;
  min-width: 280px !important;
}

/* Produkttitel */
.single-product .product_title {
  font-family: var(--bm-font) !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
}

/* Autor/Verlag/ISBN Info-Zeile */
.single-product .bm-product-meta-info {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 16px !important;
  margin: 0 0 16px 0 !important;
  padding: 10px 14px !important;
  background: var(--bm-gray-bg) !important;
  border-radius: 6px !important;
  border-left: 3px solid var(--bm-navy) !important;
}

.single-product .bm-product-meta-info span {
  font-family: var(--bm-font) !important;
  font-size: 0.8rem !important;
  color: var(--bm-text-light) !important;
  line-height: 1.4 !important;
}

.single-product .bm-product-meta-info span strong {
  color: var(--bm-navy) !important;
  font-weight: 600 !important;
}

/* Fallback: WooCommerce .product_meta als Info-Zeile nutzen wenn vorhanden */
.single-product .product_meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 14px !important;
  margin: 0 0 14px 0 !important;
  padding: 8px 12px !important;
  background: var(--bm-gray-bg) !important;
  border-radius: 6px !important;
  border-left: 3px solid var(--bm-navy) !important;
}

.single-product .product_meta span {
  font-family: var(--bm-font) !important;
  font-size: 0.78rem !important;
  color: var(--bm-text-light) !important;
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
  display: inline-block !important;
}

.single-product .product_meta a {
  color: var(--bm-navy) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.single-product .product_meta a:hover {
  color: var(--bm-red) !important;
}

/* Preis */
.single-product .price {
  font-family: var(--bm-font) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: var(--bm-red) !important;
  line-height: 1.2 !important;
  margin: 0 0 8px 0 !important;
  display: block !important;
}

.single-product .price ins {
  text-decoration: none !important;
}

.single-product .price del {
  font-size: 1.1rem !important;
  color: var(--bm-text-light) !important;
  font-weight: 400 !important;
  margin-right: 8px !important;
}

/* Portofrei-Badge */
.single-product .bm-shipping-badge,
.single-product .woocommerce-product-details__short-description + .bm-shipping-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: var(--bm-green-bg) !important;
  color: var(--bm-green) !important;
  border: 1px solid #a5d6a7 !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  margin: 0 0 18px 0 !important;
}

/* Portofrei-Badge nach Preis einfügen via CSS pseudo wenn kein PHP */
.single-product .price::after {
  content: "✓ Kostenloser Versand";
  display: inline-flex !important;
  align-items: center !important;
  background: var(--bm-green-bg) !important;
  color: var(--bm-green) !important;
  border: 1px solid #a5d6a7 !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  margin-left: 12px !important;
  vertical-align: middle !important;
  letter-spacing: 0.01em !important;
}

/* Kurzbeschreibung */
.single-product .woocommerce-product-details__short-description {
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  line-height: 1.7 !important;
  color: var(--bm-text) !important;
  margin: 0 0 20px 0 !important;
  max-height: 120px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Warenkorb-Formular */
.single-product .cart {
  margin: 0 0 14px 0 !important;
}

/* "In den Warenkorb" Button — auffällig, volle Breite, Rot */
.woocommerce .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button.button.alt {
  background: var(--bm-red) !important;
  color: var(--bm-white) !important;
  font-family: var(--bm-font) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: var(--bm-radius) !important;
  padding: 15px 24px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(200,16,46,0.3) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.woocommerce .single_add_to_cart_button::before {
  content: "🛒" !important;
  font-size: 1.1rem !important;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button.button.alt:hover {
  background: var(--bm-red-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(200,16,46,0.4) !important;
}

.woocommerce .single_add_to_cart_button:active {
  transform: translateY(0) !important;
}

/* Trust-Elemente unter dem Button */
.single-product .bm-trust-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  padding: 10px 0 !important;
  font-family: var(--bm-font) !important;
  font-size: 0.75rem !important;
  color: var(--bm-text-light) !important;
  border-top: 1px solid var(--bm-border) !important;
  margin-top: 12px !important;
}

/* Fallback Trust-Bar via CSS nach dem Button */
.single-product form.cart::after {
  content: "🔒 Sicher bezahlen · 📦 Portofrei · ↩ 30 Tage Rückgabe";
  display: block !important;
  text-align: center !important;
  font-family: var(--bm-font) !important;
  font-size: 0.73rem !important;
  color: var(--bm-text-light) !important;
  padding: 10px 0 4px 0 !important;
  letter-spacing: 0.01em !important;
}

/* ============================================================
   2. TABS — sauber gestylt, aktiver Tab in Rot
   ============================================================ */

.single-product .woocommerce-tabs {
  margin-top: 32px !important;
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  box-shadow: var(--bm-shadow) !important;
  overflow: visible !important;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border-bottom: 2px solid var(--bm-border) !important;
  background: transparent !important;
  gap: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  position: relative !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 14px 20px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--bm-text-light) !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  transition: color 0.2s, border-color 0.2s !important;
  background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--bm-red) !important;
  border-bottom-color: var(--bm-red) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li.active > a {
  color: var(--bm-red) !important;
  border-bottom-color: var(--bm-red) !important;
  background: transparent !important;
}

.single-product .woocommerce-tabs .panel {
  padding: 24px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
  color: var(--bm-text) !important;
}

/* Attribut-Tabelle im Tab */
.single-product .shop_attributes {
  width: 100% !important;
  border-collapse: collapse !important;
}

.single-product .shop_attributes th,
.single-product .shop_attributes td {
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--bm-border) !important;
  font-family: var(--bm-font) !important;
  font-size: 0.85rem !important;
  text-align: left !important;
}

.single-product .shop_attributes th {
  background: var(--bm-gray-bg) !important;
  color: var(--bm-navy) !important;
  font-weight: 600 !important;
  width: 35% !important;
}

.single-product .shop_attributes td {
  color: var(--bm-text) !important;
}

.single-product .shop_attributes tr:hover th,
.single-product .shop_attributes tr:hover td {
  background: #f0f4fa !important;
}

/* ============================================================
   3. ÄHNLICHE PRODUKTE — Grid 4 Spalten
   ============================================================ */

.single-product .related.products {
  margin-top: 40px !important;
}

.single-product .related.products h2 {
  font-family: var(--bm-font) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--bm-border) !important;
}

.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .related.products ul.products li.product {
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  overflow: visible !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
  padding: 12px !important;
}

.single-product .related.products ul.products li.product:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) !important;
}

/* ============================================================
   4. WARENKORB-SEITE (.woocommerce-cart)
   ============================================================ */

.woocommerce-cart .ast-woocommerce-container,
.woocommerce-cart .woocommerce {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 24px !important;
}

.woocommerce-cart h1.page-title,
.woocommerce-cart .entry-title {
  font-family: var(--bm-font) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  margin-bottom: 24px !important;
}

/* Warenkorb-Formular Layout */
.woocommerce-cart .woocommerce-cart-form {
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  box-shadow: var(--bm-shadow) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Tabelle */
.woocommerce-cart table.cart,
.woocommerce table.cart {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--bm-font) !important;
}

.woocommerce-cart table.cart thead,
.woocommerce table.cart thead {
  background: var(--bm-navy) !important;
}

.woocommerce-cart table.cart thead th,
.woocommerce table.cart thead th {
  color: var(--bm-white) !important;
  font-family: var(--bm-font) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 14px 16px !important;
  text-align: left !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  border: none !important;
}

.woocommerce-cart table.cart td,
.woocommerce table.cart td {
  padding: 16px !important;
  border-bottom: 1px solid var(--bm-border) !important;
  vertical-align: middle !important;
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  color: var(--bm-text) !important;
}

.woocommerce-cart table.cart tr:last-child td,
.woocommerce table.cart tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-cart table.cart tr:hover td,
.woocommerce table.cart tr:hover td {
  background: #fafbfc !important;
}

/* Produkt-Cover im Warenkorb */
.woocommerce-cart table.cart .product-thumbnail img,
.woocommerce table.cart .product-thumbnail img {
  width: 60px !important;
  height: auto !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  display: block !important;
}

/* Produktname im Warenkorb */
.woocommerce-cart table.cart .product-name a,
.woocommerce table.cart .product-name a {
  font-family: var(--bm-font) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--bm-navy) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.woocommerce-cart table.cart .product-name a:hover,
.woocommerce table.cart .product-name a:hover {
  color: var(--bm-red) !important;
}

/* Preis in Warenkorb */
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal,
.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
  color: var(--bm-red) !important;
  font-weight: 700 !important;
  font-family: var(--bm-font) !important;
}

/* Löschen-Button */
.woocommerce-cart table.cart a.remove,
.woocommerce table.cart a.remove {
  color: var(--bm-text-light) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s, background 0.2s !important;
}

.woocommerce-cart table.cart a.remove:hover,
.woocommerce table.cart a.remove:hover {
  color: var(--bm-white) !important;
  background: var(--bm-red) !important;
}

/* Warenkorb-Aktionen (Gutschein + Aktualisieren) */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .actions {
  padding: 16px !important;
}

.woocommerce-cart .coupon input[type="text"] {
  border: 1px solid var(--bm-border) !important;
  border-radius: 6px 0 0 6px !important;
  padding: 10px 14px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.85rem !important;
  height: 42px !important;
}

.woocommerce-cart .coupon .button,
.woocommerce-cart button[name="apply_coupon"] {
  background: var(--bm-navy) !important;
  color: var(--bm-white) !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 10px 18px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  height: 42px !important;
  transition: background 0.2s !important;
}

.woocommerce-cart .coupon .button:hover {
  background: var(--bm-navy-dark) !important;
}

.woocommerce-cart button[name="update_cart"] {
  background: transparent !important;
  color: var(--bm-navy) !important;
  border: 2px solid var(--bm-navy) !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
  float: right !important;
}

.woocommerce-cart button[name="update_cart"]:hover {
  background: var(--bm-navy) !important;
  color: var(--bm-white) !important;
}

/* Warenkorb-Summen Box */
.woocommerce-cart .cart-collaterals {
  margin-top: 24px !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  box-shadow: var(--bm-shadow) !important;
  overflow: hidden !important;
  float: right !important;
  width: 380px !important;
  max-width: 100% !important;
}

.woocommerce-cart .cart_totals h2 {
  background: var(--bm-navy) !important;
  color: var(--bm-white) !important;
  font-family: var(--bm-font) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 16px 20px !important;
  margin: 0 !important;
}

.woocommerce-cart .cart_totals table {
  width: 100% !important;
  border-collapse: collapse !important;
  padding: 0 20px !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  padding: 12px 20px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  border-bottom: 1px solid var(--bm-border) !important;
}

.woocommerce-cart .cart_totals table th {
  color: var(--bm-navy) !important;
  font-weight: 600 !important;
}

.woocommerce-cart .cart_totals table .order-total th,
.woocommerce-cart .cart_totals table .order-total td {
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  color: var(--bm-navy) !important;
}

.woocommerce-cart .cart_totals table .order-total .woocommerce-Price-amount {
  color: var(--bm-red) !important;
  font-size: 1.2rem !important;
}

/* Portofrei in Warenkorb-Summe */
.woocommerce-cart .cart_totals .shipping {
  background: var(--bm-green-bg) !important;
}

.woocommerce-cart .cart_totals .shipping th,
.woocommerce-cart .cart_totals .shipping td {
  color: var(--bm-green) !important;
  font-weight: 600 !important;
}

/* Checkout-Button in Warenkorb-Summe */
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 16px 20px !important;
  background: var(--bm-white) !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button {
  display: block !important;
  width: 100% !important;
  background: var(--bm-red) !important;
  color: var(--bm-white) !important;
  font-family: var(--bm-font) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 14px 24px !important;
  border-radius: var(--bm-radius) !important;
  text-decoration: none !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 4px 12px rgba(200,16,46,0.28) !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart a.checkout-button:hover {
  background: var(--bm-red-dark) !important;
  box-shadow: 0 6px 16px rgba(200,16,46,0.38) !important;
}

/* "Weiter einkaufen" Link */
.woocommerce-cart .return-to-shop a,
.woocommerce-cart a.wc-backward {
  color: var(--bm-navy) !important;
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
  transition: color 0.2s !important;
}

.woocommerce-cart .return-to-shop a::before,
.woocommerce-cart a.wc-backward::before {
  content: "←" !important;
  font-size: 1rem !important;
}

.woocommerce-cart .return-to-shop a:hover,
.woocommerce-cart a.wc-backward:hover {
  color: var(--bm-red) !important;
}

/* ============================================================
   5. CHECKOUT-SEITE (.woocommerce-checkout)
   ============================================================ */

.woocommerce-checkout .ast-woocommerce-container,
.woocommerce-checkout .woocommerce {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 24px !important;
}

.woocommerce-checkout h1.page-title,
.woocommerce-checkout .entry-title {
  font-family: var(--bm-font) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  margin-bottom: 24px !important;
}

/* 2-Spalten Layout */
.woocommerce-checkout #customer_details,
.woocommerce-checkout .col2-set {
  display: grid !important;
  grid-template-columns: 60% 40% !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
}

/* Falls #order_review außerhalb von col2-set liegt */
.woocommerce-checkout form#order_review_wrapper,
.woocommerce-checkout #order_review_heading {
  grid-column: 2 !important;
}

/* Checkout-Formular Container */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

.woocommerce-checkout .col2-set .col-1 {
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  box-shadow: var(--bm-shadow) !important;
  padding: 24px !important;
}

/* Formular Sektionen */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  margin-bottom: 0 !important;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout h3#ship-to-different-address {
  font-family: var(--bm-font) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--bm-navy) !important;
  padding: 0 0 12px 0 !important;
  margin: 0 0 16px 0 !important;
  border-bottom: 2px solid var(--bm-border) !important;
}

/* Form-Felder */
.woocommerce-checkout .form-row label {
  font-family: var(--bm-font) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--bm-navy) !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100% !important;
  border: 1.5px solid var(--bm-border) !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  color: var(--bm-text) !important;
  background: var(--bm-white) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--bm-navy) !important;
  box-shadow: 0 0 0 3px rgba(26,46,82,0.1) !important;
}

.woocommerce-checkout .form-row input.input-text.woocommerce-invalid-required-field,
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text {
  border-color: var(--bm-red) !important;
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1) !important;
}

/* 2er-Reihen Felder */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: calc(50% - 6px) !important;
  display: inline-block !important;
  float: none !important;
  vertical-align: top !important;
}

.woocommerce-checkout .form-row-first {
  margin-right: 12px !important;
}

/* Bestellübersicht Box */
.woocommerce-checkout #order_review_heading {
  font-family: var(--bm-font) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--bm-white) !important;
  background: var(--bm-navy) !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  border-radius: var(--bm-radius) var(--bm-radius) 0 0 !important;
}

.woocommerce-checkout #order_review {
  background: var(--bm-white) !important;
  border-radius: 0 0 var(--bm-radius) var(--bm-radius) !important;
  box-shadow: var(--bm-shadow) !important;
  border-top: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Bestellübersicht Tabelle */
.woocommerce-checkout #order_review table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--bm-font) !important;
}

.woocommerce-checkout #order_review table.shop_table thead th {
  background: var(--bm-navy) !important;
  color: var(--bm-white) !important;
  font-family: var(--bm-font) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.woocommerce-checkout #order_review table.shop_table td,
.woocommerce-checkout #order_review table.shop_table th {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--bm-border) !important;
  font-family: var(--bm-font) !important;
  font-size: 0.85rem !important;
}

.woocommerce-checkout #order_review table.shop_table .cart-subtotal th,
.woocommerce-checkout #order_review table.shop_table .shipping th {
  color: var(--bm-navy) !important;
  font-weight: 600 !important;
  background: transparent !important;
}

.woocommerce-checkout #order_review table.shop_table .order-total th,
.woocommerce-checkout #order_review table.shop_table .order-total td {
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  color: var(--bm-navy) !important;
  background: var(--bm-gray-bg) !important;
}

.woocommerce-checkout #order_review table.shop_table .order-total .woocommerce-Price-amount {
  color: var(--bm-red) !important;
  font-size: 1.15rem !important;
}

/* Zahlungsoptionen */
.woocommerce-checkout #payment {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce-checkout #payment .wc_payment_methods {
  padding: 16px !important;
  background: var(--bm-white) !important;
  border-radius: var(--bm-radius) !important;
  border: 1px solid var(--bm-border) !important;
  list-style: none !important;
  margin: 0 0 16px 0 !important;
}

.woocommerce-checkout #payment .payment_box {
  background: var(--bm-gray-bg) !important;
  border-radius: 0 0 6px 6px !important;
  padding: 12px 16px !important;
  font-family: var(--bm-font) !important;
  font-size: 0.82rem !important;
  color: var(--bm-text-light) !important;
  border: 1px solid var(--bm-border) !important;
  border-top: none !important;
}

/* "Jetzt kaufen" Button */
.woocommerce-checkout #payment #place_order,
.woocommerce-checkout button#place_order {
  display: block !important;
  width: 100% !important;
  background: var(--bm-red) !important;
  color: var(--bm-white) !important;
  font-family: var(--bm-font) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  padding: 18px 24px !important;
  border: none !important;
  border-radius: var(--bm-radius) !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s !important;
  box-shadow: 0 4px 14px rgba(200,16,46,0.3) !important;
  letter-spacing: 0.03em !important;
  margin-top: 8px !important;
}

.woocommerce-checkout #payment #place_order:hover,
.woocommerce-checkout button#place_order:hover {
  background: var(--bm-red-dark) !important;
  box-shadow: 0 6px 18px rgba(200,16,46,0.4) !important;
  transform: translateY(-1px) !important;
}

.woocommerce-checkout #payment #place_order:active {
  transform: translateY(0) !important;
}

/* Trust-Bar im Checkout */
.woocommerce-checkout #payment .place-order::after {
  content: "🔒 SSL-verschlüsselt · 📦 Portofrei · ↩ 30 Tage Rückgabe";
  display: block !important;
  text-align: center !important;
  font-family: var(--bm-font) !important;
  font-size: 0.72rem !important;
  color: var(--bm-text-light) !important;
  padding-top: 10px !important;
}

/* ============================================================
   6. MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* --- Produktdetail --- */
  .single-product .ast-woocommerce-container {
    padding: 12px !important;
  }

  .single-product div.product {
    flex-direction: column !important;
    padding: 16px !important;
    gap: 20px !important;
  }

  .single-product .woocommerce-product-gallery {
    flex: none !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    width: 200px !important;
  }

  .single-product div.product .summary {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .single-product .product_title {
    font-size: 1.25rem !important;
  }

  .single-product .price {
    font-size: 1.55rem !important;
  }

  .single-product .price::after {
    display: block !important;
    margin: 6px 0 0 0 !important;
    font-size: 0.72rem !important;
  }

  .single-product .woocommerce-tabs ul.tabs {
    padding: 0 12px !important;
    overflow-x: auto !important;
    gap: 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .single-product .woocommerce-tabs ul.tabs li a {
    padding: 12px 14px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  .single-product .woocommerce-tabs .panel {
    padding: 16px !important;
  }

  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* --- Warenkorb --- */
  .woocommerce-cart .ast-woocommerce-container,
  .woocommerce-cart .woocommerce {
    padding: 12px !important;
  }

  .woocommerce-cart table.cart thead {
    display: none !important;
  }

  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td {
    display: block !important;
    width: 100% !important;
  }

  .woocommerce-cart table.cart tr {
    border-bottom: 2px solid var(--bm-border) !important;
    padding: 12px 0 !important;
    position: relative !important;
  }

  .woocommerce-cart table.cart td {
    padding: 4px 12px !important;
    border-bottom: none !important;
  }

  .woocommerce-cart table.cart td::before {
    content: attr(data-title) ": " !important;
    font-weight: 600 !important;
    color: var(--bm-navy) !important;
    font-size: 0.75rem !important;
    display: inline !important;
  }

  .woocommerce-cart table.cart .product-thumbnail {
    text-align: center !important;
    padding: 8px 12px !important;
  }

  .woocommerce-cart table.cart .product-thumbnail img {
    width: 80px !important;
    margin: 0 auto !important;
  }

  .woocommerce-cart .cart_totals {
    float: none !important;
    width: 100% !important;
    margin-top: 16px !important;
  }

  /* --- Checkout --- */
  .woocommerce-checkout .ast-woocommerce-container,
  .woocommerce-checkout .woocommerce {
    padding: 12px !important;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100% !important;
    display: block !important;
    margin-right: 0 !important;
  }

  .woocommerce-checkout #order_review_heading {
    font-size: 0.95rem !important;
    padding: 14px 16px !important;
  }

  .woocommerce-checkout #payment #place_order,
  .woocommerce-checkout button#place_order {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }
}

/* ============================================================
   7. TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) and (min-width: 769px) {
  .single-product .related.products ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout .col2-set {
    grid-template-columns: 58% 42% !important;
  }
}

/* ============================================================
   8. NOTICES & ALERTS
   ============================================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: var(--bm-font) !important;
  font-size: 0.88rem !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
}

.woocommerce-message {
  background: var(--bm-green-bg) !important;
  border-color: #a5d6a7 !important;
  color: var(--bm-green) !important;
}

.woocommerce-info {
  background: #e3f2fd !important;
  border-color: #90caf9 !important;
  color: #1565c0 !important;
}

.woocommerce-error {
  background: #ffebee !important;
  border-color: #ef9a9a !important;
  color: #c62828 !important;
}

/* ============================================================
   9. BREADCRUMBS — Navy/Rot-Stil (t=43)
   ============================================================ */

.woocommerce-breadcrumb,
.yoast-breadcrumb {
    font-size: 12px !important;
    color: #666 !important;
    margin-bottom: 16px !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
}

.woocommerce-breadcrumb a,
.yoast-breadcrumb a {
    color: #1a2e52 !important;
    text-decoration: none !important;
}

.woocommerce-breadcrumb a:hover,
.yoast-breadcrumb a:hover {
    color: #c8102e !important;
}

/* ============================================================
   10. RELATED PRODUCTS — Titelstil angepasst
   ============================================================ */

.single-product .related.products h2 {
    border-bottom: 2px solid #c8102e !important;
    color: #1a2e52 !important;
    font-size: 18px !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
}
