/**
 * BiiTest UI kabuğu + sepet sayfası — v3.6.0
 *
 * Kapsam:
 *   1. Sepet sayfası (woocommerce/cart/*.php şablonları)
 *   2. Adet stepper'ı
 *   3. Mobil alt bar (sepet + ödemeye geç)
 *   4. Yukarı kaydırma butonu
 *
 * Tasarım dili tema token'larından gelir: --primary, --text, --line,
 * --bg-elev-1, --container, --gutter, --header-h, --ease.
 */

:root {
	--biitest-mobilebar-h: 72px;
	--biitest-card-radius: 24px;
	--biitest-card-shadow: 0 16px 48px -16px rgba(38, 18, 70, .12);
	--biitest-success: #0a8754;
}

/* ==================================================================
 *  HEADER DENGESİ
 * ================================================================== */

/* Masaüstü: logo sol · menü tam ortada · CTA sağ.
 * 3 sütunlu grid kullanıyoruz; kenar sütunlar eşit (1fr) olduğu için
 * menü, logonun ve CTA'nın genişliğinden bağımsız olarak gerçekten
 * ortalanır (flex + auto margin yalnızca "kalan boşluğa göre" ortalar). */
@media (min-width: 881px) {
	.header .nav .nav-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 24px;
	}

	.header .nav .nav-inner .logo {
		grid-column: 1;
		justify-self: start;
		margin: 0 !important;
	}

	.header .nav .nav-inner .nav-links {
		grid-column: 2;
		justify-self: center;
		margin: 0 !important;
	}

	.header .nav .nav-inner .nav-cta {
		grid-column: 3;
		justify-self: end;
	}
}

/* Eski önbellekten iç içe <a> ile gelen sayfalarda logo görseli
 * `.nav-inner`ın ayrı çocuğu olarak kalır — o hâlde de sola alsın. */
.nav-inner > .custom-logo-link {
	order: -1;
	margin-right: auto;
}

@media (min-width: 881px) {
	.nav-inner > .custom-logo-link {
		grid-column: 1;
		justify-self: start;
	}
}

/* KKTC bayrağı (SVG) — emoji bayraklarla aynı optik boyutta dursun */
.biitest-flag {
	display: inline-block;
	width: 1.15em;
	height: auto;
	vertical-align: -0.18em;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* ==================================================================
 *  0. HEADER SEPET İKONU
 *
 *  .whoop-cart-icon-wrap ve .whoop-cart-count-badge için temada HİÇ kural
 *  yoktu (skip-cart ikonu her zaman gizlediği için hiç stillenmemiş).
 *  Rozet düz metin olarak ikonun yanına akıyor ve 44px'lik yuvarlağı
 *  taşırıyordu — ikon "görünmüyor" gibi duruyordu.
 * ================================================================== */

/* Sepet boşken gizli. Markup her zaman basılır (önbellek uyumu için),
 * görünürlüğü çerez senkronu belirler. */
.whoop-header-cart.is-empty,
.biitest-mobilebar.is-empty {
	display: none !important;
}

.whoop-cart-icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.nav-cart .whoop-cart-icon-wrap svg,
.mobile-cart-btn .whoop-cart-icon-wrap svg,
.biitest-nav-cart-mobile .whoop-cart-icon-wrap svg {
	width: 21px;
	height: 21px;
	display: block;
}

.whoop-cart-count-badge {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--primary, #2FA3F2);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	letter-spacing: 0;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .85);
	pointer-events: none;
}

/* Masaüstü ikon kontrastı — koyu nav üzerinde net dursun */
.nav-cart.whoop-header-cart {
	color: #fff;
	border-color: rgba(255, 255, 255, .38);
	overflow: visible;
}

/* Mobil header sepet ikonu (≤880px; .nav-cta orada gizli) */
.biitest-nav-cart-mobile {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .38);
	align-items: center;
	justify-content: center;
	color: #fff;
	flex: 0 0 auto;
	text-decoration: none;
}

