/**
 * Sepet sayfası (yalnızca /sepet/) düzeltmeleri — 2026-09-08.
 *
 * 1) "Sepeti güncelle" butonu kaldırıldı. Tema adet değişikliğini ZATEN AJAX
 *    ile kaydediyor (ölçüldü: + tuşuna basınca 1→2, ara toplam anında değişti,
 *    sayfa yenilendiğinde 2 olarak kaldı) ve buton hep `disabled` duruyordu.
 *    Yani işlevsiz bir kontroldü, kullanıcıyı yanıltıyordu.
 * 2) Ürün silme (×) mobilde adet kontrolünün ÜSTÜNE biniyordu
 *    (ölçüldü: × [341,65 28x29], adet kutusu [273,91 90x30] — hem yatay hem
 *    dikey çakışma). Masaüstündeki gibi satırın sağında, dikey ortada duruyor.
 * 3) Ödeme butonu mobilde sayfanın %48'inde kalıyordu (çapraz satış ürünleri
 *    araya giriyor). Alta sabit bir çubuk eklendi; gerçek buton ekrana
 *    girince çubuk kendini gizliyor (bkz. assets/js/cart-mobile.js).
 */

/* --- 1) Sepeti güncelle --- */
.woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart-form .actions-wrapper .button[name="update_cart"] {
	display: none !important;
}

/* --- 2) Silme (×) konumu --- */
@media (max-width: 767px) {
	.woocommerce-cart-form .cart_item .product-remove {
		top: 50%;
		right: 0;
		transform: translateY(-50%);
	}
	/* Adet kutusuna sağdan pay: × ile çakışmasın.
	   Ölçüm: 36px ile hâlâ 4px çakışıyordu (× 335–375, adet 249–339);
	   48px ile aralarında 8px boşluk kalıyor. */
	.woocommerce-cart-form .cart_item .product-quantity {
		padding-right: 48px;
	}
	.woocommerce-cart-form .cart_item .product-quantity .quantity {
		margin-left: auto;
		margin-right: 0;
	}
	/* Dokunma hedefi 28px'ti; 40px'e çıkarıldı (a11y target-size). */
	.woocommerce-cart-form .cart_item .product-remove a.remove {
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* --- 3) Mobil sabit ödeme çubuğu --- */
.pt-sepet-sticky {
	position: fixed;
	left: 0;
	right: 0;
	/* Alt gezinme barı (fixed, 56px, z-index 1000) üstünde durur. */
	bottom: 56px;
	z-index: 999;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid #e2e4ec;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .10);
}
.pt-sepet-sticky.is-visible {
	display: flex;
}
.pt-sepet-sticky__tutar {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	white-space: nowrap;
}
.pt-sepet-sticky__etiket {
	font-size: 11px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #5c6b76;
}
.pt-sepet-sticky__deger {
	font-size: 17px;
	font-weight: 700;
	color: #202435;
}
.pt-sepet-sticky__btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	border-radius: 999px;
	background: #e5164b;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.pt-sepet-sticky__btn:hover,
.pt-sepet-sticky__btn:focus {
	background: #c4123f;
	color: #fff !important;
}
/* Çubuk açıkken sayfa sonundaki içerik altında kalmasın. */
body.pt-sepet-sticky-acik .site-footer {
	padding-bottom: 76px;
}
/* Sayfada iki adet sabit yüzen düğme var: WhatsApp (bottom:75px) ve "yukarı
   çık" (bottom:60px). Çubuk açılınca ikisi de çubuğun üstüne biniyor
   (ölçüldü: WhatsApp [10,709 60x60] tam "Toplam" tutarının üzerinde).
   Çubuk açıkken ikisini de yukarı ötelüyoruz. */
body.pt-sepet-sticky-acik a[href*="wa.me"],
body.pt-sepet-sticky-acik a[href*="api.whatsapp.com"] {
	bottom: 145px !important;
}
body.pt-sepet-sticky-acik a.scrollToTop {
	bottom: 132px !important;
}
@media (min-width: 768px) {
	.pt-sepet-sticky { display: none !important; }
}
