/**
 * Happy Metal — main design system + layout.
 *
 * An industrial aesthetic for a steel & metal storefront: gunmetal greys,
 * a hot accent, condensed uppercase headings and sharp, engineered edges.
 *
 * @package HappyMetal
 */

/* ===========================================================================
   1. Design tokens
   =========================================================================== */
:root {
	/* Steel palette */
	--hm-ink: #14171c;
	--hm-steel-900: #1d2128;
	--hm-steel-800: #272c34;
	--hm-steel-700: #353b45;
	--hm-steel-600: #4a515c;
	--hm-steel-500: #6b7280;
	--hm-steel-400: #9aa1ab;
	--hm-steel-300: #c5cad1;
	--hm-steel-200: #e2e5e9;
	--hm-steel-100: #f1f3f5;
	--hm-steel-50: #f7f8fa;
	--hm-white: #ffffff;

	/* Accent (overridable from the Customizer via wp_head) */
	--hm-accent: #f97316;
	--hm-accent-dark: #c2410c;

	--hm-success: #16a34a;
	--hm-danger: #dc2626;

	/* Typography */
	--hm-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--hm-font-head: "Oswald", "Arial Narrow", "Inter", sans-serif;

	/* Spacing & shape */
	--hm-container: 1200px;
	--hm-gap: clamp(1rem, 2.5vw, 2rem);
	--hm-radius: 3px;
	--hm-radius-lg: 6px;
	--hm-border: 1px solid var(--hm-steel-200);

	--hm-shadow-sm: 0 1px 2px rgba(20, 23, 28, 0.08);
	--hm-shadow: 0 6px 20px rgba(20, 23, 28, 0.08);
	--hm-shadow-lg: 0 18px 40px rgba(20, 23, 28, 0.16);

	--hm-header-h: 76px;
	--hm-transition: 0.2s ease;
}

/* ===========================================================================
   2. Reset & base
   =========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--hm-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--hm-steel-900);
	background: var(--hm-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--hm-accent-dark);
	text-decoration: none;
	transition: color var(--hm-transition);
}

a:hover,
a:focus {
	color: var(--hm-ink);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hm-font-head);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--hm-ink);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.25em;
	border-left: 4px solid var(--hm-accent);
	background: var(--hm-steel-50);
	font-style: italic;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	padding: 1rem 1.25rem;
	background: var(--hm-steel-900);
	color: var(--hm-steel-100);
	border-radius: var(--hm-radius);
	overflow-x: auto;
}

hr {
	border: 0;
	border-top: var(--hm-border);
	margin: 2rem 0;
}

:focus-visible {
	outline: 3px solid var(--hm-accent);
	outline-offset: 2px;
}

/* ===========================================================================
   3. Accessibility helpers
   =========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--hm-ink);
	color: var(--hm-white);
	border-radius: 0 0 var(--hm-radius) 0;
}

.skip-link:focus {
	left: 0;
	color: var(--hm-white);
}

/* ===========================================================================
   4. Layout
   =========================================================================== */
.hm-container {
	width: 100%;
	max-width: var(--hm-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.hm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hm-main--page {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 992px) {
	.hm-layout:has(.hm-sidebar) {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
	body.no-sidebar .hm-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

.hm-section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hm-section--alt,
.hm-products--alt {
	background: var(--hm-steel-50);
}

.hm-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
	border-bottom: 2px solid var(--hm-steel-200);
	padding-bottom: 0.75rem;
}

.hm-section__title {
	margin: 0;
	position: relative;
}

.hm-section__title::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 1em;
	margin-right: 0.6rem;
	background: var(--hm-accent);
	vertical-align: -0.05em;
}

.hm-section__link {
	font-family: var(--hm-font-head);
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: var(--hm-steel-600);
}

.hm-section__link:hover {
	color: var(--hm-accent-dark);
}

/* ===========================================================================
   5. Buttons
   =========================================================================== */
.hm-button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	font-family: var(--hm-font-head);
}

.hm-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	background: var(--hm-accent);
	color: var(--hm-white);
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 2px solid var(--hm-accent);
	border-radius: var(--hm-radius);
	cursor: pointer;
	transition: background var(--hm-transition), border-color var(--hm-transition), color var(--hm-transition), transform var(--hm-transition);
}

