/* Myhadya premium home: quiet, generous, serif display + the theme's sans for text. */
/* Colour and type tokens live in chrome.css, which loads on every page. */

/* Woodmart wraps page content in .container/.row; let the page fill the wrapper (which already
   sits right of the category rail) so every left edge lines up with the header and footer */
.mh-home .main-page-wrapper { padding-top: 0; background: var(--mh-bg); }
.mh-home .main-page-wrapper > .container { max-width: none; padding: 0; }
.mh-home .content-layout-wrapper { margin: 0; }
.mh-home .site-content { padding: 0; flex: 1 1 100%; max-width: 100%; }
.mh-home .whb-top-bar { display: none; }
.mh {
	background: var(--mh-bg);
	color: var(--mh-ink);
	-webkit-font-smoothing: antialiased;
}
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh a { color: inherit; text-decoration: none; }

/* type */
.mh-eyebrow {
	margin: 0 0 20px;
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mh-gold-ink);
}
.mh-display {
	margin: 0;
	font-family: var(--mh-serif);
	font-weight: 500;
	font-size: clamp(40px, 4.4vw, 66px);
	line-height: 1.02;
	letter-spacing: -.01em;
	color: inherit;
}
.mh-display--sm { font-size: clamp(32px, 3.2vw, 50px); }
.mh-lead {
	max-width: 30em;
	margin: 24px 0 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--mh-muted);
}
.mh-title {
	margin: 0;
	font-family: var(--mh-serif);
	font-weight: 500;
	font-size: clamp(28px, 2.3vw, 36px);
	line-height: 1.1;
	color: var(--mh-ink);
}

/* actions */
.mh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.mh .mh-btn {
	display: inline-block;
	padding: 17px 34px;
	background: var(--mh-deep);
	color: var(--mh-on-deep);
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: background .25s ease, color .25s ease;
}
.mh .mh-btn:hover { background: var(--mh-gold); color: var(--mh-deep); }
.mh .mh-btn--light { background: var(--mh-gold); color: var(--mh-deep); }
.mh .mh-btn--light:hover { background: var(--mh-on-deep); color: var(--mh-deep); }
.mh .mh-link {
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	transition: color .2s ease;
}
.mh .mh-link:hover { color: var(--mh-gold-ink); }
.mh a:focus-visible { outline: 2px solid var(--mh-gold); outline-offset: 4px; }

/* hero slider: stacked slides that crossfade; text rises once per slide, photo settles slowly */
/* hero and feature sit in the same centred container as every other block */
.mh-hero { position: relative; display: grid; background: var(--mh-surface); } /* full bleed; its text keeps the page edge */
.mh-feature { margin-left: var(--mh-pad) !important; margin-right: var(--mh-pad) !important; }
.mh-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: min(calc(100vh - 150px), 720px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.mh-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.mh-slide__text { align-self: center; padding: 64px clamp(24px, 4vw, 64px) 140px var(--mh-pad); }
.mh-slide__text > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .3s, transform .8s cubic-bezier(.2, .7, .2, 1) .3s; }
.mh-slide.is-active .mh-slide__text > * { opacity: 1; transform: none; }
.mh-slide__media { position: relative; overflow: hidden; background: var(--mh-surface); }
/* taller than the frame so the "myhadya.in" watermark at the photo's foot is cropped off */
/* absolute so the square photo never sets the banner height; the slide does */
.mh-slide__media img { position: absolute; top: 0; left: 0; height: 114%; object-position: 50% 0; transform: scale(1.06); transition: transform 7s cubic-bezier(.2, .7, .2, 1); }
.mh-slide.is-active .mh-slide__media img { transform: scale(1); }

