/* FedoArt – Mobil Alt Bar & Keşfet */
.fedo-mbar,
#fedo-kesfet { display: none; }

@media (max-width: 767px) {

	/* ---------- Alt bar ---------- */
	body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

	.fedo-mbar {
		display: flex;
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		z-index: 99995;
		height: 62px;
		padding: 0 6px;
		align-items: center;
		justify-content: space-between;
		background: rgba(255, 255, 255, 0.94);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
		border: 1px solid rgba(17, 17, 17, 0.08);
		border-radius: 22px;
		box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.28);
		font-family: Urbanist, ui-sans-serif, system-ui, sans-serif;
		transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, background-color .25s ease, border-color .25s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.fedo-mbar.is-hidden,
	html.fedo-search-lock .fedo-mbar {
		transform: translateY(calc(100% + 28px));
		opacity: 0;
		pointer-events: none;
	}

	.fedo-mbar__item {
		position: relative;
		flex: 1 1 0;
		min-width: 0;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 0;
		margin: 0;
		background: none;
		border: 0;
		color: #7a7a7a;
		font: inherit;
		font-size: 10.5px;
		font-weight: 600;
		line-height: 1;
		letter-spacing: .01em;
		white-space: nowrap;
		text-decoration: none !important;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.fedo-mbar__item svg { width: 23px; height: 23px; transition: transform .15s ease; }
	.fedo-mbar__item:active svg { transform: scale(.88); }
	.fedo-mbar__item.is-active { color: #111; }
	.fedo-mbar__item:focus-visible,
	.fedo-mbar__kesfet:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 12px; }

	.fedo-mbar__kesfet {
		flex: 0 0 auto;
		height: 44px;
		margin: 0 4px;
		padding: 0 15px 0 13px;
		display: flex;
		align-items: center;
		gap: 7px;
		background: #111;
		color: #fff;
		border: 0;
		border-radius: 15px;
		font: inherit;
		font-size: 11.5px;
		font-weight: 700;
		letter-spacing: .1em;
		text-transform: uppercase;
		box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
		cursor: pointer;
		transition: transform .15s ease, background-color .25s ease, color .25s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.fedo-mbar__kesfet svg { width: 20px; height: 20px; }
	.fedo-mbar__kesfet:active { transform: scale(.95); }

	.fedo-mbar__count {
		position: absolute;
		top: 8px;
		left: calc(50% + 5px);
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		border-radius: 8px;
		background: #111;
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		line-height: 16px;
		text-align: center;
	}
	.fedo-mbar__count[hidden] { display: none; }

	/* Sayfalama mobilde ekrandan taşıyordu (yatay kaydırma + sabit öğelerin kayması); sarılsın */
	#fedoart-archive-pagination { max-width: 100%; }
	#fedoart-archive-pagination ul.page-numbers { flex-wrap: wrap; justify-content: center; row-gap: 10px; max-width: 100%; }

	/* Alt bara yer aç: "Sanat danışmanlığı" penceresi barın üstünde açılsın */
	#call-request-dialog { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }

	/* Keşfet açıkken bar koyu temaya geçer */
	html.fedo-kesfet-open .fedo-mbar {
		background: rgba(16, 16, 16, 0.82);
		border-color: rgba(255, 255, 255, 0.1);
		box-shadow: none;
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}
	html.fedo-kesfet-open .fedo-mbar__item { color: rgba(255, 255, 255, 0.62); }
	html.fedo-kesfet-open .fedo-mbar__kesfet { background: #fff; color: #111; box-shadow: none; }
	html.fedo-kesfet-open .fedo-mbar__count { background: #fff; color: #111; }

	/* ---------- Keşfet (Reels tarzı akış) ---------- */
	html.fedo-kesfet-open,
	html.fedo-kesfet-open body { overflow: hidden !important; }

	#fedo-kesfet {
		position: fixed;
		inset: 0;
		z-index: 99990;
		background: #0a0a0a;
		color: #fff;
		font-family: Urbanist, ui-sans-serif, system-ui, sans-serif;
	}
	#fedo-kesfet.is-open { display: block; animation: fkIn .3s cubic-bezier(.2, .8, .2, 1) both; }
	@keyframes fkIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

	.fk-top {
		position: absolute;
		top: 0; left: 0; right: 0;
		z-index: 6;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 18px;
		background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
		pointer-events: none;
	}
	.fk-top > * { pointer-events: auto; }
	.fk-title { font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
	.fk-close,
	.fk-icon {
		width: 40px; height: 40px;
		display: flex; align-items: center; justify-content: center;
		border-radius: 50%;
		background: rgba(255, 255, 255, .14);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		border: 0;
		color: #fff !important;
		cursor: pointer;
		text-decoration: none !important;
		-webkit-tap-highlight-color: transparent;
	}
	.fk-close svg, .fk-icon svg { width: 20px; height: 20px; }
	.fk-top-sp { width: 40px; }

	.fk-feed {
		position: absolute;
		inset: 0;
		overflow-y: auto;
		overflow-x: hidden;
		scroll-snap-type: y mandatory;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.fk-feed::-webkit-scrollbar { display: none; }

	.fk-slide {
		position: relative;
		height: 100%;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
	.fk-bg {
		position: absolute;
		inset: -40px;
		background-size: cover;
		background-position: center;
		filter: blur(28px) brightness(.42) saturate(1.1);
		transform: scale(1.08);
	}
	.fk-media {
		position: relative;
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: calc(64px + env(safe-area-inset-top, 0px)) 22px 10px;
	}
	.fk-media a.fk-img-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
	.fk-media img {
		display: block;
		max-width: 100%;
		max-height: 100%;
		width: auto;
		height: auto;
		object-fit: contain;
		box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .75);
		opacity: 0;
		transition: opacity .4s ease;
	}
	.fk-media img.is-loaded { opacity: 1; }
	.fk-spin {
		position: absolute;
		top: 50%; left: 50%;
		width: 28px; height: 28px;
		margin: -14px 0 0 -14px;
		border: 2px solid rgba(255, 255, 255, .25);
		border-top-color: #fff;
		border-radius: 50%;
		animation: fkSpin .8s linear infinite;
	}
	.fk-media img.is-loaded + .fk-spin { display: none; }
	@keyframes fkSpin { to { transform: rotate(360deg); } }

	.fk-side {
		position: absolute;
		right: 12px;
		bottom: 14px;
		z-index: 2;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.fk-info {
		position: relative;
		flex: 0 0 auto;
		padding: 14px 20px calc(88px + env(safe-area-inset-bottom, 0px));
		background: linear-gradient(to top, rgba(0, 0, 0, .9) 55%, rgba(0, 0, 0, 0));
	}
	.fk-artist {
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .18em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, .7);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.fk-name {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		margin: 5px 0 3px;
		font-size: 19px;
		font-weight: 700;
		line-height: 1.25;
		color: #fff !important;
		text-decoration: none !important;
	}
	.fk-meta { font-size: 12px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.fk-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
	.fk-price b { font-size: 21px; font-weight: 700; letter-spacing: .01em; }
	.fk-price s { font-size: 13px; color: rgba(255, 255, 255, .5); }
	.fk-badge {
		align-self: center;
		padding: 3px 8px;
		border-radius: 999px;
		background: #fff;
		color: #111;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: .06em;
		line-height: 1.3;
	}
	.fk-badge--offer { background: #1a1a1a; color: #fde68a; border: 1px solid rgba(252, 211, 77, .35); }

	.fk-actions { display: flex; gap: 10px; }
	.fk-btn {
		flex: 1 1 0;
		height: 46px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		border-radius: 3px;
		font: inherit;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .14em;
		text-transform: uppercase;
		cursor: pointer;
		transition: transform .12s ease, opacity .2s ease, background-color .2s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.fk-btn svg { width: 16px; height: 16px; }
	.fk-btn:active { transform: scale(.98); }
	.fk-btn--buy { background: #fff; color: #111; border: 1px solid #fff; }
	.fk-btn--cart { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
	.fk-btn--cart.is-done { border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .85); }
	.fk-btn[disabled] { cursor: default; }
	.fk-btn.is-busy { opacity: .6; }

	/* İlk eserde "kaydır" ipucu */
	.fk-hint {
		position: absolute;
		left: 50%;
		bottom: 18px;
		z-index: 2;
		transform: translateX(-50%);
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		padding: 7px 14px 8px;
		border-radius: 999px;
		background: rgba(0, 0, 0, .45);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
		pointer-events: none;
		transition: opacity .4s ease;
	}
	.fk-hint svg { width: 16px; height: 16px; animation: fkNudge 1.4s ease-in-out infinite; }
	.fk-hint.is-gone { opacity: 0; }
	@keyframes fkNudge { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }

	/* Yükleniyor / son / hata slaytları */
	.fk-slide--state { align-items: center; justify-content: center; text-align: center; padding: 0 32px 90px; gap: 14px; }
	.fk-slide--state .fk-spin { position: static; margin: 0; }
	.fk-state-title { font-size: 19px; font-weight: 700; }
	.fk-state-text { font-size: 13px; color: rgba(255, 255, 255, .6); max-width: 260px; line-height: 1.5; }
	.fk-state-btn {
		display: inline-flex; align-items: center; justify-content: center;
		height: 44px; padding: 0 22px;
		background: #fff; color: #111 !important;
		border: 0; border-radius: 3px;
		font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
		text-decoration: none !important;
		cursor: pointer;
	}

	/* Bildirim */
	.fk-toast {
		position: absolute;
		left: 14px;
		right: 14px;
		top: calc(62px + env(safe-area-inset-top, 0px));
		z-index: 7;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 12px 12px 12px 16px;
		border-radius: 12px;
		background: #fff;
		color: #111;
		font-size: 13px;
		font-weight: 600;
		box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
		transform: translateY(-12px);
		opacity: 0;
		transition: transform .25s ease, opacity .25s ease;
		pointer-events: none;
	}
	.fk-toast.is-shown { transform: none; opacity: 1; pointer-events: auto; }
	.fk-toast button {
		flex: 0 0 auto;
		height: 32px;
		padding: 0 12px;
		border: 1px solid #111;
		border-radius: 3px;
		background: #111;
		color: #fff;
		font: inherit;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .1em;
		text-transform: uppercase;
		cursor: pointer;
	}

	/* Kısa ekranlar (iPhone SE vb.) */
	@media (max-height: 680px) {
		.fk-name { font-size: 17px; -webkit-line-clamp: 1; }
		.fk-price { margin: 6px 0 10px; }
		.fk-price b { font-size: 19px; }
		.fk-btn { height: 42px; }
		.fk-info { padding-top: 10px; }
	}
}

@media (prefers-reduced-motion: reduce) {
	.fedo-mbar, #fedo-kesfet.is-open, .fk-hint svg, .fk-toast { animation: none !important; transition: none !important; }
}
