/* Exact REMUS header interaction layer over the original utility CSS. */
@font-face {
	font-family: gtAmerica;
	src: url("../fonts/gt-regular.woff2") format("woff2");
	font-display: swap;
	font-weight: 400;
}
@font-face {
	font-family: gtAmerica;
	src: url("../fonts/gt-medium.woff2") format("woff2");
	font-display: swap;
	font-weight: 500;
}
@font-face {
	font-family: gtAmerica;
	src: url("../fonts/gt-bold.woff2") format("woff2");
	font-display: swap;
	font-weight: 700;
}

dialog {
	border: none;
	padding: 0;
	margin: 0;
	background: transparent;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

dialog[open] {
	display: block;
}

dialog[open] > nav,
dialog[open] > div {
	pointer-events: auto;
}

.static-find-exhaust {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .55rem 1.25rem;
	border-radius: 999px;
	background: #e52421;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.static-find-exhaust:hover { filter: brightness(.92); }

/* Closed mobile header: Find Exhaust + cart/account/menu. Search only when the menu is open. */
@media (max-width: 1023px) {
	header#main-navigation a[aria-label="Aramayı aç"],
	header#main-navigation a[aria-label="Open search"] {
		display: none;
	}

	body.menu-open header#main-navigation .lg\:hidden a[aria-label="Aramayı aç"],
	body.menu-open header#main-navigation .lg\:hidden a[aria-label="Open search"] {
		display: inline-flex;
		color: #fff;
	}

	body.menu-open header#main-navigation .lg\:hidden [data-testid="nav-store-link"],
	body.menu-open header#main-navigation .lg\:hidden a[aria-label="Alışveriş sepeti"],
	body.menu-open header#main-navigation .lg\:hidden a[aria-label="Hesabım"] {
		color: #fff;
	}

	header#main-navigation .lg\:hidden nav .static-find-exhaust {
		display: none;
	}

	body.menu-open header#main-navigation .lg\:hidden .menu-label-open {
		display: none !important;
	}

	body.menu-open header#main-navigation .lg\:hidden .origin-bottom-left {
		background-color: var(--color-grey-50, #161516);
		box-shadow: none;
	}

	body.menu-open header#main-navigation .lg\:hidden button[aria-haspopup="dialog"] {
		color: #fff;
	}

	body.menu-open header#main-navigation .lg\:hidden .flex-1 > .w-full {
		padding-top: .75rem;
	}
}

button[aria-haspopup="dialog"] .menu-label-open,
button[aria-haspopup="dialog"] .menu-icon-open { display: none; }

body.menu-open button[aria-haspopup="dialog"] .menu-label-open,
body.menu-open button[aria-haspopup="dialog"] .menu-icon-open { display: block; }

body.menu-open button[aria-haspopup="dialog"] .menu-label-closed,
body.menu-open button[aria-haspopup="dialog"] .menu-icon-closed { display: none; }

header#main-navigation {
	z-index: 100;
	font-family: gtAmerica, Arial, sans-serif;
}

header#main-navigation a[data-remus-category][aria-current="page"] {
	border-bottom-color: var(--color-primary-500, #e52b27);
}

body.admin-bar header#main-navigation { top: 32px; }

@media (max-width: 782px) {
	body.admin-bar header#main-navigation { top: 46px; }
}

/* Header search — mirrors the original REMUS inline search transition. */
body.search-open button[aria-haspopup="dialog"] {
	display: none;
}

body.desktop-search-open .static-close-search {
	display: flex;
}

body.desktop-search-open header#main-navigation .pr-12 {
	z-index: 3;
	pointer-events: auto;
}

.static-close-search {
	display: none;
	flex-flow: row nowrap;
	align-items: center;
	gap: .5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #e52421;
	font-weight: 500;
	cursor: pointer;
}

.static-search-form {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 30rem;
}

.static-search-row {
	display: flex;
	width: 100%;
}