.mh-hero__ui {
	position: absolute;
	z-index: 2;
	left: var(--mh-pad);
	bottom: 48px;
	width: calc(50% - var(--mh-pad) - clamp(24px, 4vw, 64px));
	display: flex;
	align-items: center;
	gap: 18px;
}
.mh-count { font-family: var(--mh-serif); font-size: 19px; letter-spacing: .08em; color: var(--mh-ink); white-space: nowrap; }
.mh-count__total { color: var(--mh-muted); }
.mh-progress { position: relative; flex: 1; height: 1px; background: var(--mh-line); overflow: hidden; }
.mh-progress span { position: absolute; inset: 0; background: var(--mh-gold-ink); transform-origin: left; transform: scaleX(0); animation: mh-progress 6s linear forwards; }
.mh-hero.is-paused .mh-progress span { animation-play-state: paused; }
@keyframes mh-progress { to { transform: scaleX(1); } }
.mh .mh-ctrl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mh-line);
	border-radius: 50%;
	background: transparent;
	color: var(--mh-ink);
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.mh .mh-ctrl:hover { background: var(--mh-deep); border-color: var(--mh-deep); color: var(--mh-gold); }
.mh .mh-ctrl:focus-visible { outline: 2px solid var(--mh-gold-ink); outline-offset: 3px; }
.mh-ctrl svg { width: 16px; height: 16px; }
.mh-ctrl .mh-i-play, .mh-hero.is-stopped .mh-ctrl .mh-i-pause { display: none; }
.mh-hero.is-stopped .mh-ctrl .mh-i-play { display: block; }

/* sections */
.mh-section { padding: clamp(64px, 7vw, 112px) var(--mh-pad) 0; }
.mh-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 44px;
}

/* categories */
.mh-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.mh-cat__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--mh-surface); }
.mh-cat__img img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mh-cat:hover .mh-cat__img img { transform: scale(1.04); }
.mh-cat__name { display: block; margin-top: 14px; font-family: var(--mh-serif); font-size: 20px; }

/* product cards */
.mh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
.mh-card { display: flex; flex-direction: column; }
.mh-card__link { display: block; }
.mh-card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.mh-card__img img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mh-card__link:hover .mh-card__img img { transform: scale(1.04); }
.mh-card__name { display: block; margin-top: 16px; font-size: 14px; line-height: 1.45; }
.mh-card__price { display: block; margin: 6px 0 16px; font-size: 14px; color: var(--mh-muted); }
.mh-card__price ins { text-decoration: none; color: var(--mh-ink); }
.mh-card__price del { margin-right: 8px; opacity: .6; }
.mh-card__price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mh .mh-card__buy {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--mh-deep);
	background: var(--mh-deep);
	color: var(--mh-on-deep);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.mh .mh-card__buy:hover { background: var(--mh-gold); border-color: var(--mh-gold); color: var(--mh-deep); }
.mh .mh-card__buy--options { background: transparent; color: var(--mh-deep); }
.mh .mh-card__buy--options:hover { background: var(--mh-deep); border-color: var(--mh-deep); color: var(--mh-on-deep); }

/* feature */
.mh-feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: clamp(64px, 7vw, 112px);
	background: var(--mh-deep);
	color: #f3efe6;
}
.mh-feature__media { min-height: 460px; max-height: 620px; }
.mh-feature__text { align-self: center; padding: 64px clamp(24px, 4vw, 64px); }
.mh-feature .mh-lead { color: var(--mh-on-deep-muted); margin-bottom: 40px; }
.mh-feature .mh-eyebrow { color: var(--mh-gold); }


