/**
 * Sepet sayfası — üst özet bandı, adım şeridi, tablo, kupon, yapışkan alt çubuk.
 */

/* Blok sepet (WooCommerce Cart block): özet sipariş özeti sütununun üstünde */
.wc-block-cart .banyoma-cart-summary,
.wp-block-woocommerce-cart-order-summary-block .banyoma-cart-summary {
	margin-bottom: 20px;
}

/* Blok sipariş özeti: “Tahmini toplam” tutarı kalın */
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
.wc-block-cart__totals-footer .wc-block-components-totals-item__value,
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700 !important;
}

body.woocommerce-cart {
	padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.woocommerce-cart .banyoma-cart-page {
	max-width: var(--banyoma-max, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

/* Ödeme adımları */
.woocommerce-cart .banyoma-cart-steps {
	margin: 0 auto 20px;
	max-width: var(--banyoma-max, 1200px);
}

.woocommerce-cart .banyoma-cart-steps__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px 8px;
	margin: 0;
	padding: 0 4px;
	list-style: none;
}

.woocommerce-cart .banyoma-cart-steps__item {
	flex: 1 1 0;
	min-width: 72px;
	max-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	opacity: 0.45;
}

.woocommerce-cart .banyoma-cart-steps__item--active {
	opacity: 1;
}

.woocommerce-cart .banyoma-cart-steps__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	background: #fff;
}

.woocommerce-cart .banyoma-cart-steps__item--active .banyoma-cart-steps__dot {
	border-color: #ea580c;
	background: #ea580c;
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.woocommerce-cart .banyoma-cart-steps__label {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #374151;
}

/* Tablo başlığı (referans: koyu şerit) */
.woocommerce-cart .banyoma-cart-table thead th {
	background: #111827;
	color: #fff;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 14px 12px;
	border: 0;
}

.woocommerce-cart .banyoma-cart-table thead .product-remove,
.woocommerce-cart .banyoma-cart-table thead .product-thumbnail {
	width: 1%;
}

.woocommerce-cart .banyoma-cart-table tbody td {
	padding: 16px 12px;
	vertical-align: middle;
	border-color: #e5e7eb;
}

/* Ürün görseli — biraz daha büyük, düzenli çerçeve */
.woocommerce-cart .banyoma-cart-table .product-thumbnail {
	width: 120px;
	min-width: 100px;
}

.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table .product-thumbnail img {
	width: 104px;
	max-width: 120px;
	height: auto;
	min-height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	box-sizing: border-box;
	vertical-align: middle;
}

/* Ürün adı — kurumsal, kalın, link görünümünden çıkar (ilk bağlantı = ürün başlığı) */
.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table td.product-name a:first-of-type {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: #111827 !important;
	text-decoration: none !important;
	letter-spacing: -0.01em;
}

.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table td.product-name a:first-of-type:hover,
.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table td.product-name a:first-of-type:focus {
	color: #0f172a !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* Satır toplamı (TOPLAM sütunu) — kalın */
.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table td.product-subtotal,
.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table td.product-subtotal .woocommerce-Price-amount,
.woocommerce-cart .woocommerce-cart-form .banyoma-cart-table td.product-subtotal .amount {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 700 !important;
	color: #111827;
}

/* Sepet toplamları — Ödemeye git: tam genişlik, belirgin buton */
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
	margin-top: 12px;
	margin-bottom: 4px;
}

.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .cart-collaterals a.checkout-button.button.alt.wc-forward {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	padding: 16px 22px;
	min-height: 52px;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	border-radius: 10px;
	border: 0 !important;
	background: #16a34a !important;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout .checkout-button:focus,
.woocommerce-cart .cart-collaterals a.checkout-button.button.alt.wc-forward:hover,
.woocommerce-cart .cart-collaterals a.checkout-button.button.alt.wc-forward:focus {
	filter: brightness(1.07);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

@media (max-width: 520px) {
	.woocommerce-cart .banyoma-cart-table .product-thumbnail img {
		width: 88px;
		max-width: 92px;
		min-height: 64px;
	}
}

.woocommerce-cart .banyoma-cart-table .product-remove a.remove {
	color: #6b7280 !important;
	font-size: 1.35rem;
	line-height: 1;
}

.woocommerce-cart .banyoma-cart-table .product-remove a.remove:hover {
	color: #b91c1c !important;
	background: transparent !important;
}

/* Kupon kutusu */
.woocommerce-cart .banyoma-cart-coupon {
	margin: 24px 0 8px;
	padding: 18px 20px;
	border-radius: 10px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	box-sizing: border-box;
}

.woocommerce-cart .banyoma-cart-coupon__title {
	display: block;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 12px;
}

.woocommerce-cart .banyoma-cart-coupon__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.woocommerce-cart .banyoma-cart-coupon__input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
}

.woocommerce-cart .banyoma-cart-coupon__apply {
	flex: 0 0 auto;
	padding-left: 22px;
	padding-right: 22px;
	border-radius: 8px;
	background: #111827 !important;
	color: #fff !important;
	border: 0 !important;
	font-weight: 600;
}

.woocommerce-cart .banyoma-cart-coupon__apply:hover {
	filter: brightness(1.08);
}

/* Yapışkan alt çubuk */
.woocommerce-cart .banyoma-cart-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	background: #374151;
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
	border-top: 1px solid #4b5563;
}

.woocommerce-cart .banyoma-cart-sticky__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.woocommerce-cart .banyoma-cart-sticky__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-left: auto;
}

.woocommerce-cart .banyoma-cart-sticky__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	border: 0;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.woocommerce-cart .banyoma-cart-sticky__btn--ghost {
	background: #fff;
	color: #111827;
	border: 1px solid #e5e7eb;
}

.woocommerce-cart .banyoma-cart-sticky__btn--ghost:hover {
	background: #f9fafb;
}

.woocommerce-cart .banyoma-cart-sticky__btn--outline {
	background: #fff;
	color: #111827;
	border: 1px solid #d1d5db;
}

.woocommerce-cart .banyoma-cart-sticky__btn--outline:hover {
	background: #f3f4f6;
}

.woocommerce-cart .banyoma-cart-sticky__btn--primary {
	background: #16a34a;
	color: #fff !important;
	border: 0;
	min-width: 120px;
}

.woocommerce-cart .banyoma-cart-sticky__btn--primary:hover {
	filter: brightness(1.06);
	color: #fff !important;
}

@media (max-width: 600px) {
	.woocommerce-cart .banyoma-cart-sticky__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce-cart .banyoma-cart-sticky__actions {
		margin-left: 0;
		width: 100%;
		justify-content: stretch;
	}

	.woocommerce-cart .banyoma-cart-sticky__btn--outline,
	.woocommerce-cart .banyoma-cart-sticky__btn--primary {
		flex: 1;
	}
}

.woocommerce-cart .banyoma-cart-summary {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--banyoma-max, 1200px);
	margin: 0 auto 28px;
	padding: 22px 20px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.woocommerce-cart .banyoma-cart-summary__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 24px;
	align-items: start;
}

