/* ==========================================================================
   TUHAFSEYLER — ek bileşenler (çerez bildirimi, alt gezinme, kargo notu, son baktıkların)
   ========================================================================== */

/* Odak görünürlüğü: klavye ile gezinenler için net halka */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--violet);
	outline-offset: 3px;
	border-radius: 6px;
}
html.is-weird a:focus-visible, html.is-weird button:focus-visible { outline-color: var(--acid); }

/* Çerez bildirimi */
.cookie {
	position: fixed; z-index: 1150; left: 18px; bottom: 18px;
	width: min(420px, calc(100vw - 36px));
	display: flex; align-items: center; gap: 1rem;
	padding: 1rem 1.1rem;
	background: var(--card); color: var(--fg);
	border: var(--bw) solid var(--edge); border-radius: var(--r);
	box-shadow: var(--shadow);
	opacity: 0; transform: translateY(14px);
	transition: opacity .3s, transform .35s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-in { opacity: 1; transform: none; }
.cookie p { margin: 0; font-size: .88rem; line-height: 1.45; flex: 1; }
.cookie strong { display: block; font: 800 .95rem var(--f-display); margin-bottom: .15rem; }
.cookie a { color: var(--violet); font-weight: 700; }
.cookie .btn { flex: none; }

/* Mobil alt gezinme */
.tabbar { display: none; }
@media (max-width: 768px) {
	.tabbar {
		position: fixed; z-index: 760; left: 0; right: 0; bottom: 0;
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
		background: var(--ink); border-top: var(--bw) solid var(--edge);
	}
	html.is-weird .tabbar { background: #0e0a1d; border-top-color: var(--edge); }
	.tabbar__i {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 52px; padding: 4px 2px; border: 0; border-radius: 14px; background: transparent;
		color: #d9d3ee; font: 700 .66rem/1 var(--f-display); text-decoration: none; cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.tabbar__i .ic { width: 22px; height: 22px; }
	.tabbar__i:active { transform: scale(.94); }
	.tabbar__i.is-on, .tabbar__i:hover { color: var(--acid); }
	.tabbar__i.is-on { background: rgba(216, 255, 62, .12); }
	.tabbar .count {
		position: absolute; top: 2px; left: calc(50% + 4px);
		min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center;
		background: var(--pink); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
		font: 800 .62rem/1 var(--f-mono); font-style: normal;
	}
	.tabbar .count[data-count="0"] { display: none; }
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	.wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.to-top { bottom: calc(146px + env(safe-area-inset-bottom)); }
	.cookie { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; width: calc(100vw - 24px); }
	.toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
	/* Ürün sayfasındaki yapışkan "Sepete At" çubuğu alt gezinmenin üstünde kalsın */
	.sticky-atc, .atc-sticky { bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media print { .tabbar, .cookie { display: none !important; } }

/* Ürün sayfası kargo / stok notu */
.ship-note { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ship-note li {
	display: flex; align-items: center; gap: .6rem;
	padding: .6rem .9rem; font: 700 .88rem/1.2 var(--f-display);
	background: var(--card); border: 2px solid var(--edge); border-radius: 999px; width: fit-content; max-width: 100%;
}
.ship-note .ic { width: 18px; height: 18px; flex: none; }
.ship-note li.is-hot { background: var(--pink); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* Son baktıkların */
.rv { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.rv h2 { font: 800 clamp(1.3rem, 2.4vw, 1.7rem)/1.1 var(--f-display); margin: 0 0 1rem; letter-spacing: -.02em; }
.rv__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 168px); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rv__row::-webkit-scrollbar { display: none; }
.rv__card {
	scroll-snap-align: start; display: grid; gap: .4rem; align-content: start;
	padding: 10px; text-decoration: none; color: var(--fg);
	background: var(--card); border: var(--bw) solid var(--edge); border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--edge);
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.rv__card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); color: var(--fg); }
.rv__card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
.rv__t { font: 700 .82rem/1.25 var(--f-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv__p { font: 800 .85rem var(--f-display); }

@media (prefers-reduced-motion: reduce) {
	.cookie, .rv__card { transition: none; }
}

/* ==========================================================================
   Düzeltmeler (test turu): çerez bandı, bildirimler, ödeme alanları, dokunma hedefleri
   ========================================================================== */

/* Çerez bandı: iki düğme */
.cookie__actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: none; }
.cookie .btn--ghost { background: transparent; color: var(--fg); border: 2px solid var(--edge); box-shadow: none; }

/* Bildirim balonu, çerez bandının ve açık çekmecenin üstüne binmesin */
body.has-cookie .toasts { bottom: 128px; }
body.is-locked .toasts { top: 18px; bottom: auto; }

/* Yasal bağlantılar (alt bilgi) */
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.footer-legal a { display: inline-block; padding: .3rem 0; color: #e9e4f5; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--acid); }

/* Yasal sayfalarda doldurulmamış alan */
mark.tz-fill { background: #fff1a8; color: #5a4a00; padding: 0 .35em; border-radius: 4px; font-weight: 700; }

/* Ödeme: yüzen etiket değerle çakışmasın (otomatik doldurma dâhil) */
.wp-block-woocommerce-checkout .wc-block-components-text-input input {
	height: 56px !important; padding: 26px 14px 8px !important; line-height: 1.3;
}
.wp-block-woocommerce-checkout .wc-block-components-text-input label { top: 28px; }
.wp-block-woocommerce-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-components-text-input input:-webkit-autofill + label {
	top: 5px; transform: scale(.8);
}

/* Dokunmatik ekranlarda küçük bağlantılar daha kolay basılsın */
.footer-col a { display: inline-block; padding: .3rem 0; }
.footer-col ul { gap: .1rem; }
.post-card__cat, .post-card .more { display: inline-flex; align-items: center; min-height: 36px; }
@media (pointer: coarse) {
	.footer-col a, .footer-legal a { padding: .55rem 0; }
	.post-card__cat, .post-card .more { min-height: 44px; }
}

/* Mobil */
@media (max-width: 768px) {
	/* Çerez bandı daha kompakt */
	.cookie { flex-direction: column; align-items: stretch; gap: .6rem; padding: .75rem .9rem; }
	.cookie p { font-size: .8rem; line-height: 1.4; }
	.cookie strong { display: none; }
	.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.cookie__actions .btn { justify-content: center; }
	body.has-cookie .toasts { bottom: calc(190px + env(safe-area-inset-bottom)); }
	/* İletişim: form hayalet görselinin altında kalmasın */
	.contact__ghost { display: none; }
}
