/**
 * Modern home page template — scoped under .qabas-home-modern
 */

.qabas-home-modern {
	--qhm-bg: #f6f7fb;
	--qhm-surface: #ffffff;
	--qhm-text: #1a1d26;
	--qhm-muted: #5c6378;
	/* Brand — theme red + light red (tints use --qhm-primary-rgb) */
	--qhm-primary: #e53935;
	--qhm-primary-rgb: 229, 57, 53;
	--qhm-primary-dark: #c62828;
	--qhm-primary-dark-rgb: 198, 40, 40;
	--qhm-primary-light: #ffcdd2;
	--qhm-primary-light-rgb: 255, 205, 210;
	--qhm-navy: #323896;
	--qhm-navy-dark: #252c75;
	--qhm-accent: var(--qhm-primary);
	--qhm-radius: 14px;
	--qhm-shadow: 0 4px 24px rgba(50, 56, 150, 0.1);
	--qhm-shadow-hover: 0 12px 40px rgba(50, 56, 150, 0.16);
	color: var(--qhm-text);
	font-size: 22px;
	line-height: 1.55;
	padding-bottom: 3rem;
}

.qabas-home-modern * {
	box-sizing: border-box;
}

.qhm-container {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Hero — full-bleed image slides, text over scrim */
.qhm-hero.qhm-hero--slider {
	position: relative;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 2rem;
	padding: 0;
	background: #1a1a22;
	color: #fff;
	box-sizing: border-box;
}

.qhm-hero-slider {
	--qhm-hero-copy-delay-base: 0s;
	position: relative;
	/* No horizontal/bottom padding — padding was shrinking the viewport and showed dark strips */
	padding: 0;
	outline: none;
}

.qhm-hero-slider.qhm-hero-slider--delay-copy {
	--qhm-hero-copy-delay-base: 0.5s;
}

.qhm-hero-slider:focus-visible {
	box-shadow: inset 0 0 0 3px rgba(var(--qhm-primary-rgb), 0.65);
}

.qhm-hero-slider__viewport {
	overflow: hidden;
	width: 100%;
	direction: ltr;
}

.qhm-hero-slider__track {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
	transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
	will-change: transform;
}

.qhm-hero-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	min-height: clamp(320px, 52vh, 580px);
}

.qhm-hero-slide__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #2a2a35;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.qhm-hero-slide__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgba(15, 18, 35, 0.88) 0%,
		rgba(15, 18, 35, 0.55) 42%,
		rgba(15, 18, 35, 0.35) 100%
	);
	pointer-events: none;
}

.qhm-hero-slide__wrap {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: clamp(320px, 52vh, 580px);
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 5vw, 4rem);
}

.qhm-hero-slide__inner {
	width: 100%;
	text-align: center;
}

.qhm-hero-slide__head {
	display: flex;
	justify-content: center;
	margin-bottom: 0.65rem;
}

.qhm-hero-slide__index {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
}

.qhm-hero-slide__index-sep {
	margin: 0 0.2em;
	opacity: 0.7;
}

.qhm-hero-slide__copy {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

@keyframes qhm-hero-copy-in {
	from {
		opacity: 0;
		transform: translate3d(0, 1.1rem, 0);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		filter: blur(0);
	}
}

.qhm-hero-slide.is-active .qhm-hero-slide__head {
	animation: qhm-hero-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--qhm-hero-copy-delay-base) both;
}

.qhm-hero-slide.is-active .qhm-hero-slide__title {
	animation: qhm-hero-copy-in 0.62s cubic-bezier(0.22, 1, 0.36, 1)
		calc(var(--qhm-hero-copy-delay-base) + 0.06s) both;
}

.qhm-hero-slide.is-active .qhm-hero-slide__subtitle {
	animation: qhm-hero-copy-in 0.62s cubic-bezier(0.22, 1, 0.36, 1)
		calc(var(--qhm-hero-copy-delay-base) + 0.14s) both;
}

.qhm-hero-slide.is-active .qhm-hero-slide__actions {
	animation: qhm-hero-copy-in 0.58s cubic-bezier(0.22, 1, 0.36, 1)
		calc(var(--qhm-hero-copy-delay-base) + 0.24s) both;
}

.qhm-hero-slide__title {
	position: relative;
	margin: 0 0 0.75rem;
	padding-bottom: 0.85rem;
	font-size: clamp(2.35rem, 6vw, 3.65rem);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.qhm-hero-slide__title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 3.75rem;
	height: 4px;
	border-radius: 2px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, var(--qhm-primary), rgba(255, 255, 255, 0.85));
}

