/* =========================================================
   HOME PAGE – compact, fully responsive (prefix: hm-)
   Breakpoints: 480 / 640 / 768 / 1024 / 1280 / 1536
   ========================================================= */
.hm {
	--hm-primary: #ff4d2e;
	--hm-primary-d: #e03a1d;
	--hm-dark: #111827;
	--hm-text: #4b5563;
	--hm-bg: #f6f7fb;
	--hm-card: #fff;
	--hm-line: #e8eaf0;
	--hm-radius: 14px;
	--hm-gap: clamp(8px, 1.4vw, 16px);
	--hm-sec: clamp(14px, 2.4vw, 28px); /* section vertical spacing (minimal) */
	--hm-shadow: 0 2px 10px rgba(17, 24, 39, .06);
	color: var(--hm-text);
	background: var(--hm-bg);
/*	overflow-x: hidden;*/
}

	.hm *, .hm *::before, .hm *::after {
		box-sizing: border-box;
	}

	.hm img {
		max-width: 100%;
		height: auto;
		display: block;
	}

	.hm a {
		text-decoration: none;
		color: inherit;
	}

	.hm h1, .hm h2, .hm h3, .hm h4, .hm h6, .hm p, .hm ul {
		margin: 0;
		padding: 0;
	}

	.hm ul {
		list-style: none;
	}

.hm-wrap {
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: clamp(8px, 2vw, 20px);
}

.hm-sec {
	padding-block: var(--hm-sec) 0;
}

.hm > .hm-sec:last-child {
	padding-bottom: var(--hm-sec);
}

/* ---------- Common ---------- */
.hm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: clamp(8px, 1.4vw, 14px);
	flex-wrap: wrap;
}

.hm-head-center {
	justify-content: center;
	text-align: center;
}

.hm-head-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hm-title {
	font-size: clamp(1.05rem, 2.2vw, 1.5rem);
	font-weight: 700;
	color: var(--hm-dark);
	line-height: 1.2;
}

	.hm-title span, .hm-title.hm-white span {
		color: var(--hm-primary);
	}

.hm-white {
	color: #fff;
}

.hm-tag {
	display: block;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hm-primary);
	font-weight: 600;
	margin-bottom: 2px;
}

.hm-more {
	font-size: .85rem;
	font-weight: 600;
	color: var(--hm-primary);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

	.hm-more:hover {
		color: var(--hm-primary-d);
	}

.hm-empty {
	padding: 14px;
	text-align: center;
	color: #9ca3af;
	font-size: .9rem;
}

.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--hm-primary);
	color: #fff !important;
	font-weight: 600;
	font-size: .88rem;
	cursor: pointer;
	transition: .2s;
	white-space: nowrap;
}

	.hm-btn:hover {
		background: var(--hm-primary-d);
		transform: translateY(-1px);
	}

.hm-btn-ghost {
	background: transparent;
	color: var(--hm-dark) !important;
	box-shadow: inset 0 0 0 1.5px var(--hm-dark);
}

	.hm-btn-ghost:hover {
		background: var(--hm-dark);
		color: #fff !important;
	}

.hm-btn-light {
	background: #fff;
	color: var(--hm-dark) !important;
}

	.hm-btn-light:hover {
		background: var(--hm-dark);
		color: #fff !important;
	}

.hm-chip {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.18);
	font-size: .75rem;
	font-weight: 600;
}

.hm-grid {
	display: grid;
	gap: var(--hm-gap);
}

.hm-grid-3 {
	grid-template-columns: 1fr;
}

.hm-stars {
	color: #f5a623;
	font-size: .72rem;
	display: flex;
	gap: 1px;
}

.hm-price {
	font-weight: 700;
	color: var(--hm-primary);
	font-size: .95rem;
	display: flex;
	gap: 6px;
	align-items: baseline;
}

	.hm-price del {
		color: #9ca3af;
		font-weight: 400;
		font-size: .8rem;
	}

/* scroll reveal */
.hm-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}

	.hm-reveal.is-in {
		opacity: 1;
		transform: none;
	}

