/*
 * Elitmen · sepet sayfası (inc/cart.php, template-parts/cart/*)
 * Tek tasarım: A (.a-*) çerçeveli liste, yapışkan özet (müşteri seçimi, 5 Kas 2026).
 * Yalnız sepet sayfasında yüklenir. Kırılımlar: 1100 / 720.
 */

/* ---------- Ortak ---------- */
.cart-page { padding-bottom: 96px; }
.cart-page .pd-crumbs { padding-top: 28px; }
.cart-page .woocommerce-notices-wrapper { margin-bottom: 20px; }
.ct-h1 { font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.ct-h1 span { color: var(--muted); font-weight: 400; }
.ct-h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.ct-count { font-size: 15px; color: var(--muted); }
.ct-cont { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.ct-cont:hover { text-decoration-color: currentColor; }
.ct-brand { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ct-pr { font-variant-numeric: tabular-nums; }
.ct-pr.is-sale { color: #9b2c1f; }
.cart-page del { margin-left: 8px; color: var(--muted); font-size: .92em; }
.cart-page .a-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-page h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-form { display: grid; }

/* Adet seçici: gerçek sayı alanı; azalt/artır düğmeleri betik varken görünür */
.ct-qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; }
.ct-qty:focus-within { border-color: var(--ink); }
.ct-qty:has(:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.ct-qty__btn { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color .18s var(--ease); }
.is-js .ct-qty__btn { display: grid; }
.ct-qty__btn:hover:not(:disabled) { background: var(--stone); }
.ct-qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.ct-qty__btn:focus-visible { outline: 0; }
.ct-qty__input {
	width: 56px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); text-align: center;
	font: 500 16px/1 var(--font); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.is-js .ct-qty__input { width: 36px; }
.ct-qty__input::-webkit-inner-spin-button, .ct-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ct-qty__input:focus { outline: 0; }
.ct-qty--fixed { gap: 6px; padding: 0 18px; font-size: 14px; color: var(--muted); }
.ct-qty--fixed b { color: var(--ink); font-weight: 500; }
.ct-qty.is-busy { opacity: .6; }

/* Ürünü kaldır */
.ct-rm { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: none; }
.ct-rm:hover { color: #8a2a2a; }
.ct-rm:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Sepeti güncelle: betik yokken görünür */
.ct-update { margin-top: 16px; }
.is-js .ct-update { display: none; }

/* Düğme: koyu hap + altın ok çipi (altın zeminde koyu yazı) */
.cbtn {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 8px 0 26px; border-radius: 999px;
	background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
	transition: background-color .2s var(--ease);
}
.cbtn:hover { background: var(--ink-2); }
.cbtn__chip { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--gold); color: var(--ink); transition: transform .22s var(--ease); }
.cbtn:hover .cbtn__chip { transform: translateX(4px); }
.cbtn.is-full { display: flex; width: 100%; }
.cbtn.is-gold { background: var(--gold); color: var(--ink); }
.cbtn.is-gold:hover { background: var(--gold-light); }
.cbtn.is-gold .cbtn__chip { background: var(--ink); color: #fff; }

/* Tutar satırları */
.ct-rows { display: grid; gap: 14px; margin: 0; }
.ct-r { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.ct-r dt { color: var(--muted); }
.ct-r dd { margin: 0; text-align: right; }
.ct-r.is-save dd { color: var(--gold-text); font-weight: 500; }
.ct-free { font-weight: 500; }
.ct-r.is-total { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ct-r.is-total dt { color: inherit; }
.ct-vat { margin-top: -8px; text-align: right; font-size: 12px; color: var(--muted); }

/* Kupon */
.ct-coupon { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.ct-coupon__ic { display: grid; flex: none; }
.ct-coupon__in { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: 400 16px/1.2 var(--font); }
.ct-coupon__in::placeholder { color: var(--muted); opacity: 1; }
.ct-coupon__in:focus { outline: 0; }
.ct-coupon__btn { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; font: 600 13px/1 var(--font); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.ct-coupon:has(:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.ct-coupon--a { border: 1px solid var(--line-strong); }
.ct-coupon--a .ct-coupon__btn { background: var(--stone); color: var(--ink); }
.ct-coupon--a .ct-coupon__btn:hover { background: var(--ink); color: #fff; }
.ct-applied { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ct-applied li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--stone); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.ct-applied a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; }
.ct-applied a:hover { background: rgba(18, 18, 18, .08); }

/* Ücretsiz kargo çubuğu */
.ct-ship { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--stone); }
.ct-ship__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; }
.ct-ship__body { flex: 1; display: grid; gap: 8px; font-size: 14px; }
.ct-ship__bar { display: block; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.ct-ship__bar i { display: block; height: 100%; border-radius: 4px; background: var(--gold-text); transition: width .4s var(--ease); }

/* Güven kutuları, güvenli ödeme notu */
.ct-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.ct-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ct-trust li { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.ct-trust b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.ct-trust svg { flex: none; color: var(--gold-text); }
.ct-trust a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.ct-trust a:hover { text-decoration-color: currentColor; }
.ct-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* Öneriler: ortak ürün kartı */
.ct-cross { margin-top: 88px; }
.ct-cross .ct-h2 { margin-bottom: 24px; }
.ct-cross__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ct-cross__grid > li { min-width: 0; }

/* Alta sabit çubuk (yalnız telefonda) */
.ct-sticky { display: none; }
.ct-sticky > div > span { display: block; font-size: 12px; color: var(--muted); }
.ct-sticky b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-sticky .cbtn { height: 52px; }

/* ---------- Boş sepet ---------- */
.ce-box { display: grid; justify-items: start; gap: 16px; max-width: 640px; margin-top: 12px; padding: 48px; border-radius: 24px; background: var(--stone); }
.ce-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.ce-text { max-width: 440px; margin-bottom: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- A · Çerçeveli liste, yapışkan özet ---------- */
.a-head { display: flex; align-items: baseline; gap: 16px; margin: 18px 0 28px; }
.a-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; margin-top: 28px; }
.a-list { display: grid; gap: 16px; min-width: 0; }
.a-list .cart-form { gap: 16px; }
.a-item { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 14px; border-radius: 20px; background: var(--stone); }
.a-media { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #fff; }
.a-info { display: grid; gap: 12px; align-content: space-between; min-width: 0; padding: 8px 8px 4px 0; }
.a-top { display: flex; justify-content: space-between; gap: 16px; }
.a-name { margin-top: 4px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.a-line { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.a-chip { padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; }
.a-act { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.a-links { display: flex; gap: 20px; }
.a-list .ct-trust { margin-top: 12px; }
.a-sum { position: sticky; top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 20px 48px -28px rgba(18, 18, 18, .18); }
.a-sum > * { min-width: 0; }
.a-sum__t { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.a-sum .ct-applied { margin-top: 10px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
	.a-grid { grid-template-columns: minmax(0, 1fr); }
	.a-sum { position: static; }
	.ct-cross__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.cart-page { padding-bottom: 72px; }
	.ct-h1 { font-size: 32px; }
	.ct-cont { display: none; }
	.a-item { grid-template-columns: 96px 1fr; gap: 14px; padding: 10px; border-radius: 16px; }
	.a-info { padding: 4px 4px 2px 0; gap: 10px; }
	.a-name, .a-line { font-size: 15px; }
	.a-meta { gap: 8px; }
	.a-links { gap: 0; }
	.a-links .ct-rm { justify-content: center; width: 44px; padding: 0; }
	.a-links .ct-rm span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.a-act .ct-qty { height: 38px; }
	.a-act .ct-qty__btn { width: 34px; height: 36px; }
	.a-act .ct-qty__input { height: 36px; }
	.ct-trust { grid-template-columns: 1fr; gap: 8px; }
	.a-sum { padding: 22px; border-radius: 20px; }
	.ct-ship { align-items: flex-start; padding: 14px; }
	.ct-ship__ic { width: 34px; height: 34px; }
	.ct-cross { margin-top: 56px; }
	.ct-cross__grid { gap: 12px; }
	.cbtn { font-size: 12px; letter-spacing: .1em; padding-left: 20px; }
	.ce-box { padding: 28px 22px; border-radius: 20px; }

	/* Alta sabit toplam + ödemeye geç; WhatsApp düğmesi çubuğun üstüne çıkar, içerik ve alt bilgi örtülmez */
	body.has-cart-bar { --cart-bar-h: 78px; }
	.ct-sticky {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 16px;
		padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18, 18, 18, .06);
	}
	body:has(.tabbar) .ct-sticky { bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom)); padding-bottom: 12px; }
	body.has-cart-bar .wa-float { bottom: calc(var(--wa-edge) + var(--cart-bar-h) + env(safe-area-inset-bottom)); }
	body.has-cart-bar:has(.tabbar) .wa-float { bottom: calc(var(--wa-edge) + var(--cart-bar-h) + var(--tabbar-h, 0px) + env(safe-area-inset-bottom)); }
	body.has-cart-bar .site-footer { padding-bottom: calc(var(--cart-bar-h) + env(safe-area-inset-bottom)); }
	body.has-cart-bar:has(.tabbar) .site-footer { padding-bottom: calc(var(--cart-bar-h) + var(--tabbar-h, 0px) + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
	.ct-ship__bar i, .cbtn__chip { transition: none; }
	.cbtn:hover .cbtn__chip { transform: none; }
}
