/**
 * Mehrsun Store Tweaks — shop / category page header ([mh_archive_hero]).
 * Slides under the floating site header (like the home page hero); compact and content-first.
 */

/* Elementor container around the shortcode */
.mh-archive-hero.elementor-element.e-con {
	/* site header height + page top padding */
	--margin-top: -210px;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--min-height: 0px;
	--row-gap: 0px;
	overflow: visible;
}

.mh-archive-hero__sc,
.mh-archive-hero__sc .elementor-widget-container,
.mh-archive-hero__sc .elementor-shortcode {
	width: 100%;
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.mh-ahero {
	position: relative;
	overflow: hidden;
	padding: 250px 20px 56px;
	border-radius: 0 0 40px 40px;
	background: radial-gradient(110% 140% at 18% 20%, #0E8583 0%, var(--ms-dark) 52%, #163A3D 100%);
	color: #fff;
}

.mh-ahero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("/wp-content/uploads/2026/06/—Pngtree—lines-seamless-pattern-vector_7301526-1.png") center / 700px repeat;
	opacity: .12;
	pointer-events: none;
}

.mh-ahero::after {
	content: "";
	position: absolute;
	top: 20%;
	left: -6%;
	width: 46%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(233, 194, 90, .2) 0%, rgba(233, 194, 90, 0) 65%);
	pointer-events: none;
}

.mh-ahero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	max-width: 1320px;
	min-height: 230px;
	margin: 0 auto;
}

.mh-ahero__text {
	flex: 1 1 auto;
	max-width: 700px;
}

/* Breadcrumb */
.mh-ahero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, .65);
	font-size: 13px;
}

.mh-ahero__crumbs a {
	color: rgba(255, 255, 255, .85);
	transition: color .2s ease;
}

.mh-ahero__crumbs a:hover {
	color: #F3D98B;
}

.mh-ahero__crumbs > span:last-child {
	color: #fff;
	font-weight: 700;
}

.mh-ahero__sep {
	color: rgba(255, 255, 255, .4);
}

/* Title + description */
.mh-ahero__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 900;
	line-height: 1.4;
}

.mh-ahero__desc {
	max-width: 620px;
	margin: 0 0 20px;
	color: rgba(255, 255, 255, .82);
	font-size: 15px;
	line-height: 2;
}

.mh-ahero__desc p {
	margin: 0;
}

/* Facts */
.mh-ahero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mh-ahero__fact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .9);
	font-size: 13px;
	backdrop-filter: blur(4px);
}

.mh-ahero__fact strong {
	color: #fff;
	font-weight: 900;
}

.mh-ahero__fact--gold {
	border-color: rgba(233, 194, 90, .5);
	background: rgba(233, 194, 90, .12);
	color: #F6E7BF;
	font-weight: 700;
}

/* Live price */
.mh-ahero__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	padding: 9px 16px;
	border-radius: 14px;
	background: rgba(0, 0, 0, .2);
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
}

.mh-ahero__live[hidden] {
	display: none;
}

.mh-ahero__live strong {
	color: #F3D98B;
	font-size: 16px;
	font-weight: 900;
}

.mh-ahero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2ECC71;
	animation: mh-ahero-pulse 1.8s infinite;
}

@keyframes mh-ahero-pulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); }
	70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Media */
.mh-ahero__media {
	position: relative;
	flex: 0 0 400px;
	height: 270px;
}

.mh-ahero__halo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 250px;
	height: 250px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%);
	transform: translate(-50%, -50%);
}

.mh-ahero__img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto !important;
	max-width: none;
	height: 240px !important;
	object-fit: contain;
	filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .35));
	transform: translate(-50%, -50%);
	animation: mh-ahero-float 6s ease-in-out infinite;
}

/* The granule photo is a packaging card, not a cut-out: frame it. */
.mh-ahero__img[src*="200-1"] {
	height: 230px !important;
	border: 4px solid rgba(255, 255, 255, .9);
	border-radius: 16px;
	filter: none;
	box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .45);
}

@keyframes mh-ahero-float {
	0%, 100% { transform: translate(-50%, -50%); }
	50% { transform: translate(-50%, calc(-50% - 10px)); }
}

/* Shop: one product from each category, fanned out */
.mh-ahero--shop .mh-ahero__img {
	animation: none;
}

.mh-ahero--shop .mh-ahero__img--1 {
	z-index: 3;
	height: 230px !important;
}

.mh-ahero--shop .mh-ahero__img--2 {
	z-index: 2;
	height: 150px !important;
	transform: translate(calc(-50% + 130px), calc(-50% + 30px)) rotate(10deg);
}

.mh-ahero--shop .mh-ahero__img--3 {
	z-index: 1;
	height: 170px !important;
	transform: translate(calc(-50% - 130px), calc(-50% + 20px)) rotate(-10deg);
}

.mh-ahero--shop .mh-ahero__img[src*="200-1"] {
	border-width: 3px;
	border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.mh-ahero__img,
	.mh-ahero__dot {
		animation: none;
	}
}

/* ---------------------------------------------------------------
 * Tablet
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.mh-archive-hero.elementor-element.e-con {
		/* mobile header + page top padding */
		--margin-top: -145px;
	}

	.mh-ahero {
		padding: 175px 24px 40px;
		border-radius: 0 0 28px 28px;
	}

	.mh-ahero__inner {
		gap: 20px;
		min-height: 0;
	}

	.mh-ahero__media {
		flex-basis: 260px;
		height: 220px;
	}

	.mh-ahero__halo {
		width: 190px;
		height: 190px;
	}

	.mh-ahero__img {
		height: 190px !important;
	}

	.mh-ahero--shop .mh-ahero__img--1 {
		height: 180px !important;
	}

	.mh-ahero--shop .mh-ahero__img--2 {
		height: 115px !important;
		transform: translate(calc(-50% + 90px), calc(-50% + 25px)) rotate(10deg);
	}

	.mh-ahero--shop .mh-ahero__img--3 {
		height: 130px !important;
		transform: translate(calc(-50% - 90px), calc(-50% + 18px)) rotate(-10deg);
	}
}

/* ---------------------------------------------------------------
 * Mobile: text only, compact
 * ------------------------------------------------------------- */
@media (max-width: 767px) {
	.mh-ahero {
		padding: 160px 16px 26px;
		border-radius: 0 0 24px 24px;
	}

	.mh-ahero__media {
		display: none;
	}

	.mh-ahero__crumbs {
		margin-bottom: 8px;
		font-size: 12px;
	}

	.mh-ahero__title {
		margin-bottom: 8px;
		font-size: 26px;
	}

	.mh-ahero__desc {
		display: -webkit-box;
		margin-bottom: 14px;
		overflow: hidden;
		font-size: 13px;
		line-height: 1.9;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.mh-ahero__facts {
		flex-wrap: nowrap;
		margin-inline: -16px;
		padding-inline: 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mh-ahero__facts::-webkit-scrollbar {
		display: none;
	}

	.mh-ahero__fact {
		flex-shrink: 0;
		padding: 6px 12px;
		font-size: 12px;
	}

	.mh-ahero__live {
		margin-top: 12px;
		padding: 7px 12px;
		font-size: 12px;
	}

	.mh-ahero__live strong {
		font-size: 14px;
	}
}