.static-search-input {
	height: 3rem;
	min-width: 0;
	flex: 1;
	border: 1px solid #dcd6d8;
	border-right: 0;
	border-radius: .5rem 0 0 .5rem;
	background: #fff;
	padding: 0 1rem;
	color: #161516;
	font: inherit;
	outline: none;
}

.static-search-input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 2px #2563eb;
}

.static-search-input::placeholder {
	color: #585656;
}

.static-search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 .75rem;
	border: 0;
	border-radius: 0 .5rem .5rem 0;
	background: #e52421;
	color: #fff;
	cursor: pointer;
}

.static-search-submit:hover {
	filter: brightness(.92);
}

.static-search-drop {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 160;
	display: none;
	width: min(42rem, calc(100vw - 2rem));
	max-height: min(70vh, 32rem);
	overflow: auto;
	border: 1px solid #dcd6d8;
	border-radius: .5rem;
	background: #fff;
	box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}

.static-search-drop.is-open {
	display: block;
}

.static-search-kicker {
	display: block;
	padding: .5rem 1rem .25rem;
	color: #585656;
	font-size: .75rem;
	font-weight: 300;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.static-search-site {
	display: block;
	padding: .75rem 1rem;
	color: #161516;
	font-weight: 600;
	text-decoration: none;
}

.static-search-site:hover,
.static-search-product:hover h3 {
	color: #e52421;
}

.static-search-product {
	display: grid;
	grid-template-columns: 5rem 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: .75rem 1rem;
	border-top: 1px solid #eee;
	color: #161516;
	text-decoration: none;
}

.static-search-product img {
	width: 5rem;
	height: 5rem;
	object-fit: contain;
}

.static-search-product h3 {
	margin: 0;
	font-size: .95rem;
	font-weight: 700;
}

.static-search-price {
	color: #161516;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.static-search-empty {
	padding: 1rem;
	color: #585656;
}

.remus-mobile-search-panel {
	position: fixed;
	inset: var(--spacing-navbar-padding) 0 auto;
	z-index: 110;
	padding: 1rem;
	border-bottom: 1px solid #dcd6d8;
	background: #fff;
	box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}

.remus-mobile-search-panel[hidden] {
	display: none;
}

.remus-mobile-search-inner {
	display: flex;
	gap: .75rem;
	align-items: center;
	max-width: 42rem;
	margin: 0 auto;
}

.remus-mobile-search-inner .static-search-form {
	max-width: none;
}

.remus-mobile-search-close {
	display: flex;
	flex: none;
	padding: .5rem;
	border: 0;
	background: transparent;
	color: #e52421;
	cursor: pointer;
}

@media (min-width: 1024px) {
	.remus-mobile-search-panel {
		display: none !important;
	}
}

#static-find-exhaust-dialog.static-fy-dialog {
	pointer-events: none;
	border: none;
	padding: 0;
	margin: 0;
	background: transparent;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
}

#static-find-exhaust-dialog[open] {
	display: block;
}

.static-fy-dialog::backdrop {
	background: transparent;
}

