/*
 * WooBooster – ön yüz stilleri
 *
 * Impreza + WPBakery ile çakışmaması için tüm seçiciler .wb- öneki taşır
 * ve tema tipografisini devralır (font-family tanımlanmaz).
 *
 * DÜZEN NOTU: liste düzenlerinde flex yerine grid kullanılır. Flex
 * öğelerinde min-width varsayılanı auto'dur; uzun ürün adı veya iki
 * satırlık fiyat metni ("400 ₺ +KDV'li 400 ₺") öğeyi küçültmek yerine
 * kabı genişletip dar sütunlarda taşmaya yol açıyordu. minmax(0, 1fr)
 * bunu keser.
 */

:root {
	--wb-accent: #1f9d76;
	--wb-radius: 10px;
}

/* ── Kargo barajı çubuğu ─────────────────────────────────────── */

.wb-ship-bar {
	margin: 0 0 20px;
	max-width: 100%;
	min-width: 0;
}

.wb-ship-bar__inner {
	background: rgba(0, 0, 0, .03);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--wb-radius);
	max-width: 100%;
	min-width: 0;
	padding: 14px 16px;
}

.wb-ship-bar__msg {
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 8px;
}

.wb-ship-bar__sub {
	font-size: .85em;
	margin-top: 8px;
	opacity: .7;
}

.wb-ship-bar__track {
	background: rgba(0, 0, 0, .1);
	border-radius: 99px;
	height: 8px;
	overflow: hidden;
	width: 100%;
}

.wb-ship-bar__fill {
	background: var(--wb-accent);
	border-radius: 99px;
	display: block;
	height: 100%;
	transition: width .45s ease;
}

.wb-ship-bar--done .wb-ship-bar__msg {
	color: var(--wb-accent);
}

/* ── Barajı kapatan ürün önerileri ───────────────────────────── */

.wb-ship-suggest {
	margin-top: 14px;
	max-width: 100%;
	min-width: 0;
}

.wb-ship-suggest__title {
	font-size: .9em;
	font-weight: 600;
	margin: 0 0 10px;
	opacity: .8;
}

.wb-ship-suggest__list {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	max-width: 100%;
	padding: 0;
}

.wb-ship-suggest__item {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: var(--wb-radius);
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto;
	min-width: 0;
	padding: 8px 10px;
}

.wb-ship-suggest__link {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 44px minmax(0, 1fr);
	min-width: 0;
	text-decoration: none;
}

.wb-ship-suggest__thumb {
	line-height: 0;
}