@media (prefers-reduced-motion: reduce) {
	.hm-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- HERO ---------- */
.hm-hero {
	padding-top: clamp(8px, 1.4vw, 14px);
}

.hm-hero-box {
	position: relative;
	background: linear-gradient(120deg, #fff4ef, #eef2ff);
	border-radius: var(--hm-radius);
	overflow: hidden;
}

.hm-hero-track {
	display: grid;
}

.hm-hero-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 6px;
	padding: 16px 14px 34px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}

	.hm-hero-slide.is-active {
		opacity: 1;
		visibility: visible;
	}

.hm-hero-media {
	position: relative;
	order: -1;
	max-width: 300px;
	margin-inline: auto;
	width: 70%;
}

	.hm-hero-media img {
		margin-inline: auto;
		max-height: 240px;
		width: auto;
		object-fit: contain;
	}

.hm-hero-price {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--hm-primary);
	color: #fff;
	border-radius: 50%;
	width: 62px;
	height: 62px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .78rem;
	line-height: 1.1;
	z-index: 2;
}

	.hm-hero-price small {
		font-size: .62rem;
		font-weight: 500;
		opacity: .85;
	}

.hm-hero-sub {
	color: var(--hm-primary);
	font-weight: 600;
	font-size: .85rem;
	margin-bottom: 4px;
}

.hm-hero-title {
	font-size: clamp(1.4rem, 4.2vw, 3rem);
	line-height: 1.15;
	color: var(--hm-dark);
	font-weight: 800;
	margin-bottom: 8px;
}

	.hm-hero-title span {
		color: var(--hm-primary);
	}

.hm-hero-text p {
	font-size: .9rem;
	margin-bottom: 12px;
	max-width: 520px;
}

.hm-hero-btns {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hm-hero-text {
	text-align: center;
}

	.hm-hero-text p {
		margin-inline: auto;
	}

.hm-hero-btns {
	justify-content: center;
}

.hm-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	display: flex;
	gap: 6px;
	justify-content: center;
}

	.hm-hero-dots button {
		width: 8px;
		height: 8px;
		border-radius: 99px;
		border: 0;
		background: rgba(17,24,39,.25);
		padding: 0;
		cursor: pointer;
		transition: .25s;
	}

		.hm-hero-dots button.is-active {
			width: 22px;
			background: var(--hm-primary);
		}

/* ---------- BANNERS ---------- */
.hm-banner {
	position: relative;
	display: block;
	border-radius: var(--hm-radius);
	overflow: hidden;
	min-height: 150px;
	background: #ddd;
}

	.hm-banner img {
		width: 100%;
		height: 100%;
		min-height: 150px;
		object-fit: cover;
		transition: transform .5s;
	}

	.hm-banner:hover img {
		transform: scale(1.05);
	}

.hm-banner-body {
	position: absolute;
	inset: 0;
	padding: 14px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,0) 70%);
}

	.hm-banner-body p {
		color: var(--hm-primary);
		font-weight: 600;
		font-size: .8rem;
	}

	.hm-banner-body h3 {
		font-size: clamp(1rem, 2vw, 1.3rem);
		color: var(--hm-dark);
		line-height: 1.25;
	}

	.hm-banner-body b {
		color: var(--hm-primary);
	}

	.hm-banner-body span {
		margin-top: 4px;
		font-size: .8rem;
		font-weight: 700;
		color: var(--hm-dark);
		text-decoration: underline;
		text-underline-offset: 3px;
	}

