/**
 * MarketTools theme styles.
 *
 * Layered roughly in the order the page is built: tokens, base, layout,
 * header, shop + filters, product card, single product, footer.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--mt-accent: #ff6a00;
	--mt-accent-600: #e85f00;
	--mt-accent-400: #ff8a3d;
	--mt-accent-200: #ffd7ba;
	--mt-accent-50: #fff4ec;

	--mt-ink: #171717;
	--mt-ink-700: #404040;
	--mt-ink-600: #525252;
	--mt-ink-500: #737373;
	--mt-ink-400: #a3a3a3;

	--mt-line: #e5e5e5;
	--mt-line-strong: #d4d4d4;
	--mt-surface: #ffffff;
	--mt-surface-2: #f5f5f5;
	--mt-bg: #f6f7f9;

	--mt-star: #ffb020;
	--mt-ok: #059669;
	--mt-danger: #dc2626;

	--mt-radius: 0.65rem;
	--mt-radius-lg: 1rem;
	--mt-radius-full: 999px;

	--mt-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--mt-shadow: 0 8px 24px -12px rgba(15, 23, 42, .18);
	--mt-shadow-accent: 0 8px 20px -8px rgba(255, 106, 0, .6);

	--mt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--mt-display: 'Montserrat', var(--mt-font);

	--mt-header-h: 74px;
	--mt-container: 1280px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--mt-bg);
	color: var(--mt-ink);
	font-family: var(--mt-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
	font-family: var(--mt-display);
	color: var(--mt-ink);
	line-height: 1.2;
	margin: 0 0 .5em;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--mt-accent);
}

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

button {
	font: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--mt-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: .6rem 1rem;
	background: #fff;
	border-radius: var(--mt-radius);
	box-shadow: var(--mt-shadow);
}

.mt-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.mt-main {
	flex: 1;
}

.container-x {
	width: 100%;
	max-width: var(--mt-container);
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 768px) {
	.container-x {
		padding-inline: 1.5rem;
	}
}

.mt-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
}

/* Buttons ------------------------------------------------------------------ */

.mt-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .65rem 1.25rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	background: #fff;
	color: var(--mt-ink);
	font-family: var(--mt-display);
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}

.mt-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	border-color: var(--mt-accent);
	color: var(--mt-accent);
	background: var(--mt-accent-50);
}

.mt-btn--accent,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button {
	border-color: transparent;
	background: linear-gradient(180deg, #ff7d1a 0%, var(--mt-accent) 100%);
	color: #fff;
	box-shadow: var(--mt-shadow-accent);
}

.mt-btn--accent:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover {
	filter: brightness(1.05);
	color: #fff;
	background: linear-gradient(180deg, #ff7d1a 0%, var(--mt-accent) 100%);
	box-shadow: 0 12px 26px -8px rgba(255, 106, 0, .7);
}

.mt-btn--accent:active {
	transform: translateY(1px);
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.mt-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fff;
}

.mt-announce {
	background: #171717;
	color: #e5e5e5;
	font-size: .75rem;
}

.mt-announce__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 36px;
	gap: 1rem;
}

.mt-announce__items {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	overflow: hidden;
}

.mt-announce__item {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	white-space: nowrap;
}

.mt-announce__item .mt-icon {
	color: var(--mt-accent-400);
	width: 14px;
	height: 14px;
}

.mt-announce__phone {
	display: none;
	align-items: center;
	gap: .4rem;
	white-space: nowrap;
}

.mt-announce__phone:hover {
	color: var(--mt-accent-400);
}

@media (min-width: 640px) {
	.mt-announce__phone {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	.mt-announce__item--wide {
		display: none;
	}
}

.mt-header__main {
	background: #fff;
	border-bottom: 1px solid var(--mt-line);
}

.mt-header__row {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--mt-header-h);
}

.mt-burger {
	display: inline-flex;
	padding: .5rem;
	margin-left: -.5rem;
	border: 0;
	background: none;
	color: var(--mt-ink-700);
}

.mt-burger .mt-icon {
	width: 24px;
	height: 24px;
}

@media (min-width: 1024px) {
	.mt-burger {
		display: none;
	}
}

.mt-header__brand {
	flex: none;
}

.mt-logo {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--mt-display);
	font-weight: 900;
	font-size: 1.1rem;
	letter-spacing: -.02em;
	color: var(--mt-ink);
}

.mt-logo:hover {
	color: var(--mt-ink);
}

.mt-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(180deg, #ff7d1a 0%, var(--mt-accent) 100%);
	color: #fff;
	font-size: 1rem;
	box-shadow: var(--mt-shadow-accent);
}

.mt-logo__text {
	display: none;
	text-transform: uppercase;
}

@media (min-width: 480px) {
	.mt-logo__text {
		display: inline;
	}
}

.custom-logo {
	max-height: 46px;
	width: auto;
}

.mt-header__search {
	display: none;
	flex: 1;
	max-width: 640px;
	margin-inline: auto;
}

.mt-header__search--mobile {
	padding-bottom: .75rem;
}

@media (min-width: 768px) {
	.mt-header__search {
		display: block;
	}

	.mt-header__search--mobile {
		display: none;
	}
}

.mt-search {
	position: relative;
	display: flex;
	width: 100%;
}

.mt-search__input {
	width: 100%;
	height: 44px;
	padding: 0 7.5rem 0 1rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius-full);
	background: #fff;
	font: inherit;
	color: var(--mt-ink);
}

.mt-search__input::placeholder {
	color: var(--mt-ink-400);
}

.mt-search__input:focus {
	outline: none;
	border-color: var(--mt-accent-400);
	box-shadow: 0 0 0 3px rgba(255, 138, 61, .25);
}