@media (max-width: 880px) {
	/*
	 * Logo HER ZAMAN solda. Temanın .nav-inner kuralı mobilde
	 * `justify-content: flex-end`; boşluğu daha önce .menu-toggle'ın
	 * margin-left:auto'su yaratıyordu. Sepet ikonu araya girince (ve
	 * sepet boşken gizlenince) logo sağa kayıyordu — boşluğu artık
	 * logonun kendisi tutuyor, sepet ikonu olsa da olmasa da değişmez.
	 */
	/*
	 * !important ve yüksek özgüllük bilinçli: temanın derlenmiş
	 * bundle'ında AYNI özgüllükte `.nav-inner .logo { margin-right: 0 }`
	 * kuralı var ve WP Rocket'ın CSS birleştirme/"kullanılmayan CSS"
	 * özellikleri dosya sırasını değiştirebiliyor. Logonun yeri
	 * dosya sırasına bağlı kalmamalı.
	 */
	.header .nav .nav-inner .logo,
	.nav-inner .logo {
		position: static !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;
		margin-right: auto !important;
		margin-left: 0 !important;
	}

	.biitest-nav-cart-mobile {
		display: inline-flex;
	}

	.nav-inner .biitest-nav-cart-mobile + .menu-toggle {
		margin-left: 8px;
	}
}

/* ==================================================================
 *  1. SEPET SAYFASI
 * ================================================================== */

/* --- WooCommerce core CSS'ini etkisizleştir --------------------------
 *  woocommerce-layout.css: .cart-collaterals .cart_totals{float:right;width:48%}
 *  → özet kartı 372px'lik grid sütununun %48'ine (≈178px) düşüyor,
 *    "Ara toplam" alt satıra kayıyor, buton taşıyordu.
 *  woocommerce.css:  table.shop_table kenarlıkları + a.button.alt (mor)
 * ------------------------------------------------------------------ */

body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .woocommerce .cart-collaterals {
	width: 100%;
	float: none;
	margin: 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart_totals.biitest-cart-summary {
	float: none;
	width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form {
	margin: 0;
}

body.woocommerce-cart .biitest-cart-summary__table,
body.woocommerce-cart .biitest-cart-summary__table tr,
body.woocommerce-cart .biitest-cart-summary__table th,
body.woocommerce-cart .biitest-cart-summary__table td {
	border: 0;
	background: transparent;
	border-radius: 0;
}

body.woocommerce-cart .biitest-cart-summary__table {
	margin: 0;
	border-collapse: collapse;
	table-layout: auto;
}

body.woocommerce-cart .biitest-cart-summary__table th,
body.woocommerce-cart .biitest-cart-summary__table td {
	padding: 9px 0;
	line-height: 1.35;
}

/* DİKKAT: burada `white-space: nowrap` KULLANMA.
 * Kargo satırındaki "Gönderim hedefi: <uzun adres>" ve toplamdaki
 * "(Türkiye için tahmin edilen ₺X Vergi içerir)" notu sarmalanamayınca
 * tablonun min-content genişliği 372px'lik grid sütununu taşırıyor ve
 * özet kartı ekranın dışına çıkıyor. Sadece para tutarları nowrap. */
body.woocommerce-cart .biitest-cart-summary__table th {
	width: auto;
	padding-right: 14px;
	white-space: normal;
}

body.woocommerce-cart .biitest-cart-summary__table td {
	white-space: normal;
	overflow-wrap: anywhere;
}

body.woocommerce-cart .biitest-cart-summary__table .woocommerce-Price-amount,
body.woocommerce-cart .biitest-cart-summary__table .amount {
	white-space: nowrap;
}

/* Kargo yöntemi + gönderim hedefi */
body.woocommerce-cart .biitest-cart-summary .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-cart .biitest-cart-summary .woocommerce-shipping-methods li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-cart .biitest-cart-summary .woocommerce-shipping-destination,
body.woocommerce-cart .biitest-cart-summary .woocommerce-shipping-calculator {
	display: block;
	margin: 6px 0 0;
	text-align: left;
	font-size: .76rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--text-muted, rgba(0, 0, 0, .62));
	white-space: normal;
	overflow-wrap: anywhere;
}

/* Toplam satırındaki KDV notu — tutarın altına, küçük ve sönük */
body.woocommerce-cart .biitest-cart-summary__table .order-total td small,
body.woocommerce-cart .biitest-cart-summary__table .includes_tax {
	display: block;
	margin-top: 4px;
	font-size: .72rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--text-muted, rgba(0, 0, 0, .62));
	white-space: normal;
}


