/* =========================================================
   FAVORİLER
   ========================================================= */

/* ---------- Kalp ikonu — ürün kartı/galeri üzerine bindirme ---------- */

ul.products li.product,
.products .product {
	position: relative;
}

.uns-favori-kalp {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.92);
	box-shadow: 0 2px 8px rgba(0,0,0,.14);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #746b5e;
	transition: transform .15s ease, color .15s ease;
}

.uns-favori-kalp:hover { transform: scale(1.08); color: #B3261E; }

.uns-favori-kalp.is-aktif { color: #B3261E; }

.uns-favori-kalp svg { width: 17px; height: 17px; }

/* Tekil ürün sayfası — galeri üzerinde biraz daha büyük, sağ üst köşe. */
.uns-favori-kalp--buyuk {
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
}

.uns-favori-kalp--buyuk svg { width: 20px; height: 20px; }

/* Kalp "dolma" animasyonu — tıklanınca kısa bir sıçrama. */
.uns-favori-kalp.uns-favori-kalp--nabiz { animation: uns-fav-nabiz .35s ease; }

@keyframes uns-fav-nabiz {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.28); }
	100% { transform: scale(1); }
}

/* ---------- Header tetikleyici ---------- */

.uns-fav-tetik {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px 4px;
	color: inherit;
	font: inherit;
}

.uns-fav-tetik__ikon-kap { position: relative; display: inline-flex; }

.uns-fav-tetik__ikon { display: inline-flex; width: 21px; height: 21px; color: var(--uns-koyu, #1A2F4C); }
.uns-fav-tetik__ikon svg { width: 100%; height: 100%; }

.uns-fav-tetik__rozet {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: #B3261E;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.uns-fav-tetik__metin {
	font-size: 14px;
	font-weight: 600;
	color: var(--uns-koyu, #1A2F4C);
	white-space: nowrap;
}

/* ---------- Modal — Siparişler modalıyla aynı iskelet ---------- */

.uns-fav-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

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

.uns-fav-modal__perde {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 24, .55);
	backdrop-filter: blur(2px);
}

.uns-fav-modal__kutu {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 18px;
	padding: 34px 30px 28px;
	max-width: 480px;
	width: 100%;
	max-height: 82vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	animation: uns-fav-acilis .2s ease;
}

@keyframes uns-fav-acilis {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.uns-fav-modal__kapat {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: var(--uns-yumusak, #F1ECE4);
	color: var(--uns-metin, #2b2b2b);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.uns-fav-modal__kapat:hover { background: #e5ddd0; }

.uns-fav-modal__baslik {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 400;
	color: var(--uns-koyu, #1A2F4C);
	margin: 0 0 20px;
	padding-right: 30px;
}

/* ---------- Sonuç — ürün listesi ---------- */

.uns-fav-durum-mesaj {
	text-align: center;
	padding: 30px 10px;
	color: var(--uns-cok-soluk, #746b5e);
	font-size: 14px;
	line-height: 1.6;
}

.uns-fav-yukleniyor {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 10px;
	color: var(--uns-cok-soluk, #746b5e);
	font-size: 13.5px;
}

.uns-fav-spin {
	width: 18px;
	height: 18px;
	border: 2.5px solid var(--uns-cizgi, #ECE6DC);
	border-top-color: var(--uns-renk, #C47C53);
	border-radius: 50%;
	animation: uns-fav-donme .7s linear infinite;
}

@keyframes uns-fav-donme { to { transform: rotate(360deg); } }

.uns-fav-urun {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--uns-cizgi, #ECE6DC);
	text-decoration: none;
}

.uns-fav-urun:last-child { border-bottom: 0; }

.uns-fav-urun__gorsel {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--uns-yumusak, #F1ECE4);
}

.uns-fav-urun__bilgi { flex: 1; min-width: 0; }

.uns-fav-urun__ad {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--uns-koyu, #1A2F4C);
	margin-bottom: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.uns-fav-urun__fiyat {
	font-size: 13px;
	color: var(--uns-renk, #C47C53);
	font-weight: 600;
}

.uns-fav-urun__cikar {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: var(--uns-yumusak, #F1ECE4);
	color: #746b5e;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.uns-fav-urun__cikar:hover { background: #f0d9d6; color: #B3261E; }
.uns-fav-urun__cikar svg { width: 15px; height: 15px; }

@media (max-width: 480px) {

	.uns-fav-modal__kutu { padding: 26px 20px 22px; }
	.uns-favori-kalp { width: 30px; height: 30px; top: 8px; right: 8px; }
	.uns-favori-kalp svg { width: 15px; height: 15px; }
}
