.cart-drawer-overlay {
	display: none;
	background: transparent;
	backdrop-filter: none;
	opacity: 0;
	pointer-events: none;
}

.cart-drawer-overlay.is-open {
	opacity: 0;
	pointer-events: none;
}

.cart-drawer {
	--accent-start: #ff6a00;
	--accent-end: #ff9f0a;
	--accent-dark: #d85a00;
	--accent-soft: rgba(255, 106, 0, 0.08);
	--accent-border: rgba(255, 106, 0, 0.22);
	--accent-gradient: linear-gradient(135deg, #ff6a00 0%, #ff9f0a 100%);
	--accent-shadow: rgba(255, 106, 0, 0.25);
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(450px, 100vw);
	background: #ffffff;
	box-shadow: -18px 0 46px rgba(13, 31, 43, 0.2);
	transform: translateX(100%);
	transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1800;
	display: grid;
	overflow: hidden;
	border-left: 1px solid rgba(255, 106, 0, 0.18);
}

.cart-drawer.is-open {
	transform: translateX(0);
}

.cart-drawer__content {
	height: 100%;
	overflow: hidden;
	background: #ffffff;
}

.cart-page {
	padding: 24px 0 42px;
}

.cart-page__shell {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.cart-panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	background: #ffffff;
	color: #172638;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cart-panel--page {
	max-width: 860px;
	min-height: calc(100vh - 210px);
	margin: 0 auto;
	border: 1px solid rgba(24, 28, 51, 0.08);
	border-radius: 28px;
	box-shadow: 0 22px 56px rgba(48, 61, 128, 0.12);
	overflow: hidden;
	background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

/* Header */
.cart-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255, 106, 0, 0.18);
	background: #ffffff;
}

.cart-panel--drawer .cart-panel__header {
	height: var(--favorites-navbar-height, 67px);
	min-height: var(--favorites-navbar-height, 67px);
	padding-top: 8px;
	padding-bottom: 8px;
	box-sizing: border-box;
}

