/*
 * Elitmen · başlık çeşitleri
 * Seçenek 1 klasik başlık main.css'te. Burada: anlık arama (tüm başlıklar),
 * Seçenek 2 editoryal başlık ve tam ekran menü, Seçenek 3 mağaza başlığı ve sekme çubuğu.
 */

:root {
	--eh-h: 84px;
	--bh-bar: 68px;
	--bh-h: 80px;
	--tabbar-h: 0px;
}

/* ---------- Anlık arama ---------- */
.has-isearch { position: relative; }
.isearch {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
	min-width: 380px; max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
	padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
	box-shadow: 0 24px 60px rgba(18, 18, 18, .14);
	animation: isearch-in .2s var(--ease);
	text-align: left;
}
.isearch[hidden] { display: none; }
.search-pill .isearch { left: auto; right: 0; width: 420px; }
@keyframes isearch-in { from { opacity: 0; transform: translateY(-4px); } }
.isearch__label { margin: 12px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.isearch__opt {
	display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
	font-size: 15px; transition: background-color .15s var(--ease);
}
.isearch__opt:hover, .isearch__opt.is-active { background: var(--stone); }
.isearch__term { font-weight: 500; }
.isearch__meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.isearch__thumb { flex: none; width: 48px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--stone); }
.isearch__thumb img { width: 100%; height: 100%; object-fit: cover; }
.isearch__info { display: flex; flex-direction: column; min-width: 0; }
.isearch__brand { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.isearch__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.isearch__price { margin-left: auto; padding-left: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.isearch__price s { margin-right: 4px; color: var(--muted); font-weight: 400; }
.isearch__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 8px 6px; }
.isearch__chip { min-height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }
.isearch__chip:hover, .isearch__chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.isearch__all { justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-size: 14px; font-weight: 500; }
.isearch__empty { padding: 4px 12px 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.isearch__skeleton { display: grid; gap: 8px; padding: 4px 12px 8px; }
.isearch__skeleton i { display: block; height: 56px; border-radius: 10px; background: linear-gradient(90deg, var(--stone) 0%, #f8f7f3 50%, var(--stone) 100%); background-size: 200% 100%; animation: isearch-shimmer 1.2s linear infinite; }
@keyframes isearch-shimmer { to { background-position: -200% 0; } }

/* ---------- Seçenek 2 · Editoryal başlık ---------- */
.site-header-slot--editorial { display: contents; }
.ehead {
	position: sticky; top: 0; z-index: 30;
	background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease);
}
.admin-bar .ehead { top: 32px; }
.ehead.is-scrolled { box-shadow: 0 8px 24px rgba(18, 18, 18, .06); }
.ehead__bar {
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
	height: var(--eh-h); transition: height .3s var(--ease);
}
.ehead.is-scrolled .ehead__bar { height: 68px; }
.ehead__left { display: flex; align-items: center; gap: 36px; min-width: 0; }
.ehead__menu {
	display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px 0 14px; margin-left: -14px;
	border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	transition: background-color .2s var(--ease);
}
.ehead__menu:hover { background: var(--stone); }
.ehead__burger { display: flex; flex-direction: column; gap: 6px; width: 24px; }
.ehead__burger i { display: block; height: 1.5px; background: currentColor; transition: width .3s var(--ease); }
.ehead__burger i:last-child { width: 14px; }
.ehead__menu:hover .ehead__burger i:last-child { width: 24px; }
.ehead__quick { display: flex; gap: 28px; }
.ehead__quick .tl { padding-bottom: 4px; font-size: 14px; }
.ehead-logo { display: flex; justify-self: center; }
body img.ehead-logo__img { height: 42px; width: auto; transition: height .3s var(--ease); }
.ehead.is-scrolled .ehead-logo__img { height: 34px; }
.ehead__right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ehead__tool {
	position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
	border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 14px;
	transition: background-color .2s var(--ease);
}
.ehead__tool:hover { background: var(--stone); }
.ehead__tool .cart-count { position: static; min-width: 20px; height: 20px; line-height: 20px; }

/* Tam ekran menü */
.emenu {
	position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
	height: 100vh; height: 100dvh; background: var(--stone); color: var(--ink);
	opacity: 0; transition: opacity .3s var(--ease);
}
.emenu[hidden] { display: none; }
.emenu.is-open { opacity: 1; }
.admin-bar .emenu { top: 32px; height: calc(100dvh - 32px); }
.emenu__top {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: 24px;
	flex: none; height: var(--eh-h); border-bottom: 1px solid var(--line-strong);
}
body img.emenu-logo__img { height: 40px; width: auto; }
.emenu__search {
	display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px;
	border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.emenu__search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168, 139, 85, .18); }
.emenu__search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.emenu__search input::placeholder { color: var(--muted); opacity: 1; }
.emenu__close {
	justify-self: end; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; margin-right: -16px;
	border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.emenu__close:hover { background: rgba(18, 18, 18, .06); }
.emenu__close .icon { transition: transform .3s var(--ease); }
.emenu__close:hover .icon { transform: rotate(90deg); }

.emenu__body {
	flex: 1; min-height: 0; overflow: auto;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 56px;
	padding-top: 40px; padding-bottom: 40px;
}
.emenu__list { counter-reset: none; }
.emenu__item {
	position: relative; display: flex; flex-wrap: wrap; align-items: center;
	opacity: 0; transform: translateY(24px);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
	transition-delay: calc(var(--i) * 45ms + 80ms);
}
.emenu.is-open .emenu__item { opacity: 1; transform: none; }
.emenu__link { display: flex; align-items: baseline; gap: 18px; flex: 1; min-width: 0; padding: 6px 0; }
.emenu__num { width: 24px; flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.emenu__name {
	font-size: clamp(40px, 4.2vw, 68px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em;
	transition: color .25s var(--ease), transform .35s var(--ease);
}
.emenu__count { font-size: 14px; color: var(--muted); white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.emenu__item.is-active .emenu__count, .emenu__link:focus-visible .emenu__count { opacity: 1; transform: none; }
.emenu__item.is-active .emenu__name { transform: translateX(8px); }
.emenu__list:hover .emenu__item:not(.is-active) .emenu__name { color: rgba(18, 18, 18, .32); }
.emenu__item.is-sale .emenu__name { color: var(--gold-text); }
.emenu__toggle { display: none; }
.emenu__sub--inline { display: none; }

.emenu__side { position: relative; padding-top: 14px; }
.emenu__sub--side {
	position: absolute; inset: 14px 0 auto 0;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.emenu__sub--side.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.emenu__hint { font-size: 14px; color: var(--muted); max-width: 240px; transition: opacity .2s var(--ease); }
.emenu.has-sub .emenu__hint { opacity: 0; }
.emenu__all { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.emenu__col + .emenu__col { margin-top: 28px; }
.emenu__col-title { margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.emenu__col ul:not(.emenu__chips) { display: flex; flex-direction: column; gap: 10px; }
.emenu__col ul:not(.emenu__chips) a { font-size: 17px; color: #3a3a3a; }
.emenu__col ul:not(.emenu__chips) a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.emenu__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.emenu__chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.emenu__chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.emenu__figure { margin: 0; align-self: start; aspect-ratio: 4 / 5; max-height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.emenu__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .18s var(--ease), transform .6s var(--ease); }
.emenu__img.is-swapping { opacity: 0; transform: scale(1.02); }

.emenu__foot {
	flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 64px; border-top: 1px solid var(--line-strong); font-size: 14px;
}
.emenu__note { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.emenu__note .icon { color: var(--gold-text); }
.emenu__contact { display: flex; gap: 28px; }
.emenu__contact .tl { font-size: 14px; padding-bottom: 4px; }

/* ---------- Seçenek 3 · Bento başlık ---------- */
/* Taş zeminde yüzen yuvarlak çubuk; kaydırınca gölge alır. */
.bhead { position: sticky; top: 0; z-index: 30; padding-top: 12px; pointer-events: none; }
.admin-bar .bhead { top: 32px; }
.bhead__bar {
	position: relative; display: flex; align-items: center; gap: 16px; height: var(--bh-bar); padding: 0 10px 0 22px;
	border-radius: 20px; background: #fff; color: var(--ink); pointer-events: auto;
	box-shadow: 0 1px 0 rgba(18, 18, 18, .04); transition: box-shadow .3s var(--ease);
}
.bhead.is-stuck .bhead__bar { box-shadow: 0 12px 32px rgba(18, 18, 18, .1); }
.bhead__burger { display: none; }
.bhead-logo { display: flex; flex: none; }
body img.bhead-logo__img { height: 34px; width: auto; }
.bhead__nav { flex: 1; min-width: 0; }
.bhead__list { display: flex; justify-content: center; gap: 2px; }
.bhead .navlink.bhead__link {
	display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
	font-size: 14px; white-space: nowrap; transition: background-color .2s var(--ease);
}
.bhead__link:hover, .has-mega:hover > .bhead__link, .has-mega:focus-within > .bhead__link, .bhead__link.is-current { background: var(--stone); }
.bhead__item.is-sale > .bhead__link { color: var(--gold-text); }
.bhead .mega { top: calc(100% + 8px); border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(18, 18, 18, .14); }
.bhead .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.bhead .mega__inner { padding: 36px 40px 40px; }
.bhead .mega__card-media { border-radius: 14px; }

.bsearch {
	position: relative; flex: none; display: flex; align-items: center; gap: 10px; width: 250px; min-width: 0; height: 44px; padding: 0 10px 0 16px;
	border: 1px solid transparent; border-radius: 999px; background: var(--stone); color: var(--muted);
	transition: width .3s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bsearch:focus-within { width: 330px; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168, 139, 85, .18); color: var(--ink); }
.bsearch input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); }
.bsearch input::placeholder { color: var(--muted); opacity: 1; }
.bsearch input::-webkit-search-cancel-button { display: none; }
.bsearch__kbd {
	display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none;
	border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font: 500 12px/1 var(--font); color: var(--muted);
}
.bsearch:focus-within .bsearch__kbd { display: none; }
.bsearch .isearch { left: auto; right: 0; width: 440px; top: calc(100% + 14px); }

.bhead__account { flex: none; }
.bhead__cart {
	position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px;
	border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background-color .2s var(--ease);
}
.bhead__cart:hover { background: var(--ink-2); }
.bhead__cart .cart-count { position: static; min-width: 20px; height: 20px; line-height: 20px; }
.tabbar__bag { position: relative; display: flex; }
.tabbar__bag .cart-count { top: -6px; right: -9px; }

.tabbar { display: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1280px) {
	.ehead__quick { display: none; }
	.emenu__body { gap: 40px; }
}

/* Tablet */
@media (max-width: 1100px) {
	:root { --eh-h: 72px; }
	.bhead__nav { display: none; }
	.bhead__burger { display: inline-flex; margin-left: -12px; }
	.bhead__bar { padding-left: 18px; }
	.bsearch, .bsearch:focus-within { flex: 1; width: auto; }
	.ehead__tool--account, .ehead__tool-label { display: none; }
	.ehead__tool--cart .cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; line-height: 18px; }
	.ehead__tool { width: 44px; padding: 0; justify-content: center; }
	body img.ehead-logo__img { height: 36px; }

	.emenu__top { grid-template-columns: auto minmax(0, 1fr) auto; }
	.emenu__body { display: block; padding-top: 16px; }
	.emenu__side, .emenu__figure { display: none; }
	.emenu__item { border-bottom: 1px solid var(--line-strong); }
	.emenu__name { font-size: 40px; }
	.emenu__count { opacity: 1; transform: none; }
	.emenu__item.is-active .emenu__name { transform: none; }
	.emenu__list:hover .emenu__item:not(.is-active) .emenu__name { color: inherit; }
	.emenu__item.is-sale .emenu__name { color: var(--gold-text); }
	.emenu__link { padding: 14px 0; }
	.emenu__toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px;
		border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	}
	.emenu__toggle .icon { transition: transform .3s var(--ease); }
	.emenu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.emenu__sub--inline { display: grid; grid-template-rows: 0fr; flex-basis: 100%; transition: grid-template-rows .35s var(--ease); }
	.emenu__sub--inline > * { min-height: 0; overflow: hidden; }
	.emenu__item.is-expanded .emenu__sub--inline { grid-template-rows: 1fr; }
	.emenu__sub--inline { padding-left: 42px; }
	.emenu__item.is-expanded .emenu__sub--inline { padding-bottom: 24px; }
	.emenu__sub--inline .emenu__col + .emenu__col { margin-top: 20px; }
	.emenu__sub--inline .emenu__all { margin-bottom: 16px; }
	.emenu__foot { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }

}

/* Telefon */
@media (max-width: 720px) {
	:root { --eh-h: 64px; --bh-bar: 60px; --bh-h: 68px; --tabbar-h: 64px; }
	.bhead { padding-top: 8px; }
	.bhead .wrap { padding: 0 8px; }
	.bhead__bar { gap: 8px; padding: 0 6px 0 14px; border-radius: 18px; }
	.bhead__burger, .bhead__account, .bsearch__kbd, .bhead__cart-text { display: none; }
	body img.bhead-logo__img { height: 26px; }
	.bsearch { height: 42px; padding-left: 12px; gap: 8px; }
	.bsearch input[type="search"] { width: 0; font-size: 16px; }
	.bsearch .isearch { position: fixed; left: 12px; right: 12px; top: calc(var(--bh-h) + 8px); width: auto; min-width: 0; max-height: calc(100dvh - var(--bh-h) - var(--tabbar-h) - 24px); }
	.bhead__cart { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 14px; }
	.bhead__cart .cart-count { position: absolute; top: -4px; right: -4px; }
	.ehead__menu { padding: 0 12px 0 10px; margin-left: -10px; }
	.ehead__menu-label { font-size: 12px; }
	body img.ehead-logo__img, .ehead.is-scrolled .ehead-logo__img { height: 28px; }
	.ehead.is-scrolled .ehead__bar { height: var(--eh-h); }
	.ehead__bar { gap: 8px; }
	.ehead__right { margin-right: -10px; gap: 0; }

	.emenu__top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px auto; gap: 0 12px; height: auto; padding-bottom: 14px; }
	body img.emenu-logo__img { height: 28px; }
	.emenu__search { grid-column: 1 / -1; grid-row: 2; height: 48px; }
	.emenu__close { grid-column: 2; grid-row: 1; }
	.emenu__close span { display: none; }
	.emenu__close { width: 44px; padding: 0; justify-content: center; margin-right: -10px; }
	.emenu__name { font-size: 32px; }
	.emenu__num { width: 20px; font-size: 12px; }
	.emenu__link { gap: 12px; padding: 12px 0; }
	.emenu__count { font-size: 13px; }
	.emenu__sub--inline { padding-left: 32px; }
	.emenu__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
	.emenu__contact { flex-wrap: wrap; gap: 8px 20px; }
	.emenu .isearch { min-width: 0; }



	.header-shop { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
	.tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
		height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(18, 18, 18, .05);
	}
	.tabbar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		border: 0; background: transparent; cursor: pointer; font-size: 11px; color: var(--muted);
	}
	.tabbar__item.is-current { color: var(--ink); font-weight: 500; }
	.tabbar__item:active { background: var(--stone); }
	.search-pill .isearch { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.emenu, .emenu__item, .emenu__name, .emenu__sub--side, .emenu__sub--inline, .bsearch, .isearch, .emenu__img { transition: none; animation: none; }
	.emenu__item { opacity: 1; transform: none; }
	.isearch__skeleton i { animation: none; }
}