/* ---------- CAROUSEL TRACK (scroll-snap) ---------- */
.hm-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - var(--hm-gap)) / 2);
	gap: var(--hm-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 4px;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

	.hm-track::-webkit-scrollbar {
		display: none;
	}

	.hm-track > * {
		scroll-snap-align: start;
		min-width: 0;
	}

.hm-arrows {
	display: none;
	gap: 6px;
}

	.hm-arrows button {
		width: 30px;
		height: 30px;
		border-radius: 50%;
		border: 1px solid var(--hm-line);
		background: #fff;
		color: var(--hm-dark);
		font-size: .72rem;
		cursor: pointer;
		transition: .2s;
	}

		.hm-arrows button:hover {
			background: var(--hm-primary);
			border-color: var(--hm-primary);
			color: #fff;
		}

/* ---------- PRODUCT CARD ---------- */
.hm-card {
	background: var(--hm-card);
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.hm-card-img {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f3f4f8;
	overflow: hidden;
}

	.hm-card-img > a {
		display: block;
		height: 100%;
	}

	.hm-card-img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .4s;
	}

.hm-card:hover .hm-card-img img {
	transform: scale(1.06);
}

.hm-badges {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hm-badge {
	font-size: .62rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 99px;
	color: #fff;
	text-transform: uppercase;
}

	.hm-badge.hot {
		background: #ef4444;
	}

	.hm-badge.new {
		background: #10b981;
	}

	.hm-badge.discount {
		background: #f59e0b;
	}

	.hm-badge.offer {
		background: #6366f1;
	}

.hm-card-actions {
	position: absolute;
	right: 6px;
	top: 6px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

	.hm-card-actions a {
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background: #fff;
		color: var(--hm-dark);
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: .8rem;
		box-shadow: var(--hm-shadow);
		transition: .2s;
	}

		.hm-card-actions a:hover, .hm-card-actions a.is-active {
			background: var(--hm-primary);
			color: #fff;
		}

.hm-card-body {
	padding: 8px 10px 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.hm-card-title {
	font-size: .88rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

	.hm-card-title a:hover {
		color: var(--hm-primary);
	}

/* ---------- FEATURES ---------- */
.hm-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: #fff;
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow);
	overflow: hidden;
}

.hm-feature {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border: 0 solid var(--hm-line);
	border-width: 0 1px 1px 0;
}

	.hm-feature img {
		width: 32px;
		height: 32px;
		flex: none;
	}

	.hm-feature h4 {
		font-size: .85rem;
		color: var(--hm-dark);
	}

	.hm-feature p {
		font-size: .74rem;
	}

/* ---------- BIG BANNER ---------- */
.hm-big {
	border-radius: var(--hm-radius);
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
}

	.hm-big::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(17,24,39,.55);
	}

.hm-big-body {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	padding: clamp(22px, 5vw, 56px) 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

	.hm-big-body h6 {
		color: #ffd1c7;
		font-size: .85rem;
		letter-spacing: .1em;
		text-transform: uppercase;
	}

	.hm-big-body h2 {
		font-size: clamp(1.3rem, 4vw, 2.6rem);
		font-weight: 800;
	}

		.hm-big-body h2 span {
			color: var(--hm-primary);
		}

/* ---------- VIDEO ---------- */
.hm-video {
	position: relative;
	border-radius: var(--hm-radius);
	background-size: cover;
	background-position: center;
	min-height: clamp(150px, 30vw, 380px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

	.hm-video::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(17,24,39,.35);
	}

.hm-play {
	position: relative;
	z-index: 1;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--hm-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	animation: hmPulse 2s infinite;
}

@keyframes hmPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255,77,46,.55);
	}

	70% {
		box-shadow: 0 0 0 18px rgba(255,77,46,0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255,77,46,0);
	}
}

.hm-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 3;
}

/* ---------- MINI LISTS ---------- */
.hm-list {
	background: #fff;
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow);
	padding: 10px 12px;
}

.hm-list-title {
	font-size: 1rem;
	color: var(--hm-dark);
	padding-bottom: 6px;
	margin-bottom: 4px;
	border-bottom: 2px solid var(--hm-line);
	position: relative;
}

	.hm-list-title::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: -2px;
		width: 46px;
		height: 2px;
		background: var(--hm-primary);
	}

.hm-list-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--hm-line);
}

	.hm-list-item:last-child {
		border-bottom: 0;
	}

.hm-list-img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f8;
}

	.hm-list-img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

.hm-list-info {
	flex: 1;
	min-width: 0;
}

	.hm-list-info h4 {
		font-size: .85rem;
		font-weight: 600;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

		.hm-list-info h4 a:hover {
			color: var(--hm-primary);
		}

.product-list-btn {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hm-bg);
	color: var(--hm-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	transition: .2s;
}

	.product-list-btn:hover {
		background: var(--hm-primary);
		color: #fff;
	}

/* ---------- DEAL ---------- */
.hm-deal {
	position: relative;
	background: linear-gradient(120deg, #1f2937, #111827);
	color: #fff;
	border-radius: var(--hm-radius);
	overflow: hidden;
	display: grid;
}

.hm-deal-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	align-items: center;
	padding: 14px 14px 34px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s, visibility .6s;
}

	.hm-deal-slide.is-active {
		opacity: 1;
		visibility: visible;
	}

.hm-deal-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

	.hm-deal-text h2 {
		font-size: clamp(1.2rem, 3vw, 2rem);
		font-weight: 800;
	}

	.hm-deal-text p {
		font-size: .88rem;
		color: #d1d5db;
		max-width: 480px;
	}

.hm-deal-media {
	position: relative;
	max-width: 260px;
	margin-inline: auto;
}

.hm-deal-off {
	position: absolute;
	right: 0;
	top: 0;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--hm-primary);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: .7rem;
	line-height: 1.05;
}

	.hm-deal-off b {
		font-size: 1.05rem;
	}