.hm-button:hover,
.hm-button:focus {
	background: var(--hm-accent-dark);
	border-color: var(--hm-accent-dark);
	color: var(--hm-white);
	transform: translateY(-1px);
}

.hm-button--lg {
	padding: 1rem 1.8rem;
	font-size: 1.05rem;
}

.hm-button--ghost {
	background: transparent;
	color: var(--hm-ink);
	border-color: var(--hm-steel-300);
}

.hm-button--ghost:hover,
.hm-button--ghost:focus {
	background: var(--hm-ink);
	border-color: var(--hm-ink);
	color: var(--hm-white);
}

.hm-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	position: relative;
	color: var(--hm-steel-700);
	background: transparent;
	border: 0;
	border-radius: var(--hm-radius);
	cursor: pointer;
	transition: background var(--hm-transition), color var(--hm-transition);
}

.hm-icon-button:hover,
.hm-icon-button:focus {
	background: var(--hm-steel-100);
	color: var(--hm-ink);
}

/* ===========================================================================
   6. Forms
   =========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 0.7rem 0.9rem;
	font: inherit;
	color: var(--hm-ink);
	background: var(--hm-white);
	border: 1px solid var(--hm-steel-300);
	border-radius: var(--hm-radius);
	transition: border-color var(--hm-transition), box-shadow var(--hm-transition);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--hm-accent);
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
	outline: none;
}

label {
	font-weight: 600;
}

.hm-searchform {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
}

.hm-searchform__input {
	flex: 1;
}

.hm-searchform__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-inline: 1.1rem;
	background: var(--hm-ink);
	color: var(--hm-white);
	border: 0;
	border-radius: var(--hm-radius);
	cursor: pointer;
}

.hm-searchform__submit:hover {
	background: var(--hm-accent);
}

/* ===========================================================================
   7. Top bar
   =========================================================================== */
.hm-topbar {
	background: var(--hm-ink);
	color: var(--hm-steel-300);
	font-size: 0.85rem;
}

.hm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 40px;
	padding-block: 0.45rem;
	flex-wrap: wrap;
}

.hm-topbar__links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Each platform/social icon sits in a white box framed in its brand colour. */
.hm-topbar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: var(--hm-white);
	border: 2px solid var(--hm-steel-300);
	border-radius: 8px;
	transition: transform var(--hm-transition), box-shadow var(--hm-transition);
}

.hm-topbar__icon .hm-icon {
	width: 27px;
	height: 27px;
}

.hm-topbar__icon:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