.mt-search__go {
	position: absolute;
	top: 4px;
	right: 4px;
	bottom: 4px;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding-inline: 1.15rem;
	border: 0;
	border-radius: var(--mt-radius-full);
	background: linear-gradient(180deg, #ff7d1a 0%, var(--mt-accent) 100%);
	color: #fff;
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 700;
	box-shadow: var(--mt-shadow-accent);
}

.mt-search__go:hover {
	filter: brightness(1.05);
}

@media (max-width: 479px) {
	.mt-search__go-label {
		display: none;
	}

	.mt-search__input {
		padding-right: 3.5rem;
	}
}

.mt-header__actions {
	display: flex;
	align-items: center;
	gap: .25rem;
	margin-left: auto;
}

.mt-action {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: .35rem .7rem;
	border-radius: var(--mt-radius);
	color: var(--mt-ink-700);
	transition: background-color .2s, color .2s;
}

.mt-action:hover {
	background: var(--mt-surface-2);
	color: var(--mt-ink);
}

.mt-action .mt-icon {
	width: 20px;
	height: 20px;
}

.mt-action__label {
	margin-top: .15rem;
	font-size: 11px;
	line-height: 1;
}

.mt-action--desk {
	display: none;
}

@media (min-width: 640px) {
	.mt-action--desk {
		display: inline-flex;
	}
}

.mt-action__icon {
	position: relative;
	display: inline-flex;
}

.mt-cart__count {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.mt-cart__count.is-empty {
	display: none;
}

/* Category nav ------------------------------------------------------------- */

.mt-nav {
	display: none;
	background: #fff;
	border-bottom: 1px solid var(--mt-line);
	box-shadow: var(--mt-shadow-sm);
}

@media (min-width: 1024px) {
	.mt-nav {
		display: block;
	}
}

.mt-nav__inner {
	display: flex;
	align-items: center;
	gap: .25rem;
	height: 48px;
}

.mt-nav__home {
	flex: none;
	height: 36px;
	padding: 0 1rem;
	margin-right: .5rem;
	font-size: .8125rem;
}

.mt-nav__list {
	display: flex;
	align-items: center;
	gap: .1rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-nav__list > li > a,
.mt-nav__item > a {
	display: flex;
	align-items: center;
	gap: .2rem;
	padding: .5rem .6rem;
	border-radius: var(--mt-radius);
	font-size: .875rem;
	font-weight: 500;
	color: var(--mt-ink-700);
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.mt-nav__list > li > a > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.mt-nav__list > li > a:hover {
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

/* Category dropdowns ------------------------------------------------------- */

.mt-nav__item--has-children,
.mt-nav__list > li.menu-item-has-children {
	position: relative;
}

.mt-nav__caret {
	display: inline-flex;
	color: var(--mt-ink-400);
	transition: transform .2s, color .2s;
}

.mt-nav__caret .mt-icon {
	width: 14px;
	height: 14px;
}

.mt-nav__item--has-children:hover > a .mt-nav__caret,
.mt-nav__item--has-children:focus-within > a .mt-nav__caret {
	transform: rotate(180deg);
	color: var(--mt-accent);
}

.mt-nav__dropdown,
.mt-nav__list > li.menu-item-has-children > .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	/* Wide enough that the longest category names sit on one line - several
	   run past 20 characters. */
	min-width: 310px;
	max-width: 420px;
	padding: .5rem;
	margin: 0;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
	box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
	list-style: none;

	/* Kept in the layout but inert, so the panel can fade rather than pop and
	   so its links stay out of the tab order while it is closed. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

/* The last few items would otherwise open a panel off the right edge. */
.mt-nav__list > li:nth-last-child(-n+3) .mt-nav__dropdown,
.mt-nav__list > li:nth-last-child(-n+3) > .sub-menu {
	left: auto;
	right: 0;
}

.mt-nav__item--has-children:hover > .mt-nav__dropdown,
.mt-nav__item--has-children:focus-within > .mt-nav__dropdown,
.mt-nav__list > li.menu-item-has-children:hover > .sub-menu,
.mt-nav__list > li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.mt-nav__sub,
.mt-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: min(70vh, 460px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mt-nav__sub > li > a,
.mt-nav__list .sub-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .5rem .6rem;
	border-radius: var(--mt-radius);
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--mt-ink-700);
	white-space: normal;
}

.mt-nav__sub > li > a:hover,
.mt-nav__list .sub-menu > li > a:hover {
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

.mt-nav__sub em {
	flex: none;
	font-style: normal;
	font-size: .6875rem;
	color: var(--mt-ink-400);
	font-variant-numeric: tabular-nums;
}

.mt-nav__sub-all {
	margin-top: .25rem;
	padding-top: .35rem;
	border-top: 1px solid var(--mt-line);
}

.mt-nav__sub-all > a {
	justify-content: flex-start;
	gap: .35rem;
	font-weight: 700;
	color: var(--mt-accent) !important;
}

/* Mobile nav --------------------------------------------------------------- */

.mt-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 60;
}

.mt-mobile-nav[hidden] {
	display: none;
}

.mt-mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
}

.mt-mobile-nav__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(320px, 88vw);
	height: 100%;
	background: #fff;
	box-shadow: var(--mt-shadow);
	animation: mt-slide-in .25s ease;
	overflow-y: auto;
}

@keyframes mt-slide-in {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}

.mt-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	border-bottom: 1px solid var(--mt-line);
}

.mt-mobile-nav__title {
	font-family: var(--mt-display);
	font-weight: 700;
}

.mt-mobile-nav__close {
	border: 0;
	background: none;
	color: var(--mt-ink-600);
	padding: .25rem;
}

.mt-mobile-nav__home {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: .5rem .5rem 0;
	padding: .75rem;
	border-radius: var(--mt-radius);
	background: var(--mt-accent-50);
	color: var(--mt-accent);
	font-family: var(--mt-display);
	font-weight: 700;
	font-size: .875rem;
}

.mt-mobile-nav__home:hover {
	background: var(--mt-accent);
	color: #fff;
}

.mt-mobile-nav__list {
	margin: 0;
	padding: .5rem;
	list-style: none;
}

.mt-mobile-nav__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .75rem;
	border-radius: var(--mt-radius);
	font-weight: 500;
}

.mt-mobile-nav__list a:hover {
	background: var(--mt-accent-50);
}

.mt-mobile-nav__list em {
	flex: none;
	font-style: normal;
	font-size: .75rem;
	color: var(--mt-ink-400);
	font-variant-numeric: tabular-nums;
}

/* Expandable second level -------------------------------------------------- */

/* The parent row is a link plus a separate toggle, so tapping the name still
   opens the category and only the chevron expands the list. */
.mt-mobile-nav__row {
	display: flex;
	align-items: center;
	gap: .25rem;
}

.mt-mobile-nav__row > a {
	flex: 1;
	min-width: 0;
}

.mt-mobile-nav__row > a > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mt-mobile-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: var(--mt-radius);
	background: none;
	color: var(--mt-ink-500);
}

