/*
Theme Name: AN Editorial Shell
Theme URI: https://an-editorial.com/
Author: AN Editorial
Description: Transitional shell theme for removing the site's dependency on Rey.
Version: 0.1.0
Text Domain: an-editorial-shell
*/

:root {
	--ae-font-sans: "Helvetica Neue", Arial, sans-serif;
	--ae-font-editorial: "Georgia", serif;
	--ae-font-ui: "Montserrat__", var(--ae-font-sans);
	--ae-color-text: #111;
	--ae-color-text-muted: rgba(17, 17, 17, 0.56);
	--ae-color-border-soft: rgba(17, 17, 17, 0.08);
	--ae-color-surface: #fff;
	--ae-color-surface-soft: #f8f4ee;
	--ae-color-surface-selected: #f5efe7;
	--ae-header-max-width: 1440px;
	--ae-page-gutter: 28px;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: var(--ae-color-surface);
	color: var(--ae-color-text);
	font-family: var(--ae-font-sans);
}

.ae-siteWrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ae-siteContent {
	min-height: 50vh;
	flex: 1 1 auto;
}

body.admin-bar .ae-siteHeader {
	top: 32px;
}

.ae-siteHeader {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 10020;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--ae-color-border-soft);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.ae-siteHeader-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	max-width: var(--ae-header-max-width);
	margin: 0 auto;
	padding: 18px var(--ae-page-gutter);
}

.ae-siteHeader-group {
	display: flex;
	align-items: center;
}

.ae-siteHeader-group--left {
	justify-content: flex-start;
	gap: 18px;
}

.ae-siteHeader-group--center {
	justify-content: center;
}

.ae-siteHeader-group--right {
	justify-content: flex-end;
	gap: 8px;
}

.ae-mobileMenu {
	display: none;
}

.ae-siteHeader-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ae-color-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.ae-siteHeader-toggleIcon {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
	width: 28px;
	height: 28px;
}

.ae-siteHeader-toggleIcon span {
	display: block;
	width: 28px;
	height: 2px;
	background: var(--ae-color-text);
}

.ae-siteHeader-nav {
	display: flex;
	align-items: center;
}

.ae-siteSearch-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.ae-siteSearch-toggleIcon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.ae-siteSearch-toggleIcon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ae-siteNav-list {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-siteNav-list a {
	color: var(--ae-color-text);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ae-siteNav-list .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 0.32em;
}

.ae-siteBrand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.ae-siteHeader .ae-currency-switcher {
	margin: 0;
}

.ae-secondaryNav {
	position: sticky;
	top: var(--ae-siteHeader-offset, 84px);
	z-index: 10010;
	border-bottom: 1px solid var(--ae-color-border-soft);
	background: var(--ae-color-surface);
}

.ae-secondaryNav-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 28px;
	align-items: center;
	margin: 0 auto;
	padding: 14px var(--ae-page-gutter);
	max-width: var(--ae-header-max-width);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.ae-secondaryNav-list::-webkit-scrollbar {
	display: none;
}

.ae-secondaryNav-list li {
	flex: 0 0 auto;
}

.ae-secondaryNav-list a {
	color: var(--ae-color-text);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ae-secondaryNav-list .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 0.32em;
}

.ae-searchShell[hidden] {
	display: none;
}

.ae-searchShell {
	position: fixed;
	top: var(--ae-siteHeader-offset, 0);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10050;
	background: rgba(17, 17, 17, 0.42);
	overflow-y: auto;
}

.ae-searchOverlay {
	background: #fff;
	box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
}

.ae-searchOverlay-bar {
	position: sticky;
	top: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 24px;
	padding: 36px 40px;
	border-bottom: 1px solid var(--ae-color-border-soft);
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
}

.ae-searchOverlay-icon {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--ae-color-text);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ae-searchOverlay-bar input[type="search"] {
	width: 100%;
	padding: 6px 0;
	border: 0;
	background: transparent;
	outline: 0;
	color: var(--ae-color-text);
	font-family: var(--ae-font-ui);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: -0.005em;
	line-height: 1.2;
}

.ae-searchOverlay-bar input[type="search"]::placeholder {
	color: rgba(17, 17, 17, 0.55);
	opacity: 1;
}

.ae-searchOverlay-clear {
	padding: 6px 10px;
	border: 0;
	background: transparent;
	color: var(--ae-color-text-muted);
	font-family: var(--ae-font-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 140ms ease;
}

.ae-searchOverlay-clear:hover {
	color: var(--ae-color-text);
}

.ae-searchOverlay-clear.is-hidden {
	visibility: hidden;
}

.ae-searchOverlay-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ae-color-text);
	cursor: pointer;
	transition: transform 140ms ease;
}