/* Frame + icon take the platform's logo colour */
.hm-topbar__icon--shopee   { border-color: #ee4d2d; }
.hm-topbar__icon--shopee   .hm-icon { color: #ee4d2d; }
.hm-topbar__icon--lazada   { border-color: #0f146e; }
.hm-topbar__icon--lazada   .hm-icon { color: #0f146e; }
.hm-topbar__icon--tiktok   { border-color: #010101; }
.hm-topbar__icon--tiktok   .hm-icon { color: #010101; }
.hm-topbar__icon--line     { border-color: #06c755; }
.hm-topbar__icon--line     .hm-icon { color: #06c755; }
.hm-topbar__icon--facebook { border-color: #1877f2; }
.hm-topbar__icon--facebook .hm-icon { color: #1877f2; }
.hm-topbar__icon--youtube  { border-color: #ff0000; }
.hm-topbar__icon--youtube  .hm-icon { color: #ff0000; }

@media (max-width: 600px) {
	.hm-topbar__inner {
		justify-content: center;
		gap: 0.5rem;
	}
	.hm-topbar__icon {
		width: 40px;
		height: 40px;
	}
	.hm-topbar__icon .hm-icon {
		width: 24px;
		height: 24px;
	}
}

/* ===========================================================================
   8. Header & navigation
   =========================================================================== */
.hm-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--hm-white);
	border-bottom: var(--hm-border);
	transition: box-shadow var(--hm-transition);
}

.hm-header.is-stuck {
	box-shadow: var(--hm-shadow);
}

.hm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 3vw, 2rem);
	min-height: var(--hm-header-h);
	flex-wrap: wrap;
}

.hm-header__brand {
	flex: 0 0 auto;
}

.hm-header__brand img,
.custom-logo {
	max-height: 52px;
	width: auto;
}

/* ---------------------------------------------------------------------------
   Right-side tools: "All categories" dropdown + product search
   --------------------------------------------------------------------------- */
.hm-header__tools {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
}

.hm-cats {
	position: relative;
	flex: 0 0 auto;
}

.hm-cats__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.1rem;
	font-family: var(--hm-font-head);
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--hm-white);
	background: var(--hm-ink);
	border: 2px solid var(--hm-ink);
	border-radius: var(--hm-radius);
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--hm-transition), border-color var(--hm-transition);
}

.hm-cats__toggle:hover,
.hm-cats__toggle[aria-expanded="true"] {
	background: var(--hm-accent);
	border-color: var(--hm-accent);
}

.hm-cats__caret {
	transition: transform var(--hm-transition);
}

.hm-cats__toggle[aria-expanded="true"] .hm-cats__caret {
	transform: rotate(180deg);
}

.hm-cats__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 1100;
	min-width: 260px;
	max-height: 70vh;
	overflow-y: auto;
	background: var(--hm-white);
	border: var(--hm-border);
	border-top: 3px solid var(--hm-accent);
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow-lg);
}

.hm-cats__panel[hidden] {
	display: none;
}

.hm-cats__list {
	list-style: none;
	margin: 0;
	padding: 0.4rem 0;
}

.hm-cats__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 1.1rem;
	color: var(--hm-steel-800);
	font-weight: 500;
}

.hm-cats__list a:hover {
	background: var(--hm-steel-100);
	color: var(--hm-accent-dark);
}

.hm-cats__all a {
	font-family: var(--hm-font-head);
	text-transform: uppercase;
	font-size: 0.9rem;
	color: var(--hm-ink);
	border-bottom: var(--hm-border);
}

.hm-cats__count {
	flex: 0 0 auto;
	font-size: 0.78rem;
	color: var(--hm-steel-500);
	background: var(--hm-steel-100);
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
}

.hm-header-search {
	display: flex;
	align-items: stretch;
	flex: 1 1 300px;
	max-width: 420px;
	min-width: 170px;
}

.hm-header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border-right: 0;
	border-radius: var(--hm-radius) 0 0 var(--hm-radius);
}

.hm-header-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-inline: 1rem;
	color: var(--hm-white);
	background: var(--hm-accent);
	border: 2px solid var(--hm-accent);
	border-radius: 0 var(--hm-radius) var(--hm-radius) 0;
	cursor: pointer;
	transition: background var(--hm-transition);
}

.hm-header-search__btn:hover {
	background: var(--hm-accent-dark);
	border-color: var(--hm-accent-dark);
}

@media (max-width: 720px) {
	.hm-header__inner {
		padding-block: 0.75rem;
	}
	.hm-header__tools {
		flex: 1 1 100%;
		margin-left: 0;
		flex-wrap: wrap;
	}
	.hm-cats {
		flex: 1 1 auto;
	}
	.hm-cats__toggle {
		width: 100%;
		justify-content: center;
	}
	.hm-cats__panel {
		left: 0;
		right: 0;
		min-width: 0;
	}
	.hm-header-search {
		flex: 1 1 100%;
		max-width: none;
	}
}