.mt-mobile-nav__toggle:hover {
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

.mt-mobile-nav__toggle .mt-icon {
	width: 18px;
	height: 18px;
	transition: transform .2s;
}

.mt-mobile-nav__toggle[aria-expanded="true"] .mt-icon {
	transform: rotate(180deg);
}

.mt-mobile-nav__sub,
.mt-mobile-nav__list .sub-menu {
	margin: .1rem 0 .35rem;
	padding: 0 0 0 .75rem;
	border-left: 2px solid var(--mt-line);
	list-style: none;
}

.mt-mobile-nav__sub[hidden],
.mt-mobile-nav__list .sub-menu[hidden] {
	display: none;
}

.mt-mobile-nav__sub a,
.mt-mobile-nav__list .sub-menu a {
	padding: .55rem .75rem;
	font-size: .8125rem;
	font-weight: 400;
	color: var(--mt-ink-600);
}

/* ==========================================================================
   4. Shop layout
   ========================================================================== */

.mt-shop,
.mt-single,
.mt-page {
	padding-block: 1.5rem 3rem;
}

.mt-crumbs {
	margin-bottom: 1rem;
	font-size: .8125rem;
	color: var(--mt-ink-500);
}

.mt-crumbs a:hover {
	color: var(--mt-accent);
}

.mt-crumb__sep {
	margin-inline: .4rem;
	color: var(--mt-ink-400);
}

.mt-shop__header {
	margin-bottom: 1.25rem;
}

.mt-shop__title,
.mt-page__title {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: .35rem;
}

.mt-shop__intro {
	max-width: 70ch;
	color: var(--mt-ink-600);
	font-size: .9375rem;
}

@media (min-width: 1024px) {
	.mt-shop--sidebar {
		display: grid;
		grid-template-columns: 272px minmax(0, 1fr);
		grid-template-areas:
			"crumbs crumbs"
			"head   head"
			"side   main";
		column-gap: 2rem;
		align-items: start;
	}

	.mt-shop--sidebar > .mt-crumbs { grid-area: crumbs; }
	.mt-shop--sidebar > .mt-shop__header { grid-area: head; }
	.mt-shop--sidebar > .mt-shop__sidebar { grid-area: side; }
	.mt-shop--sidebar > .mt-shop__main { grid-area: main; }
}

.mt-shop__sidebar {
	min-width: 0;
}

@media (min-width: 1024px) {
	.mt-shop__sidebar {
		position: sticky;
		top: calc(var(--mt-header-h) + 60px);
		max-height: calc(100vh - var(--mt-header-h) - 80px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-right: .25rem;
	}
}

.mt-shop__main {
	min-width: 0;
}

/* Toolbar ------------------------------------------------------------------ */

.mt-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	padding: .75rem 1rem;
	margin-bottom: 1rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

.mt-toolbar__count,
.woocommerce-result-count {
	margin: 0;
	font-size: .875rem;
	color: var(--mt-ink-600);
}

.mt-toolbar .woocommerce-ordering {
	margin: 0 0 0 auto;
}

.mt-toolbar select,
.woocommerce-ordering select {
	height: 38px;
	padding: 0 2rem 0 .75rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .5rem center/16px;
	font: inherit;
	font-size: .875rem;
	color: var(--mt-ink-700);
	appearance: none;
}

.mt-filter-trigger {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .9rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	background: #fff;
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 700;
}

.mt-filter-trigger:hover {
	border-color: var(--mt-accent);
	color: var(--mt-accent);
}

@media (min-width: 1024px) {
	.mt-filter-trigger {
		display: none;
	}
}

/* ==========================================================================
   5. Filters
   ========================================================================== */

.mt-widget,
.mt-filters {
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
	padding: 1.1rem;
	margin-bottom: 1rem;
}

.mt-widget .mt-filters {
	border: 0;
	padding: 0;
	margin: 0;
}

.mt-widget__title {
	font-size: .9375rem;
	font-weight: 800;
	margin-bottom: .75rem;
}

.mt-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .5rem;
}

.mt-filters__title {
	font-size: 1rem;
	font-weight: 800;
	margin: 0;
}

.mt-filters__close {
	display: none;
	padding: .35rem;
	border: 0;
	background: none;
	color: var(--mt-ink-600);
}

.mt-filters__empty {
	margin: 0;
	font-size: .875rem;
	color: var(--mt-ink-500);
}

/* Active filter chips ------------------------------------------------------ */

.mt-active {
	padding-bottom: .9rem;
	margin-bottom: .4rem;
	border-bottom: 1px solid var(--mt-line);
}

.mt-active--inline {
	padding: 0;
	margin-bottom: 1rem;
	border: 0;
}

.mt-active__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .15rem .5rem;
	margin-bottom: .5rem;
}

/* Both labels stay on one line each: in a 272px sidebar they would otherwise
   wrap mid-phrase and read as four ragged lines. */
.mt-active__label {
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--mt-ink-500);
	white-space: nowrap;
}

.mt-active__clear {
	margin-left: auto;
	font-size: .75rem;
	font-weight: 600;
	color: var(--mt-accent);
	white-space: nowrap;
}

.mt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	max-width: 100%;
	padding: .3rem .6rem;
	border: 1px solid var(--mt-accent-200);
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent-50);
	color: var(--mt-ink-700);
	font-size: .75rem;
	line-height: 1.4;
}

.mt-chip:hover {
	border-color: var(--mt-accent);
	color: var(--mt-ink);
	background: #fff;
}

.mt-chip__label {
	color: var(--mt-ink-500);
}

.mt-chip__value {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 16ch;
}

.mt-chip__x {
	font-size: 1rem;
	line-height: 1;
	color: var(--mt-accent);
}

.mt-chip--clear {
	background: #fff;
	border-color: var(--mt-line-strong);
	font-weight: 600;
}

/* Facets ------------------------------------------------------------------- */

.mt-facet {
	border-top: 1px solid var(--mt-line);
	padding-block: .75rem;
}

.mt-facet:first-of-type {
	border-top: 0;
}

.mt-facet__title {
	margin: 0;
	font-size: .875rem;
}

.mt-facet__toggle {
	display: flex;
	align-items: center;
	gap: .5rem;
	width: 100%;
	padding: .25rem 0;
	border: 0;
	background: none;
	font-family: var(--mt-display);
	font-size: .875rem;
	font-weight: 700;
	color: var(--mt-ink);
	text-align: left;
}

.mt-facet__name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mt-facet__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

.mt-facet__chevron {
	display: inline-flex;
	color: var(--mt-ink-400);
	transition: transform .2s;
}

.mt-facet.is-open .mt-facet__chevron {
	transform: rotate(180deg);
}

.mt-facet__body {
	display: none;
	padding-top: .5rem;
}

.mt-facet.is-open .mt-facet__body {
	display: block;
}

.mt-facet__search input {
	width: 100%;
	height: 34px;
	padding: 0 .6rem;
	margin-bottom: .5rem;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	background: var(--mt-surface-2);
	font: inherit;
	font-size: .8125rem;
}

.mt-facet__search input:focus {
	outline: none;
	background: #fff;
	border-color: var(--mt-accent-400);
}

.mt-facet__options {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 19rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mt-facet__option.is-overflow,
.mt-facet__option.is-filtered {
	display: none;
}

.mt-facet.is-expanded .mt-facet__option.is-overflow:not(.is-filtered) {
	display: block;
}

.mt-option {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .3rem .25rem;
	border-radius: var(--mt-radius);
	font-size: .8125rem;
	color: var(--mt-ink-700);
	line-height: 1.35;
}

.mt-option:hover {
	background: var(--mt-accent-50);
	color: var(--mt-ink);
}

.mt-option__box {
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--mt-line-strong);
	border-radius: 4px;
	background: #fff;
	transition: background-color .15s, border-color .15s;
}

.mt-option.is-active .mt-option__box {
	background: var(--mt-accent);
	border-color: var(--mt-accent);
}

.mt-option.is-active .mt-option__box::after {
	content: "";
	position: absolute;
	left: 4.5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mt-option__name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mt-option.is-active .mt-option__name {
	font-weight: 600;
	color: var(--mt-ink);
}

.mt-option__count {
	flex: none;
	font-size: .6875rem;
	color: var(--mt-ink-400);
	font-variant-numeric: tabular-nums;
}

.mt-facet__more {
	margin-top: .35rem;
	padding: .25rem 0;
	border: 0;
	background: none;
	font-size: .75rem;
	font-weight: 600;
	color: var(--mt-accent);
}

.mt-facet__more:hover {
	text-decoration: underline;
}

.mt-facet__none {
	margin: .5rem 0 0;
	font-size: .8125rem;
	color: var(--mt-ink-400);
}

/* Price -------------------------------------------------------------------- */

.mt-price__inputs {
	display: flex;
	align-items: center;
	gap: .4rem;
}

.mt-price__field {
	flex: 1;
	min-width: 0;
}

.mt-price__field input {
	width: 100%;
	height: 36px;
	padding: 0 .5rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	font: inherit;
	font-size: .8125rem;
	text-align: center;
}

.mt-price__field input:focus {
	outline: none;
	border-color: var(--mt-accent-400);
}

.mt-price__dash {
	color: var(--mt-ink-400);
}

.mt-price__go {
	flex: none;
	height: 36px;
	padding-inline: .8rem;
	border: 0;
	border-radius: var(--mt-radius);
	background: var(--mt-ink);
	color: #fff;
	font-family: var(--mt-display);
	font-size: .75rem;
	font-weight: 700;
}

.mt-price__go:hover {
	background: var(--mt-accent);
}

.mt-price__hint {
	margin: .5rem 0 0;
	font-size: .75rem;
	color: var(--mt-ink-400);
}

.mt-price__hint .woocommerce-Price-amount {
	color: var(--mt-ink-500);
}

/* Filter drawer on small screens ------------------------------------------- */

@media (max-width: 1023px) {
	.mt-shop__sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 70;
		width: min(340px, 90vw);
		padding: 1rem;
		background: #fff;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform .25s ease;
		box-shadow: var(--mt-shadow);
	}

	.mt-shop__sidebar.is-open {
		transform: translateX(0);
	}

	.mt-shop__overlay {
		position: fixed;
		inset: 0;
		z-index: 65;
		background: rgba(15, 23, 42, .45);
	}

	.mt-filters,
	.mt-widget {
		border: 0;
		padding: 0;
	}

	.mt-filters__close {
		display: inline-flex;
	}
}

