/**
 * ECE Kırtasiye WooCommerce stilleri.
 *
 * Ürün, sepet ve ödeme tasarımları sonraki aşamalarda burada geliştirilecektir.
 */

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 26px);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	display: flex;
	float: none;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 14px;
	overflow: hidden;
	border: 1px solid var(--ece-color-border);
	border-radius: 16px;
	background: #fff;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.woocommerce ul.products li.product:hover {
	border-color: rgba(156, 3, 0, 0.24);
	box-shadow: var(--ece-shadow-card);
	transform: translateY(-3px);
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product > a:first-child {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: #f7f8f8;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	margin: 0;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 12px;
	transition: transform 240ms ease;
}

.woocommerce ul.products li.product:hover a img {
	transform: scale(1.035);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.8em;
	margin-top: 16px;
	padding: 0;
	color: var(--ece-color-text);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
	display: flex;
	align-items: stretch;
	flex: 1;
	flex-direction: column;
}

.woocommerce ul.products li.product .price {
	margin: 8px 0 14px;
	color: var(--ece-color-brand);
	font-size: 1rem;
	font-weight: 800;
}

.woocommerce ul.products li.product .price del {
	margin-right: 6px;
	color: #81787e;
	font-size: 0.86em;
	opacity: 1;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	padding: 11px 14px;
	border: 1px solid var(--ece-color-brand);
	border-radius: 10px;
	background: var(--ece-color-brand);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.35;
	text-align: center;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible {
	border-color: #790300;
	background: #790300;
	color: #fff;
}

.woocommerce span.onsale {
	top: 24px;
	left: 24px;
	min-width: 0;
	min-height: 0;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--ece-color-brand);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin-bottom: 28px;
}

.woocommerce .woocommerce-ordering select {
	min-height: 44px;
	border-color: var(--ece-color-border);
	border-radius: 10px;
	background-color: #fff;
}

/* Ödeme sayfası başlığını iletişim formuyla hizalar. */
body.woocommerce-checkout .entry-header {
	box-sizing: border-box;
	width: min(100% - 40px, 1290px);
	margin: 52px auto 18px;
	padding: 0;
}

body.woocommerce-checkout .entry-header .entry-title {
	margin: 0;
}

/* Teslimat yontemi odeme adiminda secildigi icin sepet ozetinde gosterilmez. */
body.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals,
body.woocommerce-cart .cart_totals tr.shipping,
body.woocommerce-cart .wc-block-components-totals-shipping,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block {
	display: none !important;
}

/* Ürün galerisi yalnızca ana görsel alanında otomatik olarak ilerler. */
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: none !important;
}

@media (max-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.woocommerce-checkout .entry-header {
		width: min(100% - 24px, 720px);
		margin-top: 32px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		padding: 10px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.85rem;
	}
}