.site-title {
	font-family: var(--hm-font-head);
	font-size: 1.6rem;
	margin: 0;
	line-height: 1;
}

.site-title a {
	color: var(--hm-ink);
}

.site-description {
	margin: 0;
	font-size: 0.8rem;
	color: var(--hm-steel-500);
	text-transform: none;
}

.hm-nav {
	flex: 1;
}

.hm-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hm-menu li {
	position: relative;
}

.hm-menu a {
	display: block;
	padding: 0.6rem 0.9rem;
	font-family: var(--hm-font-head);
	font-size: 0.98rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--hm-steel-800);
	border-bottom: 2px solid transparent;
}

.hm-menu a:hover,
.hm-menu .current-menu-item > a,
.hm-menu .current-menu-ancestor > a {
	color: var(--hm-accent-dark);
	border-bottom-color: var(--hm-accent);
}

/* Sub-menus */
.hm-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.4rem 0;
	list-style: none;
	background: var(--hm-white);
	border: var(--hm-border);
	border-top: 3px solid var(--hm-accent);
	box-shadow: var(--hm-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--hm-transition), transform var(--hm-transition), visibility var(--hm-transition);
	z-index: 10;
}

.hm-menu li:hover > .sub-menu,
.hm-menu li:focus-within > .sub-menu,
.hm-menu .sub-menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hm-menu .sub-menu a {
	padding: 0.5rem 1.1rem;
	border-bottom: 0;
	text-transform: none;
	font-family: var(--hm-font-body);
	letter-spacing: 0;
}

.hm-header__actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	flex: 0 0 auto;
}

.hm-nav-toggle {
	display: none;
}

.hm-nav-toggle__bars {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 22px;
}

.hm-nav-toggle__bars span {
	height: 2px;
	background: currentColor;
	transition: transform var(--hm-transition), opacity var(--hm-transition);
}

.hm-nav-toggle[aria-expanded="true"] .hm-nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hm-nav-toggle[aria-expanded="true"] .hm-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.hm-nav-toggle[aria-expanded="true"] .hm-nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Cart badge */
.hm-cart {
	color: var(--hm-steel-800);
}

.hm-cart__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	font-family: var(--hm-font-head);
	font-size: 0.7rem;
	line-height: 18px;
	text-align: center;
	color: var(--hm-white);
	background: var(--hm-accent);
	border-radius: 999px;
}

/* Search panel */
.hm-search-panel {
	border-top: var(--hm-border);
	background: var(--hm-steel-50);
	padding-block: 1rem;
}

.hm-search-panel[hidden] {
	display: none;
}

/* ===========================================================================
   9. Mobile navigation
   =========================================================================== */
@media (max-width: 991px) {
	.hm-nav-toggle {
		display: inline-flex;
	}

	.hm-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(82vw, 360px);
		background: var(--hm-white);
		border-left: var(--hm-border);
		box-shadow: var(--hm-shadow-lg);
		padding: 5rem 1.25rem 2rem;
		transform: translateX(100%);
		transition: transform 0.28s ease;
		overflow-y: auto;
		z-index: 1200;
	}

	.hm-nav.is-open {
		transform: translateX(0);
	}

	.hm-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.hm-menu > li {
		border-bottom: var(--hm-border);
	}

	.hm-menu a {
		padding: 0.85rem 0.5rem;
		border-bottom: 0;
	}

	.hm-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-top: 0;
		padding-left: 1rem;
		display: none;
	}

	.hm-menu .sub-menu.is-open {
		display: block;
	}

	body.hm-nav-open {
		overflow: hidden;
	}

	.hm-nav-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(20, 23, 28, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--hm-transition), visibility var(--hm-transition);
		z-index: 1100;
	}

	.hm-nav-backdrop.is-visible {
		opacity: 1;
		visibility: visible;
	}

	/* Collapsible sub-menu toggles (injected by app.js) */
	.hm-menu li.menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.hm-menu li.menu-item-has-children > a {
		flex: 1;
	}

	.hm-menu li.menu-item-has-children > .sub-menu {
		flex: 1 1 100%;
	}

	.hm-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		flex: 0 0 auto;
		background: transparent;
		border: 0;
		color: var(--hm-steel-600);
		cursor: pointer;
	}

	.hm-submenu-toggle span {
		width: 9px;
		height: 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform var(--hm-transition);
	}

	.hm-submenu-toggle.is-open span {
		transform: rotate(-135deg);
	}
}

