/* ==========================================================
   Mobil alt menü (inc/alt-menu.php) - 2026-11-21
   Sadece ≤921px'te görünür (Astra'nın mobil başlık genişliği).
   ========================================================== */

.pk-am-bar,
.pk-am-sheet,
.pk-am-overlay {
	display: none;
}

@media (max-width: 921px) {
	:root {
		--pk-am-h: 64px;
		--pk-am-safe: env(safe-area-inset-bottom, 0px);
	}

	/* Bar sayfanın son içeriğini (footer) örtmesin */
	body.pk-has-alt-menu {
		padding-bottom: calc(var(--pk-am-h) + var(--pk-am-safe));
	}

	/* Hamburger menü artık gereksiz: alt bar onun yerini aldı. */
	body.pk-has-alt-menu #ast-mobile-header .ast-mobile-menu-trigger-minimal,
	body.pk-has-alt-menu #ast-mobile-header .menu-toggle,
	body.pk-has-alt-menu #ast-mobile-header [data-section="section-header-mobile-trigger"],
	body.pk-has-alt-menu #ast-mobile-header .ast-mobile-header-content,
	body.pk-has-alt-menu #ast-mobile-header .site-header-primary-section-right {
		display: none !important;
	}

	/* 2026-11-22: Ayrı "logo şeridi" görüntüsü kalktı. Başlık ince, gölgesiz,
	   sayfayla aynı zeminde, ekrana yapışmıyor (sayfayla birlikte kayıp gidiyor);
	   küçük logo tam ortada, altında ince bir çizgi. */
	body.pk-has-alt-menu #masthead {
		position: relative !important;
		box-shadow: none !important;
	}
	body.pk-has-alt-menu #ast-mobile-header .main-header-bar {
		min-height: 0 !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
	}
	/* Ana sayfa, SSS ve Galeri'nin ilk bölümü biraz daha açık (#FBF6EF) zeminli;
	   başlık da aynı renkte olsun ki ayrı bir şerit gibi görünmesin. */
	body.pk-has-alt-menu.home #ast-mobile-header .main-header-bar,
	body.pk-has-alt-menu.page-id-14 #ast-mobile-header .main-header-bar,
	body.pk-has-alt-menu.page-id-3982 #ast-mobile-header .main-header-bar {
		background: #FBF6EF !important;
	}
	body.pk-has-alt-menu #ast-mobile-header .ast-builder-grid-row {
		display: flex !important;
		justify-content: center;
		min-height: 0 !important;
		margin: 0 16px;
		padding: 10px 0;
		border-bottom: 1px solid rgba(43, 36, 64, 0.1);
	}
	body.pk-has-alt-menu #ast-mobile-header .site-header-primary-section-left {
		flex: 0 0 auto;
		justify-content: center;
	}
	body.pk-has-alt-menu #ast-mobile-header .site-branding,
	body.pk-has-alt-menu #ast-mobile-header .site-logo-img {
		margin: 0 !important;
		padding: 0 !important;
	}
	body.pk-has-alt-menu #ast-mobile-header .custom-logo-link {
		display: block;
		line-height: 0;
	}
	body.pk-has-alt-menu #ast-mobile-header .custom-logo-link img {
		width: 136px !important;
		max-width: 136px !important;
		height: auto !important;
	}

	/* Sağ alttaki sepet balonu ve sol alttaki "İzinleri yönet" barın üstüne */
	body.pk-has-alt-menu .xoo-wsc-basket {
		bottom: calc(var(--pk-am-h) + var(--pk-am-safe) + 14px) !important;
	}
	body.pk-has-alt-menu #cmplz-manage-consent .cmplz-manage-consent {
		bottom: calc(var(--pk-am-h) + var(--pk-am-safe)) !important;
	}

	/* ---------- Bar ---------- */
	.pk-am-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: stretch;
		gap: 2px;
		height: calc(var(--pk-am-h) + var(--pk-am-safe));
		padding: 6px 6px calc(6px + var(--pk-am-safe));
		background: #FBF9F6;
		border-top: 1px solid rgba(43, 36, 64, 0.08);
		box-shadow: 0 -4px 18px rgba(43, 36, 64, 0.07);
		box-sizing: border-box;
		font-family: inherit;
	}

	.pk-am-tab {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		margin: 0;
		padding: 4px 2px;
		border: 0;
		border-radius: 14px;
		background: transparent;
		color: #5E566E;
		font-family: inherit;
		font-size: 11.5px;
		font-weight: 600;
		line-height: 1.1;
		letter-spacing: 0;
		text-align: center;
		text-decoration: none;
		text-transform: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		transition: background-color .2s ease, color .2s ease;
	}
	.pk-am-tab span {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
	.pk-am-tab:hover,
	.pk-am-tab:focus {
		color: #93436B;
		background: transparent;
	}
	.pk-am-tab:focus-visible {
		outline: 2px solid #93436B;
		outline-offset: -2px;
	}
	.pk-am-tab.is-active,
	.pk-am-tab.is-active:hover,
	.pk-am-tab.is-active:focus {
		background: #93436B;
		color: #fff;
	}
	.pk-am-icon {
		flex: 0 0 auto;
		display: block;
	}

	/* Ortadaki "Abone Ol": bardan yukarı taşan mor yuvarlak düğme */
	.pk-am-cta,
	.pk-am-cta:hover,
	.pk-am-cta:focus,
	.pk-am-cta.is-active,
	.pk-am-cta.is-active:hover,
	.pk-am-cta.is-active:focus {
		justify-content: flex-end;
		padding-bottom: 6px;
		background: transparent;
		color: #93436B;
		font-weight: 700;
	}
	.pk-am-cta.is-active {
		color: #632B46;
	}
	.pk-am-cta-circle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 54px;
		margin-top: -30px;
		margin-bottom: 1px;
		border-radius: 50%;
		border: 4px solid #FBF9F6;
		background: #93436B;
		color: #fff;
		box-shadow: 0 6px 16px rgba(147, 67, 107, 0.35);
		box-sizing: border-box;
		transition: transform .15s ease, background-color .2s ease;
	}
	.pk-am-cta:active .pk-am-cta-circle {
		transform: scale(.94);
	}
	.pk-am-cta.is-active .pk-am-cta-circle {
		background: #632B46;
	}
	.pk-am-cta-circle .pk-am-icon {
		width: 24px;
		height: 24px;
	}

	/* Daha Fazla düğmesi: açıkken ✕ / "Kapat" */
	.pk-am-more .pk-am-icon-close,
	.pk-am-more .pk-am-label-close {
		display: none;
	}
	.pk-am-more[aria-expanded="true"] .pk-am-icon-more,
	.pk-am-more[aria-expanded="true"] .pk-am-label-open {
		display: none;
	}
	.pk-am-more[aria-expanded="true"] .pk-am-icon-close,
	.pk-am-more[aria-expanded="true"] .pk-am-label-close {
		display: block;
	}
	.pk-am-more[aria-expanded="true"],
	.pk-am-more[aria-expanded="true"]:hover,
	.pk-am-more[aria-expanded="true"]:focus {
		background: #632B46;
		color: #fff;
	}

	/* ---------- Karartma ---------- */
	.pk-am-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9988;
		background: rgba(27, 23, 38, 0.45);
		opacity: 0;
		transition: opacity .25s ease;
	}
	.pk-am-overlay[hidden] {
		display: none;
	}
	.pk-am-open .pk-am-overlay {
		opacity: 1;
	}

	/* ---------- Alttan açılan panel ---------- */
	.pk-am-sheet {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: calc(var(--pk-am-h) + var(--pk-am-safe));
		z-index: 9989;
		max-height: calc(100vh - var(--pk-am-h) - 80px);
		overflow-y: auto;
		padding: 10px 20px 34px; /* altta Abone Ol düğmesinin taşan kısmına yer */
		background: #FBF9F6;
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -10px 30px rgba(27, 23, 38, 0.18);
		box-sizing: border-box;
		transform: translateY(calc(100% + var(--pk-am-h)));
		transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	}
	.pk-am-sheet[hidden] {
		display: none;
	}
	.pk-am-open .pk-am-sheet {
		transform: translateY(0);
	}

	.pk-am-handle {
		width: 40px;
		height: 4px;
		margin: 0 auto 8px;
		border-radius: 4px;
		background: rgba(43, 36, 64, 0.18);
	}

	/* Panelin en üstünde vurgulu "Hediye Et" */
	.pk-am-gift {
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 4px 0 6px;
		padding: 14px 16px;
		border-radius: 14px;
		background: #F5E9EF;
		color: #93436B;
		font-size: 17px;
		font-weight: 700;
		text-decoration: none;
	}
	.pk-am-gift span {
		flex: 1 1 auto;
	}
	.pk-am-gift .pk-am-icon-arrow {
		width: 18px;
		height: 18px;
		opacity: .7;
	}
	.pk-am-gift:hover,
	.pk-am-gift:focus,
	.pk-am-gift.is-current {
		background: #93436B;
		color: #fff;
	}

	.pk-am-list {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.pk-am-list li {
		margin: 0;
		border-bottom: 1px solid rgba(43, 36, 64, 0.08);
	}
	.pk-am-list a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 16px 4px;
		color: #2B2440;
		font-size: 17px;
		font-weight: 600;
		text-decoration: none;
	}
	.pk-am-list a .pk-am-icon {
		width: 18px;
		height: 18px;
		color: #93436B;
		opacity: .7;
	}
	.pk-am-list a.is-current,
	.pk-am-uzman.is-current {
		color: #93436B;
	}

	.pk-am-uzman {
		display: block;
		padding: 16px 4px 4px;
		color: #7A7389;
		font-size: 14px;
		font-weight: 500;
		text-decoration: none;
	}

	/* Panel açıkken sepet balonu / "İzinleri yönet" panelin üstüne binmesin */
	body.pk-am-open .xoo-wsc-basket,
	body.pk-am-open #cmplz-manage-consent {
		visibility: hidden !important;
		transition: none !important;
	}

	/* Panel açıkken arkadaki sayfa kaymasın */
	html.pk-am-lock,
	html.pk-am-lock body {
		overflow: hidden;
	}
}

@media (max-width: 921px) and (prefers-reduced-motion: reduce) {
	.pk-am-sheet,
	.pk-am-overlay {
		transition: none;
	}
}
