/* ================================================================
   FANWELT – WooCommerce Produktkarten Styling
   Dark Luxury Hybrid: Ivory BG, Gold-Preis, Gold-Hover-Border
   Zum Einfügen in: WP Customizer → Zusätzliches CSS
   ================================================================ */

/* ── CSS Custom Properties ── */
:root {
  --fw-dark:         #141210;
  --fw-dark2:        #1E1A16;
  --fw-dark3:        #252018;
  --fw-ivory:        #F7F3EE;
  --fw-ivory2:       #EDE7DE;
  --fw-card:         #FFFFFF;
  --fw-border-light: #DDD5C8;
  --fw-text-dark:    #1A1410;
  --fw-text-dark2:   #5C5048;
  --fw-text-dark3:   #9B9080;
  --fw-gold:         #C8A035;
  --fw-gold-hover:   #E0B840;
  --fw-gold-light:   #F5EDD0;
  --fw-rose:         #C4847A;
}

/* ── Produktkarten-Container (WooCommerce Shortcode / Shop-Seite) ── */
.woocommerce ul.products li.product,
.wc-block-grid__product {
  background: #ffffff !important;
  border-radius: 12px;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  padding: 0 !important;
}

.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ── Produktbild ── */
.woocommerce ul.products li.product a img,
.wc-block-grid__product .wc-block-grid__product-image img {
  border-radius: 0;
  margin: 0 !important;
  padding: 16px;
  object-fit: contain !important;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.woocommerce ul.products li.product:hover a img,
.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Bild-Wrapper: Hintergrundfarbe + Shine-Sweep */
.woocommerce ul.products li.product .ct-media-container {
  overflow: hidden;
  display: block;
  background: #F5E1B9 !important;
  border-radius: 8px 8px 0 0;
  position: relative;
}

/* Shine-Sweep Effekt */
.woocommerce ul.products li.product .ct-media-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  z-index: 3;
  pointer-events: none;
}
.woocommerce ul.products li.product:hover .ct-media-container::after {
  animation: fwShineSweep 0.6s ease forwards;
}
@keyframes fwShineSweep {
  from { left: -100%; }
  to { left: 150%; }
}

/* ── Produktname ── */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product .wc-block-grid__product-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--fw-text-dark);
  line-height: 1.35;
  padding: 8px 12px 4px;
  margin: 0;
  text-align: center;
}

/* ── Preis → Gold ── */
.woocommerce ul.products li.product .price,
.wc-block-grid__product .wc-block-grid__product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fw-gold) !important;
  padding: 0 12px 4px;
  text-align: center;
}

.woocommerce ul.products li.product .price ins {
  color: var(--fw-gold);
  text-decoration: none;
  font-weight: 700;
}

.woocommerce ul.products li.product .price del {
  color: var(--fw-text-dark3);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}

/* ── In-den-Warenkorb-Button ── */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.wc-block-grid__product .wp-block-button__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--fw-dark) !important;
  color: #fff !important;
  border: none;
  border-radius: 2px;
  padding: 10px 16px;
  margin: 0 16px 16px;
  display: block;
  text-align: center;
  transition: background 0.2s ease;
  width: calc(100% - 32px);
  box-sizing: border-box;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.wc-block-grid__product .wp-block-button__link:hover {
  background: var(--fw-gold) !important;
  color: var(--fw-dark) !important;
}

/* ── Sale-Badge ── */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--fw-gold) !important;
  color: var(--fw-dark) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 10px;
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
  z-index: 4;
}

/* ── Star-Rating ── */
.woocommerce ul.products li.product .star-rating {
  color: var(--fw-gold);
  margin: 0 16px 4px;
  font-size: 12px;
}

/* ── Blocksy-spezifische Selektoren ── */

/* Blocksy Karten-Wrapper */
[data-products] .product,
.ct-woo-card-gallery {
  border-radius: 12px;
}

/* Blocksy Card-Actions (Quick-View etc.) */
.ct-woo-card-extra .ct-open-quick-view,
.ct-woo-card-extra button {
  background: var(--fw-dark) !important;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.ct-woo-card-extra .ct-open-quick-view:hover,
.ct-woo-card-extra button:hover {
  background: var(--fw-gold) !important;
}

/* ── Germanized doppelte MwSt ausblenden (nur .tax-info bleibt) ── */
.woocommerce ul.products li.product .wc-gzd-additional-info,
.woocommerce ul.products li.product p.wc-gzd-additional-info {
  display: none !important;
}

/* ── Kategorie-Label (CDS etc.) auf Karten ausblenden ── */
.woocommerce ul.products li.product .entry-meta {
  display: none !important;
}

/* ── Mobile: 2 Spalten, kompakteres Padding ── */
@media (max-width: 768px) {
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
    padding: 10px 12px 4px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 14px;
    padding: 0 12px 4px;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .add_to_cart_button {
    font-size: 10px;
    padding: 8px 12px;
    margin: 0 12px 12px;
    width: calc(100% - 24px);
  }
}