@media (max-width: 1024px) {
	.mh-cats { grid-template-columns: repeat(3, 1fr); }
	.mh-grid { grid-template-columns: repeat(3, 1fr); }

}
@media (max-width: 900px) {
	.mh-slide, .mh-feature { grid-template-columns: 1fr; }
	.mh-slide { min-height: 0; }
	.mh-slide__media { order: -1; aspect-ratio: 4 / 5; } /* portrait banner on phones */
	.mh-slide__media img { top: -18px; } /* trims the white frame on the wall-art photo */
	.mh-slide__text { padding: 36px var(--mh-pad) 108px; }
	.mh-hero__ui { bottom: 36px; width: calc(100% - 2 * var(--mh-pad)); }
	.mh-feature__media { min-height: 0; aspect-ratio: 1; }
	.mh-feature__text { padding: 48px 24px 56px; }
}
@media (max-width: 700px) {
	.mh-cats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.mh-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
	.mh-head { margin-bottom: 28px; }
	.mh-lead { font-size: 16px; }
	.mh-card__name, .mh-card__price { font-size: 14px; }
	.mh .mh-card__buy { font-size: 11px; letter-spacing: .1em; white-space: nowrap; padding: 0 8px; }
	.mh-cat__name { font-size: 19px; }

}
@media (prefers-reduced-motion: reduce) {
	.mh *, .mh .mh-slide__text > *, .mh .mh-slide__media img { transition: none !important; transform: none !important; }
	.mh-progress { visibility: hidden; }
}

/* breathing room before the theme footer */
.mh-end { height: clamp(64px, 7vw, 112px); }

/* banner slide: one wide room photo under the whole hero, text over the calm wall on its left */
.mh-slide--banner { position: relative; grid-template-columns: 1fr; }
.mh-slide--banner .mh-slide__media { position: absolute; inset: 0; }
.mh-slide--banner .mh-slide__media picture { display: contents; }
.mh-slide--banner .mh-slide__media img { top: 0; height: 100%; object-position: 15% 50%; }
.mh-slide--banner .mh-slide__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(247, 244, 238, .94) 0%, rgba(247, 244, 238, .72) 30%, rgba(247, 244, 238, 0) 56%);
}
/* the art starts about 38% across the photo, so the text stays on the plain wall left of it */
.mh-slide--banner .mh-slide__text { position: relative; z-index: 1; max-width: 38%; }
.mh-slide--banner .mh-display { font-size: clamp(34px, 2.9vw, 46px); }
@media (max-width: 900px) {
	/* phones: the tall crop on top showing all three pieces, text below on the page colour */
	.mh-slide--banner .mh-slide__media { position: relative; inset: auto; aspect-ratio: var(--mh-phone-ratio, 4 / 5); }
	.mh-slide--banner .mh-slide__media img { top: 0; height: 100%; object-position: 50% 0; }
	.mh-slide--banner .mh-slide__media::after { display: none; }
	.mh-slide--banner .mh-slide__text { max-width: none; }
	.mh-slide--banner .mh-display { font-size: clamp(40px, 11vw, 48px); }
}

/* tablets (601-900px): the wide banner uncropped on top, text below; the tall crop is for phones only */
@media (min-width: 601px) and (max-width: 900px) {
	.mh-slide--banner .mh-slide__media { aspect-ratio: var(--mh-wide-ratio, 1600 / 666); }
	.mh-slide--banner .mh-slide__media img { object-position: 50% 50%; }
}
@media (min-width: 601px) and (max-width: 900px) {
	/* keep the stacked slides close in height so no slide shows a big empty gap */
	.mh-slide__text { align-self: start; }
	.mh-slide:not(.mh-slide--banner) .mh-slide__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
	/* tall phone art (slide 1 is 853x1600) would make a 700px frame; cap it so all slides share one height, crop from the top */
	.mh-slide--banner .mh-slide__media { max-height: min(134vw, 520px); width: 100%; }
}