.woocommerce-cart .banyoma-cart-summary__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.woocommerce-cart .banyoma-cart-summary__label {
	font-family: "Roboto", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.3;
}

.woocommerce-cart .banyoma-cart-summary__value {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: clamp(1.15rem, 2.8vw, 1.45rem);
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.woocommerce-cart .banyoma-cart-summary__value .woocommerce-Price-amount,
.woocommerce-cart .banyoma-cart-summary__value .amount {
	font-weight: inherit;
}

.woocommerce-cart .banyoma-cart-summary__value--total {
	color: #16a34a;
}

.woocommerce-cart .banyoma-cart-summary__value--total .woocommerce-Price-amount,
.woocommerce-cart .banyoma-cart-summary__value--total .amount {
	color: inherit;
}

.woocommerce-cart .banyoma-cart-summary__notes {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}

.woocommerce-cart .banyoma-cart-summary__note {
	margin: 0 0 10px;
	font-family: "Roboto", system-ui, sans-serif;
	font-size: 12px;
	line-height: 1.55;
	color: #6b7280;
}

.woocommerce-cart .banyoma-cart-summary__note:last-child {
	margin-bottom: 0;
}

@media (max-width: 700px) {
	.woocommerce-cart .banyoma-cart-summary {
		padding: 18px 14px 16px;
		margin-bottom: 20px;
	}

	.woocommerce-cart .banyoma-cart-summary__cols {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
