/*
 * 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 Produktraster
   ============================================================ */

/* Äußerer Wrapper der wz-products-woo-grid */
.wz-products-woo-grid,
.wz-products-woo-grid ul.products,
.wz-blog-section ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Einzelne Produktkarte */
.wz-products-woo-grid ul.products li.product,
.wz-products-woo-grid li.product,
.wz-blog-section ul.products li.product {
  background: #ffffff !important;
  border: 1px solid #e0e3e8 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
}

.wz-products-woo-grid ul.products li.product:hover,
.wz-products-woo-grid li.product:hover,
.wz-blog-section ul.products li.product:hover {
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.1) !important;
  transform: translateY(-3px) !important;
}

/* Produktbild */
.wz-products-woo-grid ul.products li.product a img,
.wz-products-woo-grid li.product a img,
.wz-blog-section ul.products li.product a img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

/* Produkttitel */
.wz-products-woo-grid ul.products li.product .woocommerce-loop-product__title,
.wz-blog-section ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1B2A4A !important;
  line-height: 1.35 !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
  flex: 1;
}

.wz-products-woo-grid ul.products li.product .woocommerce-loop-product__title:hover,
.wz-blog-section ul.products li.product .woocommerce-loop-product__title:hover {
  color: #F07200 !important;
}

/* Preis */
.wz-products-woo-grid ul.products li.product .price,
.wz-blog-section ul.products li.product .price {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #F07200 !important;
  padding: 2px 14px 8px !important;
  margin: 0 !important;
}

.wz-products-woo-grid ul.products li.product .price del,
.wz-blog-section ul.products li.product .price del {
  font-size: 12px !important;
  color: #aab0ba !important;
  font-weight: 400 !important;
  margin-right: 4px !important;
}

/* "In den Warenkorb" Button */
.wz-products-woo-grid ul.products li.product .button,
.wz-blog-section ul.products li.product .button {
  display: block !important;
  width: calc(100% - 28px) !important;
  margin: 0 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;
  letter-spacing: 0.3px !important;
  box-sizing: border-box !important;
}

.wz-products-woo-grid ul.products li.product .button:hover,
.wz-blog-section ul.products li.product .button:hover {
  background: #cc5f00 !important;
  color: #fff !important;
}

/* Sale-Badge */
.wz-products-woo-grid ul.products li.product .onsale,
.wz-blog-section ul.products li.product .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;
}

/* Bewertungssterne */
.wz-products-woo-grid ul.products li.product .star-rating,
.wz-blog-section ul.products li.product .star-rating {
  color: #F07200 !important;
  font-size: 12px !important;
  margin: 0 14px 4px !important;
}

/* Produkt-Titel im neuen product-collection Block */
.wz-products-woo-grid li.product h2,
.wz-products-woo-grid li.product h3,
.wz-products-woo-grid li.product .wp-block-post-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1B2A4A !important;
  line-height: 1.35 !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
  display: block !important;
}

.wz-products-woo-grid li.product h2:hover,
.wz-products-woo-grid li.product h3:hover,
.wz-products-woo-grid li.product .wp-block-post-title:hover {
  color: #F07200 !important;
}

/* Preis im neuen product-collection Block */
.wz-products-woo-grid li.product .wc-block-components-product-price__value,
.wz-products-woo-grid li.product .price {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #F07200 !important;
  padding: 2px 14px 8px !important;
  margin: 0 !important;
}

/* Button im neuen product-collection Block */
.wz-products-woo-grid li.product .wp-block-button__link,
.wz-products-woo-grid li.product button,
.wz-products-woo-grid li.product .add_to_cart_button {
  display: block !important;
  width: calc(100% - 28px) !important;
  margin: 0 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;
}

.wz-products-woo-grid li.product .wp-block-button__link:hover,
.wz-products-woo-grid li.product button:hover,
.wz-products-woo-grid li.product .add_to_cart_button:hover {
  background: #cc5f00 !important;
  color: #fff !important;
}

/* Produktbild im neuen Block */
.wz-products-woo-grid li.product img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Wrapper für product-collection neue Struktur */
.wz-products-woo-grid .wp-block-woocommerce-product-collection {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Responsive: 4 Spalten bei 1200px, 3 bei 900px, 2 bei 600px */
@media (max-width: 1200px) {
  .wz-products-woo-grid ul.products,
  .wz-products-woo-grid,
  .wz-blog-section ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .wz-products-woo-grid ul.products,
  .wz-products-woo-grid,
  .wz-blog-section ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .wz-products-woo-grid ul.products,
  .wz-products-woo-grid,
  .wz-blog-section ul.products {
    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; }
