/*
 * Sepet sayfası yerleşimi.
 *
 * Tema sınıfları (cart_item, product-price ...) bilinçli olarak kullanılmıyor;
 * temanın kendi sepet CSS'i bu yerleşimin üstüne binmesin diye tüm sınıflar hc- ön ekli.
 */

.hc {
	--hc-line: #e6e4e0;
	--hc-muted: #6f6b66;
	--hc-accent: #1f7a4d;
	--hc-accent-soft: #edf7f1;
	max-width: 1280px;
	margin: 0 auto;
	padding: 30px 0 60px;
}

.hc-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.hc-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	text-align: left;
}

.hc-title--empty {
	margin: 30px 0 24px;
}

.hc-notice {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 6px;
	background: #fdf1f1;
	color: #a12b2b;
	font-size: 14px;
}

.hc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 40px;
	align-items: start;
}

/* ---------- Ürün satırları ---------- */

.hc-main {
	min-width: 0;
}

.hc-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
	align-items: center;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--hc-line);
}

.hc-item:first-child {
	border-top: 1px solid var(--hc-line);
}

.hc-item__thumb img {
	display: block;
	width: 88px;
	height: auto;
	border-radius: 4px;
}

.hc-item__name {
	display: block;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.hc-item__meta,
.hc-item__backorder {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--hc-muted);
}

.hc-item__price {
	font-weight: 700;
	text-align: right;
	min-width: 110px;
}

.hc-item__price--promo {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.hc-item__price-unit {
	white-space: nowrap;
}

.hc-item__price-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
	font-weight: 400;
}

.hc-item__price-line del {
	color: var(--hc-muted);
	font-weight: 400;
	font-size: 13px;
}

.hc-item__price-line ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--hc-accent);
	font-size: 15px;
}

.hc-item__remove {
	font-size: 14px;
	color: var(--hc-muted);
	text-decoration: underline;
	white-space: nowrap;
}

.hc-item__remove:hover {
	color: #a12b2b;
}

/* Miktar sayacı
 *
 * Elementor kitinin `.elementor-kit-13 button` ve
 * `.elementor-kit-13 input:not([type="button"]):not([type="submit"])` kuralları
 * tek sınıflı seçicilerden daha özgül; genişlik, yükseklik, dolgu ve renk bu
 * yüzden burada zorlanıyor. Yerleşimi bozan özelliklerle sınırlı tutuldu.
 */

.hc-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--hc-line);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

body.woocommerce-cart .hc .hc-qty__btn {
	width: 38px !important;
	min-width: 38px !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #111 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	cursor: pointer;
	flex: 0 0 auto;
}

body.woocommerce-cart .hc .hc-qty__btn:hover {
	background: #f3f2f0 !important;
}

body.woocommerce-cart .hc .hc-qty__btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

body.woocommerce-cart .hc .hc-qty__input {
	width: 48px !important;
	min-width: 48px !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid var(--hc-line) !important;
	border-right: 1px solid var(--hc-line) !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #111 !important;
	text-align: center !important;
	font-size: 15px !important;
	flex: 0 0 auto;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.hc-qty--single .hc-qty__input {
	border-left: 0;
	border-right: 0;
}

.hc-update--hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
}

.hc-items--busy {
	opacity: 0.55;
	pointer-events: none;
}

/* ---------- Özet ---------- */

.hc-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 110px;
}

.hc-sum {
	background: #fff;
	padding: 28px;
	border-radius: 8px;
}

.hc-sum__title {
	margin: 0 0 20px;
	font-size: 22px;
	line-height: 1.2;
}

.hc-sum__rows {
	border-top: 1px solid var(--hc-line);
	padding-top: 16px;
}

.hc-sum__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 15px;
}

.hc-sum__value {
	font-weight: 700;
	white-space: nowrap;
	text-align: right;
}

.hc-sum__row--promo,
.hc-sum__row--promo .hc-sum__value {
	color: var(--hc-accent);
}

.hc-sum__shipping-options {
	list-style: none;
	margin: 4px 0 8px;
	padding: 0;
	font-size: 14px;
}

.hc-sum__shipping-options li {
	margin: 6px 0;
}

