/* —— Desktop mega menu: full width of nav bar —— */
@media (min-width: 1200px) {
	.fy-nav,
	.categories-menu,
	.nav-list,
	.menu-card,
	.menu-card-wrapper,
	.main-bar,
	.fy-header,
	.fy-header__inner,
	ul:has(> .mm-item) {
		position: relative;
		overflow: visible;
	}

	.mm-item.has-dropdown {
		position: static !important;
	}

	.mm-item.has-dropdown > .desktop-nav-link,
	.mm-item.has-dropdown > .mm-item__link {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
	}

	.mm-toggle {
		display: none !important;
	}

	.mm-caret {
		display: inline-block;
		width: 0;
		height: 0;
		border-left: 4px solid transparent;
		border-right: 4px solid transparent;
		border-top: 5px solid currentColor;
		opacity: 0.65;
	}

	.mm-dropdown {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		width: 100%;
		min-width: 0;
		max-width: none;
		z-index: 1050;
		padding: 1rem 1.25rem;
		margin: 0;
		background: #fff;
		border: 1px solid #e2e8f0;
		border-radius: 0 0 12px 12px;
		box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
		box-sizing: border-box;
	}

	.mm-item.has-dropdown:hover > .mm-dropdown,
	.mm-item.has-dropdown.is-open > .mm-dropdown,
	.mm-item.has-dropdown:focus-within > .mm-dropdown {
		display: block;
	}

	.mm-dropdown__grid {
		display: flex;
		flex-wrap: wrap;
		--bs-gutter-x: 0.75rem;
		--bs-gutter-y: 0.25rem;
	}

	.mm-dropdown__col {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
		width: 33.333333%;
		padding-left: 0.35rem;
		padding-right: 0.35rem;
		margin-bottom: 0.15rem;
		box-sizing: border-box;
	}

	.mm-dropdown__link {
		display: block;
		padding: 0.55rem 0.65rem;
		border-radius: 6px;
		color: #334155;
		font-size: 0.9rem;
		line-height: 1.35;
		text-decoration: none;
		white-space: normal;
	}

	.mm-dropdown__link:hover {
		background: #f8fafc;
		color: #0f172a;
	}
}

/* —— Mobile / tablet: click accordion (desktop nav rare; drawer uses .mm-m*) —— */
@media (max-width: 1199.98px) {
	.mm-item.has-dropdown {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.mm-item.has-dropdown > .mm-item__link,
	.mm-item.has-dropdown > .desktop-nav-link {
		flex: 1 1 auto;
		min-width: 0;
	}

	.mm-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.25rem;
		height: 2.25rem;
		padding: 0;
		margin: 0;
		border: 1px solid #e2e8f0;
		border-radius: 6px;
		background: #fff;
		color: inherit;
		cursor: pointer;
		flex: 0 0 auto;
	}

	.mm-caret {
		display: inline-block;
		width: 0;
		height: 0;
		border-left: 4px solid transparent;
		border-right: 4px solid transparent;
		border-top: 5px solid currentColor;
		opacity: 0.75;
		transition: transform 0.15s ease;
	}

	.mm-item.has-dropdown.is-open > .mm-toggle .mm-caret {
		transform: rotate(180deg);
	}

	.mm-dropdown {
		display: none;
		flex: 0 0 100%;
		width: 100%;
		position: static;
		padding: 0.5rem 0.25rem 0.75rem;
		margin: 0.35rem 0 0;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		box-shadow: none;
		box-sizing: border-box;
	}

	.mm-item.has-dropdown.is-open > .mm-dropdown {
		display: block;
	}

	.mm-dropdown__grid {
		display: block;
	}

	.mm-dropdown__col {
		width: 100%;
		max-width: 100%;
		flex: none;
	}

	.mm-dropdown__link {
		display: block;
		padding: 0.55rem 0.65rem;
		border-radius: 6px;
		color: #334155;
		font-size: 0.9rem;
		text-decoration: none;
	}

	.mm-dropdown__link:hover {
		background: #fff;
		color: #0f172a;
	}
}

/* Mobile drawer accordion */
.mm-m-group {
	display: flex;
	flex-direction: column;
}