.hm-countdown {
	display: flex;
	gap: 6px;
}

	.hm-countdown .cd {
		min-width: 48px;
		text-align: center;
		background: rgba(255,255,255,.12);
		border-radius: 10px;
		padding: 5px 4px;
	}

		.hm-countdown .cd b {
			display: block;
			font-size: 1.05rem;
			line-height: 1.1;
		}

		.hm-countdown .cd small {
			font-size: .62rem;
			color: #d1d5db;
			text-transform: uppercase;
		}

.hm-deal-dots button {
	background: rgba(255,255,255,.35);
}

/* ---------- SELLERS ---------- */
.hm-sellers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hm-gap);
}

.hm-seller {
	background: #fff;
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow);
	padding: 8px;
	text-align: center;
	transition: .2s;
}

	.hm-seller:hover {
		transform: translateY(-3px);
	}

	.hm-seller img {
		width: 100%;
		aspect-ratio: 1/1;
		object-fit: cover;
		border-radius: 10px;
	}

	.hm-seller span {
		display: block;
		margin-top: 6px;
		font-weight: 600;
		font-size: .85rem;
		color: var(--hm-dark);
	}

/* ---------- GALLERY ---------- */
.hm-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
}

.hm-gal {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
	display: block;
}

	.hm-gal img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .5s;
	}

	.hm-gal:hover img {
		transform: scale(1.08);
	}

	.hm-gal i {
		position: absolute;
		inset: 0;
		margin: auto;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		background: var(--hm-primary);
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		transform: scale(.6);
		transition: .3s;
	}

	.hm-gal:hover i {
		opacity: 1;
		transform: none;
	}

.hm-gal-01 {
	grid-column: span 2;
}

/* lightbox */
.hm-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
}

	.hm-lb img {
		max-width: 100%;
		max-height: 90vh;
		border-radius: 8px;
	}

	.hm-lb button {
		position: absolute;
		background: rgba(255,255,255,.15);
		color: #fff;
		border: 0;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		cursor: pointer;
		font-size: 1.1rem;
	}

	.hm-lb .x {
		top: 12px;
		right: 12px;
	}

	.hm-lb .p {
		left: 10px;
	}

	.hm-lb .n {
		right: 10px;
	}