/* ==========================================================================
   6. Product grid + card
   ========================================================================== */

/* Kept at a single class of specificity on purpose. Pairing this with
   `.woocommerce ul.products.mt-grid` (0,3,1) would outrank every one of the
   breakpoint rules below (0,1,0), pinning the grid at two columns on any page
   where WooCommerce puts `woocommerce` on the body - which is all of them. */
.mt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	clear: both;
}

/* Box properties only - never grid-template-columns, or this selector's
   specificity would outrank the breakpoints again. WooCommerce's own
   `.woocommerce ul.products` (0,2,1) sets a bottom margin we do not want. */
.woocommerce ul.products.mt-grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WooCommerce clears its float layout with `.woocommerce ul.products::before`
   (0,2,2). In a grid container those pseudo-elements become grid items - an
   empty first cell that pushes every product along by one. Matched here at
   (0,3,2) so the reset actually wins, and `content: none` stops them being
   generated at all. */
.woocommerce ul.products.mt-grid::before,
.woocommerce ul.products.mt-grid::after,
.mt-grid::before,
.mt-grid::after {
	content: none;
	display: none;
}

@media (min-width: 640px) {
	.mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mt-shop:not(.mt-shop--sidebar) .mt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
	.mt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.woocommerce ul.products li.product.mt-card,
.mt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mt-card:hover {
	transform: translateY(-6px);
	border-color: var(--mt-accent-200);
	box-shadow: 0 18px 40px -18px rgba(255, 106, 0, .35);
}

.mt-card__badges {
	position: absolute;
	top: .7rem;
	left: .7rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
}

.mt-badge {
	padding: .15rem .45rem;
	border-radius: 6px;
	font-family: var(--mt-display);
	font-size: .6875rem;
	font-weight: 800;
	line-height: 1.4;
	color: #fff;
}

.mt-badge--sale {
	background: var(--mt-accent);
	box-shadow: var(--mt-shadow-sm);
}

.mt-badge--new {
	background: var(--mt-ink);
}

.mt-badge--out {
	background: var(--mt-ink-500);
}

.mt-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--mt-surface-2);
	overflow: hidden;
}

.mt-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.mt-card:hover .mt-card__media img {
	transform: scale(1.08);
}

.mt-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: .9rem;
}

.mt-stars {
	display: flex;
	align-items: center;
	gap: 1px;
	margin-bottom: .35rem;
	font-size: .8125rem;
	line-height: 1;
}

.mt-star {
	color: var(--mt-line-strong);
}

.mt-star.is-on {
	color: var(--mt-star);
}

.mt-stars__count {
	margin-left: .3rem;
	font-size: .6875rem;
	color: var(--mt-ink-400);
}

.mt-card__title {
	margin: 0;
	font-family: var(--mt-font);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.35;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mt-card__title a:hover {
	color: var(--mt-accent);
}

.mt-card__spec {
	display: flex;
	align-items: center;
	gap: .3rem;
	margin: .5rem 0 0;
	font-size: .75rem;
	font-weight: 500;
	color: var(--mt-ok);
	overflow: hidden;
}

.mt-card__spec .mt-icon {
	width: 13px;
	height: 13px;
	flex: none;
}

.mt-card__spec span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mt-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: .5rem;
	margin-top: auto;
	padding-top: .75rem;
}

.mt-card__price .price,
.mt-card__price {
	font-family: var(--mt-display);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--mt-ink);
	line-height: 1.15;
	margin: 0;
}

.mt-card__price del {
	display: block;
	font-size: .75rem;
	font-weight: 500;
	color: var(--mt-ink-400);
}

.mt-card__price ins {
	text-decoration: none;
}

/* The icon is a mask on ::before rather than a background on the button, so
   flex centring applies to the icon and the label together as one unit. */
.woocommerce ul.products li.product .mt-card__add.button,
.mt-card__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	flex: none;
	min-width: 112px;
	height: 40px;
	padding: 0 .9rem;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #ff7d1a 0%, var(--mt-accent) 100%);
	color: #fff;
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	box-shadow: var(--mt-shadow-accent);
}

.mt-card__add::before {
	content: "";
	flex: none;
	width: 17px;
	height: 17px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mt-card__add:hover {
	filter: brightness(1.05);
	color: #fff;
}

.mt-card__add.loading::before {
	opacity: .4;
}

.mt-card__add.added::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}

/* Narrow cards drop to a full-width button under the price instead of
   squeezing the price into nothing. */
@media (max-width: 419px) {
	.mt-card__foot {
		flex-direction: column;
		align-items: stretch;
		gap: .6rem;
	}

	.mt-card__add {
		width: 100%;
	}
}

.woocommerce ul.products li.product .added_to_cart {
	display: none;
}

/* Empty state -------------------------------------------------------------- */

.mt-empty {
	padding: 3rem 1rem;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--mt-line-strong);
	border-radius: var(--mt-radius-lg);
}

.mt-empty__title {
	font-size: 1.25rem;
	font-weight: 800;
}

.mt-empty__text {
	margin: 0 auto 1.25rem;
	max-width: 46ch;
	color: var(--mt-ink-600);
}

/* Pagination --------------------------------------------------------------- */

.woocommerce nav.woocommerce-pagination {
	margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: .35rem;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 38px;
	padding: .5rem .7rem;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	background: #fff;
	font-size: .875rem;
	font-weight: 600;
	color: var(--mt-ink-700);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--mt-accent);
	border-color: var(--mt-accent);
	color: #fff;
}

/* ==========================================================================
   7. Single product
   ========================================================================== */

.mt-single div.product {
	position: relative;
	display: grid;
	gap: 2rem;
}

/* WooCommerce prints the sale flash as a direct child of div.product, which in
   a grid container becomes a full-width row of orange. Lift it out of the flow
   and sit it on the gallery, where it belongs. */
.mt-single div.product > .mt-badge--sale,
.mt-single div.product > span.onsale {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 3;
	margin: 0;
	width: auto;
	min-width: 0;
	min-height: 0;
	padding: .25rem .55rem;
	border-radius: 6px;
	background: var(--mt-accent);
	color: #fff;
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
}

@media (min-width: 900px) {
	.mt-single div.product {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: start;
	}

	.mt-single div.product .woocommerce-product-gallery {
		grid-column: 1;
	}

	.mt-single div.product .summary {
		grid-column: 2;
	}

	.mt-single div.product .woocommerce-tabs,
	.mt-single div.product .related,
	.mt-single div.product .upsells {
		grid-column: 1 / -1;
	}
}