.qhm-hero-slide__subtitle {
	margin: 0 0 1.35rem;
	font-size: clamp(1.2rem, 2.65vw, 1.5rem);
	font-weight: 500;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.qhm-hero-slide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

.qhm-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.85rem;
	height: 2.85rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.qhm-hero-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.55);
	transform: translateY(-50%) scale(1.05);
}

.qhm-hero-slider__arrow:focus-visible {
	outline: 2px solid var(--qhm-primary);
	outline-offset: 3px;
}

.qhm-hero-slider__prev {
	inset-inline-start: max(0.65rem, env(safe-area-inset-left, 0px));
}

.qhm-hero-slider__next {
	inset-inline-end: max(0.65rem, env(safe-area-inset-right, 0px));
}

.qhm-hero-slider__segments {
	position: absolute;
	left: 50%;
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 0.45rem;
	width: calc(100% - 2rem);
	max-width: 220px;
}

.qhm-hero-slider__seg {
	position: relative;
	flex: 1;
	height: 5px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.22);
	cursor: pointer;
	overflow: hidden;
	transition: flex 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.qhm-hero-slider__seg.is-active {
	flex: 2.4;
}

.qhm-hero-slider__seg-fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.3);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.qhm-hero-slider__seg.is-active .qhm-hero-slider__seg-fill {
	transform: scaleX(1);
	background: linear-gradient(90deg, var(--qhm-primary), rgba(255, 255, 255, 0.95));
}

.qhm-btn--hero-main {
	padding: 0.88rem 1.85rem;
	font-size: 1.32rem;
	font-weight: 700;
}

/* Hero CTAs: navy (readable on dark slides; distinct from pink elsewhere) */
.qhm-hero-slide__actions .qhm-btn--primary {
	background: var(--qhm-navy);
	box-shadow: 0 4px 22px rgba(50, 56, 150, 0.55);
}

.qhm-hero-slide__actions .qhm-btn--primary:hover {
	background: var(--qhm-navy-dark);
	box-shadow: 0 8px 30px rgba(50, 56, 150, 0.6);
	color: #fff;
}

@media (max-width: 599px) {
	.qhm-hero-slider__segments {
		max-width: calc(100% - 5.5rem);
	}

	.qhm-btn--hero-main {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qhm-hero-slider__track,
	.qhm-hero-slider__seg,
	.qhm-hero-slider__seg-fill {
		transition: none;
	}

	.qhm-hero-slide.is-active .qhm-hero-slide__head,
	.qhm-hero-slide.is-active .qhm-hero-slide__title,
	.qhm-hero-slide.is-active .qhm-hero-slide__subtitle,
	.qhm-hero-slide.is-active .qhm-hero-slide__actions {
		animation: none;
	}
}

.qhm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.9rem 1.6rem;
	font-size: 1.12rem;
	font-weight: 600;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.qhm-btn--primary {
	background: var(--qhm-primary);
	color: #fff;
	box-shadow: 0 4px 20px rgba(var(--qhm-primary-rgb), 0.45);
}

.qhm-btn--primary:hover {
	transform: translateY(-2px);
	background: var(--qhm-primary-dark);
	box-shadow: 0 8px 28px rgba(var(--qhm-primary-rgb), 0.5);
	color: #fff;
}

.qhm-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.qhm-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.qhm-btn--compact {
	padding: 0.55rem 1.25rem;
	font-size: 1rem;
}

/* Partner marquees (Oman organisations) */
.qhm-partners-marquee {
	margin: 0 0 2.75rem;
	padding: 1.65rem 0 1.85rem;
}

.qhm-partners-marquee__header {
	text-align: center;
	margin: 0 auto 1.65rem;
	padding: 0 1.25rem;
	max-width: 46rem;
}

.qhm-partners-marquee__eyebrow {
	display: inline-block;
	margin: 0 0 0.65rem;
	padding: 0.35rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qhm-primary);
	background: rgba(var(--qhm-primary-rgb), 0.1);
	border: 1px solid rgba(var(--qhm-primary-rgb), 0.28);
	border-radius: 999px;
}

.qhm-partners-marquee__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.65rem, 3.4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--qhm-navy);
}

.qhm-partners-marquee__subtitle {
	margin: 0;
	font-size: clamp(1.05rem, 2vw, 1.22rem);
	font-weight: 500;
	line-height: 1.55;
	color: var(--qhm-muted);
}

.qhm-marquee {
	margin-bottom: 0.65rem;
}

