/* =========================================================
   Favori butonu: tema stillerinden yalıtılmış yuvarlak buton
   ========================================================= */
.fk-fav-btn,
.fk-fav-btn:hover,
.fk-fav-btn:focus {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	background: #ffffff !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 50% !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	max-width: 26px !important;
	min-height: 26px !important;
	max-height: 26px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	line-height: 1 !important;
	font-size: 0 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
	transition: transform 0.15s ease, opacity 0.2s ease !important;
	overflow: hidden;
}

.fk-fav-btn svg {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	min-width: 14px;
	flex: 0 0 auto !important;
	fill: #b5b5b5;
	transition: fill 0.2s ease;
	pointer-events: none;
}

.fk-fav-btn:hover { transform: scale(1.1); }
.fk-fav-btn:hover svg { fill: #e0567b; }
.fk-fav-btn.is-active svg { fill: #e0245e !important; }
.fk-fav-btn.fk-loading { opacity: 0.5 !important; pointer-events: none; }

@keyframes fk-pop {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}
.fk-fav-btn.fk-pop { animation: fk-pop 0.4s ease; }

/* =========================================================
   Kategori / arşiv: görselin sağ üstü
   ========================================================= */
.box-image { position: relative; }

.box-image .fk-fav-btn,
.fk-img-wrap .fk-fav-btn {
	position: absolute !important;
	top: 6px;
	right: 6px;
	z-index: 9;
	opacity: 0; /* Masaüstünde hover'da belirir */
}

.product-small:hover .fk-fav-btn,
li.product:hover .fk-fav-btn,
.box-image:hover .fk-fav-btn,
.fk-img-wrap:hover .fk-fav-btn,
.box-image .fk-fav-btn:focus,
.fk-img-wrap .fk-fav-btn:focus,
.box-image .fk-fav-btn.is-active,
.fk-img-wrap .fk-fav-btn.is-active {
	opacity: 1;
}

/* Mobil / dokunmatik: her zaman görünür, görselin sağ üstünde */
@media (hover: none), (max-width: 849px) {
	.box-image .fk-fav-btn,
	.fk-img-wrap .fk-fav-btn {
		opacity: 1;
		top: 8px;
		right: 8px;
	}
}

.fk-img-wrap {
	position: relative;
	display: block;
	line-height: 0;
}

/* =========================================================
   Ürün detay: galeri görselinin sağ üstü (her zaman görünür)
   JS çalışmasa bile buton CSS ile görselin üzerinde durur.
   ========================================================= */
.woocommerce-product-gallery { position: relative; }

/* JS'siz yedek: buton ürün kapsayıcısının başında basılıdır,
   mutlak konumla görselin sağ üstüne oturur. */
.single-product div.product { position: relative; }

.single-product div.product > .fk-fav-btn.fk-single {
	position: absolute !important;
	top: 10px;
	right: 10px;
	z-index: 30;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	opacity: 1;
}

.single-product div.product > .fk-fav-btn.fk-single svg {
	width: 16px !important;
	height: 16px !important;
}

/* Masaüstünde galeri sol sütundadır: JS'siz yedek konum görselin sağ üstüne denk gelsin
   diye galeri genişliğine göre hizalanır (Flatsome galeri ~%50 genişliktedir). */
@media (min-width: 850px) {
	.single-product div.product > .fk-fav-btn.fk-single {
		right: auto;
		left: calc(50% - 46px);
	}
}

.woocommerce-product-gallery > .fk-fav-btn.fk-on-gallery {
	position: absolute !important;
	top: 10px;
	right: 10px;
	z-index: 30;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	opacity: 1;
}

.woocommerce-product-gallery > .fk-fav-btn.fk-on-gallery svg {
	width: 16px !important;
	height: 16px !important;
}

/* =========================================================
   Alttan bildirim kartı (toast)
   ========================================================= */
.fk-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translate(-50%, 24px);
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	color: #333;
	padding: 18px 44px 18px 18px;
	max-width: 340px;
	width: calc(100% - 40px);
	z-index: 2147483000;
	opacity: 0;
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
	transition: opacity 0.3s ease, transform 0.3s ease;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.fk-toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

.fk-toast-img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	flex: 0 0 auto;
}

.fk-toast-text a { color: #111; text-decoration: underline; }

.fk-toast .fk-toast-close,
.fk-toast .fk-toast-close:hover,
.fk-toast .fk-toast-close:focus {
	position: absolute !important;
	top: 6px;
	right: 8px;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 4px !important;
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	color: #888 !important;
	cursor: pointer;
}

.fk-toast .fk-toast-close:hover { color: #222 !important; }

/* =========================================================
   Favorilerim sayfası: tema ızgarası + kategori başlıkları
   ========================================================= */
.fk-fav-cat-title {
	margin: 32px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f0f0;
	font-size: 20px;
}

.fk-fav-grid > .fk-fav-cat-title:first-child { margin-top: 8px; }

.fk-fav-cat-count {
	font-size: 14px;
	font-weight: normal;
	color: #999;
}

/* Favoriler sayfasında kalp her zaman görünür (kolay çıkarma için) */
.fk-fav-grid .box-image .fk-fav-btn,
.fk-fav-grid .fk-img-wrap .fk-fav-btn { opacity: 1; }


/* =========================================================
   Favorilerim: "N seçenek" rozeti YEDEK stilleri
   :where() ile sıfır özgüllük: temanın kendi rozet CSS'i varsa
   her zaman o geçerli olur; bunlar yalnızca boşluğu doldurur.
   ========================================================= */
:where(.fk-fav-grid .box-image .fivorno-loop-variation-info) {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 8;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 99px;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1;
	color: #333;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

:where(.fk-fav-grid .fivorno-var-dot) {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c9b18c;
	border: 1px solid rgba(0, 0, 0, 0.12);
	display: inline-block;
	flex: 0 0 auto;
}

:where(.fk-fav-grid .fivorno-var-text) { white-space: nowrap; }


/* =========================================================
   Favorilerim: fiyat satırı hizalaması
   "Yeni Tasarım" vb. rozetler fiyatın hemen sağında dursun.
   ========================================================= */
.fk-fav-grid .box-text .price-wrapper {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}

/* "Yeni Tasarım" rozeti fiyatla aynı satırda, alta sarmasın */
.fk-fav-grid .fv-new-design-badge {
	display: inline-flex !important;
	align-items: center;
	vertical-align: middle;
	white-space: nowrap;
	margin: 0 0 0 6px !important;
	flex: 0 0 auto;
}

/* Kuruş (,00) kategori sayfasında olduğu gibi favorilerde de gizli */
.fk-fav-grid .fv-price-decimals { display: none !important; }