/* The injected toggle is for mobile only. */
.hm-submenu-toggle {
	display: none;
}

/* ===========================================================================
   10. Breadcrumb
   =========================================================================== */
.hm-breadcrumb {
	background: var(--hm-steel-50);
	border-bottom: var(--hm-border);
	font-size: 0.85rem;
	color: var(--hm-steel-500);
}

.hm-breadcrumb .hm-container {
	padding-block: 0.7rem;
}

.hm-breadcrumb a {
	color: var(--hm-steel-600);
}

.hm-breadcrumb a:hover {
	color: var(--hm-accent-dark);
}

.hm-breadcrumb .sep {
	margin-inline: 0.5rem;
	color: var(--hm-steel-300);
}

.hm-breadcrumb .current {
	color: var(--hm-ink);
	font-weight: 600;
}

/* ===========================================================================
   11. Hero
   =========================================================================== */
.hm-hero {
	position: relative;
	background: linear-gradient(135deg, var(--hm-steel-900) 0%, var(--hm-steel-700) 100%);
	color: var(--hm-white);
	overflow: hidden;
}

.hm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px);
	pointer-events: none;
}

.hm-hero.has-image {
	background-image: linear-gradient(120deg, rgba(20, 23, 28, 0.88) 0%, rgba(20, 23, 28, 0.55) 100%), var(--hm-hero-image);
	background-size: cover;
	background-position: center;
}

.hm-hero__inner {
	position: relative;
	z-index: 1;
	padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hm-hero__content {
	max-width: 640px;
}

.hm-hero__eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.3rem 0.8rem;
	font-family: var(--hm-font-head);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--hm-accent);
	border: 1px solid rgba(249, 115, 22, 0.5);
	border-radius: var(--hm-radius);
}

.hm-hero__title {
	color: var(--hm-white);
	font-size: clamp(2.2rem, 5.5vw, 3.8rem);
	margin: 0 0 1rem;
}

.hm-hero__text {
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	color: var(--hm-steel-200);
	margin-bottom: 2rem;
}

.hm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hm-hero .hm-button--ghost {
	color: var(--hm-white);
	border-color: rgba(255, 255, 255, 0.4);
}

.hm-hero .hm-button--ghost:hover {
	background: var(--hm-white);
	color: var(--hm-ink);
	border-color: var(--hm-white);
}

/* ===========================================================================
   12. Trust bar
   =========================================================================== */
.hm-trust {
	background: var(--hm-ink);
	color: var(--hm-steel-200);
}

.hm-trust__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	padding-block: 0;
}

.hm-trust__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.6rem clamp(1rem, 2vw, 1.6rem);
	position: relative;
}

.hm-trust__item + .hm-trust__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: var(--hm-steel-700);
}

.hm-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
	color: var(--hm-accent);
	background: rgba(249, 115, 22, 0.12);
	border-radius: var(--hm-radius);
}

.hm-trust__title {
	margin: 0;
	font-size: 1rem;
	color: var(--hm-white);
}

.hm-trust__text {
	margin: 0;
	font-size: 0.85rem;
	color: var(--hm-steel-400);
}

/* ===========================================================================
   13. Category cards
   =========================================================================== */
.hm-categories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.hm-category-card {
	display: flex;
	flex-direction: column;
	background: var(--hm-white);
	border: var(--hm-border);
	border-radius: var(--hm-radius);
	overflow: hidden;
	color: inherit;
	transition: border-color var(--hm-transition), box-shadow var(--hm-transition), transform var(--hm-transition);
}