.qhm-marquee:last-child {
	margin-bottom: 0;
}

.qhm-marquee__viewport {
	overflow: hidden;
	width: 100%;
	direction: ltr;
}

.qhm-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	will-change: transform;
}

.qhm-marquee__track--left {
	animation: qhm-marquee-left 75s linear infinite;
}

.qhm-marquee__track--right {
	animation: qhm-marquee-right 80s linear infinite;
}

.qhm-marquee:hover .qhm-marquee__track {
	animation-play-state: paused;
}

@keyframes qhm-marquee-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@keyframes qhm-marquee-right {
	0% {
		transform: translateX(-50%);
	}
	100% {
		transform: translateX(0);
	}
}

.qhm-marquee__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.85rem;
	padding-right: 0.85rem;
	flex-shrink: 0;
}

.qhm-marquee__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.5rem 0.85rem;
	min-width: 5.25rem;
	min-height: 3.65rem;
	background: var(--qhm-surface);
	border-radius: 12px;
}

.qhm-marquee__img {
	display: block;
	width: auto;
	height: clamp(2.5rem, 5.5vw, 3.75rem);
	max-height: 60px;
	max-width: min(160px, 32vw);
	object-fit: contain;
	object-position: center;
}

@media (prefers-reduced-motion: reduce) {
	.qhm-marquee__track--left,
	.qhm-marquee__track--right {
		animation: none;
	}

	.qhm-marquee__viewport {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.35rem;
		scrollbar-width: thin;
	}
}

/* Section headings */
.qhm-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.qhm-section-head h2 {
	font-size: clamp(2.05rem, 3.9vw, 2.7rem);
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.02em;
	color: var(--qhm-navy);
}

.qhm-section-head p {
	margin: 0.45rem 0 0;
	color: var(--qhm-muted);
	font-size: 1.32rem;
	max-width: 42rem;
	line-height: 1.62;
}

/* Why us — Gift Oman */
.qhm-why-us {
	margin-bottom: 3rem;
}

.qhm-why-us__inner {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.25rem);
	align-items: center;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: linear-gradient(
		135deg,
		rgba(50, 56, 150, 0.08) 0%,
		rgba(var(--qhm-primary-rgb), 0.06) 48%,
		rgba(255, 255, 255, 0.95) 100%
	);
	border: 1px solid rgba(50, 56, 150, 0.12);
	border-radius: var(--qhm-radius);
	box-shadow: var(--qhm-shadow);
}

@media (min-width: 768px) {
	.qhm-why-us__inner {
		grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
		gap: 2.5rem;
		padding: clamp(2rem, 4vw, 3rem);
	}
}

.qhm-why-us__figure {
	margin: 0;
	text-align: center;
}

@media (min-width: 768px) {
	.qhm-why-us__figure {
		text-align: start;
	}
}

.qhm-why-us__logo {
	width: 100%;
	max-width: 260px;
	height: auto;
	display: block;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.qhm-why-us__logo {
		margin-inline: 0;
	}
}

.qhm-why-us__eyebrow {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding: 0.35rem 0.95rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qhm-primary);
	background: rgba(var(--qhm-primary-rgb), 0.1);
	border: 1px solid rgba(var(--qhm-primary-rgb), 0.28);
	border-radius: 999px;
}

.qhm-why-us__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 2.65rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--qhm-navy);
}

.qhm-why-us__subtitle {
	margin: 0 0 1rem;
	font-size: clamp(1.2rem, 2.2vw, 1.42rem);
	font-weight: 600;
	line-height: 1.5;
	color: var(--qhm-navy);
	max-width: 40rem;
}

.qhm-why-us__text {
	margin: 0;
	font-size: 1.24rem;
	line-height: 1.7;
	color: var(--qhm-muted);
	max-width: 44rem;
}

.qhm-why-us__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.85rem, 2vw, 1.15rem);
	margin: clamp(1.75rem, 3.5vw, 2.35rem) 0 0;
	padding: clamp(1.35rem, 3vw, 1.85rem);
	list-style: none;
	border: 1px solid rgba(var(--qhm-primary-rgb), 0.14);
	border-radius: calc(var(--qhm-radius) + 6px);
}

@media (min-width: 600px) {
	.qhm-why-us__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(0.75rem, 1.8vw, 1.25rem);
		align-items: stretch;
	}
}