.wb-ship-suggest__thumb img {
	border-radius: 6px;
	display: block;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.wb-ship-suggest__meta {
	display: block;
	min-width: 0;
}

.wb-ship-suggest__name {
	display: block;
	font-size: .85em;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wb-ship-suggest__price {
	display: block;
	font-size: .8em;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 2px;
	white-space: normal;
}

/* Tema hem hariç hem dahil fiyatı basıyorsa ikincisi alt satıra insin */

.wb-ship-suggest__price .woocommerce-price-suffix,
.wb-ship-suggest__price small {
	display: block;
	font-size: .92em;
	font-weight: 400;
	opacity: .7;
}

.wb-ship-suggest__price del {
	font-weight: 400;
	opacity: .55;
}

.wb-ship-suggest__price ins {
	text-decoration: none;
}

.wb-ship-suggest__add {
	font-size: .8em !important;
	padding: 6px 12px !important;
	white-space: nowrap;
}

/* ── Çapraz satış ────────────────────────────────────────────── */

.wb-crosssell {
	margin: 30px 0;
	max-width: 100%;
	min-width: 0;
}

.wb-crosssell__title {
	font-size: 1.15em;
	margin: 0 0 14px;
}

.wb-crosssell__list {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	list-style: none;
	margin: 0;
	max-width: 100%;
	padding: 0;
}

.wb-crosssell__item {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: var(--wb-radius);
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 12px;
	text-align: center;
}

.wb-crosssell__link {
	min-width: 0;
	text-decoration: none;
}

.wb-crosssell__thumb img {
	border-radius: 6px;
	display: block;
	height: auto;
	margin: 0 auto 8px;
	max-width: 100%;
}

.wb-crosssell__name {
	display: block;
	font-size: .9em;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.wb-crosssell__price {
	font-size: .9em;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Tema ızgarası kullanıldığında kendi kart stillerimiz devreye girmesin */

.wb-crosssell--theme ul.products {
	margin-left: 0;
	margin-right: 0;
}

.wb-crosssell--theme .wb-crosssell__title {
	margin-bottom: 18px;
}

/* ── Stok sayacı ─────────────────────────────────────────────── */

.wb-stock-counter {
	border-radius: 6px;
	display: inline-block;
	font-size: .85em;
	font-weight: 600;
	margin: 8px 0;
	padding: 5px 10px;
}

.wb-stock-low {
	background: rgba(214, 122, 0, .1);
	color: #a85c00;
}

.wb-stock-out {
	background: rgba(180, 40, 40, .1);
	color: #a12727;
}

.wb-stock-loop {
	font-size: .75em;
	margin: 4px 0;
	padding: 3px 7px;
}

/* ── Ziyaretçi rozeti ────────────────────────────────────────── */

.wb-viewers-badge {
	align-items: center;
	display: flex;
	font-size: .85em;
	gap: 7px;
	margin: 8px 0;
	opacity: .8;
}

.wb-viewers-icon {
	background: var(--wb-accent);
	border-radius: 50%;
	flex-shrink: 0;
	height: 7px;
	width: 7px;
}

.wb-viewers-admin {
	background: rgba(0, 0, 0, .05);
	border-left: 3px solid #999;
	border-radius: 4px;
	color: #666;
	display: block;
	font-size: .78em;
	line-height: 1.4;
	padding: 7px 10px;
}

/* ── Tekrar sipariş ──────────────────────────────────────────── */

.wb-reorder-wrap {
	margin-top: 18px;
}

/* ── Misafir hesap teklifi ───────────────────────────────────── */

.wb-guest-register {
	background: rgba(0, 0, 0, .03);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--wb-radius);
	margin: 26px 0;
	padding: 22px;
}

.wb-guest-register h3 {
	margin-top: 0;
}

.wb-guest-register__hint {
	display: block;
	font-size: .8em;
	margin-top: 5px;
	opacity: .7;
}

.wb-guest-register__form input[type="password"] {
	max-width: 320px;
	width: 100%;
}

/* ── Sözleşme onayı ──────────────────────────────────────────── */

.wb-agreements {
	margin: 18px 0;
}

.wb-agreement {
	margin: 0 0 10px !important;
}

.wb-agreement__link {
	font-weight: 600;
	text-decoration: underline;
}

.wb-agreement__hint {
	display: block;
	font-size: .78em;
	margin-top: 3px;
	opacity: .65;
}

.wb-agreement__input[disabled] {
	cursor: not-allowed;
	opacity: .5;
}

.wb-modal[hidden] {
	display: none;
}

.wb-modal {
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 20px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 999999;
}

.wb-modal__backdrop {
	background: rgba(0, 0, 0, .55);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.wb-modal__box {
	background: #fff;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	max-height: 88vh;
	max-width: 780px;
	position: relative;
	width: 100%;
}

.wb-modal__head {
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, .1);
	display: flex;
	justify-content: space-between;
	padding: 16px 20px;
}

.wb-modal__title {
	font-size: 1.05em;
	margin: 0;
}

.wb-modal__x {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0 4px;
}

.wb-modal__body {
	-webkit-overflow-scrolling: touch;
	flex: 1;
	font-size: .9em;
	line-height: 1.6;
	overflow-y: auto;
	padding: 20px;
}

.wb-modal__body table {
	border-collapse: collapse;
	margin: 12px 0;
	width: 100%;
}

.wb-modal__body th,
.wb-modal__body td {
	border: 1px solid rgba(0, 0, 0, .12);
	padding: 7px 10px;
}

.wb-modal__foot {
	align-items: center;
	border-top: 1px solid rgba(0, 0, 0, .1);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 14px 20px;
}

.wb-modal__progress {
	font-size: .82em;
	opacity: .7;
}

.wb-modal__accept[disabled] {
	cursor: not-allowed;
	opacity: .45;
}

body.wb-modal-open {
	overflow: hidden;
}

/* ── Giriş / kayıt sayfası ───────────────────────────────────── */

.wb-account-intro {
	background: rgba(0, 0, 0, .03);
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: var(--wb-radius);
	margin: 0 0 26px;
	padding: 20px 24px;
}

.wb-account-intro__title {
	font-size: 1.15em;
	margin: 0 0 12px;
}

.wb-account-intro__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wb-account-intro__list li {
	line-height: 1.5;
	margin: 0 0 7px;
	padding-left: 24px;
	position: relative;
}

.wb-account-intro__list li::before {
	background: var(--wb-accent);
	border-radius: 50%;
	content: "";
	height: 7px;
	left: 4px;
	position: absolute;
	top: .55em;
	width: 7px;
}

.wb-account-consent span,
.wb-account-optin span {
	font-size: .88em;
	line-height: 1.45;
}

/* ── WPBakery / Impreza düzeltmeleri ─────────────────────────── */

.wpb_wrapper .wb-ship-bar,
.wpb_wrapper .wb-crosssell {
	width: 100%;
}

.us-woo-product .wb-stock-counter,
.us-woo-product .wb-viewers-badge {
	clear: both;
}

/* ── Duyarlı ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.wb-ship-suggest__name {
		white-space: normal;
	}
}

@media (max-width: 600px) {
	.wb-crosssell__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wb-ship-suggest__item {
		grid-template-columns: minmax(0, 1fr);
	}

	.wb-ship-suggest__add {
		text-align: center;
	}

	.wb-modal {
		padding: 0;
	}

	.wb-modal__box {
		border-radius: 0;
		max-height: 100vh;
	}
}

/* ── Hesabım: giriş / kayıt sütunları ────────────────────────── */

.woocommerce-account .wb-account-intro {
	grid-column: 1 / -1;
}

.woocommerce-account #customer_login h2 {
	margin-top: 0;
}

/* Kayıt formundaki açıklama metinleri sütunu zorlamasın */

.woocommerce-account #customer_login .woocommerce-privacy-policy-text p,
.woocommerce-account #customer_login em {
	font-size: .85em;
	line-height: 1.5;
}

.woocommerce-account .wb-account-consent label,
.woocommerce-account .wb-account-optin label {
	align-items: flex-start;
	display: flex;
	gap: 9px;
}

.woocommerce-account .wb-account-consent input[type="checkbox"],
.woocommerce-account .wb-account-optin input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: .2em;
}

.woocommerce-account .wb-account-optin span {
	font-weight: 400;
}

.wb-modal__body {
	overscroll-behavior: contain;
}
