/* Quattro Design · the product ground (1.9.8, 26.10). Client: "רקע אחיד למוצרים שהוא לא לבן"; Orel chose A on
   qa/compare-2610 (light grey #E9E9E7). One ground behind every product picture: card frame, product page gallery and
   thumbnails, colour pictures, quick-buy layers, cart thumbnails, the home displays. A photo shot on white melts into
   the ground (multiply); a cutout keeps floating on it. Loaded last, site wide; the gallery rules beat pdp.css, which
   loads after this file, with !important on the ground only. */

:root { --qc-product-bg: #E9E9E7; }

/* ---------- Card ---------- */
html body .wd-product .product-element-top { background-color: var(--qc-product-bg); }
html body .wd-product .product-image-link img:not(.qc-cutout) { mix-blend-mode: multiply; }
@media (hover: hover) and (pointer: fine) {
	html body .wd-product .qc-sizes { background: linear-gradient(to top, var(--qc-product-bg) 55%, rgba(233, 233, 231, 0)); }
}
@media (hover: hover) and (pointer: fine) {
	html body .wd-product .qc-qb--colors { background: linear-gradient(to top, var(--qc-product-bg) 80%, rgba(233, 233, 231, 0)); }
}
@media not all and (hover: hover) and (pointer: fine) {
	html body .wd-product .qc-qb { background-color: var(--qc-product-bg); }
}

/* ---------- Product page ---------- */
html body.single-product .woocommerce-product-gallery .wd-carousel-item,
html body.single-product .woocommerce-product-gallery__image,
html body.single-product .wd-gallery-thumb .wd-carousel-item { background-color: var(--qc-product-bg) !important; }
html body.single-product .woocommerce-product-gallery__image img:not([src*="qc-cutout"]),
html body.single-product .wd-gallery-thumb .wd-carousel-item img:not([src*="qc-cutout"]) { mix-blend-mode: multiply; }
html body.single-product .summary-inner .variable-item:has(.qc-swatch-pic) { background-color: var(--qc-product-bg) !important; }
html body.single-product .summary-inner .variable-item .qc-swatch-pic:not([src*="qc-cutout"]) { mix-blend-mode: multiply; }

/* ---------- Cart, mini cart ---------- */
html body .woocommerce-cart-form .product-thumbnail img,
html body .cart-widget-side .product_list_widget img,
html body .widget_shopping_cart .product_list_widget img { background-color: var(--qc-product-bg); }

/* 1.9.23 (17.11, "תראה את הריחוף בעמוד מוצר"): WoodMart's hover zoom appends a second, full size picture (.zoomImg) on top of the
   gallery picture. It matched the multiply rule above, so the two pictures multiplied each other and the photo went almost black.
   Now the figure blends into the ground as one group and the zoom picture simply covers the still one. A cutout has a transparent
   ground, so the still shoe hides while the zoomed one is shown. */
html body.single-product .woocommerce-product-gallery__image img.zoomImg:not(#qc) { mix-blend-mode: normal; }
html body.single-product .woocommerce-product-gallery__image:has(.zoomImg):not(:has(img[src*="qc-cutout"])) { mix-blend-mode: multiply; background-color: transparent !important; }
html body.single-product .woocommerce-product-gallery__image:has(.zoomImg[style*="opacity: 1"]):has(img[src*="qc-cutout"]) > a img { opacity: 0; }