.qhm-why-us__stat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	min-width: 0;
	padding-block: clamp(1.05rem, 2.2vw, 1.4rem);
	padding-inline-end: clamp(1rem, 2vw, 1.25rem);
	padding-inline-start: calc(1.2rem + 6px);
	background: var(--qhm-surface);
	border-radius: var(--qhm-radius);
	border: 1px solid rgba(50, 56, 150, 0.08);
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
	transition:
		transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
		box-shadow 0.35s ease,
		border-color 0.25s ease;
}

.qhm-why-us__stat::before {
	content: '';
	position: absolute;
	inset-inline-start: 0.55rem;
	top: 1rem;
	bottom: 1rem;
	width: 4px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--qhm-primary) 0%, var(--qhm-primary-dark) 100%);
	opacity: 0.95;
}

.qhm-why-us__stat:hover {
	transform: translateY(-3px);
	border-color: rgba(var(--qhm-primary-rgb), 0.22);
	box-shadow:
		0 12px 32px rgba(50, 56, 150, 0.12),
		0 0 0 1px rgba(var(--qhm-primary-rgb), 0.06);
}

@media (prefers-reduced-motion: reduce) {
	.qhm-why-us__stat {
		transition: border-color 0.2s ease, box-shadow 0.2s ease;
	}

	.qhm-why-us__stat:hover {
		transform: none;
	}
}

.qhm-why-us__stat-prefix {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qhm-primary-dark);
	line-height: 1.35;
	opacity: 0.9;
}

.qhm-why-us__stat-value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.06em;
	font-size: clamp(2.05rem, 5vw, 2.85rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: var(--qhm-navy);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qhm-why-us__stat-num {
	color: var(--qhm-primary);
}

.qhm-why-us__stat-suffix {
	font-weight: 800;
	color: var(--qhm-primary);
}

.qhm-why-us__stat-suffix--lead {
	margin-inline-end: 0.04em;
}

.qhm-why-us__stat-label {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--qhm-muted);
	max-width: 16rem;
}

/* Shop-wide category grid — compact bento (many categories) */
.qhm-shop-cats {
	margin-bottom: 2rem;
}

.qhm-shop-cats__head {
	align-items: flex-start;
}

@media (max-width: 639px) {
	.qhm-shop-cats__head .qhm-btn {
		width: 100%;
		justify-content: center;
	}
}

.qhm-shop-cats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 520px) and (max-width: 699px) {
	.qhm-shop-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-flow: dense;
		gap: 0.7rem;
	}

	.qhm-shop-cats__item--feature {
		grid-column: span 2;
		grid-row: span 2;
	}

	.qhm-shop-cats__item--wide {
		grid-column: span 2;
	}

	.qhm-shop-cats__item--tall {
		grid-row: span 2;
	}
}

@media (min-width: 700px) and (max-width: 1023px) {
	.qhm-shop-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-flow: dense;
		gap: 0.75rem;
	}

	.qhm-shop-cats__item--feature {
		grid-column: span 2;
		grid-row: span 2;
	}

	.qhm-shop-cats__item--wide {
		grid-column: span 2;
	}

	.qhm-shop-cats__item--tall {
		grid-row: span 2;
	}
}

@media (min-width: 1024px) {
	.qhm-shop-cats__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-flow: dense;
		gap: 0.8rem;
	}

	.qhm-shop-cats__item--feature {
		grid-column: span 2;
		grid-row: span 2;
	}

	.qhm-shop-cats__item--compact {
		grid-column: span 1;
		grid-row: span 1;
	}

	.qhm-shop-cats__item--wide {
		grid-column: span 2;
		grid-row: span 1;
	}

	.qhm-shop-cats__item--tall {
		grid-column: span 1;
		grid-row: span 2;
	}
}

.qhm-shop-cats__item {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
	min-height: 0;
}

.qhm-shop-cats__card {
	--qhm-shop-cat-radius: var(--qhm-radius);
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: var(--qhm-surface);
	border-radius: var(--qhm-shop-cat-radius);
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.07);
	box-shadow: var(--qhm-shadow);
	text-decoration: none;
	color: inherit;
	transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.32s ease;
}