/* ---------- phones: the banner fills the screen, text sits over its calm lower part ---------- */
@media (max-width: 600px) {
	.mh-slide--banner { display: block; position: relative; min-height: calc(100svh - 60px); }
	.mh-slide--banner .mh-slide__media { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
	.mh-slide--banner .mh-slide__media img { top: 0; height: 100%; object-position: 50% 0; }
	.mh-slide--banner .mh-slide__media::after {
		display: block;
		background: linear-gradient(0deg, rgba(31, 47, 41, .92) 0%, rgba(31, 47, 41, .66) 30%, rgba(31, 47, 41, 0) 58%);
	}
	.mh-slide--banner .mh-slide__text {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 0 var(--mh-pad) 128px; /* room for the slider controls and the theme's bottom toolbar */
	}
	.mh-slide--banner .mh-eyebrow { color: var(--mh-gold); margin-bottom: 12px; }
	.mh-slide--banner .mh-display { color: var(--mh-on-deep); font-size: clamp(34px, 9.6vw, 42px); }
	.mh-slide--banner .mh-lead { color: var(--mh-on-deep-muted); font-size: 15px; margin-top: 12px; }
	.mh-slide--banner .mh-actions { margin-top: 22px; gap: 20px; }
	.mh .mh-slide--banner .mh-btn { background: var(--mh-gold); color: var(--mh-deep); padding: 15px 24px; }
	.mh .mh-slide--banner .mh-link { color: var(--mh-on-deep); }

	/* slider controls over the photo, in light colours */
	.mh-hero__ui { bottom: 76px; }
	.mh-hero .mh-count { color: var(--mh-on-deep); }
	.mh-hero .mh-count__total { color: var(--mh-on-deep-muted); }
	.mh-hero .mh-progress { background: rgba(243, 239, 230, .3); }
	.mh-hero .mh-progress span { background: var(--mh-gold); }
	.mh .mh-hero .mh-ctrl { border-color: rgba(243, 239, 230, .4); color: var(--mh-on-deep); }
}
@media (max-width: 600px) {
	.mh-slide--banner { min-height: var(--mh-hero-h, calc(100svh - 60px)); }
	/* stronger fade so the text reads over light walls too */
	.mh-slide--banner .mh-slide__media::after {
		background: linear-gradient(0deg, rgba(31, 47, 41, .95) 0%, rgba(31, 47, 41, .86) 34%, rgba(31, 47, 41, .5) 56%, rgba(31, 47, 41, 0) 74%);
	}
	.mh-slide--banner .mh-display { text-shadow: 0 1px 12px rgba(31, 47, 41, .35); }
	/* one clear action on phones; the second link sat under the WhatsApp button */
	.mh .mh-slide--banner .mh-link { display: none; }
	.mh .mh-slide--banner .mh-btn { width: 100%; text-align: center; }
	.mh-slide--banner .mh-slide__text { padding-bottom: 136px; }
}
@media (max-width: 600px) and (max-height: 700px) {
	.mh-slide--banner .mh-lead { display: none; }
	.mh-slide--banner .mh-display { font-size: 32px; }
}

/* slider controls removed: give the space they held back to the text */
.mh-slide__text { padding-bottom: 72px; }
@media (max-width: 900px) { .mh-slide__text { padding-bottom: 56px; } }
@media (max-width: 600px) { .mh-slide--banner .mh-slide__text { padding-bottom: 92px; } } /* clears the theme's bottom toolbar */

/* slider dots: small, the active one stretches into a short gold bar */
.mh-dots {
	position: absolute;
	z-index: 3;
	left: var(--mh-pad);
	bottom: 30px;
	display: flex;
	gap: 4px;
}
.mh .mh-dot {
	width: 24px;  /* tap area; the visible dot is the ::before */
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.mh-dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(27, 26, 23, .28);
	transition: width .3s ease, background .3s ease;
}
.mh-dot.is-active::before { width: 22px; background: var(--mh-gold-ink); }
.mh .mh-dot:focus-visible { outline: 2px solid var(--mh-gold-ink); outline-offset: 2px; border-radius: 999px; }
.mh-dots:has(.mh-dot.is-active) .mh-dot.is-active { width: 36px; }
@media (max-width: 900px) { .mh-dots { bottom: 18px; } }
@media (max-width: 600px) {
	/* over the dark fade on phones, just above the theme's bottom toolbar */
	.mh-dots { bottom: 66px; }
	.mh-dot::before { background: rgba(243, 239, 230, .45); }
	.mh-dot.is-active::before { background: var(--mh-gold); }
}
@media (prefers-reduced-motion: reduce) { .mh-dot::before { transition: none; } }
@media (max-width: 600px) { .mh-slide--banner .mh-slide__text { padding-bottom: 112px; } } /* button clears the dots, dots clear the toolbar */
@media (max-width: 600px) { .mh .mh-slide--banner .mh-btn { width: auto; } } /* leaves room for the WhatsApp button on the right */

/* offer strip under the hero: white band, slow continuous scroll, pauses on hover/focus */
main.mh { min-width: 0; } /* flex item: the strip's long track must not widen the page */
.mh-marquee { background: #fff; border-top: 1px solid var(--mh-line); border-bottom: 1px solid var(--mh-line); overflow: hidden; }
.mh-marquee__track { display: flex; width: max-content; animation: mh-marquee 38s linear infinite; }
.mh-marquee:hover .mh-marquee__track, .mh-marquee:focus-within .mh-marquee__track { animation-play-state: paused; }
.mh-marquee__list { display: flex; margin: 0; padding: 0; list-style: none; }
.mh-marquee__list li {
	display: flex;
	align-items: center;
	padding: 15px 0;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mh-deep);
	white-space: nowrap;
}
.mh-marquee__list li::after { content: "✦"; margin: 0 28px; color: var(--mh-gold-ink); font-size: 10px; }
@keyframes mh-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.mh-marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
	.mh-marquee__list[aria-hidden] { display: none; }
	.mh-marquee__list { flex-wrap: wrap; justify-content: center; }
}

