
/* =========================================================
   PRODUKT-GRID CLEANUP – FINAL
   Gilt für:
   - Kategorien
   - Produktlinien
   - Shop
   - WooCommerce Blocks
   - Astra
   - German Market
   ========================================================= */

/* ---------------------------------------------------------
   1. ADD-TO-CART / OPTIONS BUTTONS IM GRID AUS
--------------------------------------------------------- */

/* Klassisches Woo Loop */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_simple,
.woocommerce ul.products li.product a.product_type_variable,
.woocommerce ul.products li.product form.cart {
    display: none !important;
}

/* WooCommerce Blocks */
.wc-block-grid__product-add-to-cart,
.wc-block-components-product-button,
.wc-block-components-product-button__button {
    display: none !important;
}

/* Astra spezifisch */
.ast-woo-product-category .button,
.ast-woo-product-category form.cart {
    display: none !important;
}

/* ---------------------------------------------------------
   2. SALE / ANGEBOT / %-BADGES KOMPLETT AUS
--------------------------------------------------------- */

/* WooCommerce Standard */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
    display: none !important;
}

/* Astra Sale Badge */
.ast-onsale-badge,
.ast-woo-onsale {
    display: none !important;
}

/* Woo Blocks Sale */
.wc-block-grid__product-onsale {
    display: none !important;
}

/* German Market Badges */
.german-market-percent,
.gm-sale-percent,
.gm-sale-badge,
.wgm-sale-badge {
    display: none !important;
}

/* ABSOLUTE FALLBACK – alles was nach Rabatt aussieht */
li.product [class*="sale"],
li.product [class*="onsale"],
li.product [class*="percent"],
li.product [class*="rabatt"],
li.product [class*="discount"] {
    display: none !important;
}

/* ---------------------------------------------------------
   3. GRID OPTIK – NICHT ÜBERDIMENSIONIERT
--------------------------------------------------------- */

/* Produktbild zentrieren & begrenzen */
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
    max-width: 220px;
    margin: 0 auto;
    display: block;
    height: auto;
}

/* Produktkarten kompakter */
.woocommerce ul.products li.product {
    padding: 10px 5px;
    text-align: center;
}

/* Titel lesbar (Google Mobile OK) */
.woocommerce ul.products li.product h2,
.wc-block-grid__product-title {
    font-size: 16px;
    line-height: 1.4;
}

/* Preis gut lesbar */
.woocommerce ul.products li.product .price {
    font-size: 15px;
}

/* Grundpreis / Zusatzinfos kleiner */
.woocommerce ul.products li.product .price small,
.woocommerce ul.products li.product .price span {
    font-size: 13px;
}

/* ---------------------------------------------------------
   4. PRODUKTLINIEN EXTRA KOMPAKT
--------------------------------------------------------- */
body[class*="produktlinie"] 
.woocommerce ul.products li.product img {
    max-width: 200px;
}
/* =========================================================
   FIX: PRODUKTBILDER IM GRID SAUBER ZENTRIEREN
   (Kategorie, Produktlinien, Shop, Woo Blocks, Astra)
   ========================================================= */

/* Produkt-Wrapper zentrieren */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    text-align: center;
}

/* Bild selbst zentrieren – Astra & Woo */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Falls Astra figure/img Wrapper nutzt */
.woocommerce ul.products li.product figure,
.wc-block-grid__product-image {
    display: flex;
    justify-content: center;
}
/* =========================================================
   PREMIUM PRODUKT-GRID – RUHIG, HOCHWERTIG, NICHT LANGWEILIG
   ========================================================= */

/* 1. Produktkarte als ruhige Fläche */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    background: #fafafa;
    padding: 26px 18px 30px;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* 2. Hover-Effekt (Editorial, kein Shop-Geschrei) */
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.08);
}

/* 3. Bild größer & ruhiger */
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
    max-width: 240px;
    margin: 0 auto 18px;
}

/* 4. Kategorie dezent */
.woocommerce ul.products li.product .posted_in,
.wc-block-grid__product-category {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9a9a9a;
    margin-bottom: 6px;
}

/* 5. Produkttitel stärker, aber elegant */
.woocommerce ul.products li.product h2,
.wc-block-grid__product-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 6. Preis klar & hochwertig */
.woocommerce ul.products li.product .price {
    font-size: 16px;
    font-weight: 500;
}

/* 7. Grundpreis & Versandinfo kleiner */
.woocommerce ul.products li.product small,
.woocommerce ul.products li.product .unit-price,
.woocommerce ul.products li.product .shipping-costs {
    font-size: 13px;
    color: #777;
}

/* WooCommerce Produktseite – nu-beauty Optimierung */

/* Produktbereich: kein zusätzlicher Abstand nach oben, Spaltenabstand bleibt */
body.single-product div.product {
  margin-top: 0 !important;
  column-gap: 35px !important;
}