.qhm-shop-cats__card--feature {
	--qhm-shop-cat-radius: calc(var(--qhm-radius) + 3px);
	border: 1px solid rgba(50, 56, 150, 0.12);
	box-shadow:
		0 2px 14px rgba(50, 56, 150, 0.08),
		0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.qhm-shop-cats__card--feature::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(
		135deg,
		rgba(var(--qhm-primary-rgb), 0.06) 0%,
		transparent 42%,
		rgba(50, 56, 150, 0.05) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.qhm-shop-cats__card--wide {
	--qhm-shop-cat-radius: calc(var(--qhm-radius) + 2px);
	border-color: rgba(var(--qhm-primary-rgb), 0.14);
}

.qhm-shop-cats__card--tall {
	border-color: rgba(50, 56, 150, 0.11);
}

.qhm-shop-cats__card > .qhm-shop-cats__media {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
}

.qhm-shop-cats__card:focus-visible {
	outline: 2px solid var(--qhm-primary);
	outline-offset: 3px;
}

.qhm-shop-cats__card:focus-visible .qhm-shop-cats__overlay {
	opacity: 1;
}

.qhm-shop-cats__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--qhm-shadow-hover);
}

.qhm-shop-cats__card--feature:hover {
	box-shadow:
		0 12px 28px rgba(50, 56, 150, 0.14),
		0 0 0 1px rgba(var(--qhm-primary-rgb), 0.1);
}

.qhm-shop-cats__media {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	background: var(--qhm-bg);
	overflow: hidden;
}

/* Media fills the card vertically when the grid cell is taller than the minimum. */
.qhm-shop-cats__item--compact .qhm-shop-cats__media {
	flex: 1 1 auto;
	min-height: clamp(6rem, 42vw, 11rem);
}

.qhm-shop-cats__item--feature .qhm-shop-cats__media,
.qhm-shop-cats__item--tall .qhm-shop-cats__media {
	flex: 1 1 auto;
	min-height: clamp(6.5rem, 36vw, 12rem);
}

.qhm-shop-cats__item--wide .qhm-shop-cats__media {
	flex: 1 1 auto;
	min-height: clamp(5.75rem, 28vw, 9.5rem);
}

@media (min-width: 520px) {
	.qhm-shop-cats__item--compact .qhm-shop-cats__media {
		min-height: clamp(6.25rem, 22vw, 10.5rem);
	}

	.qhm-shop-cats__item--feature .qhm-shop-cats__media,
	.qhm-shop-cats__item--tall .qhm-shop-cats__media {
		min-height: clamp(7rem, 18vw, 12.5rem);
	}

	.qhm-shop-cats__item--wide .qhm-shop-cats__media {
		min-height: clamp(6rem, 14vw, 9rem);
	}
}

@media (min-width: 1024px) {
	.qhm-shop-cats__item--compact .qhm-shop-cats__media {
		min-height: clamp(6.5rem, 11vw, 10rem);
	}

	.qhm-shop-cats__item--feature .qhm-shop-cats__media,
	.qhm-shop-cats__item--tall .qhm-shop-cats__media {
		min-height: clamp(7.25rem, 9vw, 12rem);
	}

	.qhm-shop-cats__item--wide .qhm-shop-cats__media {
		min-height: clamp(6.25rem, 7.5vw, 8.5rem);
	}
}

@media (max-width: 519px) {
	.qhm-shop-cats__item--feature .qhm-shop-cats__media {
		min-height: clamp(7rem, 48vw, 12rem);
	}

	.qhm-shop-cats__item--wide .qhm-shop-cats__media {
		min-height: clamp(6rem, 46vw, 10rem);
	}

	.qhm-shop-cats__item--tall .qhm-shop-cats__media {
		min-height: clamp(6.75rem, 44vw, 12rem);
	}
}

.qhm-shop-cats__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.qhm-shop-cats__card:hover .qhm-shop-cats__img {
	transform: scale(1.04);
}

.qhm-shop-cats__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	padding: 0.55rem 0.75rem 0.68rem;
	background: linear-gradient(
		to top,
		rgba(15, 18, 35, 0.92) 0%,
		rgba(15, 18, 35, 0.55) 45%,
		transparent 100%
	);
	pointer-events: none;
	transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.qhm-shop-cats__card--wide .qhm-shop-cats__overlay {
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.45rem;
	flex-wrap: wrap;
	padding: 0.5rem 0.75rem 0.62rem;
}