.hc-sum__nudge {
	background: var(--hc-accent-soft);
	color: var(--hc-accent);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 8px 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.hc-coupon {
	border-top: 1px solid var(--hc-line);
	border-bottom: 1px solid var(--hc-line);
	margin: 12px 0;
	padding: 14px 0;
}

.hc-coupon > summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.hc-coupon > summary::-webkit-details-marker {
	display: none;
}

.hc-coupon > summary::after {
	content: "⌄";
	float: right;
	line-height: 1;
}

.hc-coupon__form {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

body.woocommerce-cart .hc .hc-coupon__input {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0 !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 12px !important;
	border: 1px solid var(--hc-line) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #111 !important;
}

body.woocommerce-cart .hc .hc-coupon__btn {
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 18px !important;
	border: 1px solid #111 !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #111 !important;
	cursor: pointer;
	white-space: nowrap;
	flex: 0 0 auto;
}

.hc-sum__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0 14px;
	font-size: 18px;
	font-weight: 700;
}

.hc-sum__savings {
	background: var(--hc-accent-soft);
	color: var(--hc-accent);
	text-align: center;
	font-weight: 600;
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 15px;
}

body.woocommerce-cart .hc .hc-sum__cta {
	display: block;
	background: #111 !important;
	color: #fff !important;
	text-align: center;
	font-weight: 600;
	padding: 17px 20px;
	border-radius: 6px;
	text-decoration: none;
}

body.woocommerce-cart .hc .hc-sum__cta:hover {
	background: #333 !important;
	color: #fff !important;
}

.hc-sum__badges {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
	font-size: 14px;
}

.hc-sum__badges li {
	background: #f7f6f4;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 8px;
}

.hc-sum__badges li::before {
	content: "✓";
	margin-right: 10px;
	font-weight: 700;
}

/* ---------- Kampanya kartları (ürün listesinin altında, yan yana) ---------- */

.hc-campaigns:not(:empty) {
	margin-top: 28px;
}

.hc-upsell {
	background: #fff;
	padding: 20px 24px 24px;
	border-radius: 8px;
}

.hc-upsell .hummel-mini-upsell {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.hc-upsell .hummel-mini-upsell__slide {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

.hc-upsell + .hc-camps {
	margin-top: 16px;
}

body.woocommerce-cart .hc button.hummel-mini-upsell__add {
	background: #111 !important;
	background-color: #111 !important;
	color: #fff !important;
	border: 0 !important;
	text-decoration: none !important;
	cursor: pointer;
}

.hc-camps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	align-items: stretch;
	background: #fff;
	padding: 20px 24px 24px;
	border-radius: 8px;
}

.hc-camps__title {
	grid-column: 1 / -1;
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.3;
}

.hc-camp {
	border-radius: 6px;
	padding: 14px 16px;
	margin: 0;
	background: #f7f6f4;
	min-width: 0;
}

.hc-camp--applied {
	background: var(--hc-accent-soft);
}

.hc-camp__title {
	font-weight: 700;
	margin-bottom: 6px;
}

.hc-camp__note {
	font-size: 13px;
	color: var(--hc-muted);
}

.hc-camp__state {
	margin-top: 10px;
	font-weight: 600;
	color: var(--hc-accent);
	font-size: 14px;
}

.hc-camp__saved {
	display: block;
	font-weight: 400;
}

.hc-camp__nudge {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.45;
}

.hc-camp__link {
	display: inline-block;
	margin-top: 4px;
	text-decoration: underline;
}

/* ---------- Duyarlı ---------- */

@media screen and (max-width: 1100px) {
	.hc-grid {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 28px;
	}
}

@media screen and (max-width: 900px) {
	.hc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hc-side {
		position: static;
	}
}

@media screen and (max-width: 600px) {
	.hc-title {
		font-size: 24px;
	}

	/* Mobilde satır iki kata bölünür: üstte görsel + isim + sil,
	   altta sayaç ile fiyat karşı karşıya. */
	.hc-item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb info remove"
			"thumb qty price";
		gap: 10px 14px;
		padding: 18px 0;
	}

	.hc-item__thumb {
		grid-area: thumb;
	}

	.hc-item__thumb img {
		width: 72px;
	}

	.hc-item__info {
		grid-area: info;
	}

	.hc-item__actions {
		grid-area: remove;
		align-self: start;
	}

	.hc-item__qty {
		grid-area: qty;
		align-self: end;
	}

	.hc-item__price {
		grid-area: price;
		align-self: end;
		min-width: 0;
	}

	.hc-sum,
	.hc-camps {
		padding: 22px 18px;
	}

	.hc-camps {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 10px;
	}
}
