/* WxDigitals - WoodMart Eşit Ürün Kartları v1.1.3 */

/* Yalnızca JavaScript tarafından uygun bulunan standart kart gridleri. */
.wxd-wm-equal-grid {
	align-items: stretch !important;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) {
	display: flex !important;
	height: auto !important;
	min-height: 100%;
	align-self: stretch !important;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) > .wd-product-wrapper,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) > .product-wrapper,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-wrapper {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

/* Sabit görsel alanı - small kartlar bu kuralların dışında kalır. */
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-thumb,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-element-top {
	position: relative;
	flex: 0 0 var(--wxd-wm-img-desktop);
	height: var(--wxd-wm-img-desktop) !important;
	min-height: var(--wxd-wm-img-desktop);
	max-height: var(--wxd-wm-img-desktop);
	overflow: hidden;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-img-link,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-image-link,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-grid-slider,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-grid-slide {
	display: block;
	width: 100%;
	height: 100% !important;
	min-height: 100%;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-grid-slide {
	background-position: center !important;
	background-repeat: no-repeat !important;
	background-size: var(--wxd-wm-image-fit) !important;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-thumb img,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-element-top img,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-image-link img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 100%;
	max-height: none !important;
	object-fit: var(--wxd-wm-image-fit) !important;
	object-position: center center;
}

/* İçerik alanını dikey flex yap, fiyat ve butonu alta hizala. */
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-element-bottom {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-height: 0;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-entities-title {
	display: -webkit-box;
	overflow: hidden;
	min-height: calc(1.45em * var(--wxd-wm-title-lines));
	max-height: calc(1.45em * var(--wxd-wm-title-lines));
	line-height: 1.45;
	-webkit-line-clamp: var(--wxd-wm-title-lines);
	-webkit-box-orient: vertical;
	white-space: normal !important;
	text-overflow: ellipsis;
	order: 10;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-cats {
	display: -webkit-box;
	overflow: hidden;
	min-height: calc(1.45em * var(--wxd-wm-category-lines));
	max-height: calc(1.45em * var(--wxd-wm-category-lines));
	line-height: 1.45;
	-webkit-line-clamp: var(--wxd-wm-category-lines);
	-webkit-box-orient: vertical;
	white-space: normal !important;
	text-overflow: ellipsis;
	order: 20;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .star-rating {
	order: 30;
	flex: 0 0 auto;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-stock,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) p.stock {
	order: 40;
	flex: 0 0 auto;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-detail.wd-product-sku,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wxd-wm-sku-placeholder {
	order: 50;
	min-height: 21px;
	margin-top: 5px;
	margin-bottom: 5px;
	flex: 0 0 21px;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wxd-wm-sku-placeholder {
	visibility: hidden !important;
	pointer-events: none !important;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wrap-price {
	order: 60;
	margin-top: auto !important;
	flex: 0 0 auto;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-add-btn {
	order: 70;
	flex: 0 0 auto;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-card-hover {
	order: 90;
}

.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-add-btn > a,
.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .add_to_cart_button {
	width: 100%;
}

/* WoodMart kategori menüsü için ince scroll.
   Scroll yalnızca menü açıldığında ve içerik gerçekten taşıyorsa görünür. */
.wxd-wm-category-scroll {
	display: block !important;
	height: auto;
	min-height: 0 !important;
	max-height: none;
	overflow: hidden !important;
	box-sizing: border-box;
	background: var(--bgcolor-white, #fff);
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	scrollbar-width: none;
	padding-right: 0;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	align-content: flex-start !important;
	justify-content: flex-start !important;
}

.wxd-wm-category-scroll > li,
.wxd-wm-category-scroll > .menu-item {
	flex: 0 0 auto !important;
}

.wxd-wm-category-scroll.wxd-wm-scroll-active {
	overflow-y: auto !important;
	overflow-x: hidden !important;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--wd-primary-color, #21b6f3) rgba(0, 0, 0, 0.06);
}

.wxd-wm-category-scroll.wxd-wm-scroll-active::-webkit-scrollbar {
	width: 6px;
}

.wxd-wm-category-scroll.wxd-wm-scroll-active::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.045);
	border-radius: 999px;
}

.wxd-wm-category-scroll.wxd-wm-scroll-active::-webkit-scrollbar-thumb {
	min-height: 42px;
	background: var(--wd-primary-color, #21b6f3);
	border: 1px solid transparent;
	border-radius: 999px;
	background-clip: padding-box;
}

.wxd-wm-category-scroll.wxd-wm-scroll-active::-webkit-scrollbar-thumb:hover {
	background: color-mix(in srgb, var(--wd-primary-color, #21b6f3) 82%, #000 18%);
	background-clip: padding-box;
}

@supports not (background: color-mix(in srgb, #000 50%, #fff 50%)) {
	.wxd-wm-category-scroll.wxd-wm-scroll-active::-webkit-scrollbar-thumb:hover {
		background: var(--wd-primary-color, #129ed7);
	}
}



/* Mağaza kategori kartlarını eşitle. */
.wxd-wm-equal-cats-grid .wd-carousel-item {
	display: flex;
	height: auto !important;
}

.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card,
.wxd-wm-equal-cats-grid .category-grid-item.wd-cat {
	display: flex !important;
	height: auto !important;
	width: 100%;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-cat-inner,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-cat-inner {
	display: flex !important;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-cat-thumb,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-cat-thumb {
	flex: 0 0 var(--wxd-wm-cat-tile-img-desktop);
	height: var(--wxd-wm-cat-tile-img-desktop) !important;
	min-height: var(--wxd-wm-cat-tile-img-desktop);
	max-height: var(--wxd-wm-cat-tile-img-desktop);
	overflow: hidden;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-cat-image,
.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .category-image,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-cat-image,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .category-image {
	display: block;
	width: 100%;
	height: 100%;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-cat-thumb img,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-cat-thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-cat-content,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-cat-content {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	min-height: 0;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-entities-title,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-entities-title {
	display: -webkit-box;
	overflow: hidden;
	line-height: 1.35;
	min-height: calc(1.35em * 2);
	max-height: calc(1.35em * 2);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal !important;
	text-overflow: ellipsis;
}

.wxd-wm-equal-cats-grid .category-grid-item.wd-cat .wd-cat-count,
.wxd-wm-equal-cats-grid .wxd-wm-equal-cat-card .wd-cat-count {
	margin-top: auto;
	min-height: 1.45em;
}

@media (max-width: 1024px) {
	.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-thumb,
	.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-element-top {
		flex-basis: var(--wxd-wm-img-tablet);
		height: var(--wxd-wm-img-tablet) !important;
		min-height: var(--wxd-wm-img-tablet);
		max-height: var(--wxd-wm-img-tablet);
	}

}

@media (max-width: 767px) {
	.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-thumb,
	.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .product-element-top {
		flex-basis: var(--wxd-wm-img-mobile);
		height: var(--wxd-wm-img-mobile) !important;
		min-height: var(--wxd-wm-img-mobile);
		max-height: var(--wxd-wm-img-mobile);
	}

	.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-entities-title,
	.wxd-wm-equal-grid .wxd-wm-equal-card:not(.wd-hover-small) .wd-product-cats {
		font-size: inherit;
	}

}