/* ---------- TESTIMONIALS ---------- */
.hm-testi {
	background: linear-gradient(120deg, #111827, #1f2937);
	padding-block: clamp(16px, 3vw, 34px);
	margin-top: var(--hm-sec);
}

	.hm-testi + .hm-sec {
		padding-top: var(--hm-sec);
	}

.hm-track-testi {
	grid-auto-columns: 92%;
}

.hm-testi-card {
	background: #fff;
	border-radius: var(--hm-radius);
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hm-testi-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

	.hm-testi-author img {
		width: 46px;
		height: 46px;
		border-radius: 50%;
		object-fit: cover;
	}

	.hm-testi-author h4 {
		font-size: .92rem;
		color: var(--hm-dark);
	}

	.hm-testi-author p {
		font-size: .75rem;
	}

.hm-testi-text {
	font-size: .86rem;
}

/* ---------- BLOG ---------- */
.hm-blog {
	background: #fff;
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hm-blog-img {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

	.hm-blog-img img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .5s;
	}

.hm-blog:hover .hm-blog-img img {
	transform: scale(1.06);
}

.hm-blog-date {
	position: absolute;
	left: 8px;
	bottom: 8px;
	background: var(--hm-primary);
	color: #fff;
	font-size: .72rem;
	padding: 3px 9px;
	border-radius: 99px;
}

.hm-blog-body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hm-blog-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	font-size: .74rem;
	color: #6b7280;
}

.hm-blog-body h4 {
	font-size: .98rem;
	line-height: 1.35;
	color: var(--hm-dark);
}

	.hm-blog-body h4 a:hover {
		color: var(--hm-primary);
	}

.hm-blog-body p {
	font-size: .84rem;
}

/* ---------- NEWSLETTER ---------- */
.hm-news {
	background: linear-gradient(120deg, var(--hm-primary), #ff8a4c);
	color: #fff;
	border-radius: var(--hm-radius);
	text-align: center;
	padding: clamp(16px, 3.5vw, 36px) 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

	.hm-news h3 {
		font-size: clamp(1.15rem, 3vw, 2rem);
		font-weight: 800;
	}

		.hm-news h3 span {
			color: #111827;
		}

.hm-news-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 520px;
	margin-top: 4px;
}

.hm-input {
	width: 100%;
	padding: 10px 16px;
	border-radius: 999px;
	border: 0;
	outline: 0;
	font-size: .9rem;
	color: var(--hm-dark);
}

.hm-news .hm-btn {
	background: var(--hm-dark);
}

.hm-news-msg {
	font-size: .82rem;
	margin-top: 2px;
}

/* ---------- INSTAGRAM ---------- */
.hm-track-insta {
	grid-auto-columns: calc((100% - 2 * var(--hm-gap)) / 3);
}

.hm-insta {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1/1;
	display: block;
}

	.hm-insta img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .5s;
	}

	.hm-insta:hover img {
		transform: scale(1.08);
	}

	.hm-insta i {
		position: absolute;
		inset: 0;
		margin: auto;
		width: 34px;
		height: 34px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		font-size: 1.3rem;
		opacity: 0;
		transition: .3s;
	}

	.hm-insta::after {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(255,77,46,.55);
		opacity: 0;
		transition: .3s;
	}

	.hm-insta:hover::after, .hm-insta:hover i {
		opacity: 1;
	}

	.hm-insta i {
		z-index: 2;
	}

/* ---------- TOP CATEGORY (styles component output) ---------- */
.hm-cats {
	min-width: 0;
}

	.hm-cats .hm-cat-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--hm-gap);
		margin: 0 !important;
		padding: 0;
		list-style: none;
	}

		.hm-cats .hm-cat-grid > * {
			width: auto !important;
			max-width: none !important;
			flex: none !important;
			padding: 0 !important;
			margin: 0 !important;
			min-width: 0;
		}

	.hm-cats .hm-cat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		text-align: center;
		background: #fff;
		border-radius: var(--hm-radius);
		box-shadow: var(--hm-shadow);
		padding: 10px 6px;
		transition: transform .2s, box-shadow .2s;
		color: var(--hm-dark);
	}

		.hm-cats .hm-cat-item:hover {
			transform: translateY(-3px);
			box-shadow: 0 6px 16px rgba(17,24,39,.12);
		}

		.hm-cats .hm-cat-item * {
			max-width: 100%;
		}

		.hm-cats .hm-cat-item img {
			width: clamp(52px, 9vw, 92px);
			height: clamp(52px, 9vw, 92px);
			object-fit: cover;
			border-radius: 50%;
			background: #f3f4f8;
			margin: 0 auto;
			display: block;
			font-size: 0;
		}

		.hm-cats .hm-cat-item a {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 6px;
			width: 100%;
		}

		.hm-cats .hm-cat-item :is(h3, h4, h5, h6, p, span, strong, b) {
			margin: 0;
			font-size: .82rem;
			font-weight: 600;
			line-height: 1.25;
			color: var(--hm-dark);
			word-break: break-word;
		}

		.hm-cats .hm-cat-item:hover :is(h3, h4, h5, h6, p, span, strong, b) {
			color: var(--hm-primary);
		}
/* brands: carousel track (swipe + arrows) */
.hm-brands .hm-track {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--hm-gap)) / 3);
	gap: var(--hm-gap);
	margin: 0 !important;
	padding: 0 0 4px;
	flex-wrap: nowrap;
}

	.hm-brands .hm-track > * {
		width: auto !important;
		max-width: none !important;
		flex: none !important;
		padding: 0 !important;
		margin: 0 !important;
		min-width: 0;
	}

@media (min-width: 480px) {
	.hm-brands .hm-track {
		grid-auto-columns: calc((100% - 3 * var(--hm-gap)) / 4);
	}
}

@media (min-width: 768px) {
	.hm-brands .hm-track {
		grid-auto-columns: calc((100% - 4 * var(--hm-gap)) / 5);
	}
}

@media (min-width: 1024px) {
	.hm-brands .hm-track {
		grid-auto-columns: calc((100% - 5 * var(--hm-gap)) / 6);
	}
}

@media (min-width: 1280px) {
	.hm-brands .hm-track {
		grid-auto-columns: calc((100% - 7 * var(--hm-gap)) / 8);
	}
}

/* brands: rectangular logo cards */
.hm-brands .hm-cat-item {
	justify-content: center;
	min-height: 70px;
}

	.hm-brands .hm-cat-item img {
		width: 100%;
		height: clamp(36px, 6vw, 60px);
		border-radius: 8px;
		object-fit: contain;
		background: transparent;
	}

@media (min-width: 480px) {
	.hm-cats .hm-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 640px) {
	.hm-cats .hm-cat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.hm-cats .hm-cat-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.hm-cats .hm-cat-item {
		padding: 12px 8px;
	}
}

