/* ==========================================================================
   Chrome — loaded on every page: base atoms, header, navigation, footer.
   Tokens come from theme.json (--wp--preset--*, --wp--custom--*).
   ========================================================================== */

/* ---------- Fallback faces ----------
   Local fonts resized to the web fonts' metrics, so text drawn before
   Jost and Fraunces arrive takes the same space and nothing moves when
   they swap in. Measured with fontTools against Arial and Georgia
   (Fraunces at weight 600, the heading weight); Roboto and Noto Serif
   stand in on Android. Latin only, like the faces they replace. */
@font-face {
	font-family: "Jost Fallback";
	src: local("Arial"), local("ArialMT"), local("Roboto");
	size-adjust: 96.06%;
	ascent-override: 111.39%;
	descent-override: 39.04%;
	line-gap-override: 0%;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2605, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fraunces Fallback";
	src: local("Georgia"), local("Noto Serif");
	size-adjust: 99.73%;
	ascent-override: 98.07%;
	descent-override: 25.57%;
	line-gap-override: 0%;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2605, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fraunces Fallback";
	font-style: italic;
	src: local("Georgia Italic"), local("Georgia-Italic"), local("Noto Serif Italic");
	size-adjust: 95.25%;
	ascent-override: 102.68%;
	descent-override: 26.77%;
	line-gap-override: 0%;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2605, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
}

/* Focus ring: teal on light surfaces (gold on cream is 2.3:1, under the 3:1
   a focus indicator needs), gold on the dark bands. */
:root {
	--aher-focus: var(--wp--preset--color--teal-700);
}

:where(.has-teal-950-background-color, .has-teal-900-background-color, .aher-page-head, .aher-archive-head, .aher-editorial, .aher-footer, .aher-ticker, .aher-signup-panel) {
	--aher-focus: var(--wp--preset--color--gold);
}

:focus-visible {
	outline: 2px solid var(--aher-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--teal-950);
}

/* Italic accent inside display headings: "Dressed in <em>her</em> heritage". */
:where(h1, h2, h3, .wp-block-heading) em {
	font-style: italic;
	color: var(--wp--preset--color--teal-700);
}

/* Bangla has no capitals and loses legibility with wide tracking. */
:lang(bn) {
	letter-spacing: 0.01em;
	text-transform: none;
}

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link {
	position: relative;
	overflow: hidden;
	transition: transform 0.35s var(--wp--custom--ease), box-shadow 0.35s, background-color 0.3s;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--md);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentcolor;
	background: transparent;
	color: var(--wp--preset--color--teal-900);
}

/* ---------- Type atoms (block styles, see inc/block-styles.php) ---------- */
.is-style-eyebrow {
	display: inline-flex;
	gap: 0.7em;
	align-items: center;
	margin: 0;
	color: var(--wp--preset--color--gold-700);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.is-style-eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: currentcolor;
	opacity: 0.7;
}

.has-text-align-center.is-style-eyebrow::after {
	content: "";
	width: 26px;
	height: 1px;
	background: currentcolor;
	opacity: 0.7;
}

.is-style-link-arrow a {
	display: inline-flex;
	gap: 0.55em;
	align-items: center;
	padding-bottom: 4px;
	background-image: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	color: var(--wp--preset--color--teal-900);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background-size 0.45s var(--wp--custom--ease);
}

.is-style-link-arrow a::after {
	content: "→";
	transition: transform 0.35s;
}

.is-style-link-arrow a:hover {
	background-size: 100% 1px;
}

.is-style-link-arrow a:hover::after {
	transform: translateX(5px);
}

.wp-block-button.is-style-gold > .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--teal-950);
}

/* ---------- Scroll reveal ----------
   Driven by the element's own position in the viewport (view timeline), so
   it needs no script. Browsers without scroll-driven animations simply show
   the content. */
@supports (animation-timeline: view()) {

	.aher-reveal {
		animation: aher-reveal linear both;
		animation-timeline: view();

		/* Fully in by 160px past the fold, however tall the section. */
		animation-range: entry 0 entry 160px;
	}

	@keyframes aher-reveal {

		from {
			opacity: 0;
			transform: translateY(28px);
		}
	}
}

/* ---------- Sections (home, product page and others) ---------- */
.aher-section {
	padding-block: clamp(56px, 8vw, 112px);
}

.aher-section--tight {
	padding-block: clamp(40px, 5vw, 66px);
}

.aher-section-head {
	gap: 28px;
	margin-bottom: clamp(26px, 3.6vw, 46px);
}

.aher-section-head h2 {
	margin: 14px 0 0;
}

.aher-section-head__bn {
	margin: 10px 0 0;
	color: var(--wp--preset--color--muted);
}

.aher-section-head > .is-style-link-arrow {
	margin: 0;
}