.cart-panel__heading {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

/* Sol Üst Köşedeki Maskot Köpek */
.favorites-header__dog {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 106, 0, 0.35);
	background: radial-gradient(circle at 36% 30%, #ffffff 0, #fff7f2 64%, #ffeede 100%);
	box-shadow: 0 4px 12px rgba(255, 106, 0, 0.14);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.favorites-header__dog img {
	width: auto;
	height: 46px;
	display: block;
	transform-origin: 52% 88%;
	animation: cardBookingDogGreeting 4.6s ease-in-out infinite;
	filter: drop-shadow(0 2px 4px rgba(24, 28, 51, 0.14));
}

.favorites-header__titles {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cart-panel__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #172638;
	line-height: 1.2;
}

.favorites-header__sub {
	font-size: 0.72rem;
	font-weight: 700;
	color: #d85a00;
	letter-spacing: 0.01em;
}

.cart-panel__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fff9f5 0%, #fff0e6 100%);
	color: #d85a00;
	border: 1px solid rgba(255, 106, 0, 0.32);
	font-size: 0.75rem;
	font-weight: 800;
	flex-shrink: 0;
}

.cart-panel__close {
	width: 36px;
	height: 36px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: all 0.18s ease;
	flex-shrink: 0;
}

.cart-panel__close:hover {
	background: rgba(255, 106, 0, 0.12);
	color: #d85a00;
	border-color: rgba(255, 106, 0, 0.28);
}

.cart-panel__body {
	min-height: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	overflow: hidden;
}

.cart-panel__items {
	overflow-y: auto;
	padding: 14px 16px;
	scrollbar-width: thin;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cart-panel__items > .cart-item--favorite {
	flex: 0 0 auto;
}

/* Favori İlan Kartı Tasarımı (Modern Luxury Villa Card) */
.cart-item--favorite {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 14px;
	padding: 0 12px 0 0;
	overflow: hidden;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #edf2f7;
	box-shadow: 0 2px 8px rgba(23, 38, 56, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	position: relative;
	box-sizing: border-box;
}

.cart-item--favorite:hover {
	border-color: rgba(255, 106, 0, 0.28);
	box-shadow: 0 4px 14px rgba(255, 106, 0, 0.08);
}

.cart-item--favorite .cart-item__media {
	width: 128px;
	height: auto;
	min-height: 80px;
	align-self: stretch;
	border-radius: 0;
	background: #f1f5f9;
	border: 0;
	display: block;
	overflow: hidden;
	position: relative;
	flex-shrink: 0;
}

.cart-item--favorite .cart-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cart-item__badge-tag {
	--badge-accent: #f97316;
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.5;
	padding: 4px 10px 4px 9px;
	border-radius: 0 0 12px 0;
	background: color-mix(in srgb, var(--badge-accent) 14%, #ffffff);
	color: color-mix(in srgb, var(--badge-accent) 55%, #172638);
	letter-spacing: 0.02em;
	text-transform: none;
	border: 0;
	border-right: 2px solid var(--badge-accent);
	border-bottom: 2px solid var(--badge-accent);
	box-shadow: 2px 2px 8px rgba(15, 23, 42, 0.14);
	-webkit-backdrop-filter: blur(6px) saturate(140%);
	backdrop-filter: blur(6px) saturate(140%);
	pointer-events: none;
}


.cart-item--favorite .cart-item__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 12px 0;
	gap: 5px;
	min-width: 0;
}

.cart-item--favorite .cart-item__top {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.cart-item--favorite .cart-item__name {
	font-family: 'Manrope', sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	text-decoration: none;
	color: #172638;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.18s ease;
}

.cart-item--favorite .cart-item__name:hover {
	color: #ff6a00;
}

.cart-item--favorite .cart-item__meta {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.35;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cart-item--favorite .cart-item__meta .material-symbols-outlined {
	font-size: 14px;
	color: #ff6a00;
	flex-shrink: 0;
}

.cart-item--favorite .cart-item__unit-price {
	margin: 2px 0 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: #ff6a00;
	letter-spacing: -0.02em;
	line-height: 1;
}

.cart-item--favorite .cart-item__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px dashed #edf2f7;
}

.cart-item--favorite .cart-item__details-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 13px;
	border-radius: 999px;
	background: rgba(255, 106, 0, 0.08);
	border: 1px solid rgba(255, 106, 0, 0.28);
	color: #d85a00;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.cart-item--favorite .cart-item__details-link:hover,
.cart-item--favorite .cart-item__details-link:focus {
	background: rgba(255, 106, 0, 0.08);
	border-color: rgba(255, 106, 0, 0.28);
	color: #d85a00;
	box-shadow: none;
	transform: none;
}

.cart-item--favorite .cart-item__remove {
	width: 30px;
	height: 30px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	color: #94a3b8;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: all 0.18s ease;
	flex-shrink: 0;
}

.cart-item--favorite .cart-item__remove:hover {
	background: #fef2f2;
	color: #ef4444;
	border-color: #fecaca;
}

.cart-item--favorite .cart-item__remove .material-symbols-outlined {
	font-size: 17px;
}

/* Sepet Adet / Normal Sepet Elemanları */
.cart-item__qty {
	display: inline-grid;
	grid-template-columns: 34px 1fr 34px;
	align-items: center;
	min-width: 104px;
	height: 36px;
	border: 1px solid rgba(24, 28, 51, 0.12);
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
}

.cart-item__qty-btn {
	width: 34px;
	height: 36px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1.12rem;
	line-height: 1;
	color: #172638;
	cursor: pointer;
}

.cart-item__qty-btn:hover {
	background: #f3f5ff;
}

.cart-item__qty-value {
	display: grid;
	place-items: center;
	font-size: 0.8rem;
	font-weight: 800;
}

/* Footer & Alt Butonlar */
.favorites-panel__footer,
.cart-panel__footer {
	padding: 12px !important;
	border-top: 1px solid rgba(255, 106, 0, 0.16);
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	box-sizing: border-box;
}

.favorites-panel__footer-summary {
	display: none !important;
}

.favorites-panel__all-btn {
	box-shadow: none !important;
}

.cart-panel__summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.9rem;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(23, 38, 56, 0.09);
}

.cart-panel__summary-row--total {
	padding-top: 6px;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: 0.98rem;
}

.cart-panel__summary-action {
	border: 0;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #172638;
}

.cart-panel__note {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.6;
	color: #637383;
}

.cart-panel__checkout {
	display: inline-grid;
	place-items: center;
	width: auto;
	min-height: 36px;
	min-width: 120px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff6a00 0%, #ff9f0a 100%);
	color: #ffffff;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	justify-self: end;
	box-shadow: none !important;
	transition: filter 0.18s ease;
}

.cart-panel__checkout:hover {
	transform: none;
	filter: brightness(0.96);
	box-shadow: none !important;
	color: #ffffff;
}

/* Ana Sayfa Filtre Butonu Rengi ile Uyumlu Zarif Turuncu CTA (Gölgesiz & Minimal) */
.cart-panel__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	min-height: 36px;
	min-width: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff6a00 0%, #ff9f0a 100%);
	color: #ffffff;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	justify-self: center;
	box-shadow: none !important;
	transition: filter 0.18s ease;
}

.cart-panel__cta:hover {
	transform: none;
	filter: brightness(0.96);
	box-shadow: none !important;
	color: #ffffff;
}

.cart-panel__cta .material-symbols-outlined {
	font-size: 16px;
}

/* Boş Durum (Empty State) ve Maskot */
.cart-panel__state {
	padding: 36px 24px;
	display: grid;
	align-content: center;
	justify-items: center;
	text-align: center;
	gap: 14px;
}

.favorites-empty__mascot-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 6px;
	width: 104px;
	height: 104px;
}

.favorites-empty__dog {
	position: relative;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	border: 2px solid rgba(255, 106, 0, 0.35);
	background: radial-gradient(circle at 40% 32%, #ffffff 0, #fff8f3 55%, #ffeade 100%);
	box-shadow: 0 14px 34px rgba(255, 106, 0, 0.16);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

.favorites-empty__dog img {
	width: auto;
	height: 110px;
	display: block;
	transform-origin: 52% 88%;
	animation: cardBookingDogGreeting 4.6s ease-in-out infinite;
	filter: drop-shadow(0 4px 8px rgba(24, 28, 51, 0.16));
}

/* Sağ Alt Köşeye Sabitlenmiş, Mükemmel Hizalanmış Kalp Rozeti */
.favorites-empty__heart {
	position: absolute;
	right: 1px;
	bottom: 1px;
	z-index: 2;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff4343 0%, #e11d48 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
	border: 2.5px solid #ffffff;
	pointer-events: none;
	animation: favoritesHeartPulse 2.4s ease-in-out infinite;
	box-sizing: border-box;
}

.favorites-empty__heart svg {
	display: block;
	width: 15px;
	height: 15px;
	fill: #ffffff;
	flex-shrink: 0;
}

@keyframes favoritesHeartPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

@keyframes cardBookingDogGreeting {
	0%, 72%, 100% { transform: translateY(0) rotate(0); }
	78% { transform: translateY(-3px) rotate(-1.2deg); }
	84% { transform: translateY(0) rotate(1deg); }
	90% { transform: translateY(-2px) rotate(-0.6deg); }
}

.cart-panel__state-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #172638;
}

.cart-panel__state-text {
	max-width: 340px;
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: #657386;
}

.cart-item__badge-tag[data-type="kiralik"] { --badge-accent: #3b82f6; }
.cart-item__badge-tag[data-type="satilik"] { --badge-accent: #10b981; }

@media (max-width: 760px) {
	.cart-drawer {
		width: 100vw;
	}

	.cart-page {
		padding: 16px 0 28px;
	}

	.cart-page__shell {
		padding: 0 14px;
	}

	.cart-panel--page {
		min-height: calc(100vh - 160px);
		border-radius: 24px;
	}

	.cart-panel__header {
		padding-left: 14px;
		padding-right: 14px;
	}

	.favorites-panel__footer,
	.cart-panel__footer {
		padding: 12px !important;
	}

	.cart-panel__items {
		padding: 10px 12px;
		gap: 9px;
	}

	.cart-item--favorite {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 10px;
		padding: 0 9px 0 0;
		border-radius: 12px;
	}

	.cart-item--favorite .cart-item__media {
		width: 104px;
		height: auto;
		min-height: 64px;
		border-radius: 0;
	}

	.cart-item__badge-tag {
		font-size: 9px;
		padding: 3px 8px 3px 7px;
		top: 0;
		left: 0;
		border-radius: 0 0 10px 0;
	}

	.cart-item--favorite .cart-item__content {
		padding: 9px 0;
		gap: 3px;
	}

	.cart-item--favorite .cart-item__top {
		gap: 2px;
	}

	.cart-item--favorite .cart-item__name {
		font-size: 0.80rem;
		line-height: 1.25;
		letter-spacing: -0.01em;
	}

	.cart-item--favorite .cart-item__meta {
		font-size: 0.69rem;
		line-height: 1.25;
		gap: 2px;
	}

	.cart-item--favorite .cart-item__meta .material-symbols-outlined {
		font-size: 13px;
	}

	.cart-item--favorite .cart-item__unit-price {
		font-size: 0.88rem;
		margin: 1px 0 0;
	}

	.cart-item--favorite .cart-item__actions {
		gap: 6px;
		margin-top: 2px;
		padding-top: 5px;
	}

	.cart-item--favorite .cart-item__details-link {
		padding: 3px 9px;
		font-size: 0.70rem;
		gap: 4px;
	}

	.cart-item--favorite .cart-item__remove {
		width: 26px;
		height: 26px;
		border-radius: 6px;
	}

	.cart-item--favorite .cart-item__remove .material-symbols-outlined {
		font-size: 15px;
	}

	.cart-panel__title {
		font-size: 0.98rem;
	}

	.cart-panel__checkout,
	.cart-panel__cta {
		min-height: 36px;
		min-width: 0;
		padding: 0 16px;
	}
}

/* İlan kartı favori kalp patlaması */
.favorite-heart-burst {
	position: fixed;
	left: var(--favorite-burst-left, 0px);
	top: var(--favorite-burst-top, 0px);
	z-index: 3000;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.favorite-heart-burst__particle {
	--favorite-heart-x: 0px;
	--favorite-heart-y: -72px;
	--favorite-heart-turn: 0deg;
	--favorite-heart-scale: 1;
	--favorite-heart-delay: 0ms;
	position: absolute;
	left: 0;
	top: 0;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--favorite-heart-color, #ff4343);
	opacity: 0;
	filter: drop-shadow(0 3px 5px rgba(225, 29, 72, 0.28));
	transform: translate(-50%, -50%) rotate(45deg) scale(0.42);
	animation: favoriteHeartBurst 920ms cubic-bezier(0.18, 0.68, 0.28, 1) var(--favorite-heart-delay) forwards;
}

.favorite-heart-burst__particle::before,
.favorite-heart-burst__particle::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: inherit;
}

.favorite-heart-burst__particle::before {
	left: -6px;
	top: 0;
}

.favorite-heart-burst__particle::after {
	left: 0;
	top: -6px;
}

.product-card__favorite.is-favorite-bursting {
	animation: favoriteButtonPop 420ms cubic-bezier(0.2, 0.8, 0.28, 1);
}

@keyframes favoriteHeartBurst {
	0% {
		opacity: 0;
		transform: translate(-50%, -35%) rotate(45deg) scale(0.42);
	}
	14% {
		opacity: 1;
	}
	72% {
		opacity: 0.92;
	}
	100% {
		opacity: 0;
		transform: translate(calc(-50% + var(--favorite-heart-x)), var(--favorite-heart-y)) rotate(calc(45deg + var(--favorite-heart-turn))) scale(var(--favorite-heart-scale));
	}
}

@keyframes favoriteButtonPop {
	0%, 100% { transform: scale(1); }
	42% { transform: scale(1.13); }
	68% { transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
	.favorite-heart-burst {
		display: none;
	}

	.product-card__favorite.is-favorite-bursting {
		animation: none;
	}

	.favorites-header__dog img,
	.favorites-empty__dog img {
		animation: none;
	}
}