.hm-category-card:hover {
	border-color: var(--hm-accent);
	box-shadow: var(--hm-shadow);
	transform: translateY(-3px);
	color: inherit;
}

.hm-category-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--hm-steel-100);
	color: var(--hm-steel-400);
	overflow: hidden;
}

.hm-category-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hm-category-card__body {
	padding: 0.9rem 1rem;
	border-top: var(--hm-border);
}

.hm-category-card__title {
	display: block;
	font-family: var(--hm-font-head);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--hm-ink);
}

.hm-category-card__count {
	font-size: 0.8rem;
	color: var(--hm-steel-500);
}

/* ===========================================================================
   14. Why / stats
   =========================================================================== */
.hm-why__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 860px) {
	.hm-why__grid {
		grid-template-columns: 1.1fr 1fr;
	}
}

.hm-why__list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: grid;
	gap: 0.75rem;
}

.hm-why__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.hm-why__list .hm-icon {
	color: var(--hm-success);
	flex: 0 0 auto;
	margin-top: 0.15rem;
}

.hm-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--hm-steel-200);
	border: 1px solid var(--hm-steel-200);
	border-radius: var(--hm-radius);
	overflow: hidden;
}

.hm-stats__item {
	background: var(--hm-white);
	padding: 1.75rem 1.25rem;
	text-align: center;
}

.hm-stats__value {
	display: block;
	font-family: var(--hm-font-head);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: var(--hm-ink);
	line-height: 1;
}

.hm-stats__label {
	font-size: 0.85rem;
	color: var(--hm-steel-500);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ===========================================================================
   15. CTA banner
   =========================================================================== */
.hm-cta {
	background: linear-gradient(135deg, var(--hm-accent) 0%, var(--hm-accent-dark) 100%);
	color: var(--hm-white);
}

.hm-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding-block: clamp(2rem, 5vw, 3rem);
}

.hm-cta__title {
	color: var(--hm-white);
	margin: 0 0 0.25rem;
}

.hm-cta__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}

.hm-cta .hm-button {
	background: var(--hm-ink);
	border-color: var(--hm-ink);
}

.hm-cta .hm-button:hover {
	background: var(--hm-white);
	border-color: var(--hm-white);
	color: var(--hm-ink);
}

/* ===========================================================================
   16. Blog: cards, posts, single
   =========================================================================== */
.hm-card {
	background: var(--hm-white);
	border: var(--hm-border);
	border-radius: var(--hm-radius);
	overflow: hidden;
}

.hm-posts {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.hm-posts--grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.hm-post-card {
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--hm-transition), transform var(--hm-transition);
}

.hm-post-card:hover {
	box-shadow: var(--hm-shadow);
	transform: translateY(-3px);
}

.hm-post-card .post-thumbnail {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.hm-post-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hm-post-card:hover .post-thumbnail img {
	transform: scale(1.04);
}

.hm-post-card__body {
	padding: 1.25rem 1.4rem 1.5rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.8rem;
	color: var(--hm-steel-500);
	margin-bottom: 0.5rem;
}

.entry-meta a {
	color: var(--hm-steel-600);
}

.entry-title {
	font-size: 1.25rem;
	margin: 0 0 0.6rem;
}

.entry-title a {
	color: var(--hm-ink);
}

.entry-title a:hover {
	color: var(--hm-accent-dark);
}

.hm-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--hm-font-head);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	color: var(--hm-accent-dark);
}

.hm-readmore:hover {
	gap: 0.6rem;
	color: var(--hm-ink);
}

/* Single entry */
.hm-entry {
	max-width: 820px;
}

.hm-entry .entry-header {
	margin-bottom: 1.5rem;
}

.hm-entry .post-thumbnail {
	margin-bottom: 1.75rem;
	border-radius: var(--hm-radius);
	overflow: hidden;
}

.entry-content > * {
	margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.8em;
}