.mt-single .woocommerce-product-gallery {
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
	padding: 1rem;
	float: none !important;
	width: auto !important;
}

.mt-single div.product .summary {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}

.mt-single .product_title {
	font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -.02em;
}

.mt-single div.product p.price,
.mt-single div.product span.price {
	font-family: var(--mt-display);
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--mt-ink);
}

.mt-single div.product p.price del {
	font-size: 1rem;
	font-weight: 500;
	color: var(--mt-ink-400);
}

.mt-single div.product p.price ins {
	text-decoration: none;
	color: var(--mt-accent);
}

.mt-single .woocommerce-product-details__short-description {
	color: var(--mt-ink-600);
	font-size: .9375rem;
}

.mt-single form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	margin-block: 1.25rem;
}

.mt-single .quantity input.qty {
	width: 72px;
	height: 48px;
	padding: 0 .5rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	font: inherit;
	text-align: center;
}

.mt-single .single_add_to_cart_button {
	height: 48px;
	padding-inline: 1.75rem;
	font-size: .9375rem;
}

.mt-single .product_meta {
	padding-top: 1rem;
	border-top: 1px solid var(--mt-line);
	font-size: .8125rem;
	color: var(--mt-ink-500);
}

/* Tabs --------------------------------------------------------------------- */

/* Scoped to the theme's own wrapper as well as WooCommerce's body class, so
   the styling does not depend on where `.woocommerce` happens to land. */
.mt-single .woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	padding: 0;
	margin: 0 0 1rem;
	list-style: none;
}

.mt-single .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	display: none;
}

.mt-single .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-full);
	background: #fff;
	list-style: none;
}

.mt-single .woocommerce-tabs ul.tabs li::before,
.mt-single .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.mt-single .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: .5rem 1.1rem;
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 700;
	color: var(--mt-ink-600);
}

.mt-single .woocommerce-tabs ul.tabs li.active,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--mt-ink);
	border-color: var(--mt-ink);
}

.mt-single .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #fff;
}

.mt-single .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel {
	padding: 1.25rem;
	margin: 0;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

.mt-single .woocommerce-tabs h2 {
	font-size: 1.05rem;
	font-weight: 700;
}

/* Specs table -------------------------------------------------------------- */

.mt-specs__table {
	width: 100%;
	border-collapse: collapse;
	font-size: .875rem;
}

.mt-specs__table tr {
	border-bottom: 1px solid var(--mt-line);
}

.mt-specs__table tr:last-child {
	border-bottom: 0;
}

.mt-specs__table th,
.mt-specs__table td {
	padding: .6rem .5rem;
	text-align: left;
	vertical-align: top;
}

.mt-specs__table th {
	width: 38%;
	font-weight: 600;
	color: var(--mt-ink-600);
}

.mt-specs__table td {
	color: var(--mt-ink);
}

.mt-specs__table td a {
	color: var(--mt-ink);
	border-bottom: 1px dotted var(--mt-line-strong);
}

.mt-specs__table td a:hover {
	color: var(--mt-accent);
	border-bottom-color: var(--mt-accent);
}

@media (max-width: 520px) {
	.mt-specs__table th {
		width: 45%;
	}
}

/* ==========================================================================
   7b. Home page
   ========================================================================== */

.mt-home {
	padding-bottom: 3rem;
}

.mt-home__section {
	margin-top: 3rem;
}

.mt-section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.25rem;
}

.mt-section__title {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0;
	font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -.02em;
}

.mt-section__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: none;
	border-radius: 11px;
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

.mt-section__link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .875rem;
	font-weight: 700;
	color: var(--mt-accent);
}

.mt-section__link:hover {
	text-decoration: underline;
}

/* Hero --------------------------------------------------------------------- */

.mt-hero {
	position: relative;
	height: clamp(380px, 46vw, 560px);
	background: #171717;
	overflow: hidden;
}

.mt-hero__slides,
.mt-hero__slide {
	position: absolute;
	inset: 0;
}

.mt-hero__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility .7s;
}

.mt-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.mt-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Sits over the image, and is the whole backdrop when a slide has no artwork,
   so an un-configured hero still reads as a designed panel. */
.mt-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(23, 23, 23, .68) 45%, rgba(23, 23, 23, .2) 100%),
		radial-gradient(120% 120% at 85% 15%, rgba(255, 106, 0, .35), transparent 60%);
}

.mt-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
}

.mt-hero__copy {
	max-width: 34rem;
	animation: mt-fade-up .5s ease both;
}

@keyframes mt-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

.mt-hero__eyebrow {
	display: inline-block;
	padding: .3rem .8rem;
	margin-bottom: 1rem;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent);
	color: #fff;
	font-family: var(--mt-display);
	font-size: .6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.mt-hero__title {
	margin: 0 0 .75rem;
	font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: #fff;
}

.mt-hero__text {
	margin: 0 0 1.75rem;
	max-width: 30rem;
	font-size: clamp(.95rem, .9rem + .4vw, 1.15rem);
	color: #d4d4d4;
}

.mt-hero__cta {
	height: 48px;
	padding-inline: 2rem;
	font-size: .9375rem;
}

/* Paired in the bottom-right rather than centred on each edge: the hero copy
   is left-aligned and full-height, so an arrow at the left edge lands on top
   of the headline. */
.mt-hero__arrow {
	position: absolute;
	bottom: 1.25rem;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--mt-radius-full);
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	z-index: 2;
}

.mt-hero__arrow:hover {
	background: rgba(255, 255, 255, .3);
	color: #fff;
}

.mt-hero__arrow--prev { right: 4rem; }
.mt-hero__arrow--next { right: 1.25rem; }

@media (min-width: 768px) {
	.mt-hero__arrow { display: inline-flex; }
}

.mt-hero__dots {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: .5rem;
	z-index: 2;
}

.mt-hero__dot {
	width: 10px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: var(--mt-radius-full);
	background: rgba(255, 255, 255, .5);
	transition: width .3s ease, background-color .3s ease;
}

.mt-hero__dot.is-active {
	width: 32px;
	background: var(--mt-accent);
}

/* Trust strip -------------------------------------------------------------- */

.mt-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

