/*
 * Lemaros - stage 5: site-wide (Lemaros Bridge release asama-5-site-v3).
 * Source: deployment-packages/lemaros-production-v1/.../css/asama-5-site-geneli.css.
 * Home page brand strip 70fdf02 (wd_marquee) confirmed on live page 260 on 2026-11-16.
 * The label markup (.lemaros-sale-pct / .lemaros-sale-word) comes from the "Lemaros Ürün Sayfası"
 * plugin 1.2.0. Owner revisions 2026-11-16: product card image radius 11px; sale label "%22" over
 * "İndirim", centred, black text on white in a 2px black frame, same on cards and product pages.
 * v3: "İndirim" line 13px (was 11px); the percentage stays 14px.
 */

/* 5.9 Discount label: top right of the product image, on every listing. */
.product-labels {
	inset-inline-start: auto !important;
	inset-inline-end: 10px;
	top: 10px;
	align-items: flex-end;
}

.single-product .woocommerce-product-gallery .product-labels {
	inset-inline-end: 16px;
	top: 16px;
}

.product-labels .product-label.onsale {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 5px 9px;
	border: 2px solid #000;
	border-radius: 4px;
	background-color: #fff;
	color: #000;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
}

/* The product page gallery label has a fixed WoodMart size; same frame as on the cards. */
.single-product .woocommerce-product-gallery .product-labels .product-label.onsale {
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
}

.product-label.onsale .lemaros-sale-pct {
	display: block;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.product-label.onsale .lemaros-sale-word {
	display: block;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
}

/* §9.2 Product image areas on every listing: grey, rounded, ~2 mm gaps, nothing squashed. */
.wd-product .wd-product-thumb {
	overflow: hidden;
	border-radius: 11px !important; /* tiled cards square the bottom corners otherwise */
	background-color: #f5f4f2;
}

.wd-product .wd-product-thumb img {
	mix-blend-mode: multiply;
	object-fit: contain;
}

/* Same image box ratio for every product (images have different ratios). */
.wd-product .wd-product-thumb .wd-product-img-link > img {
	width: 100%;
	aspect-ratio: 5 / 7;
	object-fit: contain;
}

.wd-products.products-bordered-grid {
	--wd-prods-brd: 0 solid transparent;
	--wd-prods-brd-top: 0 solid transparent;
}

.wd-products.products-bordered-grid.elements-grid,
.wd-products.wd-grid-g {
	gap: 8px !important;
	border: 0;
}

.wd-products.products-bordered-grid .wd-carousel-inner {
	border: 0;
}

.wd-products-element .wd-carousel,
.wd-products.wd-carousel-container .wd-carousel {
	--wd-gap-lg: 8px !important;
	--wd-gap-md: 8px !important;
	--wd-gap-sm: 8px !important;
	-webkit-mask-image: none;
	mask-image: none;
}

.wd-products.products-bordered-grid .wd-carousel {
	margin-inline: -4px;
}

.wd-products.products-bordered-grid .wd-carousel-item {
	padding-inline: 4px;
	border-inline-end: 0;
}

.wd-products .wd-product.wd-hover-tiled .wd-product-wrapper {
	box-shadow: none;
}

/* §4.4 Sale label: same place (top right of the image) on every product image. */
.wd-product .wd-product-thumb {
	position: relative;
}

.wd-product .wd-product-thumb > .product-labels {
	position: absolute;
	z-index: 3;
	top: 10px;
	inset-inline-end: 10px;
	inset-inline-start: auto !important;
	margin: 0;
	pointer-events: none;
}

/* §9.1 Card actions (options, quick view, compare, wishlist): right side of the image,
   under the ">" image arrow (which sits at mid height). */
.wd-product .wd-product-thumb .wd-buttons.wd-pos-r-t {
	top: calc(50% + 26px);
	inset-inline-end: 10px;
	bottom: auto;
}

@media (max-width: 1024px) {
	/* No image arrows on touch screens: the actions follow straight under the sale label area. */
	.wd-product .wd-product-thumb .wd-buttons.wd-pos-r-t {
		top: auto;
		bottom: 10px;
	}
}

/* §7.1 Home page brand strip: each logo on its own grey rounded tile. Logos unchanged. */
.elementor-element-70fdf02 .wd-marquee-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-inline: 6px;
	padding: 10px 18px;
	border-radius: 14px;
	background-color: #f0efec;
}

.elementor-element-70fdf02 .wd-marquee-item img {
	mix-blend-mode: multiply;
}

/* §8 WhatsApp button 2 cm higher, same right edge. */
.joinchat.joinchat {
	--bottom: calc(var(--sep) + 2cm);
}

@media (width <= 767px) {
	.joinchat.joinchat--footer-bar {
		--bottom: calc(76px + 2cm) !important;
	}
}