/* WooCommerce genel mobil düzeni: tüm müşteri ekranları tek ölçü sistemini kullanır. */
@media (max-width: 767px) {
	body.woocommerce-page,
	body.woocommerce-page #page,
	body.woocommerce-page #content,
	body.woocommerce-page .site-content {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		overflow-x: clip;
	}

	body.woocommerce-page .site-content > .ast-container,
	body.woocommerce-page #primary,
	body.woocommerce-page main.site-main,
	body.woocommerce-page article,
	body.woocommerce-page .entry-content,
	body.woocommerce-page .woocommerce {
		box-sizing: border-box !important;
		float: none !important;
		width: min(100% - 24px, 720px) !important;
		min-width: 0 !important;
		max-width: 720px !important;
		margin-right: auto !important;
		margin-left: auto !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.woocommerce-page .woocommerce > *,
	body.woocommerce-page form,
	body.woocommerce-page fieldset,
	body.woocommerce-page table,
	body.woocommerce-page .form-row,
	body.woocommerce-page input,
	body.woocommerce-page textarea,
	body.woocommerce-page select {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.woocommerce-page img {
		max-width: 100%;
		height: auto;
	}

	/* Sepet: önceki padding kurallarını geçersiz kılıp tam ortalar. */
	body.woocommerce-cart .site-content > .ast-container,
	body.woocommerce-cart #primary,
	body.woocommerce-cart main.site-main,
	body.woocommerce-cart article,
	body.woocommerce-cart .entry-content,
	body.woocommerce-cart .woocommerce {
		width: min(100% - 24px, 720px) !important;
		max-width: 720px !important;
		margin-right: auto !important;
		margin-left: auto !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-cart .cart_totals {
		margin-right: auto !important;
		margin-left: auto !important;
	}

	/* Ödeme: fatura ve sipariş özetini tek sütuna çevirir. */
	body.woocommerce-checkout form.checkout,
	body.woocommerce-checkout .woocommerce-checkout,
	body.woocommerce-checkout .col2-set,
	body.woocommerce-checkout .col-1,
	body.woocommerce-checkout .col-2,
	body.woocommerce-checkout #customer_details,
	body.woocommerce-checkout #order_review_heading,
	body.woocommerce-checkout #order_review,
	body.woocommerce-checkout .woocommerce-checkout-review-order,
	body.woocommerce-checkout .woocommerce-checkout-payment {
		box-sizing: border-box !important;
		float: none !important;
		clear: both !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.woocommerce-checkout .col2-set {
		display: block !important;
	}

	body.woocommerce-checkout .col-1,
	body.woocommerce-checkout .col-2 {
		padding: 0 !important;
	}

	body.woocommerce-checkout #order_review_heading {
		margin-top: 28px !important;
	}

	body.woocommerce-checkout form .form-row-first,
	body.woocommerce-checkout form .form-row-last,
	body.woocommerce-checkout form .form-row-wide {
		float: none !important;
		width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.woocommerce-checkout input.input-text,
	body.woocommerce-checkout textarea,
	body.woocommerce-checkout select,
	body.woocommerce-checkout .select2-container,
	body.woocommerce-checkout .select2-selection {
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	body.woocommerce-checkout table.shop_table {
		width: 100% !important;
		table-layout: fixed;
	}

	body.woocommerce-checkout table.shop_table th,
	body.woocommerce-checkout table.shop_table td {
		padding: 10px 7px !important;
		overflow-wrap: anywhere;
		font-size: 0.8rem;
	}

	body.woocommerce-checkout #payment,
	body.woocommerce-checkout #payment ul.payment_methods,
	body.woocommerce-checkout #payment div.payment_box,
	body.woocommerce-checkout .place-order {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.woocommerce-checkout #payment ul.payment_methods,
	body.woocommerce-checkout .place-order {
		padding: 16px 12px !important;
	}

	body.woocommerce-checkout #payment div.payment_box {
		padding: 12px !important;
	}

	body.woocommerce-checkout #place_order {
		float: none !important;
		width: 100% !important;
		min-height: 50px;
		white-space: normal;
	}

	/* Checkout Block kullanılıyorsa. */
	body.woocommerce-checkout .wc-block-checkout,
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-components-sidebar {
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: block !important;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-components-sidebar {
		margin-top: 24px !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	/* Hesabım: menü ve içerik alt alta, formlar tam genişlik. */
	body.woocommerce-account .woocommerce-MyAccount-navigation,
	body.woocommerce-account .woocommerce-MyAccount-content,
	body.woocommerce-account .u-columns,
	body.woocommerce-account .u-column1,
	body.woocommerce-account .u-column2 {
		box-sizing: border-box !important;
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 24px !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 6px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	body.woocommerce-account .u-columns {
		display: block !important;
	}

	body.woocommerce-account .u-column2 {
		margin-top: 38px !important;
	}

	/* Tek ürün ve ürün listeleri. */
	body.single-product .woocommerce div.product div.images,
	body.single-product .woocommerce div.product div.summary {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.single-product .woocommerce div.product div.summary {
		margin-top: 24px !important;
	}

	body.single-product .woocommerce-tabs ul.tabs {
		display: flex;
		overflow-x: auto;
		width: 100%;
		white-space: nowrap;
	}

	body.woocommerce-page ul.products {
		width: 100% !important;
		min-width: 0 !important;
	}
}

@media (max-width: 420px) {
	body.woocommerce-page .site-content > .ast-container,
	body.woocommerce-page #primary,
	body.woocommerce-page main.site-main,
	body.woocommerce-page article,
	body.woocommerce-page .entry-content,
	body.woocommerce-page .woocommerce,
	body.woocommerce-cart .site-content > .ast-container,
	body.woocommerce-cart #primary,
	body.woocommerce-cart main.site-main,
	body.woocommerce-cart article,
	body.woocommerce-cart .entry-content,
	body.woocommerce-cart .woocommerce {
		width: calc(100% - 20px) !important;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item {
		grid-template-columns: 68px minmax(0, 1fr);
		padding: 11px;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-thumbnail img {
		width: 62px !important;
		height: 62px !important;
	}

	body.woocommerce-cart .coupon {
		grid-template-columns: 1fr;
	}
}

/* Ürün listelerinde Sepete Ekle düğmesi daima görünür. */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce-page ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	display: inline-flex !important;
	visibility: visible !important;
	width: 100% !important;
	height: auto !important;
	min-height: 44px !important;
	margin-top: auto !important;
	opacity: 1 !important;
	transform: scale(1) !important;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce-page ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product .button:focus-visible,
.woocommerce-page ul.products li.product .button:focus-visible {
	visibility: visible !important;
	opacity: 1 !important;
	transform: scale(1.025) !important;
}

/* Arşiv şablonu artık giriş sayfasındaki gerçek kart yapısını kullanır. */
.woocommerce ul.products li.product.product-card,
.woocommerce-page ul.products li.product.product-card {
	display: flex !important;
	overflow: hidden !important;
	flex-direction: column !important;
	padding: 0 !important;
	border: 1px solid var(--line) !important;
	border-radius: 18px !important;
	background: #fff !important;
}

.woocommerce ul.products li.product.product-card .product-image,
.woocommerce-page ul.products li.product.product-card .product-image {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 11px 11px 0;
	border-radius: 13px;
	background: #f7f5f2;
}

.woocommerce ul.products li.product.product-card .product-image img,
.woocommerce-page ul.products li.product.product-card .product-image img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 17px !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
}

.woocommerce ul.products li.product.product-card .product-content,
.woocommerce-page ul.products li.product.product-card .product-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 17px;
}

.woocommerce ul.products li.product.product-card .product-bottom,
.woocommerce-page ul.products li.product.product-card .product-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.woocommerce ul.products li.product.product-card .add-button,
.woocommerce-page ul.products li.product.product-card .add-button {
	visibility: visible !important;
	width: auto !important;
	min-width: 104px;
	min-height: 39px !important;
	margin: 0 !important;
	padding: 9px 12px !important;
	border: 1px solid var(--red) !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--red) !important;
	font-size: 11px !important;
	font-weight: 780 !important;
	opacity: 1 !important;
}

.woocommerce ul.products li.product.product-card .add-button:hover,
.woocommerce-page ul.products li.product.product-card .add-button:hover {
	background: var(--red) !important;
	color: #fff !important;
	transform: scale(1.025) !important;
}

@media (max-width: 760px) {
	.woocommerce ul.products li.product.product-card .product-bottom,
	.woocommerce-page ul.products li.product.product-card .product-bottom {
		align-items: stretch;
		flex-direction: column;
	}

	.woocommerce ul.products li.product.product-card .add-button,
	.woocommerce-page ul.products li.product.product-card .add-button {
		width: 100% !important;
	}
}

/* Mobil sepet: klasik WooCommerce ve Sepet bloğu ekran dışına taşmaz. */
body.woocommerce-cart,
body.woocommerce-cart #content,
body.woocommerce-cart .site-content,
body.woocommerce-cart .ast-container,
body.woocommerce-cart #primary,
body.woocommerce-cart main.site-main,
body.woocommerce-cart article,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .woocommerce {
	box-sizing: border-box;
	max-width: 100%;
}

body.woocommerce-cart img,
body.woocommerce-cart input,
body.woocommerce-cart select,
body.woocommerce-cart button {
	max-width: 100%;
}

@media (max-width: 767px) {
	body.woocommerce-cart {
	overflow-x: hidden;
	overflow-x: clip;
	}

	body.woocommerce-cart .site-content > .ast-container,
	body.woocommerce-cart #primary,
	body.woocommerce-cart main.site-main,
	body.woocommerce-cart .entry-content {
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
		padding-inline: 12px !important;
	}

	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-cart .cart_totals {
		float: none !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		margin: 0 0 22px !important;
	}

	body.woocommerce-cart table.shop_table_responsive,
	body.woocommerce-cart table.shop_table_responsive tbody,
	body.woocommerce-cart table.shop_table_responsive tr,
	body.woocommerce-cart table.shop_table_responsive td {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.woocommerce-cart table.shop_table_responsive {
		display: block !important;
		border: 0 !important;
	}

	body.woocommerce-cart table.shop_table_responsive thead {
		display: none !important;
	}

	body.woocommerce-cart table.shop_table_responsive tbody,
	body.woocommerce-cart table.shop_table_responsive tr {
		display: block !important;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item {
		position: relative;
		display: grid !important;
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 10px 14px;
		margin-bottom: 14px;
		padding: 14px;
		border: 1px solid var(--ece-color-border);
		border-radius: 14px;
		background: #fff;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		min-width: 0 !important;
		padding: 7px 0 !important;
		border: 0 !important;
		text-align: right !important;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
		float: none !important;
		flex: 0 0 auto;
		font-size: 0.75rem;
		font-weight: 700;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-remove {
		position: absolute;
		z-index: 2;
		top: 8px;
		right: 8px;
		display: block !important;
		width: auto !important;
		padding: 0 !important;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-thumbnail {
		grid-row: 1 / span 4;
		grid-column: 1;
		align-items: flex-start;
		justify-content: center;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-thumbnail::before {
		display: none;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-thumbnail img {
		width: 76px !important;
		height: 76px !important;
		border-radius: 9px;
		object-fit: contain;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-name,
	body.woocommerce-cart table.shop_table_responsive td.product-price,
	body.woocommerce-cart table.shop_table_responsive td.product-quantity,
	body.woocommerce-cart table.shop_table_responsive td.product-subtotal {
		grid-column: 2;
		padding-right: 24px !important;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-name {
		align-items: flex-start;
		justify-content: flex-start;
		text-align: left !important;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-name::before {
		display: none;
	}

	body.woocommerce-cart table.shop_table_responsive td.product-name a {
		overflow-wrap: anywhere;
		font-size: 0.88rem;
		font-weight: 700;
		line-height: 1.35;
	}

	body.woocommerce-cart .quantity,
	body.woocommerce-cart .quantity input.qty {
		width: 76px !important;
		min-width: 0 !important;
		max-width: 76px !important;
	}

	body.woocommerce-cart table.shop_table_responsive tr:not(.cart_item),
	body.woocommerce-cart table.shop_table_responsive td.actions {
		display: block !important;
		width: 100% !important;
		padding: 0 !important;
	}

	body.woocommerce-cart .coupon {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		width: 100% !important;
	}

	body.woocommerce-cart .coupon input,
	body.woocommerce-cart .coupon button,
	body.woocommerce-cart button[name="update_cart"] {
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	body.woocommerce-cart button[name="update_cart"] {
		margin-top: 10px !important;
	}

	body.woocommerce-cart .cart_totals table,
	body.woocommerce-cart .cart_totals tbody,
	body.woocommerce-cart .cart_totals tr {
		width: 100% !important;
		max-width: 100% !important;
	}

	body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
		box-sizing: border-box;
		width: 100% !important;
		white-space: normal;
	}

	/* WooCommerce Cart Block kullanılıyorsa. */
	body.woocommerce-cart .wc-block-cart,
	body.woocommerce-cart .wc-block-cart__main,
	body.woocommerce-cart .wc-block-cart__sidebar,
	body.woocommerce-cart .wc-block-components-sidebar-layout,
	body.woocommerce-cart .wc-block-components-main,
	body.woocommerce-cart .wc-block-components-sidebar {
		box-sizing: border-box !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	body.woocommerce-cart .wc-block-components-sidebar-layout {
		display: block !important;
	}

	body.woocommerce-cart .wc-block-cart__sidebar,
	body.woocommerce-cart .wc-block-components-sidebar {
		margin-top: 24px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.woocommerce-cart .wc-block-cart-items,
	body.woocommerce-cart .wc-block-cart-items tbody,
	body.woocommerce-cart .wc-block-cart-items tr,
	body.woocommerce-cart .wc-block-cart-items td {
		box-sizing: border-box;
		max-width: 100% !important;
	}
}

@media (max-width: 390px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product a img {
		transition: none;
	}
}

/* Ana sayfa çok satanlar şeridi */
.ece-best-sellers {
	box-sizing: border-box;
	width: min(100%, 1240px);
	margin: clamp(52px, 7vw, 92px) auto;
	padding-inline: clamp(16px, 3vw, 28px);
}

.ece-best-sellers__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.ece-best-sellers__eyebrow {
	margin: 0 0 7px;
	color: var(--ece-color-brand);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ece-best-sellers__heading h2 {
	margin: 0;
	color: var(--ece-color-text);
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.1;
}

.ece-best-sellers__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ece-best-sellers__actions > a {
	margin-right: 8px;
	color: var(--ece-color-brand);
	font-weight: 700;
	text-decoration: none;
}

.ece-best-sellers__actions button {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--ece-color-border);
	border-radius: 50%;
	background: #fff;
	color: var(--ece-color-text);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.ece-best-sellers__actions button:hover,
.ece-best-sellers__actions button:focus-visible {
	border-color: var(--ece-color-brand);
	background: var(--ece-color-brand);
	color: #fff;
}

.ece-best-sellers__viewport {
	overflow-x: auto;
	padding: 4px 2px 24px;
	scroll-behavior: smooth;
	scrollbar-color: rgba(156, 3, 0, 0.3) transparent;
	scrollbar-width: thin;
	scroll-snap-type: x mandatory;
}

.ece-best-sellers__track {
	display: grid;
	grid-auto-columns: calc((100% - 72px) / 4);
	grid-auto-flow: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ece-best-sellers__card {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--ece-color-border);
	border-radius: 16px;
	background: #fff;
	scroll-snap-align: start;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ece-best-sellers__card:hover {
	border-color: rgba(156, 3, 0, 0.24);
	box-shadow: var(--ece-shadow-card);
	transform: translateY(-3px);
}

.ece-best-sellers__image {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 12px 12px 0;
	border-radius: 12px;
	background: #f7f8f8;
}

.ece-best-sellers__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: 12px;
	object-fit: contain;
	transition: transform 240ms ease;
}

.ece-best-sellers__card:hover .ece-best-sellers__image img {
	transform: scale(1.035);
}

.ece-best-sellers__badge {
	position: absolute;
	z-index: 1;
	top: 10px;
	left: 10px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--ece-color-brand);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
}

.ece-best-sellers__body {
	display: flex;
	align-items: stretch;
	flex: 1;
	flex-direction: column;
	padding: 16px;
}

.ece-best-sellers__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.8em;
	color: var(--ece-color-text);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ece-best-sellers__price {
	margin: 10px 0 15px;
	color: var(--ece-color-brand);
	font-size: 1rem;
	font-weight: 800;
}

.ece-best-sellers__price del {
	margin-right: 5px;
	color: #81787e;
	font-size: 0.86em;
}

.ece-best-sellers__body .button,
.ece-best-sellers__body .added_to_cart {
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	padding: 11px 14px;
	border: 1px solid var(--ece-color-brand);
	border-radius: 10px;
	background: var(--ece-color-brand);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 750;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.ece-best-sellers__body .button:hover,
.ece-best-sellers__body .button:focus-visible {
	border-color: #790300;
	background: #790300;
	color: #fff;
}

@media (max-width: 1024px) {
	.ece-best-sellers__track {
		grid-auto-columns: calc((100% - 36px) / 3);
		gap: 18px;
	}
}

@media (max-width: 767px) {
	.ece-best-sellers {
		margin-block: 44px 60px;
		padding-inline: 16px;
	}

	.ece-best-sellers__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.ece-best-sellers__actions {
		width: 100%;
	}

	.ece-best-sellers__actions > a {
		margin-right: auto;
	}

	.ece-best-sellers__track {
		grid-auto-columns: minmax(0, 82%);
		gap: 14px;
	}

	.woocommerce,
	.woocommerce-page,
	.woocommerce form,
	.woocommerce table.shop_table {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ece-best-sellers__viewport {
		scroll-behavior: auto;
	}

	.ece-best-sellers__card,
	.ece-best-sellers__image img {
		transition: none;
	}
}

/* Ürün arama sonuçları */
.ece-search-page {
	box-sizing: border-box;
	width: min(100% - 32px, 1240px);
	margin: clamp(30px, 5vw, 68px) auto 0;
}

.ece-search-hero {
	display: grid;
	align-items: end;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
	gap: clamp(24px, 5vw, 72px);
	margin-bottom: 30px;
	padding: clamp(26px, 4vw, 48px);
	border: 1px solid rgba(156, 3, 0, 0.1);
	border-radius: 22px;
	background: linear-gradient(135deg, #fff3c9 0%, #fff9e8 55%, #fffdfc 100%);
}

.ece-search-hero__eyebrow {
	margin: 0 0 8px;
	color: var(--ece-color-brand);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ece-search-hero h1 {
	margin: 0;
	color: var(--ece-color-text);
	font-size: clamp(1.8rem, 3.4vw, 3.3rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.ece-search-hero__count {
	margin: 12px 0 0;
	color: #665d62;
	font-size: 0.98rem;
}

.ece-search-form {
	display: flex;
	align-items: stretch;
	padding: 5px;
	border: 1px solid rgba(156, 3, 0, 0.18);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(36, 33, 38, 0.08);
}

.ece-search-form input[type="search"] {
	min-width: 0;
	min-height: 48px;
	flex: 1;
	padding: 10px 14px;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ece-search-form input[type="search"]:focus {
	outline: 0;
	box-shadow: none;
}

.ece-search-form button,
.ece-search-empty__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 1px solid var(--ece-color-brand);
	border-radius: 10px;
	background: var(--ece-color-brand);
	color: #fff;
	font-weight: 750;
	text-decoration: none;
}

.ece-search-form button:hover,
.ece-search-form button:focus-visible,
.ece-search-empty__button:hover,
.ece-search-empty__button:focus-visible {
	border-color: #790300;
	background: #790300;
	color: #fff;
}

.ece-search-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ece-color-border);
}

.ece-search-toolbar > p {
	margin: 0;
	color: #665d62;
}

.ece-search-ordering {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.ece-search-ordering label {
	color: var(--ece-color-text);
	font-size: 0.9rem;
	font-weight: 700;
}

.ece-search-ordering select {
	min-height: 44px;
	padding-inline: 12px 36px;
	border: 1px solid var(--ece-color-border);
	border-radius: 10px;
	background-color: #fff;
	color: var(--ece-color-text);
}

.ece-search-products ul.products {
	margin-bottom: 0;
}

.ece-search-products ul.products li.product {
	box-shadow: 0 7px 22px rgba(36, 33, 38, 0.045);
}

.ece-search-products ul.products li.product .stock {
	margin: 0 0 10px;
	font-size: 0.8rem;
}

/*
 * Mağaza ve kategori arşivlerini ana sayfadaki ürün bölümüyle aynı genişlikte tutar.
 * Astra'nın geniş ekranlarda arşiv alanını büyütmesi özellikle engellenir.
 */
body.post-type-archive-product .site-content > .ast-container,
body.tax-product_cat .site-content > .ast-container,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.post-type-archive-product main.site-main,
body.tax-product_cat main.site-main {
	box-sizing: border-box;
	width: min(100% - 40px, 1240px) !important;
	max-width: 1240px !important;
	margin-inline: auto !important;
}

body.post-type-archive-product #primary,
body.tax-product_cat #primary {
	float: none !important;
}

body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px !important;
	width: 100% !important;
}

body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.post-type-archive-product .woocommerce ul.products li.product a img,
body.tax-product_cat .woocommerce ul.products li.product a img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-height: 260px !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
}

/* Tek ürün sayfasında galeri ile ürün bilgisini dengeli gösterir. */
body.single-product .site-content > .ast-container,
body.single-product #primary,
body.single-product main.site-main {
	box-sizing: border-box;
	width: min(100% - 40px, 1240px) !important;
	max-width: 1240px !important;
	margin-inline: auto !important;
}

body.single-product .woocommerce div.product div.images {
	box-sizing: border-box;
	width: 44% !important;
	max-width: 520px !important;
	margin-right: 5% !important;
}

body.single-product .woocommerce div.product div.summary {
	box-sizing: border-box;
	width: 51% !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
}

body.single-product .woocommerce div.product div.images img,
body.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 560px !important;
	margin-inline: auto !important;
	object-fit: contain !important;
}

@media (max-width: 1024px) {
	body.post-type-archive-product .woocommerce ul.products,
	body.tax-product_cat .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	body.post-type-archive-product .site-content > .ast-container,
	body.tax-product_cat .site-content > .ast-container,
	body.post-type-archive-product #primary,
	body.tax-product_cat #primary,
	body.single-product .site-content > .ast-container,
	body.single-product #primary,
	body.single-product main.site-main {
		width: min(100% - 24px, 1240px) !important;
	}

	body.post-type-archive-product .woocommerce ul.products,
	body.tax-product_cat .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}

	body.post-type-archive-product .woocommerce ul.products li.product a img,
	body.tax-product_cat .woocommerce ul.products li.product a img {
		max-height: 210px !important;
	}

	body.single-product .woocommerce div.product div.images,
	body.single-product .woocommerce div.product div.summary {
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		margin-right: 0 !important;
	}

	body.single-product .woocommerce div.product div.images img,
	body.single-product .woocommerce-product-gallery__image img {
		max-height: 430px !important;
	}
}

.ece-search-pagination {
	margin-top: clamp(34px, 5vw, 60px);
}

.ece-search-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.ece-search-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--ece-color-border);
	border-radius: 9px;
	background: #fff;
	color: var(--ece-color-text);
	font-weight: 700;
	text-decoration: none;
}

.ece-search-pagination .page-numbers.current,
.ece-search-pagination a.page-numbers:hover,
.ece-search-pagination a.page-numbers:focus-visible {
	border-color: var(--ece-color-brand);
	background: var(--ece-color-brand);
	color: #fff;
}

.ece-search-empty {
	max-width: 680px;
	margin: clamp(50px, 8vw, 110px) auto;
	padding: clamp(34px, 6vw, 64px);
	border: 1px solid var(--ece-color-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--ece-shadow-card);
	text-align: center;
}

.ece-search-empty__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #fff3c9;
	color: var(--ece-color-brand);
	font-size: 2rem;
	font-weight: 800;
}

.ece-search-empty h2 {
	margin: 0;
	color: var(--ece-color-text);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.ece-search-empty p {
	margin: 12px 0 24px;
	color: #665d62;
}

@media (max-width: 820px) {
	.ece-search-hero {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.ece-search-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.ece-search-page {
		width: min(100% - 24px, 1240px);
		margin-top: 20px;
	}

	.ece-search-hero {
		padding: 22px 18px;
		border-radius: 16px;
	}

	.ece-search-form button {
		padding-inline: 16px;
	}

	.ece-search-ordering {
		align-items: stretch;
		width: 100%;
		flex-direction: column;
		gap: 6px;
	}

	.ece-search-ordering select {
		width: 100%;
	}
}

/* Ana sayfa haftanın fırsatları */
.ece-weekly-deals {
	box-sizing: border-box;
	width: min(100%, 1240px);
	margin: clamp(52px, 7vw, 92px) auto;
	padding-inline: clamp(16px, 3vw, 28px);
}

.ece-weekly-deals__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.ece-weekly-deals__eyebrow {
	margin: 0 0 7px;
	color: var(--ece-color-brand);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ece-weekly-deals__heading h2 {
	margin: 0;
	color: var(--ece-color-text);
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.1;
}

.ece-weekly-deals__heading > a {
	flex: 0 0 auto;
	color: var(--ece-color-brand);
	font-weight: 700;
	text-decoration: none;
}

.ece-weekly-deals__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.2vw, 30px);
	margin: 0;
	padding: 8px;
	list-style: none;
}

.ece-weekly-deals__card {
	position: relative;
	z-index: 0;
	display: flex;
	overflow: hidden;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--ece-color-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(36, 33, 38, 0.06);
	transform: scale(1);
	transform-origin: center;
	transition: transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1), border-color 320ms ease, box-shadow 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.ece-weekly-deals__card:hover {
		z-index: 2;
		border-color: rgba(156, 3, 0, 0.28);
		box-shadow: 0 20px 48px rgba(36, 33, 38, 0.16);
		transform: scale(1.045);
	}
}

.ece-weekly-deals__card:focus-within {
	z-index: 2;
	border-color: rgba(156, 3, 0, 0.28);
	box-shadow: 0 20px 48px rgba(36, 33, 38, 0.16);
}

.ece-weekly-deals__image {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 14px 14px 0;
	border-radius: 13px;
	background: #f7f8f8;
}

.ece-weekly-deals__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	padding: 16px;
	object-fit: contain;
}

.ece-weekly-deals__badge {
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--ece-color-brand);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
}

.ece-weekly-deals__body {
	display: flex;
	align-items: stretch;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.ece-weekly-deals__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.8em;
	color: var(--ece-color-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ece-weekly-deals__price {
	margin: 10px 0 16px;
	color: var(--ece-color-brand);
	font-size: 1.05rem;
	font-weight: 800;
}

.ece-weekly-deals__price del {
	margin-right: 6px;
	color: #81787e;
	font-size: 0.86em;
}

.ece-weekly-deals__body .button,
.ece-weekly-deals__body .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	padding: 11px 14px;
	border: 1px solid var(--ece-color-brand);
	border-radius: 10px;
	background: var(--ece-color-brand);
	color: #fff;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
}

@media (max-width: 900px) {
	.ece-weekly-deals__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ece-weekly-deals {
		margin-block: 44px 60px;
		padding-inline: 16px;
	}

	.ece-weekly-deals__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.ece-weekly-deals__grid {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ece-weekly-deals__card {
		transition: none;
	}
}

/* Eylül okul kampanyası bannerı */
.ece-september-banner {
	box-sizing: border-box;
	width: min(100%, 1240px);
	margin: clamp(48px, 6vw, 82px) auto;
	padding-inline: clamp(16px, 3vw, 28px);
}

.ece-september-banner__link {
	display: block;
	overflow: hidden;
	border-radius: var(--ece-radius-medium);
	background: #fff3c9;
	box-shadow: var(--ece-shadow-card);
	transition: box-shadow 260ms ease, transform 260ms ease;
}

.ece-september-banner__link:hover,
.ece-september-banner__link:focus-visible {
	box-shadow: 0 20px 48px rgba(36, 33, 38, 0.16);
	transform: translateY(-3px);
}

.ece-september-banner__link:focus-visible {
	outline: 3px solid rgba(156, 3, 0, 0.28);
	outline-offset: 4px;
}

.ece-september-banner__link img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 1;
	object-fit: cover;
}

@media (max-width: 600px) {
	.ece-september-banner {
		margin-block: 40px 56px;
		padding-inline: 16px;
	}

	.ece-september-banner__link {
		border-radius: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ece-september-banner__link {
		transition: none;
	}
}

/* WooCommerce form alanları */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form input[type="number"],
.woocommerce form input[type="search"],
.woocommerce form select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea {
	min-height: 44px;
	border: 1px solid var(--ece-color-brand);
	border-radius: 6px;
	background-color: #fff;
	color: var(--ece-color-text);
	box-shadow: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.woocommerce form .form-row textarea,
.woocommerce-page form .form-row textarea {
	min-height: 120px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form input[type="text"]:focus,
.woocommerce form input[type="email"]:focus,
.woocommerce form input[type="tel"]:focus,
.woocommerce form input[type="password"]:focus,
.woocommerce form input[type="number"]:focus,
.woocommerce form input[type="search"]:focus,
.woocommerce form select:focus,
.woocommerce-page form .form-row input.input-text:focus,
.woocommerce-page form .form-row textarea:focus {
	border-color: #790300;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(156, 3, 0, 0.12);
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
	top: 50%;
	transform: translateY(-50%);
}