@media (min-width: 1024px) {
	.mt-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.mt-trust__item {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

.mt-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

.mt-trust__text strong {
	display: block;
	font-size: .875rem;
	font-weight: 600;
}

.mt-trust__text em {
	font-style: normal;
	font-size: .75rem;
	color: var(--mt-ink-500);
}

/* Category tiles ----------------------------------------------------------- */

.mt-cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.mt-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.mt-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.mt-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	padding: 1rem .75rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mt-cat:hover {
	transform: translateY(-6px);
	border-color: var(--mt-accent-200);
	box-shadow: 0 18px 40px -18px rgba(255, 106, 0, .35);
	color: inherit;
}

.mt-cat__media {
	width: 96px;
	height: 96px;
	margin-bottom: .5rem;
	border-radius: var(--mt-radius-full);
	background: var(--mt-surface-2);
	overflow: hidden;
}

.mt-cat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.mt-cat:hover .mt-cat__media img {
	transform: scale(1.1);
}

.mt-cat__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 50% 38%, var(--mt-line-strong) 0 14px, transparent 15px),
		linear-gradient(160deg, var(--mt-surface-2), #e8eaee);
}

.mt-cat__name {
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.3;
}

.mt-cat__count {
	font-size: .75rem;
	color: var(--mt-ink-400);
}

/* Deal of the day ---------------------------------------------------------- */

/* Text on this panel is dark ink, not white. Measured against #38ab88:
   white is 2.86:1 and the accent orange 1.00:1 (identical luminance - the icon
   would vanish), both failing WCAG AA; #171717 is 6.27:1 and #262626 5.30:1. */
.mt-deals {
	--mt-deals-bg: #38ab88;
	--mt-deals-ink: #171717;
	--mt-deals-ink-soft: #262626;
	margin-top: 3rem;
	padding: 1.5rem;
	background: var(--mt-deals-bg);
	border-radius: 24px;
}

@media (min-width: 768px) {
	.mt-deals { padding: 2rem; }
}

.mt-deals__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.mt-deals__title {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
	font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
	font-weight: 800;
	color: var(--mt-deals-ink);
}

.mt-deals__title .mt-icon {
	color: var(--mt-deals-ink);
}

.mt-deals__sub {
	margin: .25rem 0 0;
	font-size: .875rem;
	color: var(--mt-deals-ink-soft);
}

.mt-deals__timer {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.mt-deals__timer-label {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--mt-deals-ink);
}

.mt-countdown {
	display: flex;
	align-items: center;
	gap: .25rem;
	padding: .35rem;
	background: #fff;
	border-radius: 12px;
}

.mt-countdown__unit {
	min-width: 36px;
	padding: .3rem .4rem;
	border-radius: 8px;
	background: var(--mt-ink);
	color: #fff;
	font-family: var(--mt-display);
	font-size: .875rem;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.mt-countdown__sep {
	font-family: var(--mt-display);
	font-weight: 700;
	color: var(--mt-ink);
}

.mt-deals__grid .mt-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.mt-deals__grid .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
	.mt-deals__grid .mt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Promo banners ------------------------------------------------------------ */

.mt-banners {
	display: grid;
	gap: 1rem;
	margin-top: 3rem;
}

@media (min-width: 768px) {
	.mt-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mt-banner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .4rem;
	padding: 2rem;
	border-radius: 24px;
	transition: transform .25s ease, box-shadow .25s ease;
}

.mt-banner:hover {
	transform: translateY(-4px);
	box-shadow: var(--mt-shadow);
	color: inherit;
}

.mt-banner--light {
	background: linear-gradient(135deg, var(--mt-accent-50), #ffe8d6);
	border: 1px solid var(--mt-accent-200);
}

.mt-banner--dark {
	background: #171717;
	color: #d4d4d4;
}

.mt-banner__eyebrow {
	font-family: var(--mt-display);
	font-size: .75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--mt-accent);
}

.mt-banner--dark .mt-banner__eyebrow {
	color: var(--mt-accent-400);
}

.mt-banner__title {
	font-family: var(--mt-display);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--mt-ink);
}

.mt-banner--dark .mt-banner__title {
	color: #fff;
}

.mt-banner__text {
	margin-bottom: 1rem;
	font-size: .9375rem;
	color: var(--mt-ink-600);
}

.mt-banner--dark .mt-banner__text {
	color: #a3a3a3;
}

.mt-banner__cta {
	height: 44px;
}

/* Setup panel (empty catalogue) -------------------------------------------- */

.mt-setup {
	padding-block: 4rem;
}

.mt-setup__card {
	max-width: 44rem;
	margin-inline: auto;
	padding: 2.5rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: 24px;
	text-align: center;
}

.mt-setup__title {
	font-size: 1.6rem;
	font-weight: 800;
}

.mt-setup__lead {
	margin-bottom: 1.5rem;
	color: var(--mt-ink-600);
}

.mt-setup__steps {
	display: inline-block;
	margin: 0 0 1.75rem;
	padding-left: 1.25rem;
	text-align: left;
	color: var(--mt-ink-700);
}

.mt-setup__steps li {
	margin-bottom: .4rem;
}

.mt-setup__actions,
.mt-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	margin: 0;
}

.mt-setup__note {
	margin: 1.25rem 0 0;
	font-size: .8125rem;
	color: var(--mt-ink-400);
}

/* Page headers and 404 ----------------------------------------------------- */

.mt-page__header {
	margin-bottom: 1.5rem;
}

.mt-page__intro {
	color: var(--mt-ink-600);
}

.mt-empty .mt-search {
	max-width: 26rem;
	margin: 0 auto 1.25rem;
}

.mt-empty--404 {
	padding-block: 3.5rem;
}

.mt-empty__code {
	margin: 0 0 .5rem;
	font-family: var(--mt-display);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--mt-accent);
}

/* ==========================================================================
   7b2. Wishlist
   ========================================================================== */

/* The heart on a product card: top-right, over the image. */
.mt-wish {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	border: 0;
	background: none;
	color: var(--mt-ink-400);
	transition: color .2s, background-color .2s, border-color .2s, transform .15s;
}

.mt-wish .mt-icon {
	width: 18px;
	height: 18px;
	fill: none;
	transition: fill .2s;
}

.mt-wish--icon {
	position: absolute;
	top: .7rem;
	right: .7rem;
	z-index: 3;
	width: 34px;
	height: 34px;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-full);
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(4px);
}

.mt-wish:hover,
.mt-wish:focus-visible {
	color: var(--mt-accent);
	border-color: var(--mt-accent-200);
}

.mt-wish:active {
	transform: scale(.92);
}

/* Saved: the outline fills in. */
.mt-wish.is-saved {
	color: var(--mt-accent);
	border-color: var(--mt-accent-200);
}

.mt-wish.is-saved .mt-icon {
	fill: currentColor;
	animation: mt-pop .28s ease;
}

@keyframes mt-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.28); }
	100% { transform: scale(1); }
}

.mt-wish.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* The labelled version on the product page. */
.mt-wish--inline {
	height: 44px;
	padding: 0 1.1rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	background: #fff;
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 700;
	color: var(--mt-ink-700);
}

.mt-wish--inline:hover {
	background: var(--mt-accent-50);
}

.mt-wish--inline.is-saved {
	background: var(--mt-accent-50);
	border-color: var(--mt-accent-200);
	color: var(--mt-accent);
}

.mt-single__wish {
	margin: 0 0 1.25rem;
}

/* Header counter, styled like the cart's. */
.mt-wish__count {
	position: absolute;
	top: -7px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.mt-wish__count.is-empty {
	display: none;
}

.mt-action--wish {
	display: none;
}

@media (min-width: 640px) {
	.mt-action--wish {
		display: inline-flex;
	}
}

/* The wishlist page ------------------------------------------------------- */

.mt-wishlist {
	margin-top: 1.5rem;
}

.mt-empty--wishlist {
	border-style: solid;
}

.mt-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: 1rem;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

.mt-empty__icon .mt-icon {
	width: 34px;
	height: 34px;
}

/* ==========================================================================
   7c. Side cart
   ========================================================================== */

.mt-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
}

.mt-drawer[hidden] {
	display: none;
}

body.mt-drawer-open {
	overflow: hidden;
}

.mt-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .5);
	animation: mt-fade .2s ease both;
}

@keyframes mt-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.mt-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100vw);
	background: #fff;
	box-shadow: -12px 0 40px -20px rgba(15, 23, 42, .5);
	animation: mt-slide-left .28s ease both;
}

@keyframes mt-slide-left {
	from { transform: translateX(100%); }
	to { transform: none; }
}

.mt-drawer.is-busy .mt-drawer__panel {
	pointer-events: none;
}

.mt-drawer.is-busy .mt-drawer__body {
	opacity: .55;
	transition: opacity .15s;
}