.ae-searchOverlay-close:hover {
	transform: rotate(90deg);
}

.ae-searchOverlay-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ae-searchOverlay-body {
	max-width: 1760px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.ae-searchOverlay-empty {
	padding: 0;
	color: var(--ae-color-text-muted);
}

.ae-searchOverlay-found {
	padding: 40px 40px 80px;
}

.ae-searchOverlay-eyebrow,
.ae-searchOverlay-sectionHead {
	display: block;
	margin: 0 0 18px;
	color: var(--ae-color-text-muted);
	font-family: var(--ae-font-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ae-searchOverlay-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-searchOverlay-chips a {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid rgba(17, 17, 17, 0.22);
	border-radius: 999px;
	color: var(--ae-color-text);
	font-family: var(--ae-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
	text-decoration: none;
	transition: border-color 140ms ease, background 140ms ease;
}

.ae-searchOverlay-chips a:hover {
	border-color: #111;
	background: #f7f4ee;
}

.ae-searchOverlay-found[hidden] {
	display: none !important;
}

.ae-searchOverlay-section + .ae-searchOverlay-section {
	margin-top: 48px;
}

.ae-searchOverlay-designers {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-searchOverlay-designers a {
	display: inline-block;
	width: fit-content;
	padding: 4px 0;
	border-bottom: 1px solid transparent;
	color: var(--ae-color-text);
	font-family: var(--ae-font-ui);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 140ms ease;
}

.ae-searchOverlay-designers a:hover {
	border-bottom-color: #111;
}

.ae-searchOverlay-designers mark {
	background: transparent;
	color: inherit;
	font-weight: 500;
}

.ae-searchOverlay-designers .meta {
	margin-left: 10px;
	color: var(--ae-color-text-muted);
	font-size: 13px;
}

.ae-searchOverlay-products {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 32px 24px;
}

.ae-searchOverlay-product {
	display: flex;
	flex-direction: column;
	color: var(--ae-color-text);
	text-decoration: none;
}

.ae-searchOverlay-productImage {
	aspect-ratio: 3 / 4;
	margin-bottom: 14px;
	background: #fff;
	overflow: hidden;
}

.ae-searchOverlay-productImage img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	transition: transform 700ms ease;
}

.ae-searchOverlay-product:hover .ae-searchOverlay-productImage img {
	transform: scale(1.02);
}

.ae-searchOverlay-productBrand {
	margin-bottom: 6px;
	color: var(--ae-color-text);
	font-family: var(--ae-font-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ae-searchOverlay-productName {
	margin-bottom: 8px;
	color: var(--ae-color-text-muted);
	font-family: var(--ae-font-ui);
	font-size: 13px;
	line-height: 1.45;
}

.ae-searchOverlay-productPrice {
	color: var(--ae-color-text);
	font-family: var(--ae-font-ui);
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.ae-searchOverlay-productPrice del {
	margin-right: 8px;
	color: var(--ae-color-text-muted);
}

.ae-searchOverlay-state {
	color: var(--ae-color-text-muted);
	font-family: var(--ae-font-ui);
	font-size: 13px;
	line-height: 1.5;
}

.ae-searchOverlay-footer {
	display: flex;
	justify-content: center;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--ae-color-border-soft);
}

.ae-searchOverlay-viewAll {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 18px 40px;
	border: 1px solid #111;
	background: transparent;
	color: #111;
	font-family: var(--ae-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease;
}

.ae-searchOverlay-viewAll:hover {
	background: #111;
	color: #fff;
}

.ae-searchOverlay-viewAll svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ae-searchOverlay-products.is-loading .ae-searchOverlay-productImage,
.ae-searchOverlay-designers.is-loading a {
	position: relative;
	overflow: hidden;
}

.ae-searchOverlay-products.is-loading .ae-searchOverlay-productImage::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
	animation: ae-searchShimmer 1.2s infinite;
}

@keyframes ae-searchShimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

.ae-siteContent > .entry-content:first-child,
.ae-siteContent > .post > .entry-content:first-child {
	margin-top: 0;
}

.ae-siteContent > .elementor {
	position: relative;
	z-index: 1;
}

.ae-shell .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: min(1440px, calc(100vw - 56px));
}

.ae-shell .elementor-widget-heading .elementor-heading-title {
	text-wrap: balance;
}

.ae-shell .elementor-products-grid ul.products.elementor-grid {
	display: grid;
	margin: 0;
	grid-column-gap: 20px;
	grid-row-gap: 40px;
}

.ae-font-editorial,
.ae-font-editorial.elementor-widget-heading .elementor-heading-title,
.ae-font-editorial .elementor-heading-title {
	font-family: var(--ae-font-editorial);
}

.ae-font-sans,
.ae-font-sans.elementor-widget-heading .elementor-heading-title,
.ae-font-sans .elementor-heading-title {
	font-family: var(--ae-font-sans);
}

.ae-text-ui {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-family: var(--ae-font-ui);
}

.ae-text-muted {
	color: var(--ae-color-text-muted);
}

.ae-rule-soft {
	border-top: 1px solid var(--ae-color-border-soft);
}

body.ae-searchOpen {
	overflow: hidden;
}

@media (max-width: 1200px) {
	.ae-searchOverlay-products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	html,
	body {
		/* overflow-x:hidden creates a scroll container on mobile and breaks
		   the sticky header. clip still suppresses horizontal bleed without
		   changing the vertical scroll container. */
		overflow-x: clip;
	}

	.ae-siteHeader {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgba(255, 255, 255, 0.98);
		/* No transform/backface-visibility here: applying them to a
		   position:sticky element promotes it to its own compositor layer
		   and, on mobile Chrome, detaches it from the scroll container so
		   it scrolls away with the page. The solid background already
		   removes any need for a blur-layer hack. */
	}

	.ae-siteHeader-inner {
		--ae-mobile-header-side: 92px;
		grid-template-columns: var(--ae-mobile-header-side) minmax(0, 1fr) var(--ae-mobile-header-side);
		gap: 12px;
		padding: 14px 18px;
		position: relative;
	}

	.ae-siteHeader-group--left,
	.ae-siteHeader-group--right {
		width: var(--ae-mobile-header-side);
		min-width: 0;
		position: relative;
		z-index: 2;
	}

	.ae-siteHeader-group--center {
		min-width: 0;
		position: relative;
		z-index: 1;
	}

	.ae-siteHeader-group--center .ae-siteBrand {
		pointer-events: auto;
		min-width: 0;
		max-width: 100%;
	}

	.ae-siteHeader .ae-siteBrand-text {
		max-width: 100%;
		font-size: clamp(20px, 4.6vw, 34px);
		letter-spacing: 0;
	}

	.ae-siteHeader-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
	}

	.ae-siteHeader-toggleIcon {
		gap: 5px;
		width: 22px;
		height: 22px;
	}

	.ae-siteHeader-toggleIcon span {
		width: 22px;
	}

	.ae-siteHeader .ae-currency-switcher--dropdown {
		display: none;
	}

	.ae-siteHeader-group--right .icon-account {
		display: none;
	}

	.ae-siteHeader-nav {
		display: none;
	}

	.ae-siteHeader-group--right {
		gap: 10px;
		justify-self: end;
	}

	.ae-siteHeader .ae-currency-switcher {
		gap: 6px;
		max-width: var(--ae-mobile-header-side);
	}

	.ae-siteSearch-toggleText {
		display: none;
	}

	.ae-searchOverlay-bar {
		gap: 16px;
		padding: 26px 24px;
	}

	.ae-searchOverlay-bar input[type="search"] {
		font-size: 18px;
	}

	.ae-searchOverlay-body {
		padding: 0;
	}

	.ae-searchOverlay-found {
		padding: 32px 24px 64px;
	}

	.ae-searchOverlay-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ae-secondaryNav-list {
		gap: 18px;
		padding: 12px 18px;
	}

	#page > .ae-secondaryNav {
		display: none;
	}

	.ae-mobileMenu {
		position: fixed;
		inset: 0;
		z-index: 10040;
		display: block;
	}

	.ae-mobileMenu[hidden] {
		display: none;
	}

	.ae-mobileMenu-backdrop {
		position: absolute;
		inset: 0;
		z-index: 10041;
		background: #fff;
	}

	.ae-mobileMenu-panel {
		position: absolute;
		inset: 0;
		z-index: 10042;
		width: 100vw;
		padding: 18px 18px 28px;
		background: #fff;
		overflow-y: auto;
	}

	.ae-mobileMenu-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding-bottom: 18px;
		border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	}

	.ae-mobileMenu-brand {
		display: inline-flex;
		max-width: 170px;
	}

	.ae-mobileMenu-brandImage {
		display: block;
		width: 100%;
		height: auto;
	}

	.ae-mobileMenu-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #111;
		font-size: 34px;
		line-height: 1;
		cursor: pointer;
	}

	.ae-mobileMenu-body {
		padding-top: 22px;
	}

	.ae-mobileMenu-primary .ae-siteNav-list {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.ae-mobileMenu-primary .ae-siteNav-list a {
		font-size: 15px;
		letter-spacing: 0.14em;
	}

	.ae-mobileMenu-secondary {
		margin-top: 26px;
		padding-top: 24px;
		border-top: 1px solid rgba(17, 17, 17, 0.08);
	}

	.ae-mobileMenu-secondary .ae-secondaryNav {
		border-bottom: 0;
	}

	.ae-mobileMenu-secondary .ae-secondaryNav-list {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		max-width: none;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.ae-mobileMenu-secondary .ae-secondaryNav-list a {
		display: block;
		font-size: 15px;
		font-weight: 500;
		letter-spacing: 0.02em;
	}

	.ae-mobileMenu-footer {
		margin-top: 28px;
		padding-top: 22px;
		border-top: 1px solid rgba(17, 17, 17, 0.08);
	}

	.ae-mobileMenu-account {
		display: flex;
		flex-direction: column;
		gap: 14px;
		margin-bottom: 22px;
	}

	.ae-mobileMenu-account a {
		color: var(--ae-color-text);
		font-family: var(--ae-font-ui);
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.16em;
		text-decoration: none;
		text-transform: uppercase;
	}

	.ae-mobileMenu-footer .ae-currency-switcher {
		display: none;
	}

	.ae-mobileMenu-footer .icon-wishlist {
		display: none;
	}

	.ae-mobileMenu-footer .ae-currency-switcher--dropdown,
	.ae-mobileMenu-footer .ae-currency-switcher-toggle,
	.ae-mobileMenu-footer .ae-currency-switcher-menu {
		width: 100%;
	}

	body.ae-header-women .ae-mobileMenu-primary,
	body.ae-header-men .ae-mobileMenu-primary {
		display: none;
	}

	body.ae-header-women .ae-mobileMenu-secondary,
	body.ae-header-men .ae-mobileMenu-secondary {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	body.ae-mobileMenuOpen {
		overflow: hidden;
	}
}

@media (max-width: 520px) {
	.ae-siteHeader-inner {
		--ae-mobile-header-side: 76px;
	}

	.ae-siteHeader-group--right {
		gap: 8px;
	}

	.ae-siteHeader .ae-siteBrand-text {
		font-size: clamp(20px, 5.4vw, 24px);
	}

}

@media (max-width: 380px) {
	.ae-siteHeader-inner {
		--ae-mobile-header-side: 72px;
		padding-left: 14px;
		padding-right: 14px;
	}

	.ae-siteHeader .ae-siteBrand-text {
		font-size: clamp(19px, 5.7vw, 22px);
	}

}

@media (max-width: 340px) {
	.ae-siteHeader-inner {
		--ae-mobile-header-side: 42px;
	}

	.ae-siteHeader-group--right .icon-wishlist {
		display: none;
	}

	.ae-siteHeader .ae-siteBrand-text {
		font-size: clamp(19px, 6.2vw, 21px);
	}
}

@media (max-width: 600px) {
	.ae-searchOverlay-bar {
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		padding: 26px 20px;
	}

	.ae-searchOverlay-bar input[type="search"] {
		font-size: 19px;
	}

	.ae-searchOverlay-emptyInner {
		display: none;
	}

	.ae-searchOverlay-clear {
		padding: 6px 4px;
		font-size: 10px;
	}

	.ae-searchOverlay-clear.is-hidden {
		display: none;
	}

	.ae-searchOverlay-body {
		padding: 0;
	}

	.ae-searchOverlay-found {
		padding: 28px 18px 56px;
	}

	.ae-searchOverlay-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.ae-searchOverlay-designers a {
		font-size: 15px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .ae-siteHeader {
		top: 46px;
	}
}