.qhm-shop-cats__card--wide .qhm-shop-cats__name {
	margin-bottom: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.qhm-shop-cats__card--wide .qhm-shop-cats__count,
.qhm-shop-cats__card--wide .qhm-shop-cats__count--muted {
	flex: 0 0 auto;
	text-align: end;
}

@media (hover: hover) and (pointer: fine) {
	.qhm-shop-cats__card:hover .qhm-shop-cats__overlay {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qhm-shop-cats__overlay {
		transition: none;
	}

	.qhm-shop-cats__card:hover .qhm-shop-cats__overlay {
		opacity: 1;
	}
}

.qhm-shop-cats__placeholder {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	background: linear-gradient(145deg, rgba(50, 56, 150, 0.2) 0%, rgba(var(--qhm-primary-rgb), 0.14) 100%);
	color: var(--qhm-navy);
}

.qhm-shop-cats__card--2 .qhm-shop-cats__placeholder {
	background: linear-gradient(145deg, rgba(var(--qhm-primary-rgb), 0.18) 0%, rgba(50, 56, 150, 0.16) 100%);
}

.qhm-shop-cats__card--3 .qhm-shop-cats__placeholder {
	background: linear-gradient(145deg, rgba(50, 56, 150, 0.14) 0%, rgba(37, 44, 117, 0.22) 100%);
}

.qhm-shop-cats__card--4 .qhm-shop-cats__placeholder {
	background: linear-gradient(145deg, rgba(var(--qhm-primary-rgb), 0.12) 0%, rgba(var(--qhm-primary-dark-rgb), 0.15) 100%);
}

.qhm-shop-cats__card--5 .qhm-shop-cats__placeholder {
	background: linear-gradient(160deg, rgba(50, 56, 150, 0.18) 0%, rgba(var(--qhm-primary-rgb), 0.1) 100%);
}

.qhm-shop-cats__card--6 .qhm-shop-cats__placeholder {
	background: linear-gradient(145deg, rgba(76, 47, 120, 0.18) 0%, rgba(50, 56, 150, 0.14) 100%);
}

.qhm-shop-cats__placeholder-letter {
	font-size: clamp(1.65rem, 4vw, 2.15rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.qhm-shop-cats__card--feature .qhm-shop-cats__placeholder-letter {
	font-size: clamp(2rem, 5vw, 2.65rem);
}

.qhm-shop-cats__card--wide .qhm-shop-cats__placeholder-letter {
	font-size: clamp(1.85rem, 4.5vw, 2.35rem);
}

.qhm-shop-cats__placeholder-icon {
	width: 36px;
	height: 36px;
	opacity: 0.35;
	color: var(--qhm-navy);
}

.qhm-shop-cats__card--feature .qhm-shop-cats__placeholder-icon {
	width: 40px;
	height: 40px;
	opacity: 0.4;
}

.qhm-shop-cats__name {
	margin: 0 0 0.1rem;
	font-size: clamp(1.3rem, 3.4vw, 1.72rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.qhm-shop-cats__card--feature .qhm-shop-cats__name {
	font-size: clamp(1.42rem, 3.2vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.qhm-shop-cats__card--tall .qhm-shop-cats__name {
	font-size: clamp(1.35rem, 3vw, 1.78rem);
}

.qhm-shop-cats__count {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--qhm-primary);
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.85), 0 1px 8px rgba(0, 0, 0, 0.4);
}

.qhm-shop-cats__card--feature .qhm-shop-cats__count {
	font-size: 0.85rem;
}

.qhm-shop-cats__count--muted {
	color: rgba(255, 255, 255, 0.82);
	font-weight: 500;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Category columns */
.qhm-categories {
	margin-bottom: 3rem;
}

.qhm-cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.qhm-cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.qhm-cat-card {
	background: var(--qhm-surface);
	border-radius: var(--qhm-radius);
	box-shadow: var(--qhm-shadow);
	border: 1px solid rgba(15, 23, 42, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.qhm-cat-card:hover {
	box-shadow: var(--qhm-shadow-hover);
	transform: translateY(-4px);
}

.qhm-cat-card__head {
	padding: 1.25rem 1.25rem 0.75rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.qhm-cat-card__title {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0;
}

.qhm-cat-card__badge {
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.32rem 0.6rem;
	border-radius: 6px;
	background: rgba(var(--qhm-primary-rgb), 0.12);
	color: var(--qhm-primary);
}

.qhm-cat-card--2 .qhm-cat-card__badge {
	background: rgba(50, 56, 150, 0.12);
	color: var(--qhm-navy);
}

.qhm-cat-card--3 .qhm-cat-card__badge {
	background: rgba(var(--qhm-primary-rgb), 0.18);
	color: var(--qhm-primary-dark);
}

.qhm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.qhm-cat-card__products {
	padding: 1rem 1.25rem 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.qhm-mini-product {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	text-decoration: none;
	color: inherit;
	padding: 0.5rem;
	margin: -0.5rem;
	border-radius: 10px;
	transition: background 0.2s ease;
}

.qhm-mini-product:hover {
	background: var(--qhm-bg);
}

.qhm-mini-product__img {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--qhm-bg);
}

.qhm-mini-product__body {
	min-width: 0;
}

.qhm-mini-product__name {
	font-size: 1.26rem;
	font-weight: 600;
	margin: 0 0 0.28rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qhm-mini-product__price {
	font-size: 1.22rem;
	font-weight: 700;
	color: var(--qhm-primary);
	margin: 0;
}

.qhm-cat-card__footer {
	padding: 0 1.25rem 1.25rem;
	margin-top: auto;
}

.qhm-btn--outline {
	width: 100%;
	background: transparent;
	color: var(--qhm-primary);
	border: 2px solid rgba(var(--qhm-primary-rgb), 0.45);
	border-radius: 10px;
	padding: 0.85rem 1.15rem;
	font-size: 1.24rem;
	font-weight: 600;
}

.qhm-btn--outline:hover {
	background: rgba(var(--qhm-primary-rgb), 0.08);
	border-color: var(--qhm-primary);
	color: var(--qhm-primary-dark);
}

/* Featured products carousel */
.qhm-featured {
	margin-bottom: 3rem;
}

.qhm-featured-slider {
	position: relative;
	padding: 0.35rem 0 0;
	outline: none;
}

.qhm-featured-slider:focus-visible {
	box-shadow: 0 0 0 3px rgba(var(--qhm-primary-rgb), 0.35);
	border-radius: calc(var(--qhm-radius) + 4px);
}

.qhm-featured-slider__mask {
	margin: 0;
	width: 100%;
	overflow: hidden;
	border-radius: calc(var(--qhm-radius) + 2px);
}

.qhm-featured-slider__viewport {
	container-type: inline-size;
	container-name: qhm-featured;
	overflow: hidden;
	width: 100%;
	direction: ltr;
	padding: 0.35rem 0 0.5rem;
	border-radius: var(--qhm-radius);
}

.qhm-featured-slider__track {
	display: flex;
	gap: 1.125rem;
	width: max-content;
	min-width: 100%;
	transition: transform 0.38s cubic-bezier(0.33, 1, 0.68, 1);
	will-change: transform;
}

/* Slide width = fraction of visible strip (cqi), not track width */
.qhm-featured-slider__slide {
	flex: 0 0 min(100cqi, 320px);
	min-width: 0;
	box-sizing: border-box;
}

@container qhm-featured (min-width: 520px) {
	.qhm-featured-slider__slide {
		flex: 0 0 calc((100cqi - 1.125rem) / 2);
	}
}

@container qhm-featured (min-width: 768px) {
	.qhm-featured-slider__slide {
		flex: 0 0 calc((100cqi - 2 * 1.125rem) / 3);
	}
}

@container qhm-featured (min-width: 1024px) {
	.qhm-featured-slider__slide {
		flex: 0 0 calc((100cqi - 3 * 1.125rem) / 4);
	}
}

.qhm-featured-slider__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--qhm-surface);
	color: var(--qhm-navy);
	box-shadow: 0 4px 20px rgba(50, 56, 150, 0.18);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.qhm-featured-slider__btn:hover:not(:disabled) {
	background: var(--qhm-navy);
	color: #fff;
	box-shadow: 0 8px 28px rgba(50, 56, 150, 0.28);
}

.qhm-featured-slider__btn:focus-visible {
	outline: 2px solid var(--qhm-primary);
	outline-offset: 3px;
}

.qhm-featured-slider__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.qhm-featured-slider__btn--prev {
	inset-inline-start: max(0.25rem, env(safe-area-inset-left, 0px));
}

.qhm-featured-slider__btn--next {
	inset-inline-end: max(0.25rem, env(safe-area-inset-right, 0px));
}

@media (prefers-reduced-motion: reduce) {
	.qhm-featured-slider__track {
		transition: none;
	}
}

.qhm-product-card {
	background: var(--qhm-surface);
	border-radius: var(--qhm-radius);
	overflow: hidden;
	box-shadow: var(--qhm-shadow);
	border: 1px solid rgba(15, 23, 42, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qhm-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--qhm-shadow-hover);
}

.qhm-product-card__img-wrap {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--qhm-bg);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.qhm-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qhm-product-card__img-wrap:focus-visible {
	outline: 3px solid var(--qhm-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

.qhm-product-card__tag {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	background: var(--qhm-accent);
	color: #fff;
	font-size: 1.08rem;
	font-weight: 700;
	padding: 0.38rem 0.72rem;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.qhm-product-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.15rem 1.1rem 1.2rem;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(15, 18, 35, 0.15) 0%,
		transparent 55%
	);
	transition: background 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.qhm-product-card:hover .qhm-product-card__overlay,
.qhm-product-card__img-wrap:focus-visible .qhm-product-card__overlay {
	background: linear-gradient(
		to top,
		rgba(15, 18, 35, 0.94) 0%,
		rgba(15, 18, 35, 0.65) 38%,
		rgba(15, 18, 35, 0.2) 68%,
		transparent 100%
	);
}

.qhm-product-card__name {
	font-size: clamp(1.38rem, 2.8vw, 1.72rem);
	font-weight: 700;
	margin: 0 0 0.4rem;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	opacity: 0;
	transform: translate3d(0, 14px, 0);
	transition: opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1), transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.qhm-product-card__price {
	font-size: clamp(1.42rem, 2.9vw, 1.78rem);
	font-weight: 800;
	color: var(--qhm-primary);
	margin: 0;
	text-shadow: 0 0 1px rgba(0, 0, 0, 0.85), 0 2px 16px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transform: translate3d(0, 14px, 0);
	transition:
		opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0.06s,
		transform 0.4s cubic-bezier(0.33, 1, 0.68, 1) 0.06s;
}

.qhm-product-card:hover .qhm-product-card__name,
.qhm-product-card:hover .qhm-product-card__price,
.qhm-product-card__img-wrap:focus-visible .qhm-product-card__name,
.qhm-product-card__img-wrap:focus-visible .qhm-product-card__price {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
	.qhm-product-card__overlay {
		transition: none;
		background: linear-gradient(
			to top,
			rgba(15, 18, 35, 0.92) 0%,
			rgba(15, 18, 35, 0.55) 42%,
			transparent 72%
		);
	}

	.qhm-product-card__name,
	.qhm-product-card__price {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.qhm-product-card__price .woocommerce-Price-amount,
.qhm-product-card__price bdi {
	color: inherit;
}

.qhm-product-card__price .woocommerce-Price-currencySymbol {
	opacity: 0.95;
}

/* Promo banner */
.qhm-promo {
	margin-bottom: 3rem;
}

.qhm-promo__inner {
	border-radius: var(--qhm-radius);
	background: linear-gradient(110deg, var(--qhm-navy-dark) 0%, var(--qhm-navy) 55%, #4c2f78 100%);
	color: #fff;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	box-shadow: var(--qhm-shadow-hover);
}

.qhm-promo__text h3 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.8rem, 3.5vw, 2.35rem);
	line-height: 1.22;
}

.qhm-promo__text p {
	margin: 0;
	opacity: 0.92;
	font-size: 1.32rem;
	max-width: 34rem;
	line-height: 1.62;
}

.qhm-btn--light {
	background: var(--qhm-primary);
	color: #fff;
	border-radius: 10px;
	padding: 0.9rem 1.65rem;
	font-size: 1.24rem;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(var(--qhm-primary-rgb), 0.35);
}

.qhm-btn--light:hover {
	background: var(--qhm-primary-dark);
	color: #fff;
}

/* Newsletter */
.qhm-newsletter {
	margin-bottom: 2rem;
}

.qhm-newsletter__box {
	background: var(--qhm-surface);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: var(--qhm-radius);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	box-shadow: var(--qhm-shadow);
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.qhm-newsletter__box {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}

.qhm-newsletter__box h3 {
	margin: 0 0 0.45rem;
	font-size: 1.72rem;
	line-height: 1.28;
}

.qhm-newsletter__box p {
	margin: 0;
	color: var(--qhm-muted);
	font-size: 1.3rem;
	line-height: 1.62;
}

.qhm-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.qhm-newsletter__form input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 0.9rem 1.2rem;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	font-size: 1.22rem;
}

.qhm-newsletter__form .qhm-btn--primary {
	background: var(--qhm-primary);
	color: #fff;
	border-radius: 10px;
	padding: 0.82rem 1.35rem;
	font-size: 1.22rem;
	font-weight: 600;
}

.qhm-newsletter__form .qhm-btn--primary:hover {
	background: var(--qhm-primary-dark);
	color: #fff;
}

/* Editor content */
.qhm-editor {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 1.24rem;
	line-height: 1.7;
}

.qhm-editor > *:first-child {
	margin-top: 0;
}

/* Page padding tweak for Martfury — allow hero 100vw breakout (avoid clipping strips) */
.qabas-home-modern-page .site-content {
	padding-top: 0;
	overflow-x: visible;
}

.qabas-home-modern-page .martfury-container > .row {
	overflow-x: visible;
}
