.hdme-hero__slide[hidden] { display: none !important; }

/* ==========================================================================
   Healthcare DME — Home page layout
   --------------------------------------------------------------------------
   Styles for front-page.php. Uses the tokens from design-system.css, so the
   brand blue and type scale stay consistent with the rest of the site.
   Mobile-first; every grid collapses to a single column on a phone.
   ========================================================================== */

.hdme-home {
	display: block;
}

/* Shared section rhythm -------------------------------------------------- */

.hdme-section {
	padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 5rem);
	background: var(--hdme-surface);
}
.hdme-section--tint {
	background: var(--hdme-grey-50);
}

.hdme-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hdme-space-3);
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.hdme-section__title {
	margin: 0;
	font-size: var(--hdme-text-2xl);
	line-height: var(--hdme-leading-tight);
	font-weight: var(--hdme-weight-bold);
	color: var(--hdme-grey-900);
}
.hdme-section__sub {
	margin: 0;
	width: 100%;
	font-size: var(--hdme-text-base);
	color: var(--hdme-text-muted);
}
.hdme-section__more {
	font-size: var(--hdme-text-base);
	font-weight: var(--hdme-weight-semi);
	color: var(--hdme-link);
	white-space: nowrap;
}
.hdme-center { text-align: center; margin-top: var(--hdme-space-6); }

.hdme-icon { flex: 0 0 auto; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hdme-hero {
	background: linear-gradient(180deg, var(--hdme-blue-50) 0%, var(--hdme-surface) 100%);
	padding-block: clamp(1.5rem, 1rem + 2vw, 3rem);
	border-bottom: 1px solid var(--hdme-border);
}
.hdme-hero__inner {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: center;
}
@media (min-width: 900px) {
	.hdme-hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hdme-hero__eyebrow {
	display: inline-block;
	margin: 0 0 var(--hdme-space-3);
	padding: var(--hdme-space-1) var(--hdme-space-3);
	border-radius: var(--hdme-radius-pill);
	background: var(--hdme-blue-100);
	color: var(--hdme-blue-800);
	font-size: var(--hdme-text-sm);
	font-weight: var(--hdme-weight-semi);
}
.hdme-hero__title {
	margin: 0 0 var(--hdme-space-3);
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	line-height: var(--hdme-leading-tight);
	font-weight: var(--hdme-weight-bold);
	color: var(--hdme-grey-900);
	max-width: 16ch;
}
.hdme-hero__lead {
	margin: 0 0 var(--hdme-space-4);
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: var(--hdme-leading-normal);
	color: var(--hdme-grey-600);
	max-width: 48ch;
}
.hdme-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hdme-space-3);
	margin-bottom: var(--hdme-space-4);
}
@media (max-width: 480px) {
	.hdme-hero__actions .hdme-btn { width: 100%; }
}

.hdme-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hdme-space-4) var(--hdme-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}
.hdme-hero__points li {
	display: flex;
	align-items: center;
	gap: var(--hdme-space-2);
	font-size: var(--hdme-text-sm);
	font-weight: var(--hdme-weight-medium);
	color: var(--hdme-grey-700);
}
.hdme-hero__points svg { color: var(--hdme-blue-600); }

.hdme-hero__media {
	display: flex;
	justify-content: center;
}
.hdme-hero__media img {
	width: 100%;
	max-width: 460px;
	height: auto;
	border-radius: var(--hdme-radius-lg);
	background: var(--hdme-surface);
	mix-blend-mode: multiply;
}
@media (max-width: 899px) {
	.hdme-hero__media { order: -1; }
	.hdme-hero__media img { max-width: 320px; }
	.hdme-hero__title { max-width: none; }
}

/* ==========================================================================
   Shop-by-need tiles
   ========================================================================== */

.hdme-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hdme-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px)  { .hdme-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hdme-tiles { grid-template-columns: repeat(6, 1fr); } }