@media (max-width: 767.98px) {
	#quickview .modal-body {
		padding: 10px;
	}

	#quickview .row.g-4 {
		--bs-gutter-y: .75rem;
	}
}

/* toast */
.hm-toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%) translateY(20px);
	background: var(--hm-dark);
	color: #fff;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: .85rem;
	opacity: 0;
	transition: .3s;
	z-index: 99999;
	pointer-events: none;
	max-width: 92vw;
}

	.hm-toast.show {
		opacity: 1;
		transform: translateX(-50%);
	}

	.hm-toast.err {
		background: #dc2626;
	}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 480px) {
	.hm-track {
		grid-auto-columns: calc((100% - 2 * var(--hm-gap)) / 3);
	}

	.hm-features {
		grid-template-columns: repeat(2, 1fr);
	}

	.hm-sellers {
		grid-template-columns: repeat(3, 1fr);
	}

	.hm-track-testi {
		grid-auto-columns: 80%;
	}

	.hm-news-form {
		flex-direction: row;
	}

		.hm-news-form .hm-btn {
			flex: none;
		}
}

@media (min-width: 640px) {
	.hm-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

		.hm-grid-3 > :last-child:nth-child(odd) {
			grid-column: span 2;
		}

	.hm-track-testi {
		grid-auto-columns: calc((100% - var(--hm-gap)) / 2);
	}

	.hm-track-insta {
		grid-auto-columns: calc((100% - 3 * var(--hm-gap)) / 4);
	}

	.hm-gallery {
		gap: 8px;
	}
}

@media (min-width: 768px) {
	.hm-arrows {
		display: flex;
	}

	.hm-track {
		grid-auto-columns: calc((100% - 3 * var(--hm-gap)) / 4);
	}

	.hm-features {
		grid-template-columns: repeat(4, 1fr);
	}

	.hm-feature {
		padding: 12px;
	}

	.hm-sellers {
		grid-template-columns: repeat(4, 1fr);
	}

	.hm-gallery {
		grid-template-columns: repeat(4, 1fr);
	}

	.hm-gal-01 {
		grid-column: span 2;
		grid-row: span 2;
		aspect-ratio: auto;
	}

	.hm-gal-06 {
		grid-column: span 2;
	}

	.hm-hero-slide {
		grid-template-columns: 1.1fr 1fr;
		gap: 20px;
		padding: 24px 28px 36px;
	}

	.hm-hero-media {
		order: 0;
		width: 100%;
		max-width: 420px;
	}

		.hm-hero-media img {
			max-height: 340px;
		}

	.hm-hero-text {
		text-align: left;
	}

		.hm-hero-text p {
			margin-inline: 0;
		}

	.hm-hero-btns {
		justify-content: flex-start;
	}

	.hm-hero-dots {
		justify-content: flex-start;
		left: 28px;
	}

	.hm-hero-price {
		width: 78px;
		height: 78px;
		font-size: .92rem;
	}

	.hm-deal-slide {
		grid-template-columns: 1.2fr 1fr;
		gap: 20px;
		padding: 24px 28px 36px;
	}

	.hm-deal-media {
		max-width: 340px;
	}

	.hm-deal-dots {
		justify-content: flex-start;
		left: 28px;
	}

	.hm-track-insta {
		grid-auto-columns: calc((100% - 4 * var(--hm-gap)) / 5);
	}
}

@media (min-width: 1024px) {
	.hm-grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

		.hm-grid-3 > :last-child:nth-child(odd) {
			grid-column: auto;
		}

	.hm-track {
		grid-auto-columns: calc((100% - 4 * var(--hm-gap)) / 5);
	}

	.hm-track-testi {
		grid-auto-columns: calc((100% - 2 * var(--hm-gap)) / 3);
	}

	.hm-track-insta {
		grid-auto-columns: calc((100% - 6 * var(--hm-gap)) / 7);
	}

	.hm-card-actions {
		opacity: 0;
		transform: translateX(8px);
		transition: .25s;
	}

	.hm-card:hover .hm-card-actions {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 1280px) {
	.hm-track {
		grid-auto-columns: calc((100% - 5 * var(--hm-gap)) / 6);
	}

	.hm-sellers {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media (min-width: 1536px) {
	.hm-wrap {
		max-width: 1600px;
	}
}

/* touch devices: actions always visible */
@media (hover: none) {
	.hm-card-actions {
		opacity: 1 !important;
		transform: none !important;
	}
}