/* ---------- Header ----------
   The ticker and the nav share one template part. The part sticks with a
   negative top equal to the ticker's height, so the ticker scrolls away and
   the nav stays — with no script. */
.wp-site-blocks > header.wp-block-template-part {
	--aher-ticker-h: 36px;
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--aher-ticker-h));
	z-index: 100;
}

.aher-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: rgb(250 247 239 / 0.96);
}

/* Shadow once the page has scrolled, driven by scroll position, not script. */
@supports (animation-timeline: scroll()) {

	.aher-header {
		animation: aher-header-stuck linear both;
		animation-timeline: scroll(root);
		animation-range: 0 120px;
	}

	@keyframes aher-header-stuck {

		to {
			box-shadow: 0 10px 30px -22px rgb(6 36 24 / 0.5);
		}
	}
}

.aher-nav {
	min-height: 70px;
	padding-block: 14px;
}

/* Brand: mark, name, tagline. */
.aher-brand {
	flex: 0 0 auto;
}

.aher-brand__mark {
	margin: 0;
}

.aher-brand__mark img {
	border-radius: 11px;
	box-shadow: var(--wp--preset--shadow--sm);
}

.aher-brand__text > * {
	margin: 0;
}

.aher-brand__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.32rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.aher-brand__name a {
	color: inherit;
}

.aher-brand__sub {
	margin-top: 5px !important;
	color: var(--wp--preset--color--muted);
	font-size: 0.58rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

/* Primary menu: pushed right, next to the icons, as in the design. */
.aher-nav > .aher-menu {
	margin-left: auto;
}

.aher-menu .wp-block-navigation-item__content {
	position: relative;
	padding: 6px 0;
	color: var(--wp--preset--color--teal-900);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.aher-menu .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--wp--preset--color--gold);
	transition: width 0.35s var(--wp--custom--ease);
}

.aher-menu .wp-block-navigation-item__content:hover::after,
.aher-menu .current-menu-item > .wp-block-navigation-item__content::after,
.aher-menu [aria-current="page"]::after {
	width: 100%;
}

.aher-menu [aria-current="page"] {
	color: var(--wp--preset--color--teal-700);
}

/* Core switches to the overlay below 600px; the design does at 960px. The
   core view script opens the overlay at any width, so between the two only
   the visibility has to change. */
@media (min-width: 600px) and (max-width: 960px) {

	.aher-menu .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.aher-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 960px) {

	.aher-nav {
		gap: 12px !important;
	}

	.aher-nav > .aher-menu {
		order: 3;
		margin-left: 0;
	}

	.aher-nav > .aher-actions {
		margin-left: auto;
	}
}

/* The mobile overlay. */
.aher-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px var(--wp--custom--gutter);
}

.aher-menu .is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.aher-menu .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.aher-menu .is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	padding: 14px 0;
	font-size: 1rem;
}

/* Phones: brand, three icons and the menu button must fit in 360px. */
@media (max-width: 480px) {

	.aher-nav {
		gap: 6px !important;
	}

	.aher-brand {
		gap: 9px !important;
	}

	.aher-brand__mark img {
		width: 32px !important;
		height: 32px !important;
		border-radius: 9px;
	}

	.aher-brand__sub {
		display: none;
	}

	.aher-brand__name {
		font-size: 0.98rem;
		letter-spacing: 0.14em;
	}

	.aher-nav .aher-actions {
		gap: 0;
	}

	.aher-nav .aher-actions__btn {
		width: 36px;
		height: 36px;
	}

	/* Wishlist stays reachable from the product cards and the menu. */
	.aher-nav .aher-actions a[href*="wishlist"] {
		display: none;
	}
}

/* Header, main and footer sit flush: each page section brings its own space. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- Footer ---------- */
.aher-footer {
	margin-top: clamp(50px, 7vw, 90px);
	color: rgb(255 255 255 / 0.78);
	font-size: 0.9rem;
}

.wp-site-blocks > footer.wp-block-template-part {
	margin-top: 0;
}

.aher-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.aher-footer__top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: clamp(24px, 3vw, 48px);
	padding-block: clamp(44px, 6vw, 78px) 40px;
}

.aher-footer__brand .aher-brand__name,
.aher-footer__brand .aher-brand__sub {
	color: #fff;
}

.aher-footer__about {
	max-width: 34ch;
	margin-block: 18px 22px;
	line-height: 1.7;
}

.aher-footer__title {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.aher-footer__menu .wp-block-navigation__container {
	gap: 10px;
}

.aher-footer__menu .wp-block-navigation-item__content {
	padding: 0;
}

.aher-footer__bottom {
	padding-block: 22px 32px;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	font-size: 0.8rem;
}

.aher-footer__bottom p {
	margin: 0;
}

.aher-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aher-pay li {
	padding: 5px 11px;
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 7px;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 900px) {

	.aher-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.aher-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 540px) {

	.aher-footer__top {
		grid-template-columns: 1fr;
	}
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