.hdme-tile__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--hdme-space-2);
	height: 100%;
	padding: var(--hdme-space-5) var(--hdme-space-3);
	text-align: center;
	background: var(--hdme-surface);
	border: 1px solid var(--hdme-border);
	border-radius: var(--hdme-radius-lg);
	color: var(--hdme-grey-800);
	text-decoration: none;
	transition: border-color var(--hdme-transition), box-shadow var(--hdme-transition), transform var(--hdme-transition);
}
.hdme-tile__link:hover {
	border-color: var(--hdme-blue-300);
	box-shadow: var(--hdme-shadow);
	transform: translateY(-2px);
	color: var(--hdme-blue-800);
}
.hdme-tile__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hdme-blue-50);
	color: var(--hdme-blue-600);
}
.hdme-tile__label {
	font-size: var(--hdme-text-sm);
	font-weight: var(--hdme-weight-semi);
	line-height: var(--hdme-leading-snug);
}
.hdme-tile__count {
	font-size: var(--hdme-text-xs);
	color: var(--hdme-text-muted);
}

/* ==========================================================================
   Trust band
   ========================================================================== */

.hdme-trustband {
	background: var(--hdme-blue-700);
	color: #fff;
	padding-block: var(--hdme-space-5);
}
.hdme-trustband__inner {
	display: grid;
	gap: var(--hdme-space-4);
}
@media (min-width: 768px) {
	.hdme-trustband__inner { grid-template-columns: repeat(3, 1fr); gap: var(--hdme-space-6); }
}
.hdme-trustband__item {
	display: flex;
	align-items: flex-start;
	gap: var(--hdme-space-3);
}
.hdme-trustband__item svg { color: rgba(255,255,255,0.85); margin-top: 2px; }
.hdme-trustband__item strong {
	display: block;
	font-size: var(--hdme-text-base);
	font-weight: var(--hdme-weight-semi);
}
.hdme-trustband__item span {
	font-size: var(--hdme-text-sm);
	color: rgba(255,255,255,0.78);
}

/* ==========================================================================
   Product grid
   ========================================================================== */

.hdme-grid {
	display: grid;
	gap: var(--hdme-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Product grid and cards share layout-archive-cards.css with the catalogue. */

/* ==========================================================================
   How it works
   ========================================================================== */

.hdme-steps {
	display: grid;
	gap: var(--hdme-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
@media (min-width: 768px) { .hdme-steps { grid-template-columns: repeat(3, 1fr); } }

.hdme-step {
	position: relative;
	padding: var(--hdme-space-6) var(--hdme-space-5) var(--hdme-space-5);
	background: var(--hdme-surface);
	border: 1px solid var(--hdme-border);
	border-radius: var(--hdme-radius-lg);
}
.hdme-step__n {
	position: absolute;
	top: calc(-1 * var(--hdme-space-4));
	left: var(--hdme-space-5);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hdme-blue-600);
	color: #fff;
	font-size: var(--hdme-text-lg);
	font-weight: var(--hdme-weight-bold);
}
.hdme-step__title {
	margin: var(--hdme-space-2) 0 var(--hdme-space-2);
	font-size: var(--hdme-text-lg);
	font-weight: var(--hdme-weight-semi);
	color: var(--hdme-grey-900);
}
.hdme-step p {
	margin: 0;
	font-size: var(--hdme-text-base);
	color: var(--hdme-grey-600);
	line-height: var(--hdme-leading-normal);
}

/* ==========================================================================
   Category list
   ========================================================================== */

.hdme-catlist {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hdme-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 600px)  { .hdme-catlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hdme-catlist { grid-template-columns: repeat(3, 1fr); } }

.hdme-catlist a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hdme-space-3);
	min-height: var(--hdme-tap-min);
	padding: var(--hdme-space-3) var(--hdme-space-4);
	background: var(--hdme-surface);
	border: 1px solid var(--hdme-border);
	border-radius: var(--hdme-radius);
	color: var(--hdme-grey-800);
	text-decoration: none;
	font-size: var(--hdme-text-sm);
	transition: border-color var(--hdme-transition), background-color var(--hdme-transition);
}
.hdme-catlist a:hover {
	border-color: var(--hdme-blue-300);
	background: var(--hdme-blue-50);
	color: var(--hdme-blue-800);
}
.hdme-catlist__name { font-weight: var(--hdme-weight-medium); }
.hdme-catlist__count {
	flex: 0 0 auto;
	padding: 2px var(--hdme-space-2);
	border-radius: var(--hdme-radius-pill);
	background: var(--hdme-grey-100);
	color: var(--hdme-grey-600);
	font-size: var(--hdme-text-xs);
	font-weight: var(--hdme-weight-semi);
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.hdme-cta {
	background: var(--hdme-grey-900);
	color: #fff;
	padding-block: clamp(2.5rem, 1.6rem + 3vw, 4rem);
}
.hdme-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hdme-space-5);
}
.hdme-cta__title {
	margin: 0 0 var(--hdme-space-2);
	font-size: var(--hdme-text-2xl);
	font-weight: var(--hdme-weight-bold);
	line-height: var(--hdme-leading-tight);
}
.hdme-cta__text {
	margin: 0;
	max-width: 56ch;
	color: rgba(255,255,255,0.8);
	font-size: var(--hdme-text-base);
}
.hdme-btn--onDark {
	background: #fff;
	color: var(--hdme-grey-900);
	border-color: #fff;
}
.hdme-btn--onDark:hover { background: var(--hdme-blue-50); color: var(--hdme-blue-900); }

