/*
 * werkzeug-overrides.css
 * Überschreibt veraltete Furniture-CSS-Klassen und passt die globalen Farben an.
 * Das Farbschema von Werkzeugmarkt Pro: Dunkelblau #1B2A4A + Orange #F07200
 */

/* ============================================================
   GLOBALE FARBANPASSUNGEN (überschreibt theme.json wp-presets)
   ============================================================ */

/* Accent-Farbe = Dunkelblau (war #3D2B1F) */
.has-accent-color { color: #1B2A4A !important; }
.has-accent-background-color { background-color: #1B2A4A !important; }

/* Secaccent = Orange (war #C8A97E Beige) */
.has-secaccent-color { color: #F07200 !important; }
.has-secaccent-background-color { background-color: #F07200 !important; }

/* Thirdaccent = Grautext (war #7A5C45) */
.has-thirdaccent-color { color: #555f6e !important; }
.has-thirdaccent-background-color { background-color: #555f6e !important; }

/* Fourthaccent = Orange dark (war #8B6343) */
.has-fourthaccent-color { color: #cc5f00 !important; }
.has-fourthaccent-background-color { background-color: #cc5f00 !important; }

/* Fifthaccent = Hellgrau (war #F5F0EB) */
.has-fifthaccent-color { color: #F4F5F7 !important; }
.has-fifthaccent-background-color { background-color: #F4F5F7 !important; }

/* Tertiary (footer bottom) = Sehr dunkles Blau (war #2C1A0E) */
.has-tertiary-background-color { background-color: #111e36 !important; }
.has-tertiary-color { color: #111e36 !important; }

/* ============================================================
   WooCommerce Anpassungen
   ============================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: #F07200 !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: #cc5f00 !important;
  color: #fff !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: #1B2A4A !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: #111e36 !important;
}

/* Produktpreise */
.woocommerce .price, .woocommerce .price .amount {
  color: #F07200 !important;
  font-weight: 700 !important;
}
.woocommerce del .amount {
  color: #999 !important;
  font-weight: 400 !important;
}

/* Sale badge */
.woocommerce .onsale {
  background: #F07200 !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: #555f6e;
  padding: 10px 0;
}
.woocommerce .woocommerce-breadcrumb a { color: #1B2A4A; }
.woocommerce .woocommerce-breadcrumb a:hover { color: #F07200; }

/* ============================================================
   PRODUKTKARTEN (wp-block-columns in Kategorien-Layout)
   ============================================================ */
.wz-cat-card-col:hover {
  cursor: pointer;
}

/* ============================================================
   SUCHE - Suchergebnisseite
   ============================================================ */
.wp-block-search__button {
  background-color: #F07200 !important;
  color: #fff !important;
  border-radius: 4px !important;
}
.wp-block-search__button:hover {
  background-color: #cc5f00 !important;
}

/* ============================================================
   NEUESTE PRODUKTE — Homepage woocommerce/product-collection
   ============================================================ */

/*
 * product-collection 真实 HTML 结构：
 * div.wp-block-woocommerce-product-collection.wz-products-woo-grid
 *   └── ul.wp-block-post-template  ← 网格容器
 *         └── li.wp-block-post     ← 每个商品卡片
 */

/* 网格容器：product-collection 内的 post-template */
.wz-products-woo-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 单个商品卡片 */
.wz-products-woo-grid .wp-block-post-template li.wp-block-post {
  background: #ffffff !important;
  border: 1px solid #e0e3e8 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.wz-products-woo-grid .wp-block-post-template li.wp-block-post:hover {
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.1) !important;
  transform: translateY(-3px) !important;
}

/* Produktbild */
.wz-products-woo-grid .wp-block-post-template li.wp-block-post img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Produkttitel */
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wp-block-post-title,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post h2,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post h3 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1B2A4A !important;
  line-height: 1.35 !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
}

.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wp-block-post-title a:hover {
  color: #F07200 !important;
}

/* Preis */
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wp-block-woocommerce-product-price,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .price,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wc-block-components-product-price {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #F07200 !important;
  padding: 4px 14px 8px !important;
  margin: 0 !important;
}

.wz-products-woo-grid .wp-block-post-template li.wp-block-post del .amount,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post del {
  font-size: 12px !important;
  color: #aab0ba !important;
  font-weight: 400 !important;
}

/* Warenkorb-Button */
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wp-block-woocommerce-product-button .wp-block-button__link,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .add_to_cart_button,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post button {
  display: block !important;
  width: calc(100% - 28px) !important;
  margin: auto 14px 14px !important;
  padding: 9px 14px !important;
  background: #F07200 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  box-sizing: border-box !important;
}

.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wp-block-woocommerce-product-button .wp-block-button__link:hover,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .add_to_cart_button:hover,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post button:hover {
  background: #cc5f00 !important;
  color: #fff !important;
}

/* Sale-Badge */
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .wc-block-components-product-sale-badge,
.wz-products-woo-grid .wp-block-post-template li.wp-block-post .onsale {
  background: #F07200 !important;
  color: #fff !important;
  border-radius: 2px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  min-height: unset !important;
  min-width: unset !important;
  line-height: 1.4 !important;
}

/* Responsive: 4 Spalten bei 1200px, 3 bei 900px, 2 bei 600px */
@media (max-width: 1200px) {
  .wz-products-woo-grid .wp-block-post-template {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .wz-products-woo-grid .wp-block-post-template {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .wz-products-woo-grid .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination a {
  border: 1px solid #e0e3e8;
  border-radius: 4px;
  padding: 6px 12px;
  color: #1B2A4A;
  transition: all 0.2s;
}
.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination a:hover,
.wp-block-query-pagination .current {
  background: #F07200;
  border-color: #F07200;
  color: #fff;
}

/* ============================================================
   LEGACY: Furniture-Klassen deaktivieren/überschreiben
   ============================================================ */
.furniture-homepage { margin: 0; padding: 0; }
.furniture-hero-section { display: none !important; }
.furniture-promo-bar { display: none !important; }
.furniture-categories-section { display: none !important; }
.furniture-why-section { display: none !important; }
.furniture-blog-section { display: none !important; }
.furniture-footer-service-bar { display: none !important; }
.furniture-footer-main { display: none !important; }
.furniture-footer-bottom { display: none !important; }
.furniture-header-wrap { display: none !important; }