.mt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	border-bottom: 1px solid var(--mt-line);
}

.mt-drawer__title {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
}

.mt-drawer__title .mt-icon {
	color: var(--mt-accent);
}

.mt-drawer__close {
	padding: .35rem;
	border: 0;
	background: none;
	color: var(--mt-ink-600);
	line-height: 0;
}

.mt-drawer__close:hover {
	color: var(--mt-accent);
}

/* The body is the cart fragment: it must own the scroll, so the header and
   the totals stay put while the list moves. */
.mt-drawer__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.mt-drawer__error {
	margin: 0;
	padding: .75rem 1.25rem;
	background: #fef2f2;
	border-top: 1px solid #fecaca;
	color: var(--mt-danger);
	font-size: .8125rem;
}

/* Free-shipping progress ---------------------------------------------------- */

.mt-ship {
	padding: .8rem 1.25rem;
	background: var(--mt-accent-50);
	border-bottom: 1px solid var(--mt-line);
}

.mt-ship__text {
	display: flex;
	align-items: center;
	gap: .4rem;
	margin: 0 0 .5rem;
	font-size: .75rem;
	color: var(--mt-ink-700);
}

.mt-ship__text .mt-icon {
	color: var(--mt-accent);
	flex: none;
}

.mt-ship__won {
	color: var(--mt-ok);
	font-weight: 600;
}

.mt-ship__bar {
	height: 6px;
	border-radius: var(--mt-radius-full);
	background: #ffe0c8;
	overflow: hidden;
}

.mt-ship__fill {
	display: block;
	height: 100%;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent);
	transition: width .5s ease;
}

/* Lines --------------------------------------------------------------------- */

.mt-drawer__items {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: .75rem;
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mt-line {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: .75rem;
	padding: .6rem;
	border: 1px solid transparent;
	border-radius: var(--mt-radius-lg);
}

.mt-line + .mt-line {
	margin-top: .35rem;
}

.mt-line:hover {
	border-color: var(--mt-line);
}

.mt-line__media {
	width: 72px;
	height: 72px;
	border-radius: var(--mt-radius);
	background: var(--mt-surface-2);
	overflow: hidden;
}

.mt-line__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mt-line__main {
	min-width: 0;
}

.mt-line__name {
	margin: 0;
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mt-line__meta {
	margin: .2rem 0 0;
	font-size: .6875rem;
	color: var(--mt-ink-500);
}

.mt-line__meta p {
	margin: 0;
}

.mt-line__price {
	margin: .25rem 0 0;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--mt-accent);
}

.mt-line__price del {
	color: var(--mt-ink-400);
	font-weight: 400;
}

.mt-line__price ins {
	text-decoration: none;
}

.mt-line__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .45rem;
}

.mt-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	overflow: hidden;
}

.mt-qty.is-locked {
	opacity: .6;
}

.mt-qty__btn {
	width: 26px;
	height: 26px;
	border: 0;
	background: none;
	color: var(--mt-ink-600);
	font-size: .875rem;
	line-height: 1;
}

.mt-qty__btn:hover:not(:disabled) {
	color: var(--mt-accent);
	background: var(--mt-accent-50);
}

.mt-qty__btn:disabled {
	cursor: default;
}

.mt-qty__input {
	width: 34px;
	height: 26px;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--mt-line);
	font: inherit;
	font-size: .75rem;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.mt-qty__input::-webkit-outer-spin-button,
.mt-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.mt-line__remove {
	padding: 0;
	border: 0;
	background: none;
	color: var(--mt-ink-400);
	font-size: .6875rem;
	text-decoration: underline;
}

.mt-line__remove:hover {
	color: var(--mt-danger);
}

.mt-line__total {
	font-family: var(--mt-display);
	font-size: .8125rem;
	font-weight: 700;
	white-space: nowrap;
}

/* Totals -------------------------------------------------------------------- */

.mt-drawer__foot {
	padding: 1.1rem 1.25rem;
	border-top: 1px solid var(--mt-line);
	background: #fff;
}

.mt-drawer__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	font-size: .875rem;
	color: var(--mt-ink-600);
}

.mt-drawer__subtotal {
	font-family: var(--mt-display);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--mt-ink);
}

.mt-drawer__note {
	margin: .3rem 0 .9rem;
	font-size: .6875rem;
	color: var(--mt-ink-400);
}

.mt-drawer__checkout,
.mt-drawer__view {
	display: flex;
	width: 100%;
	height: 46px;
}

.mt-drawer__view {
	margin-top: .5rem;
	height: 42px;
}

/* Empty --------------------------------------------------------------------- */

.mt-drawer__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 2rem;
	text-align: center;
}

.mt-drawer__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: .5rem;
	border-radius: var(--mt-radius-full);
	background: var(--mt-accent-50);
	color: var(--mt-accent);
}

.mt-drawer__empty-icon .mt-icon {
	width: 34px;
	height: 34px;
}

.mt-drawer__empty-title {
	margin: 0;
	font-weight: 600;
}

.mt-drawer__empty-text {
	margin: 0 0 .75rem;
	font-size: .875rem;
	color: var(--mt-ink-500);
}

/* ==========================================================================
   7d. Cart and checkout (classic templates)
   ========================================================================== */

.woocommerce-cart .mt-page,
.woocommerce-checkout .mt-page,
.woocommerce-account .mt-page {
	max-width: var(--mt-container);
}

.woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 1.5rem;
	border: 1px solid var(--mt-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--mt-radius-lg);
	background: #fff;
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 1rem;
	border-top: 1px solid var(--mt-line);
	font-size: .875rem;
	vertical-align: middle;
}

.woocommerce table.shop_table thead th {
	border-top: 0;
	background: var(--mt-surface-2);
	font-family: var(--mt-display);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--mt-ink-600);
}

/* Auto table layout shares surplus width across every column, which strands
   the remove button and the thumbnail in the middle of an over-wide cell.
   Pinning the fixed columns with a min-width - rather than making the name
   column greedy with `width: 100%`, which collapses the thumbnail to a sliver
   - leaves the name column to absorb whatever is left. */
.woocommerce table.shop_table td.product-remove,
.woocommerce table.shop_table th.product-remove {
	width: 56px;
	min-width: 56px;
	padding-right: 0;
	text-align: center;
}

.woocommerce table.shop_table td.product-thumbnail,
.woocommerce table.shop_table th.product-thumbnail {
	width: 88px;
	min-width: 88px;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-quantity,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce table.shop_table th.product-price,
.woocommerce table.shop_table th.product-quantity,
.woocommerce table.shop_table th.product-subtotal {
	width: 1%;
	white-space: nowrap;
}

.woocommerce table.shop_table td.product-thumbnail img {
	width: 64px;
	min-width: 64px;
	height: 64px;
	max-width: none;
	border-radius: var(--mt-radius);
	object-fit: cover;
}

.woocommerce table.shop_table td.product-name a {
	font-weight: 500;
}

.woocommerce table.shop_table td.product-name a:hover {
	color: var(--mt-accent);
}

.woocommerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: var(--mt-radius-full);
	background: var(--mt-surface-2);
	color: var(--mt-ink-500) !important;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
}

.woocommerce a.remove:hover {
	background: var(--mt-danger);
	color: #fff !important;
}

.woocommerce .quantity input.qty {
	width: 72px;
	height: 42px;
	padding: 0 .4rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	font: inherit;
	text-align: center;
}