@media (max-width: 700px) {
	.hdme-cta__inner { flex-direction: column; align-items: flex-start; }
	.hdme-cta .hdme-btn { width: 100%; }
}

/* ==========================================================================
   Fixes found by measuring the rendered page
   ========================================================================== */

/* Avada's sidebar layout was sizing main.hdme-home to 982px inside a 1380px
   .fusion-row, leaving a dead column on the right. These layouts are full-width
   by design and manage their own gutters via .hdme-container. */
.hdme-scope main.hdme-home {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
}
/* The matching sidebar has nothing to show on these templates. */
.home .fusion-sidebar,
.home aside.sidebar {
	display: none !important;
}
/* Let the sections reach the full viewport width; .hdme-container re-centres
   the content inside them. */
.hdme-scope main.hdme-home > section {
	margin-inline: calc(-1 * var(--hdme-gutter));
	padding-inline: var(--hdme-gutter);
}
@media (min-width: 1200px) {
	.hdme-scope main.hdme-home > section { margin-inline: -30px; }
}

/* Avada sets a dark colour on every h2/h3, which made the heading on the dark
   CTA band invisible (measured: rgb(20,22,23) on a near-black background). */
.hdme-scope .hdme-cta .hdme-cta__title,
.hdme-scope .hdme-cta h2 {
	color: #fff;
}
.hdme-scope .hdme-trustband strong,
.hdme-scope .hdme-trustband span { color: inherit; }

/* Section headings inherit Avada's colour correctly on light backgrounds, but
   pin them anyway so a theme-option change cannot wash them out. */
.hdme-scope .hdme-section__title,
.hdme-scope .hdme-step__title { color: var(--hdme-grey-900); }

/* ==========================================================================
   Hero carousel
   One slide per category, 5-second rotation. Slides are stacked and
   cross-faded rather than translated, so a slide of a different height cannot
   make the section jump.
   ========================================================================== */

.hdme-hero__viewport {
	position: relative;
	display: grid;
	padding-bottom: 2.85rem;
}
.hdme-hero__slide {
	grid-area: 1 / 1;
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 420ms ease;
	pointer-events: none;
}
.hdme-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
@media (min-width: 900px) {
	.hdme-hero__slide { grid-template-columns: 1.05fr 0.95fr; }
}

/* Compact bottom controls: arrows never cover slide copy or product images. */
.hdme-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
}
.hdme-hero__nav {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--hdme-border);
	background: rgba(255, 255, 255, 0.94);
	color: var(--hdme-grey-700);
	box-shadow: var(--hdme-shadow-sm);
	cursor: pointer;
	transition: background-color var(--hdme-transition), color var(--hdme-transition), border-color var(--hdme-transition);
}
.hdme-hero__nav:hover {
	background: #fff;
	border-color: var(--hdme-blue-300);
	color: var(--hdme-blue-700);
}
/* Dots + pause */
.hdme-hero__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--hdme-space-2);
}
.hdme-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hdme-blue-200);
	cursor: pointer;
	transition: background-color var(--hdme-transition), width var(--hdme-transition);
	position: relative;
}
/* Arrows provide the large touch target; dots stay discrete so a long set of
   category slides never produces overlapping invisible click areas. */