/* Rechte Produktspalte als dezente Premium-Fläche */
body.single-product .summary.entry-summary {
  background: #fff;
  padding: 28px 32px !important;
  max-width: 620px !important;
  margin-left: 0 !important;
  padding-left: 32px !important;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

/* Produkttitel */
body.single-product h1,
body.single-product h1.product_title,
body.single-product .product_title,
body.single-product div.product .product_title {
  font-size: 25px !important;
  line-height: 1.15 !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.3px !important;
}

/* Preis */
body.single-product div.product p.price,
body.single-product div.product span.price,
body.single-product .summary .price,
body.single-product .price {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  background: #f5fbfb;
  padding: 12px 16px !important;
  border-radius: 14px;
  display: inline-block;
}

/* Alter Preis */
body.single-product div.product p.price del,
body.single-product div.product span.price del,
body.single-product .price del {
  font-size: 17px !important;
  opacity: 0.45 !important;
}

/* Angebotspreis */
body.single-product div.product p.price ins,
body.single-product div.product span.price ins,
body.single-product .price ins {
  text-decoration: none !important;
}

/* Kaufen-Button */
body.single-product .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button {
  width: 100% !important;
  max-width: 360px !important;
  border-radius: 999px !important;
  padding: 13px 28px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  background: linear-gradient(90deg, #38bcc4, #89d8cf) !important;
  box-shadow: 0 10px 22px rgba(56,188,196,0.20);
  transition: all 0.2s ease-in-out;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product button.single_add_to_cart_button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(56,188,196,0.26);
}

/* Andere Buttons nur abrunden */
body.single-product button,
body.single-product .button {
  border-radius: 999px !important;
}

/* Lupe im Produktbild ausblenden */
body.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Produktbild-Spalte */
body.single-product .woocommerce-product-gallery {
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* Produktbilder */
body.single-product .woocommerce-product-gallery img {
  border-radius: 14px;
}

/* Galerie-Vorschaubilder */
body.single-product .flex-control-thumbs li img {
  border-radius: 10px;
}

/* Varianten-/Auswahlbereich */
body.single-product form.cart {
  padding: 18px 22px !important;
  border-radius: 16px !important;
  margin-bottom: 18px !important;
}

body.single-product form.cart table,
body.single-product form.cart .variations {
  margin-bottom: 10px !important;
}

body.single-product form.cart select {
  padding: 8px 14px !important;
  min-height: 38px !important;
}

/* Kurzbeschreibung */
body.single-product .woocommerce-product-details__short-description {
  margin-top: 22px !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  background: #f5fbfb;
  border-left: 4px solid #38bcc4;
  padding: 18px 20px !important;
  border-radius: 14px;
}

/* Vorteile innerhalb der Kurzbeschreibung */
body.single-product .woocommerce-product-details__short-description ul {
  background: #fff;
  border: 1px solid #d7e5e6;
  border-radius: 14px;
  padding: 14px 18px !important;
  margin-top: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.035);
}

body.single-product .woocommerce-product-details__short-description ul li {
  margin-bottom: 5px !important;
  line-height: 1.55 !important;
}

body.single-product .woocommerce-product-details__short-description ul li:last-child {
  margin-bottom: 0 !important;
}

/* Meta-Daten unten dezenter */
body.single-product .product_meta {
  font-size: 14px !important;
  line-height: 1.8 !important;
  opacity: 0.75 !important;
  border-top: 1px solid #eee;
  padding-top: 14px;
  margin-top: 18px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  body.single-product div.product {
    margin-top: 0 !important;
    column-gap: 0 !important;
  }

  body.single-product .summary.entry-summary {
    padding: 22px 18px !important;
    max-width: 100% !important;
    border-radius: 18px;
  }

  body.single-product h1,
  body.single-product h1.product_title,
  body.single-product .product_title,
  body.single-product div.product .product_title {
    font-size: 23px !important;
    line-height: 1.2 !important;
  }

  body.single-product div.product p.price,
  body.single-product div.product span.price,
  body.single-product .summary .price,
  body.single-product .price {
    font-size: 20px !important;
  }

  body.single-product .single_add_to_cart_button,
  body.single-product button.single_add_to_cart_button {
    max-width: 100% !important;
  }

  body.single-product form.cart {
    padding: 16px !important;
  }

  body.single-product .woocommerce-product-details__short-description {
    font-size: 16px !important;
    padding: 16px !important;
  }
}
/* Mobile Sicherheit für Auswahlfelder */
@media (max-width: 768px) {
  body.single-product form.cart select,
  body.single-product form.cart input,
  body.single-product form.cart .variations select {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.single-product .summary.entry-summary {
    box-sizing: border-box !important;
  }

  body.single-product .woocommerce-product-gallery img {
    max-width: 100% !important;
    height: auto !important;
  }
}
/* Flash-Sale Box auf Produktseiten */
body.single-product .nb-flash-sale-box {
  background: linear-gradient(135deg, #f5fbfb, #ffffff);
  border: 1px solid #d7e5e6;
  border-left: 5px solid #38bcc4;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0 20px 0;
  box-shadow: 0 8px 24px rgba(56,188,196,0.08);
}

body.single-product .nb-flash-sale-badge {
  display: inline-block;
  background: #38bcc4;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

body.single-product .nb-flash-sale-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #222;
}

body.single-product .nb-flash-sale-text {
  font-size: 15px;
  line-height: 1.55;
  color: #333;
  margin-bottom: 10px;
}

body.single-product .nb-flash-sale-code {
  background: #fff;
  border: 1px dashed #38bcc4;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
}

body.single-product .nb-flash-sale-code strong {
  color: #2ca8b0;
  letter-spacing: 1px;
}

/* Mobil */
@media (max-width: 768px) {
  body.single-product .nb-flash-sale-box {
    padding: 15px;
    margin: 16px 0;
  }

  body.single-product .nb-flash-sale-title {
    font-size: 17px;
  }

  body.single-product .nb-flash-sale-text,
  body.single-product .nb-flash-sale-code {
    font-size: 14px;
  }
}
