/* Ürün kartı: marka fontunu koruyan, sade ve dengeli katalog düzeni. */
.wd-product:has(.ttk-wcs2-button) .product-element-top,
.product-grid-item:has(.ttk-wcs2-button) .product-element-top {
	overflow: hidden;
	border-radius: 9px;
}

.wd-product:has(.ttk-wcs2-button) .wd-entities-title,
.product-grid-item:has(.ttk-wcs2-button) .wd-entities-title {
	margin-bottom: 3px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.wd-product:has(.ttk-wcs2-button) .product-categories,
.product-grid-item:has(.ttk-wcs2-button) .product-categories {
	font-size: 12px;
	line-height: 1.4;
}

/* Woodmart fiyat kapsayıcısını aç; kutu bütün ürünlerde tam genişlikte kalsın. */
.wd-product .price:has(.ttk-wcs2-price-card),
.product-grid-item .price:has(.ttk-wcs2-price-card),
.woocommerce ul.products li.product .price:has(.ttk-wcs2-price-card) {
	display: block !important;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
}

/* Span tabanlı yapı, WooCommerce'in <span class="price"> yapısını bozmaz. */
.wd-product .ttk-wcs2-price-card,
.product-grid-item .ttk-wcs2-price-card,
.woocommerce ul.products li.product .ttk-wcs2-price-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-height: 66px;
	margin: 10px 0 11px;
	padding: 10px 11px;
	border: 1px solid #edf0f4;
	border-radius: 8px;
	background: #f8fafc;
	font-family: inherit;
	line-height: 1.25;
	text-align: left;
}

.ttk-wcs2-price-main {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.ttk-wcs2-price-values {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 7px;
	row-gap: 2px;
}

.ttk-wcs2-price-original,
.ttk-wcs2-price-original .woocommerce-Price-amount,
.ttk-wcs2-price-original .woocommerce-Price-currencySymbol {
	color: #9299a5;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.ttk-wcs2-price-original {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.ttk-wcs2-price-label {
	color: #737c89;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.ttk-wcs2-price-amount,
.ttk-wcs2-price-amount .woocommerce-Price-amount,
.ttk-wcs2-price-amount .woocommerce-Price-currencySymbol {
	color: var(--wd-title-color, #17213b);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	white-space: nowrap;
}

.ttk-wcs2-price-card--quote .ttk-wcs2-price-amount {
	font-size: 14px;
	font-weight: 650;
}

.ttk-wcs2-minimum {
	flex: 0 0 auto;
	margin-left: 8px;
	padding: 5px 7px;
	border-radius: 5px;
	background: rgba(255, 160, 43, 0.11);
	color: #a15b0a;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* Ana düğme: tema rengini kullanır, bağıran büyük harfleri kaldırır. */
.wd-product .ttk-wcs2-button,
.product-grid-item .ttk-wcs2-button,
.woocommerce ul.products li.product .ttk-wcs2-button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 43px;
	padding: 10px 13px;
	border-radius: 7px;
	background-image: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-align: center;
	text-transform: none !important;
	transition: background-color 160ms ease, opacity 160ms ease;
}

/* Woodmart'ın hover sırasında eklediği sepet/yükleme pseudo ikonları. */
.wd-add-btn > .ttk-wcs2-button::before,
.wd-add-btn > .ttk-wcs2-button::after,
.ttk-wcs2-button::before,
.ttk-wcs2-button::after {
	display: none !important;
	content: none !important;
}

.wd-add-btn:hover > .ttk-wcs2-button,
.ttk-wcs2-button:hover {
	background-image: none !important;
	transform: none;
}

/* Standart düğmenin dış Woodmart kabını nötrleştir; iç bağlantı temiz HTML'dir. */
.wd-add-btn-replace:has(.ttk-wcs2-button--standard),
.wd-add-btn:has(.ttk-wcs2-button--standard) {
	box-sizing: border-box !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	overflow: visible !important;
}

.wd-add-btn-replace .ttk-wcs2-button--standard,
.wd-add-btn-replace:hover .ttk-wcs2-button--standard,
.wd-add-btn .ttk-wcs2-button--standard,
.wd-add-btn:hover .ttk-wcs2-button--standard,
.ttk-wcs2-button--standard,
.ttk-wcs2-button--standard:hover,
.ttk-wcs2-button--standard:focus {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: auto !important;
	min-height: 43px !important;
	max-height: none !important;
	padding: 10px 13px !important;
	border-radius: 7px !important;
	position: relative !important;
	inset: auto !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.25 !important;
	text-align: center !important;
	text-indent: 0 !important;
	text-transform: none !important;
	visibility: visible !important;
	transform: none !important;
}

.ttk-wcs2-button--standard.loading {
	opacity: 0.72 !important;
	pointer-events: none;
}

@media (max-width: 767px) {
	.wd-product .ttk-wcs2-price-card,
	.product-grid-item .ttk-wcs2-price-card,
	.woocommerce ul.products li.product .ttk-wcs2-price-card {
		min-height: 62px;
		padding: 9px;
	}

	.ttk-wcs2-price-amount,
	.ttk-wcs2-price-amount .woocommerce-Price-amount,
	.ttk-wcs2-price-amount .woocommerce-Price-currencySymbol {
		font-size: 14px;
	}

	.ttk-wcs2-minimum {
		margin-left: 5px;
		padding: 5px;
		font-size: 9px;
	}

	.ttk-wcs2-price-original,
	.ttk-wcs2-price-original .woocommerce-Price-amount,
	.ttk-wcs2-price-original .woocommerce-Price-currencySymbol {
		font-size: 10px;
	}

	.wd-product .ttk-wcs2-button,
	.product-grid-item .ttk-wcs2-button,
	.woocommerce ul.products li.product .ttk-wcs2-button {
		min-height: 41px;
		padding: 9px;
		font-size: 11px;
	}
}

@media (max-width: 390px) {
	.wd-product .ttk-wcs2-price-card,
	.product-grid-item .ttk-wcs2-price-card,
	.woocommerce ul.products li.product .ttk-wcs2-price-card {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.ttk-wcs2-minimum {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ttk-wcs2-button {
		transition: none;
	}
}