.entry-content img {
	border-radius: var(--hm-radius);
}

.entry-footer,
.entry-tags {
	margin-top: 2rem;
	font-size: 0.85rem;
	color: var(--hm-steel-500);
}

.entry-tags a {
	display: inline-block;
	margin: 0 0.3rem 0.3rem 0;
	padding: 0.2rem 0.6rem;
	background: var(--hm-steel-100);
	border-radius: var(--hm-radius);
	color: var(--hm-steel-700);
}

/* Search result rows */
.hm-search-result {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	padding: 1.25rem;
}

@media (min-width: 600px) {
	.hm-search-result:has(.post-thumbnail) {
		grid-template-columns: 200px 1fr;
	}
}

.hm-search-result .post-thumbnail {
	border-radius: var(--hm-radius);
	overflow: hidden;
}

/* ===========================================================================
   17. Pagination & post navigation
   =========================================================================== */
.pagination,
.woocommerce-pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links,
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
	border: 0;
}

.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	font-family: var(--hm-font-head);
	color: var(--hm-steel-700);
	background: var(--hm-white);
	border: var(--hm-border);
	border-radius: var(--hm-radius);
}

.pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current,
.pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover {
	background: var(--hm-accent);
	border-color: var(--hm-accent);
	color: var(--hm-white);
}

.post-navigation {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: var(--hm-border);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hm-steel-500);
}

.post-navigation .nav-title {
	font-family: var(--hm-font-head);
	color: var(--hm-ink);
}

/* ===========================================================================
   18. Comments
   =========================================================================== */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: var(--hm-border);
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list ol {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: var(--hm-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--hm-steel-500);
}

/* ===========================================================================
   19. Sidebar & widgets
   =========================================================================== */
.hm-sidebar .widget,
.widget-area .widget {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: var(--hm-border);
}

.widget:last-child {
	border-bottom: 0;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--hm-accent);
	display: inline-block;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 0.4rem 0;
	border-bottom: 1px dashed var(--hm-steel-200);
}

.widget ul li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--hm-steel-700);
}

.widget a:hover {
	color: var(--hm-accent-dark);
}

/* ===========================================================================
   20. Footer
   =========================================================================== */
.hm-footer {
	background: var(--hm-steel-900);
	color: var(--hm-steel-400);
	margin-top: auto;
}

.hm-footer__top {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 820px) {
	.hm-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		align-items: start;
	}
	.hm-footer__store {
		padding-left: clamp(1.5rem, 4vw, 3rem);
		border-left: 1px solid var(--hm-steel-800);
	}
}

.hm-footer .site-title a,
.hm-footer__brand .custom-logo {
	color: var(--hm-white);
}

.hm-footer__about {
	margin: 1rem 0 1.25rem;
	max-width: 48ch;
	color: var(--hm-steel-400);
	font-size: 0.9rem;
	line-height: 1.7;
}

.hm-footer__about p {
	margin: 0 0 0.7rem;
}

.hm-footer__about p:last-child {
	margin-bottom: 0;
}

/* Right column: store / address */
.hm-footer__store-title {
	color: var(--hm-white);
	font-size: 1.15rem;
	margin: 0 0 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--hm-accent);
	display: inline-block;
}

.hm-footer__store-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.hm-footer__store-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--hm-steel-300);
	line-height: 1.6;
}

.hm-footer__store-list .hm-icon {
	color: var(--hm-accent);
	flex: 0 0 auto;
	margin-top: 0.2rem;
}

.hm-footer__store-list a {
	color: var(--hm-steel-200);
}

.hm-footer__store-list a:hover {
	color: var(--hm-accent);
}

/* Optional footer widget row (below the two columns) */
.hm-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: clamp(1.5rem, 4vw, 2.5rem);
	border-top: 1px solid var(--hm-steel-800);
}

.hm-footer .widget {
	border: 0;
	padding: 0;
	margin: 0;
}

