

/* ===== Header shell ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 996;
    margin-bottom: 20px;
	background: #fff;
}

.home .site-header {
    margin-bottom: -72px;
	background: transparent;
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 72px;
	padding: 12px 24px;
	gap: 12px;
}

.logo {
	display: grid;
	place-items: center;
}

.white-style .logo img {
	filter: invert(1);
}

.logo__text {
	text-decoration: none;
	color: #fff;
	font-weight: 600;
}

.quick-links {
    display: flex;
    gap: 32px;
}

.quick-links__item {
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
}

.white-style .quick-links__item {
	color: #000;
}

.quick-links__item svg {
    display: none;
}

/* ===== Toggles ===== */
.menu-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #fff;
}

.white-style .menu-toggle {
	color: #000;
}

.menu-toggle__icon {
    display: inline-grid;
}

.white-style .menu-toggle__icon svg line {
	stroke: #000;
}

.menu-toggle__icon--close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--burger {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon--close {
	display: inline-grid;
}

.menu-toggle__label {
	font-weight: 400;
    font-size: 14px;
}

.menu-toggle svg {
	display: block;
}

.menu-toggle .menu-toggle__icon--burger svg,
.menu-toggle .menu-toggle__icon--close svg {
	width: 24px;
	height: 24px;
}

.menu-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.menu-toggle--overlay {
    color: #000;
}

/* ===== Overlay base ===== */
.mega {
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 1100;
	opacity: 1;
	transition: opacity .2s ease;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100dvh;
}

.mega.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.no-scroll {
	overflow: hidden;
}

/* ===== Overlay layout (desktop) ===== */
.mega__top {
    display: grid;
	grid-template-columns: 155px 1fr 155px;
	align-items: center;
	min-height: 72px;
	padding: 12px 24px;
	gap: 12px;
}

.mega .quick-links .quick-links__item{
    color: #000;
}

.mega__search {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.mega__inner {
	max-width: 900px;
	margin: 0 auto;
	height: max-content;
	padding: 20px 0;
	display: grid;
	gap: 24px;
	grid-template-columns: 280px 1fr 280px;
}

.mega__col {

}

.mega__col--roots {

}

.mega__col--sub {

}

/* ===== Menus ===== */
.mega__roots,
.mega__roots ul {
	list-style: none;
	margin: 0;
	padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mm-root {
    width: fit-content;
}

.mm-root > .mm-root__link {
	display: block;
	padding: 0;
	text-decoration: none;
	color: #000;
	font-weight: 400;
    font-size: 12px;
}

.menu-title > .mm-root__link {
    color: #848484;
}

.menu-title:not(:first-of-type) {
    margin-top: 56px;
}

.mm-root.menu-item-has-children > .mm-root__link:hover,
.mm-root.menu-item-has-children > .mm-root__link:focus {
	font-weight: 600;
}

.mm-root.menu-item-has-children .mm-root__link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-root.menu-item-has-children .mm-root__link > svg {
    transform: rotate(180deg);
    flex: 0 0 6px;
}


.mm-sub {
	list-style: none;
	margin: 0;
	padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mm-sub__link {
	display: block;
	text-decoration: none;
	color: #000;
    text-transform: uppercase;
    font-size: 12px;
}


.mm-shop-all .mm-sub__link {
	color: #000;
    margin-bottom: 56px;
}

/* Hide in-root submenu by default */
.mm-root > .mm-sub {
	display: none;
}

.mega__col--sub > .mm-sub {
	
}

/* ===== Desktop promos ===== */
.mega__col--promo {
	display: flex;
    flex-direction: column;
	gap: 16px;
	
}

.mm-promos {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.promo {
    position: relative;
    display: block;
}

.promo img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.promo__title {
	font-weight: 700;
	position: absolute;
    top: 24px;
    left: 24px;
    max-width: 170px;
    font-size: 18px;
    color: #fff;
}

.promo__text {
	position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 14px;    
    color: #fff;
    font-weight: 400;
}

/* ===== Mobile sheet (sub overlay) ===== */
.mm-sub-sheet {
	position: absolute;
	inset: 104px 0 0 0;
	background: #fff;
	transform: translateX(100%);
	transition: transform .25s ease;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	overflow: auto;
    /* height: 100%; */
}
.mm-sub-sheet.is-visible {
	transform: translateX(0);
}
.mm-back {
	appearance: none;
	border: 1px solid #e5e5e5;
	background: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
}
/* .mm-sub-mobile {
	overflow: auto;
} */
.mm-promos-mobile {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .mega {
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .mega__top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .mega__search {
        order: 2;
        flex: 1 1 100%;
    }

	.mega__inner {
		grid-template-columns: 1fr;
        padding: 32px 24px;
        overflow-y: auto;
        height: 100%;
        width: 100%;
	}

    .mm-sub-sheet {
        padding: 32px 24px;
    }

	.mega__col--roots,
	.mega__col--sub,
	.mega__col--promo {
		border-right: 0;
		padding-right: 0;
	}
    
	.mega__col--sub,
	.mega__col--promo {
		display: none;
	}

	.mm-promos-mobile .promo {

	}
}

@media (max-width: 640px) {
    .logo img {
        max-width: 144px;
        height: auto;
    }
    

    .site-header__inner {
        padding: 16px;
        grid-template-columns: 74px 1fr 74px;
    }

    .menu-toggle__label {
        display: none;
    }

    .quick-links {
        gap: 20px;
    }

    .quick-links__item {
       display: flex;
       align-items: center;
    }

    .quick-links__item span {
        display: none;
    }

    .quick-links__item svg {
        display: block;
        width: 20px;
        height: 20px;
    }

    .menu-title:not(:first-of-type) {
        margin-top: 40px;
    }

    .mm-shop-all .mm-sub__link {
        margin-bottom: 40px;
    }
}

/* Animate submenus */
.mega__col--sub > .mm-sub {
	animation: fadeIn .15s ease;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mm-root > .mm-sub,
.mm-root > .mm-promos {
	display: none;
}

.mega__col--promo > .mm-promos,
#mm-sub-mobile > .mm-sub,
#mm-promos-mobile > .mm-promos {
	display: flex;
}