/* collections: shorter tiles, the name sits on the photo over a soft dark fade */
.mh-cat { position: relative; display: block; overflow: hidden; min-width: 0; }
.mh-cat__img { aspect-ratio: 1; }
.mh-cat__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(31, 47, 41, .82) 0%, rgba(31, 47, 41, .35) 38%, rgba(31, 47, 41, 0) 62%);
	pointer-events: none;
}
.mh-cat__name {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	margin: 0;
	color: var(--mh-on-deep);
	font-size: 21px;
	line-height: 1.15;
	text-shadow: 0 1px 8px rgba(31, 47, 41, .4);
}
@media (max-width: 700px) {
	.mh-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.mh-cat__name { font-size: 15px; left: 8px; right: 8px; bottom: 8px; }
}

/* Watch & shop: upright product videos in a sideways strip */
.mh-reels__nav { display: flex; gap: 8px; }
.mh .mh-reels__btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mh-line);
	border-radius: 50%;
	background: transparent;
	color: var(--mh-deep);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.mh .mh-reels__btn:hover { background: var(--mh-deep); border-color: var(--mh-deep); color: var(--mh-gold); }
.mh .mh-reels__btn:focus-visible { outline: 2px solid var(--mh-gold-ink); outline-offset: 2px; }
.mh-reels__arrow { display: none; }
.mh-reels.is-scrollable .mh-reels__arrow { display: inline-block; }
/* pause bars / play triangle drawn in CSS */
.mh-reels__toggle span { display: block; width: 10px; height: 12px; margin: auto; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.mh-reels__toggle.is-paused span { width: 0; height: 0; margin-left: 17px; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.mh-reels__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(200px, 21vw, 270px);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	padding: 4px; /* room for the focus ring inside the scroller */
	margin: -4px;
}
.mh-reels__track::-webkit-scrollbar { display: none; }
.mh-reels .mh-card { scroll-snap-align: start; min-width: 0; }
.mh-reels .mh-card__img { aspect-ratio: 9 / 16; border-radius: 6px; background: var(--mh-deep); }
.mh-reel { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mh-reels .mh-card__link:hover .mh-reel { transform: scale(1.03); }
.mh-reels .mh-card a:focus-visible { outline: 2px solid var(--mh-gold-ink); outline-offset: 2px; }
@media (max-width: 700px) {
	.mh-reels.is-scrollable .mh-reels__arrow { display: none; } /* swipe on phones */
	.mh-reels__track { grid-auto-columns: 44vw; gap: 10px; margin-right: calc(-1 * var(--mh-pad)); padding-right: var(--mh-pad); }
}