.static-fy-backdrop {
	pointer-events: auto;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.static-fy-panel {
	pointer-events: auto;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(40rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow: auto;
	background: #fff;
	color: #161516;
	border-radius: 0.75rem;
	padding: 0;
	font-family: gtAmerica, Arial, sans-serif;
}

.static-fy-close {
	display: none;
}

.static-fy-title {
	font-size: clamp(1.2rem, 3vw, 1.55rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	margin: 0;
	padding: 2rem 3.25rem 1.55rem;
}

.static-fy-form {
	display: flex;
	flex-direction: column;
}

.static-fy-steps {
	margin: 0 1.35rem 1.6rem;
	overflow: hidden;
	border: 1px solid #d4d4d4;
	border-radius: 0.75rem;
	background: #f8f7f7;
}

.static-fy-step + .static-fy-step {
	border-top: 1px solid #e3e1e1;
}

.static-fy-step-trigger {
	width: 100%;
	min-height: 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border: 0;
	padding: 1rem 1.15rem;
	background: transparent;
	color: #858585;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	outline: 0;
}

.static-fy-step[data-enabled="false"] .static-fy-step-trigger {
	cursor: not-allowed;
}

.static-fy-step[data-enabled="true"] .static-fy-step-trigger {
	color: #161516;
}

.static-fy-step.is-open .static-fy-step-trigger,
.static-fy-step.is-selected .static-fy-step-trigger {
	color: #e52421;
}

.static-fy-step.is-open .static-fy-step-trigger svg {
	transform: rotate(180deg);
}

.static-fy-step-trigger svg {
	flex: 0 0 auto;
	transition: transform 180ms ease;
}

.static-fy-step-panel {
	padding: 0 1.15rem 1.15rem;
	background: #fff;
}

.static-fy-search {
	height: 3rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	border: 1px solid #cfcfcf;
	border-radius: 0.6rem 0.6rem 0 0;
	padding: 0 0.85rem;
	color: #777;
}

.static-fy-search input {
	min-width: 0;
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	color: #161516;
	font-size: 1rem;
	box-shadow: none;
}

.static-fy-options {
	max-height: 13rem;
	overflow-y: auto;
	border: 1px solid #cfcfcf;
	border-top: 0;
	border-radius: 0 0 0.6rem 0.6rem;
	background: #fff;
}

.static-fy-option {
	width: 100%;
	display: block;
	border: 0;
	padding: 0.8rem 1rem;
	background: #fff;
	color: #161516;
	font-size: 1rem;
	text-align: left;
	cursor: pointer;
}

.static-fy-option:hover,
.static-fy-option:focus-visible {
	background: #f2f2f2;
	outline: 0;
}

.static-fy-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid #e2e0e0;
}

.static-fy-reset,
.static-fy-submit {
	min-height: 4.5rem;
	border: 0;
	border-radius: 0;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}

.static-fy-reset {
	background: #fff;
	color: #161516;
}

.static-fy-submit {
	background: #e52421;
	color: #fff;
}

.static-fy-submit:disabled {
	background: #d9d7d7;
	color: #fff;
	opacity: 1;
	cursor: not-allowed;
}

.static-fy-submit:not(:disabled):hover {
	filter: brightness(0.92);
}

.remus-search-combo__panel {
	position: absolute;
	top: 2.35rem;
	left: 0;
	z-index: 30;
	min-width: 20rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid #000;
	border-radius: 0.5rem;
}

.remus-search-combo[data-combo="sort"] .remus-search-combo__panel {
	left: auto;
	right: 0;
}

.remus-search-combo__panel input {
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
}

.remus-search-combo__check {
	visibility: hidden;
}

.remus-search-combo__panel [aria-selected="true"] .remus-search-combo__check,
.remus-search-combo__panel [data-selected="true"] .remus-search-combo__check {
	visibility: visible;
}

.remus-search-combo__panel [role="option"]:hover,
.remus-search-combo__panel [role="option"]:focus-visible {
	background: #f3f3f3;
}

.remus-search-combo button[disabled] {
	cursor: not-allowed;
}

[data-remus-search-results][aria-busy="true"] {
	opacity: 0.55;
	pointer-events: none;
}

@media (max-width: 640px) {
	.static-fy-panel {
		width: calc(100vw - 1rem);
		max-height: calc(100dvh - 1rem);
	}

	.static-fy-title {
		padding-top: 1.65rem;
	}

	.static-fy-steps {
		margin-right: 0.8rem;
		margin-left: 0.8rem;
	}

	.static-fy-step-trigger {
		min-height: 3.6rem;
		font-size: 0.95rem;
	}
}

@media (max-width: 639px) {
	.static-search-product {
		grid-template-columns: 3.5rem 1fr;
	}

	.static-search-product img {
		width: 3.5rem;
		height: 3.5rem;
	}

	.static-search-price {
		grid-column: 2;
		text-align: left;
	}
}