/* This cell must stay a table-cell. Giving it `display: flex` drops its
   colspan, and the browser then charges its whole width to the first column -
   which is how a 56px remove column ends up 481px wide. Float the coupon
   instead, the way WooCommerce's own stylesheet does. */
.woocommerce table.shop_table td.actions {
	text-align: right;
	overflow: hidden;
}

.woocommerce .cart .coupon {
	display: flex;
	float: left;
	align-items: center;
	gap: .5rem;
	text-align: left;
}

.woocommerce .cart .coupon label {
	white-space: nowrap;
	font-size: .8125rem;
	color: var(--mt-ink-600);
}

/* Left to itself the coupon field eats the whole row and squeezes its own
   button onto two lines. */
.woocommerce .cart .coupon #coupon_code {
	width: auto;
	min-width: 0;
	flex: 0 1 220px;
}

.woocommerce table.shop_table td.actions .button {
	flex: none;
	white-space: nowrap;
}

.woocommerce #coupon_code,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.select2-container .select2-selection--single {
	width: 100%;
	min-height: 46px;
	padding: .6rem .8rem;
	border: 1px solid var(--mt-line-strong);
	border-radius: var(--mt-radius);
	background: #fff;
	font: inherit;
	font-size: .9375rem;
	color: var(--mt-ink);
	box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: var(--mt-accent-400);
	box-shadow: 0 0 0 3px rgba(255, 138, 61, .2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: .3rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--mt-ink-700);
}

.woocommerce .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout #order_review {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
	font-size: 1.05rem;
	font-weight: 800;
}

.woocommerce .cart_totals table.shop_table {
	margin: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
	padding: .7rem 0;
}

.woocommerce .cart_totals .order-total .amount {
	font-family: var(--mt-display);
	font-size: 1.25rem;
	font-weight: 800;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	margin-top: 1rem;
	font-size: .9375rem;
}

.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	margin: 0 0 1rem;
	border: 0;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: .75rem;
	margin-bottom: .5rem;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	background: #fff;
	list-style: none;
}

.woocommerce-checkout #payment div.payment_box {
	margin: .6rem 0 0;
	padding: .75rem;
	border-radius: var(--mt-radius);
	background: var(--mt-surface-2);
	font-size: .8125rem;
	color: var(--mt-ink-600);
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	height: 52px;
	font-size: 1rem;
}

/* The billing side gets a panel too, so the two columns read as a pair rather
   than a bare form next to a card. */
.woocommerce-checkout #customer_details {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

.woocommerce-checkout #customer_details h3 {
	margin-top: 0;
	font-size: 1.05rem;
	font-weight: 800;
}

.woocommerce-checkout .woocommerce-additional-fields {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--mt-line);
}

@media (min-width: 900px) {
	/*
	 * Rows and columns are both pinned explicitly. Relying on auto-placement
	 * here is fragile: `#order_review_heading` and `#order_review` are separate
	 * siblings, so the sparse algorithm drops the panel into a second row below
	 * the whole billing form, and any extra child a payment or shipping plugin
	 * injects into form.checkout shifts everything again.
	 */
	.woocommerce-checkout form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 2rem;
		row-gap: 1rem;
		align-items: start;
	}

	/* Anything unexpected spans the full width instead of landing in a column
	   and pushing the panel out of place. */
	.woocommerce-checkout form.checkout.woocommerce-checkout > * {
		grid-column: 1 / -1;
		min-width: 0;
	}

	.woocommerce-checkout form.checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: auto;
		float: none;
	}

	.woocommerce-checkout form.checkout h3#order_review_heading {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		margin: 0 0 .25rem;
	}

	.woocommerce-checkout form.checkout #order_review {
		grid-column: 2;
		grid-row: 2;
		position: sticky;
		top: calc(var(--mt-header-h) + 24px);
	}

	.woocommerce .cart-collaterals {
		display: flex;
		justify-content: flex-end;
	}

	.woocommerce .cart-collaterals .cart_totals {
		width: min(420px, 100%);
		float: none;
		text-align: left;
	}
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
	width: 100%;
	float: none;
}

.woocommerce-order-received .woocommerce-order,
.woocommerce-thankyou-order-received {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.mt-footer {
	margin-top: 3rem;
	background: #171717;
	color: #d4d4d4;
	font-size: .875rem;
}

.mt-footer h4,
.mt-footer strong {
	color: #fff;
}

.mt-footer a:hover {
	color: var(--mt-accent-400);
}

.mt-footer__usps {
	border-bottom: 1px solid #262626;
}

.mt-footer__usp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	padding-block: 1.75rem;
}

@media (min-width: 1024px) {
	.mt-footer__usp-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mt-usp {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.mt-usp__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--mt-radius-full);
	background: rgba(255, 106, 0, .15);
	color: var(--mt-accent-400);
}

.mt-usp__text strong {
	display: block;
	font-size: .875rem;
	font-weight: 600;
}

.mt-usp__text em {
	font-style: normal;
	font-size: .75rem;
	color: #a3a3a3;
}

.mt-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	padding-block: 2.5rem;
}

/* Tablet: brand across the top, then the three columns beneath it. */
@media (min-width: 768px) {
	.mt-footer__cols {
		grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
	}
}

/* Desktop: the categories column is double width - it carries all of the
   shop's main categories, in two runs. */
@media (min-width: 1100px) {
	.mt-footer__cols {
		grid-template-columns: 1.3fr 2fr repeat(2, minmax(0, 1fr));
	}
}

.mt-footer__brand {
	grid-column: 1 / -1;
}

@media (min-width: 1100px) {
	.mt-footer__brand {
		grid-column: auto;
	}
}

.mt-footer__brand .mt-logo,
.mt-footer__brand .mt-logo:hover {
	color: #fff;
}

.mt-footer__about {
	margin: 1rem 0 0;
	max-width: 40ch;
	color: #a3a3a3;
	line-height: 1.65;
}

.mt-footer__heading {
	margin-bottom: 1rem;
	font-size: .875rem;
	font-weight: 600;
}

.mt-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .6rem;
}

/* Fourteen main categories read better as two short runs than one long one.
   Column flow (not a two-column grid) keeps them in order down each run. */
.mt-footer__list--cats {
	display: block;
	columns: 2;
	column-gap: 1.5rem;
}

.mt-footer__list--cats li {
	margin-bottom: .6rem;
	break-inside: avoid;
}

/* On phones the column is the full width, so the two runs still fit. */
.mt-footer__col--cats {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.mt-footer__col--cats {
		grid-column: auto;
	}
}

.mt-footer__more {
	color: var(--mt-accent-400);
	font-weight: 600;
}

.mt-footer__bar {
	border-top: 1px solid #262626;
}

.mt-footer__bar-inner {
	padding-block: 1.25rem;
	font-size: .8125rem;
	color: #a3a3a3;
}

.mt-footer__bar-inner p {
	margin: 0;
}

/* ==========================================================================
   9. Content pages
   ========================================================================== */

.mt-entry {
	padding: 1.5rem;
	margin-bottom: 1rem;
	background: #fff;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-lg);
}

.mt-entry__title {
	font-size: 1.25rem;
	font-weight: 700;
}

.mt-entry__content > *:first-child {
	margin-top: 0;
}

.mt-entry__content > *:last-child {
	margin-bottom: 0;
}

/* WooCommerce notices ------------------------------------------------------ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--mt-accent);
	border-radius: var(--mt-radius);
	background: #fff;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--mt-accent);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