.biitest-cart {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 28px var(--gutter, 24px) 72px;
	color: var(--text, #000);
}

.biitest-cart__header {
	margin-bottom: 22px;
}

/* Adım göstergesi — /odeme sayfasındaki ile aynı dil */
.biitest-cart__steps {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.biitest-cart__step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-dim, rgba(0, 0, 0, .45));
	letter-spacing: .01em;
}

.biitest-cart__step .step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	font-size: 12px;
	line-height: 1;
}

.biitest-cart__step.is-active {
	color: var(--text, #000);
}

.biitest-cart__step.is-current .step-no {
	background: var(--primary, #2FA3F2);
	border-color: var(--primary, #2FA3F2);
	color: #fff;
}

.biitest-cart__step-dash {
	width: 26px;
	height: 1.5px;
	background: var(--line-strong, rgba(0, 0, 0, .16));
	border-radius: 2px;
}

.biitest-cart__title {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.1;
	font-weight: 800;
	margin: 0;
}

.biitest-cart__count {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted, rgba(0, 0, 0, .62));
}

/* --- Paket avantajı bandı ------------------------------------------ */

.biitest-cart-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	border-radius: 14px;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.4;
}

.biitest-cart-banner--saving {
	background: rgba(10, 135, 84, .08);
	border: 1px solid rgba(10, 135, 84, .18);
	color: var(--biitest-success);
}

.biitest-cart-banner--coupon {
	background: rgba(47, 163, 242, .08);
	border: 1px solid rgba(47, 163, 242, .22);
	color: #0b6ea8;
}

.biitest-cart-banner__icon {
	display: inline-flex;
	flex: 0 0 auto;
}

/* --- Yerleşim ------------------------------------------------------ */

.biitest-cart__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 372px;
	gap: 24px;
	align-items: start;
}

/* Grid çocuklarında min-width:0 — uzun/sarmalanamayan içerik (adres,
 * uzun ürün adı) grid track'ini taşırmasın. */
.biitest-cart__main,
.biitest-cart__side {
	min-width: 0;
	max-width: 100%;
}

.biitest-cart__items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* --- Sepet satırı --------------------------------------------------- */

.biitest-cart-item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto minmax(140px, auto) 34px;
	grid-template-areas: "media body qty subtotal remove";
	gap: 22px;
	align-items: center;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--line, rgba(0, 0, 0, .08));
	border-radius: var(--biitest-card-radius);
	box-shadow: var(--biitest-card-shadow);
}

.biitest-cart-item__media {
	grid-area: media;
}