.mm-m-head {
	display: flex;
	align-items: stretch;
	gap: 0.25rem;
}

.mm-m-head > a {
	flex: 1 1 auto;
	min-width: 0;
}

.mm-m-toggle {
	flex: 0 0 2.4rem;
	width: 2.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
}

.mm-m-toggle .mm-caret {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	opacity: 0.7;
	transition: transform 0.15s ease;
}

.mm-m-group.is-open .mm-m-toggle .mm-caret {
	transform: rotate(180deg);
}

.mm-m-children {
	display: none;
	padding: 0.15rem 0 0.35rem 0.5rem;
}

.mm-m-group.is-open > .mm-m-children {
	display: block;
}

.mm-m-children a {
	display: block;
}

.fy-drawer__link--child {
	padding-left: 2.75rem !important;
	font-size: 0.9rem;
	opacity: 0.92;
}

.dress-mobile-menu__item--child {
	padding-left: 2.5rem;
	font-size: 0.9rem;
}

/* —— Footer menu links (li items injected into theme ul) —— */
.mm-footer-menu__link {
	text-decoration: none;
}

.mm-footer-menu__item + .mm-footer-menu__item {
	margin-top: 0.15rem;
}


/* —— Homepage desktop category rail + hero slider —— */
.mm-home-rail-config[hidden] {
	display: none !important;
}

.mm-home-category-col {
	min-width: 0;
}

.mm-home-category-panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 280px;
	background: #fff;
	border: 1px solid var(--border, #e2e8f0);
	border-radius: var(--radius-lg, 12px);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.mm-home-category-panel__head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 16px;
	border-bottom: 1px solid var(--border, #e2e8f0);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text, #0f172a);
	background: #fff;
	text-decoration: none;
	flex: 0 0 auto;
}

.mm-home-category-panel__head:hover {
	color: var(--primary, #2563eb);
}

.mm-home-category-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--primary-light, #eff6ff);
	color: var(--primary, #2563eb);
	flex: 0 0 auto;
}

.mm-home-category-panel__list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 4px 0;
	scrollbar-width: thin;
}

.mm-home-category-panel__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 38px;
	padding: 8px 14px 8px 16px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.72);
	color: var(--text, #334155);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mm-home-category-panel__link:last-child {
	border-bottom: 0;
}

.mm-home-category-panel__link::after {
	content: "›";
	font-size: 1.2rem;
	line-height: 1;
	color: #94a3b8;
	flex: 0 0 auto;
}

.mm-home-category-panel__link:hover,
.mm-home-category-panel__link.is-active {
	background: var(--primary-light, #eff6ff);
	color: var(--primary, #2563eb);
	padding-left: 19px;
}

@media (min-width: 992px) {
	.mm-home-hero-layout > .row {
		display: grid !important;
		grid-template-columns: var(--mm-home-cat-width, 260px) minmax(0, 1fr);
		gap: 16px !important;
		align-items: stretch !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.mm-home-hero-layout > .row > .mm-home-category-col,
	.mm-home-hero-layout > .row > .mm-home-slider-col {
		width: auto !important;
		max-width: none !important;
		flex: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		min-width: 0;
	}

	.mm-home-hero-shell {
		display: grid;
		grid-template-columns: var(--mm-home-cat-width, 260px) minmax(0, 1fr);
		gap: 16px;
		align-items: stretch;
	}

	.mm-home-hero-shell > .t4-home-slider {
		min-width: 0;
	}

	.mm-home-slider-col .fshop-slider--hero,
	.mm-home-hero-shell .fshop-slider--hero {
		margin-top: 0 !important;
	}
}

@media (max-width: 991.98px) {
	.mm-home-category-col,
	.mm-home-category-panel {
		display: none !important;
	}

	.mm-home-hero-shell {
		display: block;
	}
}

/* 1.4.1: slider hook konumundan bağımsız ana sayfa rayı */
@media (min-width: 992px) {
	.mm-home-hero-shell > .mm-home-slider-root {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		margin: 0 !important;
	}

	.mm-home-hero-shell > .mm-home-category-col {
		min-width: 0;
		align-self: stretch;
	}
}