.hm-footer .widget-title {
	color: var(--hm-white);
	font-size: 1rem;
	border-bottom-color: var(--hm-steel-700);
}

.hm-footer .widget a {
	color: var(--hm-steel-400);
}

.hm-footer .widget a:hover {
	color: var(--hm-accent);
}

.hm-footer .widget ul li {
	border-bottom-color: var(--hm-steel-800);
}

.hm-social {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.hm-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--hm-steel-300);
	background: var(--hm-steel-800);
	border-radius: var(--hm-radius);
	transition: background var(--hm-transition), color var(--hm-transition);
}

.hm-social a:hover {
	background: var(--hm-accent);
	color: var(--hm-white);
}

.hm-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-block: 1.25rem;
	border-top: 1px solid var(--hm-steel-800);
	font-size: 0.85rem;
}

.hm-footer__copyright {
	margin: 0;
}

.hm-footer-menu {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hm-footer-menu a {
	color: var(--hm-steel-400);
}

.hm-footer-menu a:hover {
	color: var(--hm-accent);
}

/* ===========================================================================
   21. Back to top
   =========================================================================== */
.hm-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--hm-white);
	background: var(--hm-ink);
	border: 0;
	border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow);
	cursor: pointer;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--hm-transition), transform var(--hm-transition), background var(--hm-transition);
	z-index: 900;
}

.hm-to-top .hm-icon {
	transform: rotate(-90deg);
}

.hm-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hm-to-top:hover {
	background: var(--hm-accent);
}

/* ===========================================================================
   22. 404
   =========================================================================== */
.hm-404 {
	text-align: center;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.hm-404 .error-404 {
	max-width: 640px;
	margin-inline: auto;
}

.hm-404__code {
	font-family: var(--hm-font-head);
	font-size: clamp(5rem, 18vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: var(--hm-steel-200);
	margin: 0;
}

.hm-404__title {
	margin: 0 0 0.6rem;
}

.hm-404__text {
	color: var(--hm-steel-600);
	margin-bottom: 1.75rem;
}

.hm-404__search {
	display: flex;
	align-items: stretch;
	max-width: 480px;
	margin: 0 auto 1.5rem;
}

.hm-404__search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.85rem 1rem;
	border-right: 0;
	border-radius: var(--hm-radius) 0 0 var(--hm-radius);
}

.hm-404__search-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-inline: 1.2rem;
	font-family: var(--hm-font-head);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--hm-white);
	background: var(--hm-accent);
	border: 2px solid var(--hm-accent);
	border-radius: 0 var(--hm-radius) var(--hm-radius) 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--hm-transition);
}

.hm-404__search-btn:hover {
	background: var(--hm-accent-dark);
	border-color: var(--hm-accent-dark);
}

.hm-404__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hm-404__cats {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: clamp(2rem, 5vw, 3rem);
	border-top: var(--hm-border);
}

.hm-404__cats-title {
	margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

/* ===========================================================================
   23. WordPress core / block alignment
   =========================================================================== */
.alignwide {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

@media (min-width: 1280px) {
	.alignwide {
		margin-inline: -120px;
		max-width: calc(100% + 240px);
	}
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.aligncenter {
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.5rem;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.85rem;
	color: var(--hm-steel-500);
	text-align: center;
	padding-top: 0.4rem;
}

.sticky .entry-title::after {
	content: "★";
	color: var(--hm-accent);
	margin-left: 0.4rem;
}

.page-links {
	margin-top: 1.5rem;
	font-family: var(--hm-font-head);
}

.page-links a,
.page-links > span {
	display: inline-block;
	min-width: 36px;
	padding: 0.3rem 0.6rem;
	margin-right: 0.3rem;
	text-align: center;
	border: var(--hm-border);
	border-radius: var(--hm-radius);
}

/* Page header (archives) */
.page-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-title {
	margin: 0;
}

.archive-description {
	margin-top: 0.75rem;
	color: var(--hm-steel-600);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