.biitest-cart-item__media img {
	display: block;
	width: 104px;
	height: 104px;
	object-fit: contain;
	border-radius: 16px;
	background: var(--bg-elev-1, #f4f5f9);
	padding: 6px;
}

.biitest-cart-item__body {
	grid-area: body;
	min-width: 0;
}

.biitest-cart-item__name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.biitest-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.biitest-cart-item__name a:hover {
	text-decoration: underline;
}

.biitest-cart-item__unit {
	margin-top: 6px;
	font-size: .85rem;
	color: var(--text-muted, rgba(0, 0, 0, .62));
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.biitest-cart-item__unit-value {
	font-weight: 600;
	color: var(--text, #000);
}

.biitest-cart-item__unit del,
.biitest-cart-item__subtotal del {
	opacity: .5;
	font-weight: 400;
}

.biitest-cart-item__qty {
	grid-area: qty;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}

.biitest-cart-item__qty-label,
.biitest-cart-item__subtotal-label {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 700;
	white-space: nowrap;
	color: var(--text-dim, rgba(0, 0, 0, .45));
}

.biitest-cart-item__subtotal {
	grid-area: subtotal;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-end;
	text-align: right;
	min-width: 120px;
}

.biitest-cart-item__subtotal-value {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}

.biitest-cart-item__subtotal-value small {
	display: block;
	font-size: .74rem;
	font-weight: 700;
	color: var(--biitest-success);
}

.biitest-cart-item__remove {
	grid-area: remove;
	display: flex;
	justify-content: flex-end;
}

.biitest-cart-item__remove .remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	color: var(--text-dim, rgba(0, 0, 0, .45));
	background: var(--bg-elev-1, #f4f5f9);
	transition: background .2s ease, color .2s ease;
}

.biitest-cart-item__remove .remove:hover {
	background: rgba(255, 0, 38, .1);
	color: var(--red, #ff0026);
}

/* Enter tuşu için gizli varsayılan submit — temada .screen-reader-text
 * kuralı YOK, bu yüzden kendi gizleme kuralımızı yazıyoruz. */
.biitest-cart__default-submit {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --- Adet stepper --------------------------------------------------- */

.biitest-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line-strong, rgba(0, 0, 0, .16));
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.biitest-qty--fixed {
	padding: 8px 18px;
	font-weight: 700;
}

.biitest-qty__btn {
	appearance: none;
	border: 0;
	background: transparent;
	width: 38px;
	height: 38px;
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	color: var(--text, #000);
	cursor: pointer;
	transition: background .2s ease;
}

.biitest-qty__btn:hover:not(:disabled) {
	background: var(--bg-elev-1, #f4f5f9);
}

.biitest-qty__btn:disabled {
	opacity: .35;
	cursor: default;
}

.biitest-qty__input {
	width: 46px;
	height: 38px;
	border: 0;
	border-left: 1px solid var(--line, rgba(0, 0, 0, .08));
	border-right: 1px solid var(--line, rgba(0, 0, 0, .08));
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	background: transparent;
	color: var(--text, #000);
	-moz-appearance: textfield;
}

.biitest-qty__input::-webkit-outer-spin-button,
.biitest-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.biitest-qty__input:focus-visible {
	outline: 2px solid var(--primary, #2FA3F2);
	outline-offset: -2px;
}

/* --- Kupon + aksiyonlar --------------------------------------------- */

.biitest-cart__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-top: 18px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line, rgba(0, 0, 0, .08));
	border-radius: var(--biitest-card-radius);
}

.biitest-cart__coupon {
	flex: 1 1 260px;
	max-width: 400px;
	min-width: 0;
}

.biitest-cart__coupon-label {
	display: block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--text-dim, rgba(0, 0, 0, .45));
	margin-bottom: 8px;
}

.biitest-cart__coupon-row {
	display: flex;
	gap: 8px;
}

.biitest-cart__coupon-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line-strong, rgba(0, 0, 0, .16));
	border-radius: 12px;
	font-size: 15px;
	background: #fff;
	color: var(--text, #000);
}

.biitest-cart__coupon-input:focus-visible {
	outline: 2px solid var(--primary, #2FA3F2);
	outline-offset: 1px;
}

.biitest-cart__coupon-apply,
.biitest-cart__update {
	appearance: none;
	height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	border: 1px solid var(--text, #000);
	background: transparent;
	color: var(--text, #000);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.biitest-cart__coupon-apply:hover,
.biitest-cart__update:hover {
	background: var(--text, #000);
	color: #fff;
}

.biitest-cart__actions-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.biitest-cart__continue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted, rgba(0, 0, 0, .62));
	text-decoration: none;
}

.biitest-cart__continue:hover {
	color: var(--text, #000);
}

/* --- Sipariş özeti kartı -------------------------------------------- */

.biitest-cart-summary {
	position: sticky;
	top: calc(var(--header-h, 109px) + 16px);
	padding: 22px;
	background: #fff;
	border: 1px solid var(--line, rgba(0, 0, 0, .08));
	border-radius: var(--biitest-card-radius);
	box-shadow: var(--biitest-card-shadow);
}

.biitest-cart-summary__title {
	font-size: 1.1rem;
	font-weight: 800;
	margin: 0 0 14px;
}

.biitest-cart-summary__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.biitest-cart-summary__table tr {
	border: 0;
}

.biitest-cart-summary__table th,
.biitest-cart-summary__table td {
	padding: 9px 0;
	border: 0;
	font-size: .92rem;
	vertical-align: top;
	background: transparent;
}

.biitest-cart-summary__table th {
	text-align: left;
	font-weight: 600;
	color: var(--text-muted, rgba(0, 0, 0, .62));
}

.biitest-cart-summary__table td {
	text-align: right;
	font-weight: 700;
}

.biitest-cart-summary__table .cart-discount td,
.biitest-cart-summary__table .cart-discount th {
	color: var(--biitest-success);
}

.biitest-cart-summary__table .cart-discount a {
	display: inline-block;
	margin-left: 6px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--text-dim, rgba(0, 0, 0, .45));
}

.biitest-cart-summary__table .order-total th,
.biitest-cart-summary__table .order-total td {
	padding-top: 14px;
	border-top: 1px solid var(--line, rgba(0, 0, 0, .08));
	font-size: 1.12rem;
	font-weight: 800;
	color: var(--text, #000);
}

.biitest-cart-summary__table .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.biitest-cart-summary__table .woocommerce-shipping-destination,
.biitest-cart-summary__table .woocommerce-shipping-calculator {
	font-size: .8rem;
	font-weight: 500;
	color: var(--text-muted, rgba(0, 0, 0, .62));
}

.biitest-cart-summary__cta {
	margin-top: 18px;
}

/* Ödemeye Geç — WooCommerce core'un mor .button.alt kuralını yener.
 * (Aynı özgüllük: .woocommerce a.button.alt → dosya sırası belirleyici,
 * bu yüzden biitest-shell.css priority 120 ile en sonda yüklenir.) */
.biitest-cart-checkout-btn,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .woocommerce a.button.alt.biitest-cart-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 14px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--text, #000);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	overflow: visible;
	text-shadow: none;
	transition: background .2s ease, transform .2s ease;
}

.biitest-cart-checkout-btn:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .woocommerce a.button.alt.biitest-cart-checkout-btn:hover {
	background: var(--primary, #2FA3F2);
	color: #fff;
	transform: translateY(-1px);
}

.biitest-cart-checkout-btn svg {
	flex: 0 0 auto;
}

.biitest-cart-summary__trust {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.biitest-cart-summary__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .8rem;
	color: var(--text-muted, rgba(0, 0, 0, .62));
}

/* --- Boş sepet ------------------------------------------------------ */

.biitest-cart-empty {
	max-width: 520px;
	margin: 40px auto;
	padding: 44px 28px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--line, rgba(0, 0, 0, .08));
	border-radius: var(--biitest-card-radius);
	box-shadow: var(--biitest-card-shadow);
}

.biitest-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--bg-elev-1, #f4f5f9);
	color: var(--text-dim, rgba(0, 0, 0, .45));
	margin-bottom: 18px;
}

.biitest-cart-empty__title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	margin: 0 0 10px;
}

.biitest-cart-empty__text {
	font-size: .95rem;
	color: var(--text-muted, rgba(0, 0, 0, .62));
	margin: 0 0 22px;
}

.biitest-cart-empty__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.biitest-cart-empty__link {
	display: block;
	margin-top: 14px;
	font-size: .85rem;
	color: var(--text-muted, rgba(0, 0, 0, .62));
}

/* WC'nin kendi boş sepet mesajı — şablonumuz zaten anlatıyor */
.woocommerce-cart .cart-empty.woocommerce-info {
	display: none;
}

/* --- Sepet: tablet & mobil ------------------------------------------ */

@media (max-width: 1024px) {
	.biitest-cart__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.biitest-cart-summary {
		position: static;
	}
}

@media (max-width: 720px) {
	.biitest-cart {
		padding: 20px var(--gutter, 18px) 56px;
	}

	/* Mobil satır: üstte görsel + ad, altta adet (sol) ve ara toplam (sağ).
	 *
	 * GRID DEĞİL FLEX: grid'de "qty" 76px'lik ilk sütuna düşüyordu; adet
	 * kutusu ~124px olduğu için ara toplamın üstüne taşıyordu (canlıda
	 * "2 +" yazısı fiyatın üzerine bindi). Flex + wrap ile ikinci satırı
	 * adet ve ara toplam kendi doğal genişlikleriyle paylaşıyor.
	 * Kaldır butonu akıştan çıkarılıp sağ üste sabitlenir. */
	.biitest-cart-item {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
		padding: 14px 46px 14px 14px;
	}

	.biitest-cart-item__media {
		flex: 0 0 76px;
	}

	.biitest-cart-item__media img {
		width: 76px;
		height: 76px;
	}

	/* Satır 1'i doldurur → adet ve ara toplam alt satıra iner */
	.biitest-cart-item__body {
		flex: 1 1 calc(100% - 88px);
		min-width: 0;
	}

	.biitest-cart-item__qty {
		flex: 0 0 auto;
	}

	.biitest-cart-item__subtotal {
		flex: 1 1 auto;
		min-width: 0;
		align-items: flex-end;
	}

	.biitest-cart-item__remove {
		position: absolute;
		top: 10px;
		right: 10px;
	}

	/* Kupon / aksiyon kartı: taşmasın VE gereksiz yükseklik almasın.
	 *
	 * DİKKAT: masaüstündeki `flex: 1 1 260px` dikey (column) düzende
	 * flex-basis'i YÜKSEKLİK olarak uyguluyor → kupon kutusunun altında
	 * 260px'lik boş alan oluşuyordu. Mobilde temel değeri sıfırlıyoruz. */
	.biitest-cart__coupon {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.biitest-cart__actions {
		gap: 14px;
	}

	.biitest-cart__actions-right {
		gap: 10px;
	}

	.biitest-cart__continue,
	.biitest-cart__update {
		flex: 1 1 auto;
		justify-content: center;
		text-align: center;
	}

	.biitest-cart__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.biitest-cart__actions-right {
		justify-content: space-between;
	}
}

/* --- WooCommerce bildirimleri (sepete eklendi / kupon uygulandı) ------
 *  WC core notice'i tam genişlikte, yeşil-mor kenarlıklı, kutu gibi
 *  duruyordu. Sepet kapsayıcısıyla aynı genişliğe alınıp temaya uyduruldu.
 * ------------------------------------------------------------------ */

body.woocommerce-cart .woocommerce-notices-wrapper {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px var(--gutter, 24px) 0;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid rgba(10, 135, 84, .2);
	border-top-width: 1px;
	border-radius: 16px;
	background: rgba(10, 135, 84, .07);
	color: var(--biitest-success);
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
}

/* WooCommerce bildirimlere tabindex="-1" verip programatik focus atıyor;
 * browser-compat.css'teki [tabindex]:focus-visible kuralı bunu mor bir
 * çerçeve gibi gösteriyordu. Klavyeyle ulaşılabilir bir öğe değil,
 * halkayı kaldırmak erişilebilirliği bozmaz. */
body.woocommerce-cart .woocommerce-message:focus,
body.woocommerce-cart .woocommerce-message:focus-visible,
body.woocommerce-cart .woocommerce-info:focus,
body.woocommerce-cart .woocommerce-info:focus-visible,
body.woocommerce-cart .woocommerce-error:focus,
body.woocommerce-cart .woocommerce-error:focus-visible {
	outline: none;
}

body.woocommerce-cart .woocommerce-error {
	border-color: rgba(255, 0, 38, .2);
	background: rgba(255, 0, 38, .06);
	color: #b3001b;
}

body.woocommerce-cart .woocommerce-info {
	border-color: rgba(47, 163, 242, .25);
	background: rgba(47, 163, 242, .08);
	color: #0b6ea8;
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
	position: static;
	margin: 0;
	color: inherit;
	font-size: 1rem;
}

body.woocommerce-cart .woocommerce-message .button,
body.woocommerce-cart .woocommerce-info .button {
	margin-left: auto;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--text, #000);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.2;
}

/* "Sepetim" (view cart) butonu — zaten sepet sayfasındayız, gereksiz */
body.woocommerce-cart .woocommerce-message .button.wc-forward {
	display: none;
}

/* ==================================================================
 *  2. MOBİL ALT BAR
 * ================================================================== */

.biitest-mobilebar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 95;
	align-items: center;
	gap: 12px;
	padding: 10px var(--gutter, 18px);
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .96);
	border-top: 1px solid var(--line-strong, rgba(0, 0, 0, .16));
	box-shadow: 0 -12px 40px rgba(15, 23, 42, .12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.biitest-mobilebar__cart {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
	min-width: 56px;
	padding: 4px 6px;
	color: var(--text, #000);
	text-decoration: none;
}

.biitest-mobilebar__cart-icon {
	position: relative;
	display: inline-flex;
}

.biitest-mobilebar__badge {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--primary, #2FA3F2);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.biitest-mobilebar__cart-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .01em;
}

.biitest-mobilebar__cta {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--text, #000);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
	text-decoration: none;
	text-transform: uppercase;
}

.biitest-mobilebar__cta:hover,
.biitest-mobilebar__cta:focus {
	color: #fff;
}

@media (max-width: 767px) {
	.biitest-mobilebar {
		display: flex;
	}

	body.has-biitest-mobilebar {
		padding-bottom: calc(var(--biitest-mobilebar-h) + env(safe-area-inset-bottom, 0px));
	}

	/* Ürün sayfasındaki sticky "Sepete Ekle" barı alt barın üstüne çıksın */
	body.has-biitest-mobilebar .whoop-sticky-atc,
	body.has-biitest-mobilebar .whoop-cart-sticky-bar {
		bottom: calc(var(--biitest-mobilebar-h) + env(safe-area-inset-bottom, 0px));
	}

	/* Sohbet balonu (.bii-launcher, 62px) alt barın üstüne çıksın —
	 * yoksa "Ödemeye Geç" butonunun üzerine biniyor. */
	body.has-biitest-mobilebar .bii-launcher {
		bottom: calc(var(--biitest-mobilebar-h) + 12px + env(safe-area-inset-bottom, 0px));
	}
}

/* ==================================================================
 *  2b. "SEPETE EKLENİYOR" GERİ BİLDİRİMİ
 * ================================================================== */

.biitest-atc {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/*
 * Bilinçli olarak fade YOK. Overlay, form gönderimi başladıktan sonra
 * açılıyor; bekleyen navigasyon sırasında tarayıcı requestAnimationFrame'i
 * çalıştırmayabiliyor (ölçtük: rAF tetiklenmedi, opacity 0'da kaldı).
 * Anında görünür olmalı — geç görünen bir "yükleniyor" hiç yok gibidir.
 */
.biitest-atc[hidden] {
	display: none;
}

.biitest-atc__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 320px;
	padding: 26px 28px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
	text-align: center;
}

.biitest-atc__title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--text, #000);
}

.biitest-atc__text {
	font-size: .85rem;
	line-height: 1.4;
	color: var(--text-muted, rgba(0, 0, 0, .62));
}

.biitest-atc__spinner {
	width: 34px;
	height: 34px;
	margin-bottom: 4px;
	border: 3px solid rgba(0, 0, 0, .12);
	border-top-color: var(--primary, #2FA3F2);
	border-radius: 50%;
	animation: biitest-atc-spin .7s linear infinite;
}

@keyframes biitest-atc-spin {
	to { transform: rotate(360deg); }
}

/* Tıklanan "Sepete Ekle" butonu — beklerken kendi üzerinde de belli olsun */
.biitest-atc-loading {
	position: relative;
	opacity: .75;
	pointer-events: none;
}

.biitest-atc-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: biitest-atc-spin .7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.biitest-atc__spinner,
	.biitest-atc-loading::after {
		animation-duration: 2s;
	}
}

/* ==================================================================
 *  3. YUKARI KAYDIRMA BUTONU
 * ================================================================== */

/* Konum notu: sağ altta Chaty sohbet balonu var → buton onun ÜSTÜNE
 * konumlanır (bottom ~96px), yoksa üst üste biniyorlar. */
.biitest-scrolltop {
	position: fixed;
	right: 22px;
	bottom: 96px;
	z-index: 96;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line-strong, rgba(0, 0, 0, .16));
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--text, #000);
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s var(--ease, ease), visibility .25s;
}

.biitest-scrolltop[hidden] {
	display: none;
}

.biitest-scrolltop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.biitest-scrolltop:hover {
	background: var(--text, #000);
	color: #fff;
	border-color: var(--text, #000);
}

.biitest-scrolltop:focus-visible {
	outline: 2px solid var(--primary, #2FA3F2);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.biitest-scrolltop {
		right: 14px;
		bottom: 88px;
		width: 42px;
		height: 42px;
	}

	/* Alt bar varken hem barın hem sohbet balonunun üstüne al */
	body.has-biitest-mobilebar .biitest-scrolltop {
		bottom: calc(var(--biitest-mobilebar-h) + 84px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.biitest-scrolltop {
		transition: opacity .01ms linear;
	}
}