.hdme-hero__dot::after { content: none; }
.hdme-hero__dot.is-active {
	width: 26px;
	border-radius: var(--hdme-radius-pill);
	background: var(--hdme-blue-600);
}
.hdme-hero__pause {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: var(--hdme-space-2);
	padding: 0;
	border: 1px solid var(--hdme-border);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--hdme-grey-600);
	cursor: pointer;
	position: relative;
}
.hdme-hero__pause::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: var(--hdme-tap-min); height: var(--hdme-tap-min);
	transform: translate(-50%, -50%);
}
.hdme-hero__pause:hover { color: var(--hdme-blue-700); border-color: var(--hdme-blue-300); }

.hdme-hero { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }

@media (prefers-reduced-motion: reduce) {
	.hdme-hero__slide { transition: none; }
}

/* Category thumbnails vary wildly in aspect ratio — the compression one is a
   tall portrait, the cushion one near-square. Constrain them to a consistent
   box so the hero height does not jump between slides. */
.hdme-hero__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}
.hdme-hero__fallback img {
	width: 100%;
	max-width: 420px;
	max-height: clamp(220px, 34vw, 380px);
	height: auto;
	object-fit: contain;
	border-radius: var(--hdme-radius-lg);
	background: transparent;
	mix-blend-mode: multiply;
}

.hdme-hero__product-collage {
	position: relative;
	width: min(100%, 440px);
	height: clamp(245px, 27vw, 330px);
}

.hdme-hero__product {
	position: absolute;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(47, 105, 183, 0.18);
	border-radius: 22px;
	box-shadow: 0 16px 38px rgba(20, 55, 96, 0.13);
	transition: transform var(--hdme-transition), box-shadow var(--hdme-transition), border-color var(--hdme-transition);
}

.hdme-hero__product:hover {
	border-color: var(--hdme-blue-300);
	box-shadow: 0 20px 42px rgba(20, 55, 96, 0.2);
}

.hdme-hero__product img {
	width: 100%;
	height: 100%;
	padding: clamp(0.65rem, 1.6vw, 1.1rem);
	object-fit: contain;
	background: #fff;
	mix-blend-mode: normal;
}

.hdme-hero__product--1 {
	left: 16%;
	top: 0;
	width: 64%;
	height: 74%;
	z-index: 2;
}

.hdme-hero__product--2 {
	left: 0;
	bottom: 0;
	width: 39%;
	height: 43%;
	z-index: 3;
	transform: rotate(-3deg);
}

.hdme-hero__product--3 {
	right: 0;
	bottom: 2%;
	width: 39%;
	height: 43%;
	z-index: 3;
	transform: rotate(3deg);
}

.hdme-hero__product--2:hover,
.hdme-hero__product--3:hover {
	transform: rotate(0) translateY(-3px);
}

@media (max-width: 899px) {
	.hdme-hero__fallback img { max-height: 220px; max-width: 280px; }
	.hdme-hero__product-collage { width: min(100%, 360px); height: 235px; }
}

@media (max-width: 480px) {
	.hdme-hero { padding-block: 1.25rem; }
	.hdme-hero__viewport { padding-bottom: 2.6rem; }
	.hdme-hero__product-collage { width: min(92%, 310px); height: 195px; }
	.hdme-hero__controls { gap: 0.3rem; }
	.hdme-hero__nav { width: 28px; height: 28px; }
	.hdme-hero__dots { gap: 3px; }
	.hdme-hero__dot { width: 5px; height: 5px; }
	.hdme-hero__dot.is-active { width: 14px; }
	.hdme-hero__pause { width: 22px; height: 22px; margin-left: 0.15rem; }
}
/* Keep the homepage's twelve featured products in three desktop rows. */
/* Tighten only the header → carousel → first category section transitions. */
body.home.hdme-scope #main { padding-top: 0 !important; }
body.home.hdme-scope .hdme-home > .hdme-hero {
	padding-top: 24px;
	padding-bottom: 20px;
}
body.home.hdme-scope .hdme-home > .hdme-hero + .hdme-section {
	padding-top: 28px;
}
@media (max-width: 600px) {
	body.home.hdme-scope .hdme-home > .hdme-hero { padding-top: 16px; padding-bottom: 16px; }
	body.home.hdme-scope .hdme-home > .hdme-hero + .hdme-section { padding-top: 24px; }
}
@media (min-width: 1000px) {
	.hdme-grid--archive.hdme-home-products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
