/*
Theme Name: Trade In Track Marketplace
Theme URI: https://www.tradeintrack.co.za/
Author: h2rahost — The Hub Zone
Author URI: https://thehubzone.co.za
Description: A retail marketplace block theme for Trade In Track, in the style of South Africa's big online shops: a search-first header with departments and a live trolley, sliding banners, deals with a countdown, product rails, shop filters, a buy box with "Buy now", and a checkout without distractions. Built for WooCommerce and the TIT Multivendor plugin (sellers, drivers, services, near me and shop links). Every header, footer and home section is edited in Appearance > Editor; colour schemes are in Styles. Replaces both "Trade In Track Storefront" and "Trade In Track Shop" — their shortcodes keep working.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 4.5.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradeintrack-marketplace
Tags: block-theme, full-site-editing, e-commerce, block-patterns, style-variations, wide-blocks, custom-colors, custom-logo, translation-ready
*/

/* ==========================================================================
   0. TOKENS — every colour comes from the palette in theme.json, so the
   colour schemes in Styles repaint the whole shop.
   ========================================================================== */

:root {
	--tm-bg: var(--wp--preset--color--base-2);
	--tm-card: var(--wp--preset--color--base);
	--tm-soft: var(--wp--preset--color--base-3);
	--tm-line: var(--wp--preset--color--line);
	--tm-ink: var(--wp--preset--color--contrast);
	--tm-ink-2: var(--wp--preset--color--contrast-2);
	--tm-muted: var(--wp--preset--color--contrast-3);
	--tm-brand: var(--wp--preset--color--primary);
	--tm-brand-dark: var(--wp--preset--color--primary-dark);
	--tm-brand-light: var(--wp--preset--color--primary-light);
	--tm-on-brand: var(--wp--preset--color--on-primary);
	/* The main header bar. A style can give it its own colours with the
	   "header" and "on-header" palette slugs (the white-header style does);
	   without them it is the brand colour. */
	--tm-header: var(--wp--preset--color--header, var(--wp--preset--color--primary));
	--tm-on-header: var(--wp--preset--color--on-header, var(--wp--preset--color--on-primary));
	--tm-accent: var(--wp--preset--color--accent);
	--tm-accent-dark: var(--wp--preset--color--accent-dark);
	--tm-accent-soft: var(--wp--preset--color--accent-soft);
	--tm-on-accent: var(--wp--preset--color--on-accent);
	--tm-link: var(--wp--preset--color--link);
	--tm-sale: var(--wp--preset--color--sale);
	--tm-ok: var(--wp--preset--color--success);
	--tm-star: var(--wp--preset--color--rating);
	--tm-r-s: var(--wp--custom--radius--small, 6px);
	--tm-r-m: var(--wp--custom--radius--medium, 10px);
	--tm-r-l: var(--wp--custom--radius--large, 16px);
	--tm-shadow: var(--wp--preset--shadow--card);
	--tm-shadow-lg: var(--wp--preset--shadow--raised);
	--tm-gap: 16px;
	--tm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* WooCommerce's own colour variables, so its buttons and forms match. */
:root:root {
	--wc-primary: var(--wp--preset--color--accent);
	--wc-primary-text: var(--wp--preset--color--on-accent);
	--wc-secondary: var(--wp--preset--color--base-3);
	--wc-secondary-text: var(--wp--preset--color--contrast);
	--wc-highlight: var(--wp--preset--color--sale);
	--wc-highligh-text: #fff;
	--wc-content-bg: var(--wp--preset--color--base);
	--wc-subtext: var(--wp--preset--color--contrast-3);
	--wc-form-border-color: var(--wp--preset--color--line);
	--wc-form-border-radius: var(--wp--custom--radius--small, 6px);
	--wc-green: var(--wp--preset--color--success);
	--wc-red: var(--wp--preset--color--sale);
}

/* ==========================================================================
   1. BASE
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

html.tm-lock {
	overflow: hidden;
}

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

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

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

.screen-reader-text:focus {
	background: var(--tm-card);
	clip: auto !important;
	clip-path: none;
	color: var(--tm-ink);
	display: block;
	font-size: 14px;
	height: auto;
	left: 6px;
	padding: 12px 20px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

.tm-icon {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
}

.wp-site-blocks > .tm-site-header,
.wp-site-blocks > .tm-site-footer,
.wp-site-blocks > .tm-main,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.tm-muted {
	color: var(--tm-muted);
}

.tm-center {
	text-align: center;
}

/* A product page (deals, new arrivals…) with nothing in it yet. */
.tm-empty {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	color: var(--tm-muted);
	margin: 0;
	padding: 28px 24px;
	text-align: center;
}

.tm-empty a {
	color: var(--tm-brand);
	font-weight: 700;
	white-space: nowrap;
}

.tm-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 8px;
	opacity: .92;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tm-editor-note {
	background: var(--tm-card);
	border: 1px dashed var(--tm-line);
	border-radius: var(--tm-r-s);
	color: var(--tm-muted);
	font-size: 13px;
	padding: 14px 16px;
}

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

.tm-btn {
	align-items: center;
	background: var(--tm-accent);
	border: 0;
	border-radius: var(--tm-r-m);
	color: var(--tm-on-accent);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	line-height: 1.2;
	padding: .75em 1.3em;
	text-decoration: none;
	transition: background-color .15s, transform .1s;
}

.tm-btn:hover,
.tm-btn:focus-visible {
	background: var(--tm-accent-dark);
	color: var(--tm-on-accent);
}

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

.tm-btn--brand {
	background: var(--tm-brand);
	color: var(--tm-on-brand);
}

.tm-btn--brand:hover,
.tm-btn--brand:focus-visible {
	background: var(--tm-brand-dark);
	color: var(--tm-on-brand);
}

.tm-btn--block {
	display: flex;
	width: 100%;
}

.tm-btn--small {
	font-size: 13px;
	padding: .55em .95em;
}

.wp-block-button__link {
	transition: background-color .15s, color .15s, transform .1s;
}

.wp-block-button__link:active {
	transform: translateY(1px);
}

.wp-block-button.is-style-tm-brand .wp-block-button__link {
	background: var(--tm-brand);
	color: var(--tm-on-brand);
}

.wp-block-button.is-style-tm-brand .wp-block-button__link:hover {
	background: var(--tm-brand-dark);
	color: var(--tm-on-brand);
}

.wp-block-button.is-style-tm-light .wp-block-button__link {
	background: #fff;
	color: var(--tm-brand);
}

.wp-block-button.is-style-tm-ghost .wp-block-button__link {
	background: transparent;
	box-shadow: inset 0 0 0 2px currentColor;
	color: inherit;
}

.wp-block-button.is-style-tm-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .14);
	color: inherit;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--tm-brand);
	padding: calc(.75em - 2px) calc(1.35em - 2px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--tm-brand);
	border-color: var(--tm-brand);
	color: var(--tm-on-brand);
}

/* Forms ------------------------------------------------------------------ */

:where(.woocommerce, .tm-page__content, .comment-form, .tm-authbox, .tm-quick) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], input[type="search"], input[type="date"], select, textarea) {
	background-color: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	font: inherit;
	font-size: 15px;
	max-width: 100%;
	padding: 10px 12px;
}

:where(.woocommerce, .tm-page__content, .comment-form, .tm-authbox, .tm-quick) :is(input, select, textarea):focus {
	border-color: var(--tm-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-accent) 40%, transparent);
	outline: none;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */

.tm-site-header {
	position: relative;
	z-index: 60;
}

.tm-header {
	color: var(--tm-on-brand);
}

.wp-block-group.tm-header > *,
.wp-block-group.tm-footer > * {
	margin-block: 0;
}

.tm-header a {
	color: inherit;
	text-decoration: none;
}

/* Top bar */
.tm-topbar {
	font-size: 12.5px;
	padding-block: 6px;
}

.tm-topbar__inner.is-layout-flex {
	gap: 16px;
	min-height: 22px;
}

.tm-topbar__msg {
	margin: 0;
	min-width: 0;
	opacity: .92;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tm-topbar__nav {
	flex: 0 0 auto;
	font-size: 12.5px;
	font-weight: 700;
}

.tm-topbar__nav .wp-block-navigation__container {
	gap: 18px;
}

.tm-topbar__nav .wp-block-navigation-item__content {
	opacity: .9;
}

.tm-topbar__nav .wp-block-navigation-item__content:hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Main bar */
.tm-mainbar {
	padding-block: 10px;
}

/* The main bar and the checkout header keep "Brand" as their block colour,
   but show the header bar colours, so a style with a white header repaints
   them without editing the header. */
.tm-mainbar.has-primary-background-color,
.tm-checkout-header.has-primary-background-color {
	background-color: var(--tm-header) !important;
}

.tm-mainbar.has-on-primary-color,
.tm-checkout-header.has-on-primary-color {
	color: var(--tm-on-header) !important;
}

.tm-mainbar__inner.is-layout-flex {
	align-items: center;
	display: grid;
	gap: 12px 16px;
	grid-template-areas: "menu brand loc search account cart";
	grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
}

.tm-mainbar__inner > * {
	margin: 0 !important;
	min-width: 0;
}

.tm-mainbar .wp-block-tradeintrack-mobile-menu { grid-area: menu; display: none; }
.tm-mainbar .wp-block-tradeintrack-brand { grid-area: brand; }
.tm-mainbar .wp-block-tradeintrack-location { grid-area: loc; }
.tm-mainbar .wp-block-tradeintrack-header-search { grid-area: search; }
.tm-mainbar .wp-block-tradeintrack-account { grid-area: account; }
.tm-mainbar .wp-block-tradeintrack-cart { grid-area: cart; }

/* Logo */
.tm-brand__link {
	align-items: center;
	display: flex;
	gap: 10px;
	text-decoration: none;
}

.tm-brand__img {
	display: block;
	height: auto;
	max-width: none;
}

.tm-brand__name {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.1;
}

/* Near me */
.tm-locwrap {
	position: relative;
}

.tm-loc {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--tm-r-s);
	color: inherit;
	column-gap: 6px;
	cursor: pointer;
	display: grid;
	font: inherit;
	grid-template-columns: auto auto;
	padding: 5px 8px;
	text-align: left;
	transition: border-color .15s;
}

.tm-loc .tm-icon {
	grid-row: 1 / span 2;
}

.tm-loc__small {
	font-size: 12px;
	grid-column: 2;
	grid-row: 1;
	line-height: 1.15;
	opacity: .82;
}

.tm-loc__main {
	font-size: 14px;
	font-weight: 800;
	grid-column: 2;
	grid-row: 2;
	line-height: 1.2;
	white-space: nowrap;
}

.tm-loc:hover,
.tm-loc:focus-visible {
	border-color: rgba(255, 255, 255, .55);
	border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.tm-loc.is-set .tm-icon {
	color: var(--tm-accent);
}

.tm-mainbar:has(.tm-brand--on-light) .tm-loc.is-set .tm-icon {
	color: var(--tm-brand);
}

.tm-loc.is-busy {
	cursor: progress;
	opacity: .75;
}

.tm-locwrap .titmv-nearmsg {
	background: var(--tm-card);
	border-radius: var(--tm-r-s);
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	font-size: 13px;
	left: 0;
	margin: 6px 0 0;
	padding: 10px 12px;
	position: absolute;
	top: 100%;
	width: 280px;
	z-index: 95;
}

/* Search */
.tm-searchwrap {
	min-width: 0;
}

.tm-search {
	align-items: stretch;
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: 0 0 0 0 transparent;
	display: flex;
	height: 46px;
	position: relative;
	transition: box-shadow .15s;
}

.tm-search:focus-within {
	box-shadow: 0 0 0 3px var(--tm-accent);
}

.tm-search__dept {
	align-items: center;
	background: var(--tm-soft);
	border-radius: var(--tm-r-m) 0 0 var(--tm-r-m);
	border-right: 1px solid var(--tm-line);
	color: var(--tm-ink-2);
	display: flex;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	gap: 4px;
	max-width: 170px;
	padding: 0 10px 0 14px;
	position: relative;
}

.tm-search__dept:hover {
	background: var(--tm-line);
}

.tm-search__select {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	font-size: 16px;
	height: 100%;
	inset: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
}

.tm-search__deptlabel {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tm-search .tm-search__input {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--tm-ink);
	flex: 1 1 auto;
	font: inherit;
	font-size: 15px;
	margin: 0;
	min-width: 0;
	outline: none;
	padding: 0 14px;
}

.tm-search .tm-search__input::placeholder {
	color: var(--tm-muted);
	opacity: 1;
}

.tm-search__dept + .screen-reader-text + .tm-search__input,
.tm-search > .tm-search__input:first-of-type {
	border-radius: var(--tm-r-m) 0 0 var(--tm-r-m);
}

.tm-search__btn {
	align-items: center;
	background: var(--tm-accent);
	border: 0;
	border-radius: 0 var(--tm-r-m) var(--tm-r-m) 0;
	color: var(--tm-on-accent);
	cursor: pointer;
	display: flex;
	flex: 0 0 56px;
	justify-content: center;
	transition: background-color .15s;
}

.tm-search__btn:hover,
.tm-search__btn:focus-visible {
	background: var(--tm-accent-dark);
}

/* Suggestions */
.tm-suggest {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	left: 0;
	max-height: min(70vh, 540px);
	overflow-y: auto;
	padding: 6px;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 95;
}

.tm-suggest[hidden] {
	display: none;
}

.tm-suggest__group {
	color: var(--tm-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	margin: 8px 10px 4px;
	text-transform: uppercase;
}

.tm-suggest__item {
	align-items: center;
	border-radius: var(--tm-r-s);
	color: inherit;
	display: flex;
	gap: 12px;
	padding: 8px 10px;
	text-decoration: none;
}

.tm-header .tm-suggest__item {
	color: var(--tm-ink);
}

.tm-suggest__item:hover,
.tm-suggest__item.is-active {
	background: var(--tm-soft);
}

.tm-suggest__item img,
.tm-suggest__ph {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: 6px;
	flex: 0 0 44px;
	height: 44px;
	object-fit: contain;
	width: 44px;
}

.tm-suggest__name {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tm-suggest__price {
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.tm-suggest__price del {
	color: var(--tm-muted);
	font-size: 12px;
	font-weight: 500;
}

.tm-suggest__meta {
	color: var(--tm-muted);
	font-size: 12px;
}

.tm-suggest__all {
	border-top: 1px solid var(--tm-line);
	border-radius: 0 0 var(--tm-r-s) var(--tm-r-s);
	font-weight: 800;
	justify-content: center;
	margin-top: 4px;
}

.tm-header .tm-suggest__all {
	color: var(--tm-link);
}

.tm-suggest__empty {
	color: var(--tm-muted);
	font-size: 14px;
	margin: 0;
	padding: 12px;
}

/* Account */
.tm-account {
	position: relative;
}

.tm-account__toggle {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--tm-r-s);
	display: flex;
	gap: 8px;
	padding: 5px 8px;
	transition: border-color .15s;
}

.tm-account__toggle:hover,
.tm-account__toggle:focus-visible {
	border-color: rgba(255, 255, 255, .55);
	border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.tm-account__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.tm-account__text small {
	font-size: 12px;
	opacity: .85;
	white-space: nowrap;
}

.tm-account__text strong {
	align-items: center;
	display: flex;
	font-size: 14px;
	font-weight: 800;
	gap: 2px;
	white-space: nowrap;
}

/* Pop-over menus */
.tm-pop {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	margin-top: 8px;
	min-width: 270px;
	opacity: 0;
	padding: 14px;
	position: absolute;
	right: 0;
	top: 100%;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
	visibility: hidden;
	z-index: 95;
}

.tm-pop::before {
	content: "";
	height: 10px;
	left: 0;
	position: absolute;
	right: 0;
	top: -10px;
}

.tm-account:hover .tm-pop,
.tm-account:focus-within .tm-pop {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.tm-header .tm-pop a {
	color: var(--tm-ink);
}

.tm-header .tm-pop .tm-btn {
	color: var(--tm-on-accent);
}

.tm-pop__title {
	border-top: 1px solid var(--tm-line);
	color: var(--tm-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	margin: 10px 0 4px;
	padding-top: 12px;
	text-transform: uppercase;
}

.tm-pop__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-pop__list a {
	align-items: center;
	border-radius: var(--tm-r-s);
	display: flex;
	font-size: 14px;
	font-weight: 600;
	gap: 10px;
	padding: 8px;
}

.tm-pop__list a:hover {
	background: var(--tm-soft);
}

.tm-pop__list .tm-icon {
	color: var(--tm-muted);
}

.tm-account__new {
	color: var(--tm-muted);
	font-size: 13px;
	margin: 8px 0 6px;
	text-align: center;
}

.tm-header .tm-account__new a {
	color: var(--tm-link);
	font-weight: 700;
	text-decoration: underline;
}

/* Trolley */
.tm-cart {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--tm-r-s);
	display: flex;
	gap: 12px;
	padding: 5px 8px;
	position: relative;
	transition: border-color .15s;
}

.tm-cart:hover,
.tm-cart:focus-visible {
	border-color: rgba(255, 255, 255, .55);
	border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.tm-cart__icon {
	display: block;
	position: relative;
}

.tm-cart__icon > .tm-icon {
	display: block;
	height: 32px;
	width: 32px;
}

.tm-cart__count {
	align-items: center;
	background: var(--tm-accent);
	border-radius: 999px;
	box-shadow: 0 0 0 2px var(--tm-header);
	color: var(--tm-on-accent);
	display: flex;
	font-size: 12px;
	font-weight: 800;
	height: 20px;
	justify-content: center;
	box-sizing: border-box;
	left: 17px;
	line-height: 1;
	min-width: 20px;
	padding: 0 5px;
	position: absolute;
	top: -7px;
}

.tm-cart__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.tm-cart__label {
	font-size: 14px;
	font-weight: 800;
}

.tm-cart__total {
	font-size: 12px;
	opacity: .85;
	white-space: nowrap;
}

.tm-cart__total .amount,
.tm-cart__total bdi {
	color: inherit;
}

/* Departments row */
.tm-navrow {
	font-size: 14px;
}

.tm-navrow__inner.is-layout-flex {
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	min-height: 44px;
	position: relative;
}

.tm-navrow__nav {
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.tm-navrow__nav::-webkit-scrollbar {
	display: none;
}

.tm-navrow__nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: 2px;
}

.tm-navrow__nav .wp-block-navigation-item__content {
	border-radius: var(--tm-r-s);
	display: block;
	font-weight: 700;
	padding: 10px 12px;
	white-space: nowrap;
}

.tm-navrow__nav .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, .12);
}

/* Light (white) header bar: a framed search box and brand-coloured icons,
   since yellow and white details disappear on white. The logo block marks
   itself tm-brand--on-light when it picks the dark logo for a light bar. */
.tm-mainbar:has(.tm-brand--on-light) .tm-search {
	box-shadow: 0 0 0 2px var(--tm-brand);
}

.tm-mainbar:has(.tm-brand--on-light) .tm-search:focus-within {
	box-shadow: 0 0 0 2px var(--tm-brand), 0 0 0 5px var(--tm-accent);
}

.tm-mainbar:has(.tm-brand--on-light) .tm-loc > .tm-icon,
.tm-mainbar:has(.tm-brand--on-light) .tm-account__toggle > .tm-icon,
.tm-mainbar:has(.tm-brand--on-light) .tm-cart__icon > .tm-icon,
.tm-checkout-header:has(.tm-brand--on-light) .tm-checkout-header__secure .tm-iconblock {
	color: var(--tm-brand);
}

.tm-checkout-header:has(.tm-brand--on-light) {
	border-bottom: 1px solid var(--tm-line);
}

/* Departments mega menu */
.tm-dept__toggle {
	align-items: center;
	background: rgba(0, 0, 0, .2);
	border: 0;
	border-radius: var(--tm-r-s);
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 800;
	gap: 8px;
	padding: 10px 14px;
	white-space: nowrap;
}

.tm-dept__toggle:hover,
.tm-dept.is-open .tm-dept__toggle {
	background: rgba(0, 0, 0, .32);
}

.tm-dept.is-open .tm-dept__toggle .tm-icon--down {
	transform: rotate(180deg);
}

.tm-dept__panel {
	background: var(--tm-card);
	border-radius: 0 0 var(--tm-r-m) var(--tm-r-m);
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	display: flex;
	flex-direction: column;
	left: 0;
	min-height: 420px;
	position: absolute;
	top: 100%;
	width: min(100%, 1080px);
	z-index: 90;
}

.tm-dept__panel[hidden] {
	display: none;
}

.tm-dept__list {
	border-right: 1px solid var(--tm-line);
	flex: 1 1 auto;
	list-style: none;
	margin: 0;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 8px 0;
	width: 290px;
}

.tm-header .tm-dept__link {
	align-items: center;
	color: var(--tm-ink);
	display: flex;
	font-size: 14px;
	font-weight: 600;
	gap: 10px;
	padding: 7px 16px;
}

.tm-dept__link .tm-icon--right {
	color: var(--tm-muted);
	margin-left: auto;
}

.tm-dept__item.is-active > .tm-dept__link {
	background: var(--tm-soft);
	font-weight: 800;
}

.tm-dept__sub {
	bottom: 0;
	display: none;
	left: 290px;
	overflow-y: auto;
	padding: 20px 24px;
	position: absolute;
	right: 0;
	top: 0;
}

.tm-dept__item.is-active > .tm-dept__sub {
	align-content: start;
	display: grid;
	gap: 14px 24px;
	grid-template-areas: "head visual" "grid visual" "all visual";
	grid-template-columns: minmax(0, 1fr) 210px;
	grid-template-rows: auto auto 1fr;
}

.tm-dept__subhead {
	align-items: baseline;
	display: flex;
	gap: 12px;
	grid-area: head;
}

.tm-header .tm-dept__subhead a {
	color: var(--tm-ink);
	font-size: 20px;
	font-weight: 800;
}

.tm-dept__subhead span {
	color: var(--tm-muted);
	font-size: 13px;
}

.tm-dept__subgrid {
	display: grid;
	gap: 6px 20px;
	grid-area: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-header .tm-dept__subgrid a {
	color: var(--tm-ink-2);
	display: block;
	font-size: 14px;
	padding: 4px 0;
}

.tm-header .tm-dept__subgrid > li > a {
	color: var(--tm-ink);
	font-weight: 700;
}

.tm-header .tm-dept__subgrid a:hover {
	color: var(--tm-link);
	text-decoration: underline;
}

.tm-dept__subgrid ul {
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
}

.tm-dept__visual {
	align-self: start;
	grid-area: visual;
}

.tm-dept__visual img {
	aspect-ratio: 1;
	background: var(--tm-soft);
	border-radius: var(--tm-r-m);
	object-fit: cover;
	width: 100%;
}

.tm-header .tm-dept__all {
	align-items: center;
	align-self: end;
	color: var(--tm-link);
	display: inline-flex;
	font-weight: 800;
	gap: 6px;
	grid-area: all;
}

.tm-header .tm-dept__directory {
	align-items: center;
	border-top: 1px solid var(--tm-line);
	color: var(--tm-link);
	display: flex;
	font-weight: 800;
	gap: 6px;
	padding: 12px 16px;
	width: 290px;
}

.tm-catthumb {
	background: var(--tm-soft);
	border-radius: 50%;
	flex: 0 0 28px;
	height: 28px;
	object-fit: cover;
	width: 28px;
}

.tm-catthumb--letter {
	align-items: center;
	color: var(--tm-brand);
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	justify-content: center;
}

/* Mobile menu */
.tm-burger {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: var(--tm-r-s);
	color: inherit;
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.tm-burger:hover {
	background: rgba(255, 255, 255, .12);
}

.tm-drawer {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

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

.tm-drawer__backdrop {
	background: rgba(10, 14, 8, .55);
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .25s;
}

.tm-drawer__panel {
	background: var(--tm-card);
	bottom: 0;
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	display: flex;
	flex-direction: column;
	left: 0;
	position: absolute;
	top: 0;
	transform: translateX(-100%);
	transition: transform .26s var(--tm-ease);
	width: min(88vw, 380px);
}

.tm-drawer.is-open .tm-drawer__backdrop {
	opacity: 1;
}

.tm-drawer.is-open .tm-drawer__panel {
	transform: none;
}

.tm-drawer__head {
	align-items: center;
	background: var(--tm-brand);
	color: var(--tm-on-brand);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 12px 12px 16px;
}

.tm-drawer__hello {
	align-items: center;
	color: inherit;
	display: flex;
	font-size: 17px;
	font-weight: 800;
	gap: 10px;
	margin: 0;
	text-decoration: none;
}

.tm-drawer__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.tm-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 4px 0 28px;
}

.tm-drawer__title {
	color: var(--tm-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	margin: 18px 16px 6px;
	text-transform: uppercase;
}

.tm-drawer__cats,
.tm-drawer__links,
.tm-drawer__cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-drawer__cats > li > a,
.tm-drawer__cats summary,
.tm-drawer__links a {
	align-items: center;
	color: var(--tm-ink);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	gap: 12px;
	list-style: none;
	padding: 10px 16px;
	text-decoration: none;
}

.tm-drawer__cats summary::-webkit-details-marker {
	display: none;
}

.tm-drawer__cats summary .tm-icon--down {
	color: var(--tm-muted);
	margin-left: auto;
	transition: transform .2s;
}

.tm-drawer__cats details[open] > summary {
	background: var(--tm-soft);
}

.tm-drawer__cats details[open] > summary .tm-icon--down {
	transform: rotate(180deg);
}

.tm-drawer__cats details ul {
	padding: 4px 0 8px 56px;
}

.tm-drawer__cats details ul a {
	color: var(--tm-ink-2);
	display: block;
	font-size: 14px;
	padding: 8px 16px 8px 0;
	text-decoration: none;
}

.tm-drawer__links .tm-icon {
	color: var(--tm-brand);
}

/* "Shop by department": one button that opens the departments. */
.tm-drawer__dept {
	margin: 14px 12px 6px;
}

.tm-drawer__deptbtn {
	align-items: center;
	background: var(--tm-soft);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-m);
	color: var(--tm-ink);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	font-weight: 800;
	gap: 12px;
	list-style: none;
	padding: 13px 14px;
	-webkit-user-select: none;
	user-select: none;
}

.tm-drawer__deptbtn::-webkit-details-marker {
	display: none;
}

.tm-drawer__deptbtn > .tm-icon {
	color: var(--tm-brand);
	flex: none;
}

.tm-drawer__deptbtn > .tm-drawer__deptarrow {
	color: var(--tm-muted);
	margin-left: auto;
	transition: transform .2s;
}

.tm-drawer__dept[open] > .tm-drawer__deptbtn {
	background: var(--tm-brand);
	border-color: var(--tm-brand);
	border-radius: var(--tm-r-m) var(--tm-r-m) 0 0;
	color: var(--tm-on-brand);
}

.tm-drawer__dept[open] > .tm-drawer__deptbtn > .tm-icon {
	color: inherit;
}

.tm-drawer__dept[open] > .tm-drawer__deptbtn > .tm-drawer__deptarrow {
	transform: rotate(180deg);
}

.tm-drawer__dept > .tm-drawer__cats {
	border: 1px solid var(--tm-line);
	border-radius: 0 0 var(--tm-r-m) var(--tm-r-m);
	border-top: 0;
	overflow: hidden;
	padding: 4px 0;
}

.tm-drawer__dept .tm-drawer__cats > li > a,
.tm-drawer__dept .tm-drawer__cats summary {
	padding-left: 12px;
	padding-right: 12px;
}

.tm-drawer__dept .tm-drawer__cats details ul {
	padding-left: 52px;
}

.tm-drawer__cats a:hover,
.tm-drawer__links a:hover,
.tm-drawer__cats summary:hover {
	background: var(--tm-soft);
}

/* Sticky header: the search bar stays on screen once the header scrolls away. */
.tm-stuck .tm-site-header {
	min-height: var(--tm-header-h, 0);
}

.tm-stuck .tm-mainbar {
	animation: tm-slide-down .25s var(--tm-ease);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .2);
	left: 0;
	position: fixed;
	right: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 95;
}

@keyframes tm-slide-down {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: none;
	}
}

@media (max-width: 600px) {
	.tm-stuck .tm-mainbar {
		top: 0;
	}
}

/* ==========================================================================
   3. PAGE FRAME AND SECTIONS
   ========================================================================== */

.tm-main {
	padding-bottom: clamp(32px, 5vw, 56px);
	padding-top: 16px;
}

.tm-main > * + * {
	margin-block-start: 20px;
}

.tm-section {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: 18px 20px 20px;
}

.tm-section__head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 14px;
}

.tm-section__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	margin: 0;
}

.tm-section__link {
	align-items: center;
	color: var(--tm-link);
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 2px;
	margin-left: auto;
	text-decoration: none;
}

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

.tm-countdown {
	align-items: center;
	background: var(--tm-sale);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	gap: 6px;
	margin: 0;
	padding: 5px 12px;
}

.tm-countdown time {
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

/* Icon block */
.tm-iconblock {
	align-items: center;
	background: var(--tm-accent-soft);
	border-radius: 14px;
	color: var(--tm-brand);
	display: inline-flex;
	flex: 0 0 auto;
	height: var(--tm-icon-size, 48px);
	justify-content: center;
	width: var(--tm-icon-size, 48px);
}

.tm-iconblock.has-text-color {
	color: inherit;
}

/* ==========================================================================
   4. HOME: HERO SLIDER AND TILES
   ========================================================================== */

.tm-hero {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) 300px;
}

.tm-hero > * {
	margin: 0 !important;
}

.tm-slider-frame {
	border-radius: var(--tm-r-l);
	box-shadow: var(--tm-shadow);
	display: flex;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.tm-slider-frame > .tm-slider {
	flex: 1 1 auto;
	min-width: 0;
}

.tm-slider {
	border-radius: var(--tm-r-l);
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.tm-slider::-webkit-scrollbar {
	display: none;
}

.tm-slider > * {
	flex: 0 0 100%;
	margin: 0 !important;
	min-height: 380px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.tm-slide.wp-block-media-text {
	padding-bottom: 0;
}

.tm-slide.wp-block-media-text .wp-block-media-text__content {
	padding: clamp(22px, 3.2vw, 44px);
}

.tm-slide__title {
	color: inherit;
	font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.55rem);
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 0 12px;
}

.tm-slide__text {
	font-size: 16px;
	margin: 0 0 20px;
	max-width: 46ch;
	opacity: .93;
}

.tm-slide .wp-block-buttons {
	gap: 10px;
}

.tm-slide--services {
	align-items: center;
	background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .14), transparent 55%);
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: clamp(22px, 3.2vw, 44px);
}

.tm-slide__content > * {
	margin-block: 0;
}

.tm-slide__content > * + * {
	margin-block-start: 12px;
}

.tm-slide__art {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, 96px);
}

.tm-slide__art > * {
	margin: 0 !important;
}

.tm-slide__art .tm-iconblock {
	background: rgba(255, 255, 255, .12);
	border-radius: 24px;
	color: var(--tm-accent);
	height: 96px;
	width: 96px;
}

.tm-slider__dots {
	bottom: 14px;
	display: flex;
	gap: 8px;
	left: clamp(22px, 3.2vw, 44px);
	position: absolute;
}

.tm-slider__dot {
	background: rgba(255, 255, 255, .6);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
	cursor: pointer;
	height: 10px;
	padding: 0;
	transition: width .2s, background-color .2s;
	width: 10px;
}

.tm-slider__dot[aria-current="true"] {
	background: var(--tm-accent);
	width: 26px;
}

.tm-slider__arrow {
	align-items: center;
	background: rgba(255, 255, 255, .94);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--tm-shadow);
	color: var(--tm-ink);
	cursor: pointer;
	display: flex;
	height: 42px;
	justify-content: center;
	opacity: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity .2s;
	width: 42px;
}

.tm-slider-frame:hover .tm-slider__arrow,
.tm-slider__arrow:focus-visible {
	opacity: 1;
}

.tm-slider__arrow--prev {
	left: 12px;
}

.tm-slider__arrow--next {
	right: 12px;
}

.tm-hero__side {
	display: grid;
	gap: 16px;
	grid-template-rows: 1fr 1fr;
}

.tm-tile {
	border-radius: var(--tm-r-l);
	box-shadow: var(--tm-shadow);
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 !important;
	padding: 18px 20px;
	position: relative;
}

.tm-tile > * {
	margin: 0 !important;
}

.tm-tile .tm-iconblock {
	background: rgba(255, 255, 255, .45);
	bottom: 14px;
	color: inherit;
	position: absolute;
	right: 16px;
}

.tm-tile.has-base-background-color .tm-iconblock {
	background: var(--tm-accent-soft);
	color: var(--tm-brand);
}

.tm-tile__title {
	color: inherit;
	font-size: 18px;
}

.tm-tile__text {
	font-size: 13.5px;
	opacity: .9;
}

.tm-tile__link {
	font-weight: 800;
	margin-top: auto !important;
	padding-top: 6px;
}

.tm-tile__link a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==========================================================================
   5. CATEGORY CIRCLES, RAILS, CARDS
   ========================================================================== */

.tm-catstrip__list {
	display: grid;
	gap: 12px;
	grid-auto-columns: minmax(104px, 1fr);
	grid-auto-flow: column;
	list-style: none;
	margin: 0;
	padding: 4px 2px 8px;
}

.tm-catstrip__item {
	align-items: center;
	color: var(--tm-ink);
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
	text-decoration: none;
}

.tm-catstrip__img {
	align-items: center;
	background: var(--tm-soft);
	border: 2px solid transparent;
	border-radius: 50%;
	display: flex;
	height: 96px;
	justify-content: center;
	overflow: hidden;
	transition: border-color .15s, transform .15s;
	width: 96px;
}

.tm-catstrip__img img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tm-catstrip__item:hover .tm-catstrip__img {
	border-color: var(--tm-accent);
	transform: translateY(-2px);
}

.tm-catstrip__name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	max-width: 112px;
}

.tm-catstrip--square .tm-catstrip__img {
	border-radius: var(--tm-r-l);
}

.tm-catstrip__letter {
	color: var(--tm-brand);
	font-size: 32px;
	font-weight: 800;
}

/* Rails */
.tm-rail {
	position: relative;
}

.tm-rail__track {
	-webkit-overflow-scrolling: touch;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.tm-rail__track::-webkit-scrollbar {
	display: none;
}

.tm-rail__track:focus-visible {
	outline-offset: 4px;
}

.tm-rail__btn {
	align-items: center;
	background: var(--tm-card);
	border: 1px solid var(--tm-line);
	border-radius: 50%;
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	transition: opacity .2s;
	width: 44px;
	z-index: 5;
}

.tm-rail__btn--prev {
	left: -12px;
}

.tm-rail__btn--next {
	right: -12px;
}

.tm-rail__btn:disabled {
	opacity: 0;
	pointer-events: none;
}

.tm-rail.is-static .tm-rail__btn,
.tm-catstrip .tm-rail__btn {
	top: 50px;
}

.tm-rail.is-static .tm-rail__btn {
	display: none;
}

@media (hover: none) {
	.tm-rail__btn {
		display: none;
	}
}

.tm-rail__track > .woocommerce {
	width: 100%;
}

.tm-rail__track ul.products {
	gap: var(--tm-gap);
	grid-auto-columns: calc((100% - 5 * var(--tm-gap)) / 6);
	grid-auto-flow: column;
	grid-template-columns: none !important;
	margin: 0 !important;
	padding: 2px 2px 6px !important;
}

.tm-rail__track ul.products li.product {
	scroll-snap-align: start;
}

/* Category cards */
.tm-qcards {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-qcard {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	display: flex;
	flex-direction: column;
	padding: 16px;
}

.tm-qcard__title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 12px;
}

.tm-qcard__title a {
	color: var(--tm-ink);
	text-decoration: none;
}

.tm-qcard__grid {
	align-content: start;
	display: grid;
	flex: 1;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-qcard__item {
	min-width: 0;
	color: var(--tm-ink-2);
	display: flex;
	flex-direction: column;
	font-size: 12px;
	gap: 4px;
	line-height: 1.3;
	text-decoration: none;
}

.tm-qcard__item img {
	aspect-ratio: 1;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	object-fit: contain;
	transition: transform .2s;
	width: 100%;
}

.tm-qcard__item:hover img {
	transform: scale(1.03);
}

.tm-qcard__item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tm-qcard__item--single {
	grid-column: 1 / -1;
}

.tm-qcard__link {
	align-items: center;
	color: var(--tm-link);
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 2px;
	margin-top: 12px;
	text-decoration: none;
}

.tm-qcard__link:hover {
	text-decoration: underline;
}

/* Services band */
.tm-section.tm-services {
	align-items: center;
	background: linear-gradient(135deg, var(--tm-brand-dark), var(--tm-brand));
	color: var(--tm-on-brand);
	display: grid;
	gap: 24px 32px;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	padding: clamp(20px, 3vw, 36px);
}

.tm-services__title {
	color: inherit;
	font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
	margin: 0 0 8px;
}

.tm-services__text {
	margin: 0 0 16px;
	opacity: .9;
}

.tm-services__search {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	display: flex;
	gap: 8px;
	padding: 6px;
}

.tm-services__search input {
	background: transparent;
	border: 0;
	color: var(--tm-ink);
	flex: 1;
	font: inherit;
	min-width: 0;
	outline: none;
	padding: 0 10px;
}

.tm-services__links {
	font-size: 13px;
	margin: 12px 0 0;
}

.tm-services__links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tm-services__grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-services__grid a {
	align-items: center;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--tm-r-m);
	color: inherit;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 10px;
	padding: 12px;
	text-decoration: none;
	transition: background-color .15s;
}

.tm-services__grid a:hover {
	background: rgba(255, 255, 255, .2);
}

.tm-services__icon {
	font-size: 22px;
	line-height: 1;
}

/* Shops (TIT Multivendor) */
.tm-stores .titmv-featured-list > ul,
.tm-stores .titmv-vendorgrid {
	gap: 12px;
}

.tm-stores .titmv-featured-list > h3,
.tm-stores .titmv-vendorgrid-wrap > h2 {
	display: none;
}

/* Products near you (TIT Multivendor) */
.tm-nearme .titmv-nearblock {
	margin: 0;
}

.tm-nearme .titmv-nearblock__head h2 {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	margin: 0;
}

/* Earn with us */
.tm-earn__cols {
	gap: 16px !important;
	margin: 0;
}

.tm-earn__card {
	background: var(--tm-bg);
	border-radius: var(--tm-r-m);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
}

.tm-earn__card > * {
	margin: 0 !important;
}

.tm-earn__title {
	font-size: 19px;
}

.tm-earn__text {
	color: var(--tm-ink-2);
	flex: 1;
}

/* ==========================================================================
   6. PRODUCT CARDS (every WooCommerce product list)
   ========================================================================== */

.woocommerce ul.products,
.tm-products__grid ul.products,
ul.products {
	display: grid !important;
	gap: var(--tm-gap);
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	list-style: none;
	margin: 0 0 24px !important;
	padding: 0 !important;
}

ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
	background: var(--tm-card);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-m);
	clear: none !important;
	display: flex;
	flex-direction: column;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
	padding: 12px !important;
	position: relative;
	text-align: left;
	transition: box-shadow .2s, border-color .2s;
	width: auto !important;
}

ul.products li.product:hover {
	border-color: transparent;
	box-shadow: var(--tm-shadow-lg);
}

ul.products li.product a.woocommerce-LoopProduct-link {
	color: var(--tm-ink);
	display: block;
	text-decoration: none;
}

.tm-card__media {
	background: #fff;
	border-radius: var(--tm-r-s);
	display: block;
	margin: 0 0 10px;
	overflow: hidden;
	position: relative;
	aspect-ratio: 1 / 1;
}

.woocommerce ul.products li.product .tm-card__media img,
ul.products li.product .tm-card__media img {
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
	transition: transform .35s var(--tm-ease);
	width: 100% !important;
}

ul.products li.product:hover .tm-card__media img {
	transform: scale(1.04);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--tm-ink);
	display: -webkit-box;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 6px !important;
	min-height: 2.7em;
	overflow: hidden;
	padding: 0 !important;
}

ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--tm-link);
}

.tm-rating {
	align-items: center;
	color: var(--tm-muted);
	display: flex;
	font-size: 12px;
	gap: 6px;
	margin: 0 0 4px;
}

.woocommerce .tm-rating .star-rating,
.tm-rating .star-rating {
	float: none;
	font-size: 12px !important;
	margin: 0 !important;
}

.woocommerce .star-rating {
	color: var(--tm-star);
}

.woocommerce .star-rating::before {
	color: var(--tm-line);
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
	align-items: baseline;
	color: var(--tm-ink) !important;
	display: flex;
	flex-wrap: wrap;
	font-size: 18px !important;
	font-weight: 800;
	gap: 0 8px;
	margin: 0 0 6px !important;
}

ul.products li.product .price ins,
.tm-product .summary .price ins {
	color: var(--tm-sale);
	order: -1;
	text-decoration: none;
}

ul.products li.product .price del {
	color: var(--tm-muted);
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
}

ul.products li.product .price .woocommerce-Price-amount + span,
ul.products li.product .price > span:not(.woocommerce-Price-amount):not(.screen-reader-text) {
	font-size: 14px;
}

ul.products li.product .titmv-scope {
	font-size: 12px;
}

ul.products li.product .titmv-soldby {
	color: var(--tm-muted);
	margin: 0 0 4px;
}

/* A seller rating with no reviews yet only adds noise to a product card. */
ul.products li.product .titmv-rating-link:has(.titmv-stars[aria-label^="0 "]) {
	display: none;
}

ul.products li.product .titmv-loc-wrap:empty,
ul.products li.product .titmv-dist-wrap:has(> [hidden]:only-child) {
	display: none;
}

ul.products li.product .button,
ul.products li.product .added_to_cart {
	margin-top: auto !important;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
	box-sizing: border-box;
	align-items: center;
	display: inline-flex;
	font-size: 14px !important;
	gap: 6px;
	justify-content: center;
	padding: 10px 12px !important;
	text-align: center;
	width: 100%;
}

ul.products li.product .button + .added_to_cart {
	color: var(--tm-link);
	font-size: 13px;
	font-weight: 700;
	margin-top: 8px !important;
	text-align: center;
}

ul.products li.product .tm-quickbuy-btn {
	background: var(--tm-card) !important;
	box-shadow: inset 0 0 0 2px var(--tm-brand);
	color: var(--tm-brand) !important;
}

ul.products li.product .tm-quickbuy-btn:hover {
	background: var(--tm-brand) !important;
	color: var(--tm-on-brand) !important;
}

/* Sold out or not for sale: a quiet "View details" link, no trolley icon. */
ul.products li.product .button:not(.add_to_cart_button):not(.tm-quickbuy-btn) {
	background: var(--tm-card) !important;
	box-shadow: inset 0 0 0 1px var(--tm-line);
	color: var(--tm-ink) !important;
}

ul.products li.product .button:not(.add_to_cart_button):not(.tm-quickbuy-btn):hover {
	box-shadow: inset 0 0 0 2px var(--tm-ink-2);
}

ul.products li.product .button:not(.add_to_cart_button)::before {
	display: none !important;
}

ul.products li.product.outofstock .tm-card__media img {
	opacity: .55;
}

/* Sold out: a red ribbon across the top-right corner of the picture, on
   product cards and on TIT Multivendor's department rows alike. */
.tm-ribbon {
	height: 100px;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	width: 100px;
	z-index: 4;
}

.tm-ribbon__band {
	background: #D42A36;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
	color: #fff;
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1;
	padding: 6px 0;
	position: absolute;
	/* Centre 35px in from the top and right edges, so the wording sits
	   evenly in the corner and both ends of the band stay hidden. */
	right: -40px;
	text-align: center;
	text-transform: uppercase;
	top: 24px;
	transform: rotate(45deg);
	white-space: nowrap;
	width: 150px;
}

/* The plugin's tiles: picture faded like the cards, and no delivery date for
   something that cannot be bought. */
.titmv-product__media:has(> .tm-ribbon) img {
	opacity: .55;
}

.titmv-product:has(.tm-ribbon) .titmv-eta,
ul.products li.product.outofstock .titmv-eta {
	display: none;
}

/* Phones: a slimmer band, 28px in from the corner, that keeps clear of the
   SALE and % OFF flags on the left of the narrow department tiles. */
@media (max-width: 600px) {
	.tm-ribbon {
		height: 76px;
		width: 76px;
	}

	.tm-ribbon__band {
		font-size: 8.5px;
		letter-spacing: .02em;
		padding: 4px 0;
		right: -27px;
		top: 19.75px;
		width: 110px;
	}
}

.tm-flag {
	background: var(--tm-sale);
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	left: 8px;
	line-height: 1.2;
	padding: 4px 8px;
	position: absolute;
	top: 8px;
	z-index: 3;
}

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce-page a.button,
.woocommerce-page button.button {
	background-color: var(--tm-accent);
	border: 0;
	border-radius: var(--tm-r-m);
	color: var(--tm-on-accent);
	font-family: inherit;
	font-weight: 800;
	line-height: 1.2;
	padding: .8em 1.3em;
	text-shadow: none;
	transition: background-color .15s, transform .1s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: var(--tm-accent-dark);
	color: var(--tm-on-accent);
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled {
	background-color: var(--tm-accent);
	color: var(--tm-on-accent);
	opacity: .55;
}

.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after {
	top: auto;
}

/* ==========================================================================
   7. SHOP PAGES
   ========================================================================== */

.tm-crumbs,
.woocommerce-breadcrumb {
	color: var(--tm-muted);
	font-size: 13px !important;
	margin: 0 0 12px !important;
}

.tm-crumbs a,
.woocommerce .woocommerce-breadcrumb a {
	color: var(--tm-ink-2);
	text-decoration: none;
}

.tm-crumbs a:hover {
	color: var(--tm-link);
	text-decoration: underline;
}

.tm-crumbs__sep {
	color: var(--tm-muted);
	margin: 0 6px;
}

.tm-shop__layout {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: 260px minmax(0, 1fr);
}

/* Home page: "Shop by department" sliding along the top, above the shop. */
.tm-shop--home > .tm-home-depts {
	margin-block: 0 20px;
}

.tm-shop__layout > * {
	margin: 0 !important;
}

.tm-shop__results {
	min-width: 0;
}

.woocommerce-products-header {
	margin: 0 0 10px;
}

.woocommerce-products-header__title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin: 0;
}

.woocommerce-products-header .term-description,
.woocommerce-products-header .page-description {
	color: var(--tm-ink-2);
	font-size: 15px;
	margin-top: 6px;
}

.tm-toolbar {
	align-items: center;
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0 0 12px;
	padding: 10px 14px;
}

.woocommerce .tm-toolbar .woocommerce-result-count,
.tm-toolbar .woocommerce-result-count {
	color: var(--tm-ink-2);
	float: none;
	font-size: 14px;
	margin: 0 auto 0 0;
}

.woocommerce .tm-toolbar .woocommerce-ordering,
.tm-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}

.tm-toolbar select,
.woocommerce .woocommerce-ordering select {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	background-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-position: calc(100% - 10px) 50%;
	background-repeat: no-repeat;
	background-size: 14px 14px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	font: inherit;
	font-size: 14px;
	padding: 8px 32px 8px 12px;
}

.tm-toolbar__filters {
	align-items: center;
	background: var(--tm-card);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	cursor: pointer;
	display: none;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	gap: 6px;
	padding: 8px 12px;
}

.tm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.tm-chip {
	align-items: center;
	background: var(--tm-accent-soft);
	border: 1px solid var(--tm-line);
	border-radius: 999px;
	color: var(--tm-ink);
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	gap: 6px;
	padding: 6px 10px 6px 12px;
	text-decoration: none;
}

.tm-chip:hover {
	border-color: var(--tm-brand);
}

.tm-chip--clear {
	background: transparent;
	color: var(--tm-link);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul,
.tm-pager {
	border: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 8px 0 0 !important;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.tm-pager a,
.tm-pager span {
	align-items: center;
	background: var(--tm-card);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	display: flex;
	font-weight: 700;
	height: 40px;
	justify-content: center;
	min-width: 40px;
	padding: 0 10px !important;
	text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.tm-pager .current {
	background: var(--tm-brand);
	border-color: var(--tm-brand);
	color: var(--tm-on-brand);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--tm-soft);
	color: var(--tm-ink);
}

/* Filters */
.tm-filters {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: 4px 0;
}

.tm-filters__head,
.tm-filters__foot {
	display: none;
}

.tm-filter {
	border-bottom: 1px solid var(--tm-line);
	padding: 14px 16px;
}

.tm-filter:last-child {
	border-bottom: 0;
}

.tm-filter__title {
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 8px;
}

.tm-filter__cats,
.tm-filter__opts {
	display: grid;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-filter__cats a {
	align-items: center;
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	display: flex;
	font-size: 14px;
	gap: 8px;
	justify-content: space-between;
	padding: 6px 8px;
	text-decoration: none;
}

.tm-filter__cats a span {
	color: var(--tm-muted);
	font-size: 12px;
}

.tm-filter__cats a:hover {
	background: var(--tm-soft);
}

.tm-filter__cats .is-current > span {
	color: var(--tm-ink);
	display: block;
	font-size: 14px;
	font-weight: 800;
	padding: 6px 8px;
}

.tm-filter__child a {
	padding-left: 20px;
}

.tm-filter__back a {
	color: var(--tm-link);
	font-weight: 700;
	justify-content: flex-start;
}

.tm-filter__opt,
.tm-filter__check {
	align-items: center;
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	display: flex;
	font-size: 14px;
	gap: 8px;
	padding: 6px 8px;
	text-decoration: none;
}

.tm-filter__opt:hover,
.tm-filter__check:hover {
	background: var(--tm-soft);
}

.tm-filter__opt.is-active {
	background: var(--tm-accent-soft);
	font-weight: 800;
}

.tm-stars {
	color: var(--tm-line);
	display: inline-flex;
}

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

.tm-filter__price {
	align-items: center;
	display: flex;
	gap: 6px;
	margin-top: 10px;
}

.tm-filter__price label {
	display: block;
	flex: 1;
	margin: 0;
	min-width: 0;
}

.tm-filter__price > span {
	align-self: center;
	color: var(--tm-muted);
	line-height: 1;
}

.tm-filter__price input {
	box-sizing: border-box;
	display: block;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	font: inherit;
	font-size: 14px;
	min-width: 0;
	padding: 8px;
	width: 100%;
}

.tm-filter__box {
	align-items: center;
	background: #fff;
	border: 2px solid var(--tm-line);
	border-radius: 4px;
	color: transparent;
	display: flex;
	flex: 0 0 18px;
	height: 18px;
	justify-content: center;
	width: 18px;
}

.tm-filter__check.is-active .tm-filter__box {
	background: var(--tm-brand);
	border-color: var(--tm-brand);
	color: var(--tm-on-brand);
}

.tm-filters-backdrop {
	display: none;
}

/* TIT Multivendor bars above the results */
.tm-shop__results .titmv-nearbar,
.tm-shop__results .titmv-locbar {
	border-radius: var(--tm-r-m);
	margin-bottom: 12px;
}

/* ==========================================================================
   8. PRODUCT PAGE
   ========================================================================== */

.tm-product div.product {
	align-items: start;
	display: grid;
	gap: 24px 32px;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	position: relative;
}

.tm-product div.product > * {
	grid-column: 1 / -1;
	margin: 0 !important;
	min-width: 0;
}

/* TIT Multivendor's photo flags in the shop colours: a red sale tag and a
   yellow saving sticker, as on supermarket shelves. */
.tm-theme .titmv-flag--tag {
	background: var(--tm-sale);
	color: #fff;
}

.tm-theme .titmv-flag--off {
	background: var(--tm-accent);
	color: var(--tm-on-accent);
}

.tm-theme .titmv-flag--new {
	background: var(--tm-brand);
	color: var(--tm-on-brand);
}

.tm-product div.product > .titmv-flags,
.tm-product div.product > .tm-flag {
	grid-column: 1;
	grid-row: 1;
	z-index: 4;
}

.woocommerce .tm-product div.product div.images,
.tm-product div.product > .woocommerce-product-gallery {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	float: none;
	grid-column: 1;
	grid-row: 1;
	padding: 16px;
	position: relative;
	width: auto;
}

@media (min-width: 960px) {
	.woocommerce .tm-product div.product div.images,
	.tm-product div.product > .woocommerce-product-gallery {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
	}

	.tm-stuck .tm-product div.product > .woocommerce-product-gallery {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 92px);
	}
}

.woocommerce .tm-product div.product div.summary,
.tm-product div.product > .summary {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	float: none;
	grid-column: 2;
	grid-row: 1;
	padding: 22px 24px;
	width: auto;
}

.tm-product div.product .product_title {
	font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
	line-height: 1.25;
	margin: 0 0 8px;
}

.woocommerce .tm-product div.product .summary .price,
.tm-product .summary .price {
	align-items: baseline;
	color: var(--tm-ink);
	display: flex;
	flex-wrap: wrap;
	font-size: 28px;
	font-weight: 800;
	gap: 0 10px;
	margin: 10px 0 4px;
}

.tm-product .summary .price del {
	color: var(--tm-muted);
	font-size: 16px;
	font-weight: 500;
}

.tm-savings {
	color: var(--tm-sale);
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 12px;
}

.woocommerce .tm-product .woocommerce-product-rating {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0 0 6px;
}

.woocommerce .tm-product .woocommerce-product-rating .star-rating {
	margin: 0;
}

.tm-product .woocommerce-review-link {
	color: var(--tm-link);
	font-size: 13px;
}

.tm-product .woocommerce-product-details__short-description {
	color: var(--tm-ink-2);
	font-size: 15px;
}

.tm-product .woocommerce-product-details__short-description ul {
	padding-left: 18px;
}

.tm-buybox {
	background: var(--tm-bg);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-m);
	margin: 16px 0 0;
	padding: 16px;
}

.tm-buybox .stock {
	font-weight: 700;
	margin: 0 0 10px;
}

.woocommerce .tm-buybox .stock.in-stock {
	color: var(--tm-ok);
}

.woocommerce .tm-buybox .stock.out-of-stock {
	color: var(--tm-sale);
}

.woocommerce .tm-buybox form.cart,
.tm-buybox form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
}

.tm-buybox form.variations_form {
	display: block;
}

/* WooCommerce's clearfix would join the flex row as two empty items. */
.tm-buybox form.cart::before,
.tm-buybox form.cart::after,
.tm-buybox .woocommerce-variation-add-to-cart::before,
.tm-buybox .woocommerce-variation-add-to-cart::after {
	content: none !important;
	display: none !important;
}

.tm-buybox .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

.woocommerce .quantity,
.tm-buybox .quantity,
.tm-quick .quantity {
	align-items: center;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	display: inline-flex;
	float: none;
	margin: 0;
	overflow: hidden;
}

.woocommerce .quantity .qty,
.tm-buybox .quantity .qty {
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-weight: 800;
	height: 44px;
	padding: 0;
	text-align: center;
	width: 48px;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tm-qty__btn {
	background: transparent;
	border: 0;
	color: var(--tm-ink);
	cursor: pointer;
	font-size: 20px;
	font-weight: 700;
	height: 44px;
	line-height: 1;
	width: 40px;
}

.tm-qty__btn:hover {
	background: var(--tm-soft);
}

.woocommerce .tm-buybox .single_add_to_cart_button,
.tm-quick .single_add_to_cart_button {
	flex: 1 1 170px;
	float: none;
	font-size: 16px;
	min-height: 46px;
}

.woocommerce .tm-buybox button.button.tm-buy-now,
.woocommerce .tm-quick button.button.tm-buy-now {
	background-color: var(--tm-brand);
	color: var(--tm-on-brand);
}

.woocommerce .tm-buybox button.button.tm-buy-now:hover,
.woocommerce .tm-quick button.button.tm-buy-now:hover {
	background-color: var(--tm-brand-dark);
	color: var(--tm-on-brand);
}

body.titmv-trolley-on .tm-buy-now::before {
	content: none !important;
	display: none !important;
}

.woocommerce .tm-buybox table.variations,
.tm-quick table.variations {
	border: 0;
	margin: 0 0 12px;
	width: 100%;
}

.woocommerce .tm-buybox table.variations th,
.woocommerce .tm-buybox table.variations td,
.tm-quick table.variations th,
.tm-quick table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.woocommerce .tm-buybox table.variations th label,
.tm-quick table.variations th label {
	font-size: 14px;
	font-weight: 800;
	margin: 8px 0 4px;
}

/* Rows as plain blocks so each option list can use the full width. */
.woocommerce .tm-buybox table.variations tbody,
.woocommerce .tm-buybox table.variations tr,
.tm-quick table.variations tbody,
.tm-quick table.variations tr {
	display: block;
}

.woocommerce .tm-buybox table.variations td.value,
.tm-quick table.variations td.value {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 6px;
}

.woocommerce .tm-buybox table.variations select,
.tm-quick table.variations select {
	flex: 1 1 auto;
	margin: 0;
	max-width: 420px;
	min-width: 0;
	width: 100%;
}

.woocommerce .tm-buybox .reset_variations,
.tm-quick .reset_variations {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
}

.tm-buybox .single_variation_wrap {
	width: 100%;
}

.tm-trust {
	border-top: 1px solid var(--tm-line);
	color: var(--tm-ink-2);
	display: grid;
	font-size: 13px;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 12px 0 0;
}

.tm-trust li {
	align-items: flex-start;
	display: flex;
	gap: 10px;
}

.tm-trust .tm-icon {
	color: var(--tm-brand);
	margin-top: 1px;
}

.tm-trust a {
	color: var(--tm-link);
}

.tm-product .product_meta {
	color: var(--tm-muted);
	display: grid;
	font-size: 13px;
	gap: 4px;
	margin-top: 16px;
}

.tm-product .product_meta a {
	color: var(--tm-link);
}

/* Gallery */
.woocommerce .tm-product div.product div.images .woocommerce-product-gallery__image img {
	border-radius: var(--tm-r-s);
}

.woocommerce .tm-product div.product div.images .flex-control-thumbs {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 10px;
}

.woocommerce .tm-product div.product div.images .flex-control-thumbs li {
	float: none;
	width: auto;
}

.woocommerce .tm-product div.product div.images .flex-control-thumbs li img {
	border: 2px solid transparent;
	border-radius: 8px;
	opacity: .65;
}

.woocommerce .tm-product div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce .tm-product div.product div.images .flex-control-thumbs li img:hover {
	border-color: var(--tm-accent);
	opacity: 1;
}

/* Tabs */
.woocommerce .tm-product div.product .woocommerce-tabs {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: 0 24px 20px;
}

.woocommerce .tm-product div.product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--tm-line);
	display: flex;
	gap: 4px;
	margin: 0 0 18px;
	overflow-x: auto;
	padding: 0;
}

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

.woocommerce .tm-product div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

.woocommerce .tm-product div.product .woocommerce-tabs ul.tabs li a {
	color: var(--tm-ink-2);
	display: block;
	font-weight: 700;
	padding: 14px 16px;
	white-space: nowrap;
}

.woocommerce .tm-product div.product .woocommerce-tabs ul.tabs li.active a {
	box-shadow: inset 0 -3px 0 var(--tm-accent);
	color: var(--tm-ink);
}

.tm-product .woocommerce-Tabs-panel > h2:first-child {
	font-size: 18px;
}

.woocommerce .tm-product #reviews #comments ol.commentlist li img.avatar {
	border: 0;
	border-radius: 50%;
	padding: 0;
	width: 40px;
}

.woocommerce .tm-product #reviews #comments ol.commentlist li .comment-text {
	border-color: var(--tm-line);
	border-radius: var(--tm-r-m);
}

/* Related and up-sells */
.tm-product .related,
.tm-product .upsells,
.tm-product .up-sells {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: 18px 20px 14px;
}

.tm-product .related > h2,
.tm-product .upsells > h2,
.tm-product .up-sells > h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0 0 14px;
}

.tm-product .related ul.products,
.tm-product .upsells ul.products,
.tm-product .up-sells ul.products,
.cross-sells ul.products {
	grid-auto-columns: calc((100% - 4 * var(--tm-gap)) / 5);
	grid-auto-flow: column;
	grid-template-columns: none !important;
	margin: 0 !important;
	overflow-x: auto;
	padding-bottom: 8px !important;
	scroll-snap-type: x proximity;
}

/* ==========================================================================
   9. PAGES, BLOG, ACCOUNT, CART AND CHECKOUT
   ========================================================================== */

.tm-page__title {
	margin: 4px 0 16px;
}

.tm-page__content {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: clamp(18px, 3vw, 40px);
}

.tm-page__content > :first-child {
	margin-top: 0;
}

.tm-page__content--wide,
.tm-app-page .tm-page__content {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.tm-app-page .tm-page__content > * {
	max-width: var(--wp--style--global--content-size, 1360px);
}

.tm-landing .tm-page__content > .alignfull {
	margin-left: calc(-1 * var(--wp--style--root--padding-left)) !important;
	margin-right: calc(-1 * var(--wp--style--root--padding-right)) !important;
}

.tm-landing {
	padding-top: 0;
}

/* Blog */
.tm-postcard {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	height: 100%;
	overflow: hidden;
}

.tm-postcard > * {
	margin: 0;
}

.tm-postcard .wp-block-post-featured-image img {
	border-radius: 0;
}

.tm-postcard__body {
	padding: 14px 16px 18px;
}

.tm-postcard__body > * {
	margin-block: 0 6px;
}

.tm-postcard .wp-block-post-title a {
	color: var(--tm-ink);
	text-decoration: none;
}

.tm-article {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: clamp(18px, 3vw, 44px);
}

.tm-sitesearch {
	margin-bottom: 20px;
	max-width: 640px;
}

/* 404 */
.tm-404 {
	padding-block: 24px;
	text-align: center;
}

.tm-404__code {
	color: var(--tm-accent);
	font-size: clamp(4rem, 10vw, 7rem);
	font-weight: 800;
	line-height: 1;
	margin: 0;
}

.tm-404 .tm-searchwrap {
	margin: 16px auto 0;
	max-width: 620px;
}

.tm-404 .tm-search {
	box-shadow: 0 0 0 1px var(--tm-line);
}

/* My account */
.woocommerce-account .tm-page__content .woocommerce {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: 240px minmax(0, 1fr);
}

.woocommerce-account .tm-page__content .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.woocommerce-account .tm-page__content .woocommerce::before,
.woocommerce-account .tm-page__content .woocommerce::after {
	content: none;
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	float: none;
	padding: 8px;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	border-radius: var(--tm-r-s);
	color: var(--tm-ink);
	display: block;
	font-weight: 600;
	padding: 10px 12px;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--tm-soft);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--tm-accent-soft);
	font-weight: 800;
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	float: none;
	padding: 20px 24px;
	width: auto;
}

.woocommerce-account:not(.logged-in) .tm-page__content .woocommerce {
	display: block;
}

.woocommerce form.login,
.woocommerce form.register,
.tm-authbox form {
	background: var(--tm-card);
	border: 1px solid var(--tm-line) !important;
	border-radius: var(--tm-r-m) !important;
	padding: 24px !important;
}

.woocommerce #customer_login.u-columns {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr 1fr;
}

.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
	float: none;
	width: auto;
}

.woocommerce #customer_login::before,
.woocommerce #customer_login::after {
	display: none;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	border-top-color: var(--tm-brand);
	box-shadow: var(--tm-shadow);
	color: var(--tm-ink);
}

.woocommerce-message::before {
	color: var(--tm-ok);
}

.woocommerce-info::before {
	color: var(--tm-brand);
}

.woocommerce-error {
	border-top-color: var(--tm-sale);
}

.woocommerce-error::before {
	color: var(--tm-sale);
}

.wc-block-components-notice-banner {
	border-radius: var(--tm-r-m);
}

/* Cart and checkout blocks */
.wc-block-components-button:not(.is-link) {
	background-color: var(--tm-accent);
	border: 0;
	border-radius: var(--tm-r-m);
	color: var(--tm-on-accent);
	font-weight: 800;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus {
	background-color: var(--tm-accent-dark);
	color: var(--tm-on-accent);
}

.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-checkout.alignwide,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: clamp(16px, 2.5vw, 28px);
}

.tm-checkoutpage .tm-page__title,
.tm-cartpage .tm-page__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Checkout header and footer */
.tm-checkout-header {
	padding-block: 10px;
}

.tm-checkout-header__inner.is-layout-flex {
	align-items: center;
	gap: 16px;
}

.tm-checkout-header__inner > * {
	margin: 0 !important;
}

.tm-checkout-header__secure {
	font-size: 16px;
	font-weight: 800;
}

.tm-checkout-header__secure p {
	margin: 0;
}

.tm-checkout-header__secure .tm-iconblock {
	background: transparent;
	color: var(--tm-accent);
	height: 24px;
	width: 24px;
}

.tm-checkout-header__back a {
	color: inherit;
	font-size: 14px;
	font-weight: 700;
}

.tm-checkout-footer {
	font-size: 13px;
	margin-top: 40px;
	padding-block: 22px;
}

.tm-checkout-footer .tm-footlinks__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

/* Thank-you page */
.tm-thanks .woocommerce-order {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: clamp(18px, 3vw, 36px);
}

/* ==========================================================================
   10. SELL-WITH-US LANDING PIECES
   ========================================================================== */

.tm-landing-hero {
	padding-block: clamp(28px, 5vw, 64px);
}

.tm-landing-hero__title {
	color: inherit;
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 0 14px;
}

.tm-landing-hero__lead {
	font-size: 17px;
	max-width: 52ch;
	opacity: .92;
}

.tm-landing-hero__img img {
	border-radius: var(--tm-r-l);
	box-shadow: var(--tm-shadow-lg);
}

.tm-steps__cols {
	gap: 14px !important;
	margin-top: 20px;
}

.tm-step {
	background: var(--tm-bg);
	border-radius: var(--tm-r-m);
	padding: 18px;
}

.tm-step > * {
	margin: 0;
}

.tm-step__num {
	align-items: center;
	background: var(--tm-accent);
	border-radius: 50%;
	color: var(--tm-on-accent);
	display: flex;
	font-size: 18px;
	font-weight: 800;
	height: 40px;
	justify-content: center;
	margin-bottom: 10px !important;
	width: 40px;
}

.tm-step__title {
	font-size: 17px;
	margin-bottom: 4px !important;
}

.tm-step__meta {
	color: var(--tm-link);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	margin-bottom: 8px !important;
	text-transform: uppercase;
}

.tm-step__text {
	color: var(--tm-ink-2);
	font-size: 14px;
}

.tm-values__grid {
	gap: 14px;
	margin-top: 16px;
}

.is-style-tm-card {
	background: var(--tm-card);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-m);
	padding: 20px;
}

.tm-value > * {
	margin: 0;
}

.tm-value__title {
	font-size: 17px;
	margin: 10px 0 4px !important;
}

.tm-value__text {
	color: var(--tm-ink-2);
	font-size: 14px;
}

.wp-block-group.is-style-tm-section {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	padding: clamp(18px, 3vw, 36px);
}

.tm-faq__item {
	background: var(--tm-card);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-m);
	margin: 0 0 10px !important;
}

.tm-faq__item summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 800;
	gap: 12px;
	justify-content: space-between;
	list-style: none;
	padding: 16px 20px;
}

.tm-faq__item summary::-webkit-details-marker {
	display: none;
}

.tm-faq__item summary::after {
	color: var(--tm-brand);
	content: "+";
	font-size: 22px;
	line-height: 1;
}

.tm-faq__item[open] summary::after {
	content: "–";
}

.tm-faq__item p {
	color: var(--tm-ink-2);
	margin: 0;
	padding: 0 20px 16px;
}

.tm-cta {
	border-radius: var(--tm-r-l);
	padding: clamp(24px, 4vw, 48px);
}

.tm-cta__title {
	color: inherit;
	margin: 0 0 8px;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.tm-footer {
	color: var(--tm-on-brand);
}

.tm-promise {
	border-top: 1px solid var(--tm-line);
	color: var(--tm-ink);
	padding-block: 22px;
}

.tm-promise__cols {
	gap: 20px !important;
	margin: 0;
}

.tm-promise__item.is-layout-flex {
	gap: 12px;
}

.tm-promise__item > * {
	margin: 0 !important;
}

.tm-promise__title {
	font-size: 15px;
	margin: 0 0 2px !important;
}

.tm-promise__text {
	color: var(--tm-muted);
	font-size: 13px;
	margin: 0 !important;
}

.tm-backtop {
	font-size: 13px;
	font-weight: 700;
	padding-block: 12px;
}

.tm-backtop p {
	margin: 0;
}

.tm-backtop a {
	color: inherit;
	text-decoration: none;
}

.tm-backtop a:hover {
	text-decoration: underline;
}

.tm-footer__main {
	padding-block: 40px 32px;
}

.tm-footer__cols {
	gap: 32px !important;
	margin: 0;
}

.tm-footer__about .wp-block-tradeintrack-brand {
	margin-bottom: 14px;
}

.tm-footer__blurb {
	font-size: 14px;
	max-width: 38ch;
	opacity: .86;
}

.tm-footer__title,
.tm-footlinks__title {
	color: inherit;
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 12px;
}

/* Same distance to the first link as the menu columns (heading + block gap). */
.tm-footlinks__title {
	margin-bottom: 20px;
}

.tm-footer__nav {
	font-size: 14px;
	font-weight: 500;
}

.tm-footer__nav .wp-block-navigation__container {
	align-items: flex-start;
	gap: 9px;
}

.tm-footer a,
.tm-footer .wp-block-navigation-item__content {
	color: inherit;
}

.tm-footer__nav .wp-block-navigation-item__content,
.tm-footlinks__list a {
	opacity: .86;
	text-decoration: none;
}

.tm-footer__nav .wp-block-navigation-item__content:hover,
.tm-footlinks__list a:hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tm-footlinks__list {
	display: grid;
	font-size: 14px;
	gap: 9px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-footer__bottom {
	font-size: 13px;
	padding-block: 18px 22px;
}

.tm-footer__bottom > * {
	margin-block: 8px 0;
}

.tm-pay {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.tm-pay__title {
	font-weight: 700;
	margin: 0;
	opacity: .92;
}

.tm-pay__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-pay__list li {
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
}

.tm-disclosure .titmv-legalbar p {
	font-size: 12px;
	margin: 2px 0;
	opacity: .78;
}

.tm-copyright {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	justify-content: space-between;
	margin: 0;
	opacity: .86;
}

/* ==========================================================================
   12. QUICK BUY PANEL
   ========================================================================== */

.tm-quick {
	inset: 0;
	position: fixed;
	z-index: 100001;
}

.tm-quick[hidden] {
	display: none;
}

.tm-quick__backdrop {
	background: rgba(10, 14, 8, .55);
	border: 0;
	cursor: pointer;
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .24s;
}

.tm-quick__panel {
	background: var(--tm-card);
	bottom: 0;
	box-shadow: var(--tm-shadow-lg);
	color: var(--tm-ink);
	display: flex;
	flex-direction: column;
	position: absolute;
	right: 0;
	top: 0;
	transform: translateX(100%);
	transition: transform .26s var(--tm-ease);
	width: min(94vw, 440px);
}

.tm-quick.is-open .tm-quick__backdrop {
	opacity: 1;
}

.tm-quick.is-open .tm-quick__panel {
	transform: none;
}

.tm-quick__head {
	align-items: center;
	border-bottom: 1px solid var(--tm-line);
	display: flex;
	justify-content: space-between;
	padding: 12px 12px 12px 18px;
}

.tm-quick__head p {
	font-size: 17px;
	font-weight: 800;
	margin: 0;
}

.tm-quick__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--tm-ink);
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.tm-quick__close:hover {
	background: var(--tm-soft);
}

.tm-quick__body {
	flex: 1;
	overflow-y: auto;
	padding: 18px;
}

.tm-quick__summary {
	display: grid;
	gap: 14px;
	grid-template-columns: 110px minmax(0, 1fr);
	margin-bottom: 16px;
}

.tm-quick__image img {
	aspect-ratio: 1;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	object-fit: contain;
	width: 100%;
}

.tm-quick__title {
	font-size: 16px;
	margin: 0 0 6px;
}

.tm-quick__price {
	font-size: 18px;
	font-weight: 800;
}

.tm-quick__details {
	color: var(--tm-link);
	font-size: 13px;
}

.tm-quick .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.tm-quick__status {
	align-items: center;
	color: var(--tm-muted);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 40px 0;
	text-align: center;
}

.tm-spinner {
	animation: tm-spin .8s linear infinite;
	border: 3px solid var(--tm-line);
	border-radius: 50%;
	border-top-color: var(--tm-brand);
	height: 28px;
	width: 28px;
}

@keyframes tm-spin {
	to {
		transform: rotate(360deg);
	}
}

.tm-quick__msg {
	margin: 0 0 12px !important;
}

/* ==========================================================================
   13. TIT MULTIVENDOR TOUCHES
   ========================================================================== */

/* The header already has a trolley on large screens, and on every screen
   when it stays on top (sticky header), so the floating one would only cover
   buttons. Shop-link visits keep it: it is part of the "You are shopping at"
   bar. */
@media (min-width: 960px) {
	.tm-theme .titmv-dock:not(.titmv-dock--shop) .titmv-fab {
		display: none;
	}
}

.tm-theme.tm-sticky-header .titmv-dock:not(.titmv-dock--shop) .titmv-fab {
	display: none;
}

.tm-classic-main {
	padding: 16px var(--wp--style--root--padding-right, 16px) 48px var(--wp--style--root--padding-left, 16px);
}

.tm-compat-cats > * + * {
	margin-top: 20px;
}

.tm-catselect {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.tm-catselect label {
	font-weight: 800;
}

.tm-iconlink {
	align-items: center;
	color: inherit;
	display: inline-flex;
	gap: 4px;
	position: relative;
}

.tm-cart--compact .tm-cart__count {
	left: 14px;
	top: -8px;
}

.tm-stores--empty {
	text-align: center;
}

.tm-stores__empty {
	color: var(--tm-ink-2);
	font-size: 16px;
	margin: 8px auto 16px;
	max-width: 52ch;
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

@media (max-width: 1279px) {
	.tm-rail__track ul.products {
		grid-auto-columns: calc((100% - 4 * var(--tm-gap)) / 5);
	}

	.tm-hero {
		grid-template-columns: minmax(0, 1fr) 260px;
	}
}

@media (max-width: 1100px) {
	.tm-mainbar .wp-block-tradeintrack-location {
		display: none;
	}

	.tm-mainbar__inner.is-layout-flex {
		grid-template-areas: "menu brand search account cart";
		grid-template-columns: auto auto minmax(0, 1fr) auto auto;
	}
}

@media (max-width: 1023px) {
	.tm-rail__track ul.products,
	.tm-product .related ul.products,
	.tm-product .upsells ul.products,
	.tm-product .up-sells ul.products {
		grid-auto-columns: calc((100% - 3 * var(--tm-gap)) / 4);
	}

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

@media (max-width: 959px) {
	:root {
		--tm-gap: 12px;
	}

	/* Header on phones and tablets */
	.tm-topbar {
		display: none;
	}

	.tm-mainbar {
		padding-block: 8px 10px;
	}

	.tm-mainbar__inner.is-layout-flex {
		gap: 8px 4px;
		grid-template-areas:
			"menu brand account cart"
			"search search search search"
			"loc loc loc loc";
		grid-template-columns: auto minmax(0, 1fr) auto auto;
	}

	.tm-mainbar .wp-block-tradeintrack-mobile-menu,
	.tm-mainbar .wp-block-tradeintrack-location {
		display: block;
	}

	.tm-mainbar .tm-brand__img {
		height: 42px;
		width: auto;
	}

	.tm-account__text,
	.tm-cart__text,
	.tm-account .tm-pop {
		display: none;
	}

	.tm-account__toggle,
	.tm-cart {
		padding: 6px;
	}

	.tm-search {
		height: 44px;
	}

	.tm-search__dept {
		display: none;
	}

	.tm-search .tm-search__input {
		border-radius: var(--tm-r-m) 0 0 var(--tm-r-m);
	}

	.tm-loc {
		background: rgba(0, 0, 0, .16);
		column-gap: 6px;
		grid-template-columns: auto auto 1fr;
		padding: 6px 10px;
		width: 100%;
	}

	.tm-loc .tm-icon {
		grid-row: 1;
	}

	.tm-mainbar:has(.tm-brand--on-light) .tm-loc {
		background: var(--tm-soft);
	}

	.tm-loc__small {
		grid-column: 2;
		grid-row: 1;
	}

	.tm-loc__main {
		font-size: 13px;
		grid-column: 3;
		grid-row: 1;
	}

	.tm-navrow .wp-block-tradeintrack-departments {
		display: none;
	}

	.tm-navrow__inner.is-layout-flex {
		min-height: 40px;
	}

	.tm-navrow__nav .wp-block-navigation-item__content {
		font-size: 13px;
		padding: 9px 10px;
	}

	.tm-stuck .tm-mainbar__inner.is-layout-flex {
		grid-template-areas: "menu search cart";
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.tm-stuck .tm-mainbar .wp-block-tradeintrack-brand,
	.tm-stuck .tm-mainbar .wp-block-tradeintrack-account,
	.tm-stuck .tm-mainbar .wp-block-tradeintrack-location {
		display: none;
	}

	/* Home */
	.tm-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm-hero__side {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
	}

	.tm-slider > * {
		min-height: 0;
	}

	.tm-section.tm-services {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Shop */
	.tm-shop__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm-toolbar__filters {
		display: inline-flex;
	}

	.tm-filters {
		border-radius: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		left: 0;
		padding: 0;
		position: fixed;
		top: 0;
		transform: translateX(-105%);
		transition: transform .26s var(--tm-ease);
		width: min(88vw, 360px);
		z-index: 100000;
	}

	.tm-filters-open .tm-filters {
		transform: none;
	}

	.tm-filters__head {
		align-items: center;
		border-bottom: 1px solid var(--tm-line);
		display: flex;
		justify-content: space-between;
		padding: 10px 10px 10px 16px;
	}

	.tm-filters__heading {
		font-size: 18px;
		margin: 0;
	}

	.tm-filters__close {
		align-items: center;
		background: transparent;
		border: 0;
		border-radius: 50%;
		color: var(--tm-ink);
		cursor: pointer;
		display: flex;
		height: 40px;
		justify-content: center;
		width: 40px;
	}

	.tm-filters__body {
		flex: 1;
		overflow-y: auto;
	}

	.tm-filters__foot {
		border-top: 1px solid var(--tm-line);
		display: block;
		padding: 12px 16px;
	}

	.tm-filters-backdrop {
		background: rgba(10, 14, 8, .5);
		display: block;
		inset: 0;
		opacity: 0;
		pointer-events: none;
		position: fixed;
		transition: opacity .25s;
		z-index: 99999;
	}

	.tm-filters-open .tm-filters-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	/* Product page */
	.tm-product div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce .tm-product div.product div.summary,
	.tm-product div.product > .summary {
		grid-column: 1;
		grid-row: 2;
	}

	/* Account */
	.woocommerce-account .tm-page__content .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 4px;
		overflow-x: auto;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
	}
}

@media (max-width: 781px) {
	.tm-rail__track ul.products,
	.tm-product .related ul.products,
	.tm-product .upsells ul.products,
	.tm-product .up-sells ul.products {
		grid-auto-columns: 44%;
	}

	.tm-promise__cols.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.tm-promise__cols.wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 10px) !important;
	}

	.woocommerce #customer_login.u-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm-section {
		padding: 14px 14px 16px;
	}

	/* Footer menus two by two instead of one long list. */
	.tm-footer__cols.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.tm-footer__cols.wp-block-columns > .tm-footer__col {
		flex-basis: calc(50% - 16px) !important;
	}
}

@media (max-width: 600px) {
	.woocommerce ul.products,
	.tm-products__grid ul.products,
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	ul.products li.product {
		padding: 8px !important;
	}

	.woocommerce ul.products li.product .price,
	ul.products li.product .price {
		font-size: 16px !important;
	}

	.tm-hero__side {
		grid-template-columns: minmax(0, 1fr);
	}

	.tm-slide.wp-block-media-text .wp-block-media-text__content {
		padding: 18px 18px 40px;
	}

	.tm-slide.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
		min-height: 160px;
	}

	.tm-slide--services {
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 40px;
	}

	.tm-slide__art {
		display: none;
	}

	.tm-catstrip__list {
		grid-auto-columns: 76px;
	}

	.tm-catstrip__img {
		height: 72px;
		width: 72px;
	}

	.tm-catstrip__name {
		font-size: 12px;
	}

	.tm-qcards {
		gap: 10px;
	}

	.tm-qcard {
		padding: 12px;
	}

	.tm-qcard__item span {
		display: none;
	}

	.tm-countdown {
		font-size: 12px;
		padding: 4px 10px;
	}

	.tm-rail__btn--prev {
		left: -6px;
	}

	.tm-rail__btn--next {
		right: -6px;
	}

	.woocommerce .tm-product div.product .woocommerce-tabs {
		padding: 0 14px 16px;
	}

	.woocommerce .tm-product div.product div.summary,
	.tm-product div.product > .summary {
		padding: 16px;
	}

	.tm-promise__cols.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.tm-copyright {
		justify-content: flex-start;
	}
}

/* TIT Multivendor category rows: its tile rule (width: 100%) would otherwise
   win over the row sizing and blow each tile up to the full width. */
.titmv-slider > .titmv-product {
	min-width: 155px;
	width: calc(50% - 7px);
}

@media (min-width: 640px) {
	.titmv-slider > .titmv-product {
		min-width: 185px;
		width: calc(33.333% - 10px);
	}
}

@media (min-width: 900px) {
	.titmv-slider > .titmv-product {
		min-width: 200px;
		width: calc(25% - 11px);
	}
}

@media (min-width: 1200px) {
	.titmv-slider > .titmv-product {
		min-width: 210px;
		width: calc(20% - 12px);
	}
}

.tm-shop__results .titmv-catalog {
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	margin: 0 0 16px;
	max-width: none;
	padding: 18px 20px 4px;
}

/* ==========================================================================
   15. DEPARTMENT DIRECTORY (Categories page)
   ========================================================================== */

.tm-directory__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.tm-dircard {
	align-items: start;
	background: var(--tm-card);
	border-radius: var(--tm-r-m);
	box-shadow: var(--tm-shadow);
	display: grid;
	gap: 16px;
	grid-template-columns: 112px minmax(0, 1fr);
	padding: 16px;
}

.tm-dircard__img {
	align-items: center;
	aspect-ratio: 1;
	background: var(--tm-soft);
	border-radius: var(--tm-r-m);
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.tm-dircard__img img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tm-dircard__title {
	font-size: 18px;
	margin: 0 0 2px;
}

.tm-dircard__title a {
	color: var(--tm-ink);
	text-decoration: none;
}

.tm-dircard__title a:hover {
	color: var(--tm-link);
}

.tm-dircard__count {
	color: var(--tm-muted);
	font-size: 13px;
	margin: 0 0 10px;
}

.tm-dircard__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.tm-dircard__list a {
	background: var(--tm-bg);
	border: 1px solid var(--tm-line);
	border-radius: 999px;
	color: var(--tm-ink-2);
	display: inline-block;
	font-size: 13px;
	padding: 4px 10px;
	text-decoration: none;
}

.tm-dircard__list a:hover {
	border-color: var(--tm-brand);
	color: var(--tm-ink);
}

.tm-dircard__all {
	align-items: center;
	color: var(--tm-link);
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 2px;
	text-decoration: none;
}

.tm-directory > .tm-section {
	margin-top: 20px;
}

/* WooCommerce narrows account, trolley and checkout to 1000px; the theme
   uses its full width (and a short, centred sign-in form). */
body.woocommerce-account .tm-page__title.wp-block-post-title,
body.woocommerce-cart .tm-page__title.wp-block-post-title,
body.woocommerce-checkout .tm-page__title.wp-block-post-title,
body.woocommerce-account main .tm-page__content .woocommerce,
body.woocommerce-cart main .tm-page__content .woocommerce,
body.woocommerce-checkout main .tm-page__content .woocommerce {
	max-width: var(--wp--style--global--content-size, 1360px);
}

body.woocommerce-account:not(.logged-in) main .tm-page__content .woocommerce {
	margin-inline: auto;
	max-width: 520px;
}

body.woocommerce-account:not(.logged-in) .tm-page__title.wp-block-post-title {
	margin-inline: auto;
	max-width: 520px;
}

/* TIT Multivendor trolley drawer: no shadow peeking in while it is closed. */
.titmv-drawer:not(.is-open) .titmv-drawer__panel {
	box-shadow: none;
}

.tm-section .tm-toolbar {
	border: 1px solid var(--tm-line);
	box-shadow: none;
}

.woocommerce .tm-product div.product form.cart .variations select,
.tm-quick form.cart .variations select {
	background-color: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-r-s);
	font: inherit;
	font-size: 15px;
	line-height: 1.3;
	margin: 0;
	max-width: 100%;
	min-height: 44px;
	min-width: 0;
	padding: 8px 36px 8px 12px;
	width: 100%;
}

/* Same chevron in the quick-buy panel as on the product page. */
.tm-quick form.cart .variations select {
	-webkit-appearance: none;
	appearance: none;
	background-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-position: calc(100% - 12px) 50%;
	background-repeat: no-repeat;
	background-size: 16px 16px;
}

/* WooCommerce "coming soon" shop notice: the shop's own font, not Cardo. */
.woocommerce-coming-soon-store-only .has-cardo-font-family {
	font-family: var(--wp--preset--font-family--manrope) !important;
	font-weight: 800;
	letter-spacing: -.01em;
}

/* WooCommerce product blocks (empty trolley suggestions and the like). */
.wc-block-grid__products {
	display: grid !important;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 !important;
}

@media (min-width: 782px) {
	.wc-block-grid__products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wc-block-grid.has-2-columns .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wc-block-grid.has-3-columns .wc-block-grid__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wc-block-grid.has-5-columns .wc-block-grid__products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.wc-block-grid.has-6-columns .wc-block-grid__products {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.wc-block-grid__product {
	background: var(--tm-card);
	border: 1px solid var(--tm-line) !important;
	border-radius: var(--tm-r-m);
	margin: 0 !important;
	max-width: none !important;
	padding: 12px !important;
}

.wc-block-grid__product-image {
	display: block !important;
	width: 100%;
}

.wc-block-grid__product-image img {
	aspect-ratio: 1;
	border-radius: var(--tm-r-s);
	height: auto !important;
	object-fit: cover;
	width: 100% !important;
}

.wc-block-grid__product-link {
	color: inherit;
	display: block !important;
	text-decoration: none;
}

.wc-block-grid__product-title {
	color: var(--tm-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.wc-block-grid__product-link:hover .wc-block-grid__product-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wc-block-grid__product-price {
	color: var(--tm-ink);
	font-size: 15px !important;
	font-weight: 800;
}

.wc-block-grid__product-price ins {
	color: var(--tm-sale);
	text-decoration: none;
}

.wc-block-grid__product-price del {
	color: var(--tm-muted);
	font-weight: 500;
}

.wc-block-grid__product-onsale {
	background: var(--tm-sale) !important;
	border: 0 !important;
	border-radius: 6px !important;
	color: #fff !important;
	font-weight: 800;
	letter-spacing: .04em;
}

.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .add_to_cart_button {
	background: var(--tm-accent) !important;
	border-radius: var(--tm-r-m) !important;
	color: var(--tm-on-accent) !important;
	font-weight: 800;
}

@media (max-width: 600px) {
	.tm-dircard {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.tm-directory__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* TIT Multivendor product tiles: keep the trolley button inside narrow tiles. */
.titmv-product__actions {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
}

.titmv-product__actions .titmv-product__cart {
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.titmv-product__actions .titmv-wishlist {
	flex: 0 0 auto;
}

@media (max-width: 600px) {
	.woocommerce ul.products li.product .button,
	ul.products li.product .button {
		font-size: 13px !important;
		padding: 9px 6px !important;
		white-space: nowrap;
	}

	/* Narrow cards: the words fit on one line without the icon. */
	ul.products li.product .button::before {
		display: none !important;
	}

	.titmv-product__actions .titmv-product__cart {
		font-size: 13px;
		padding-inline: 8px;
	}

	.tm-services__grid li:nth-child(n+7) {
		display: none;
	}

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

/* "Added to your trolley" note (when the trolley drawer is switched off). */
.tm-toast {
	align-items: center;
	background: var(--tm-ink);
	border-radius: var(--tm-r-m);
	bottom: 20px;
	box-shadow: var(--tm-shadow-lg);
	color: #fff;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 10px;
	left: 50%;
	opacity: 0;
	padding: 12px 16px;
	position: fixed;
	transform: translate(-50%, 16px);
	transition: opacity .25s, transform .25s;
	z-index: 100002;
}

.tm-toast.is-in {
	opacity: 1;
	transform: translate(-50%, 0);
}

.tm-toast svg {
	color: var(--tm-accent);
}

.tm-toast a {
	color: var(--tm-accent);
	margin-left: 6px;
}

/* TIT Multivendor trolley drawer items: picture, name, then quantity. */
.titmv-drawer__body .woocommerce-mini-cart-item {
	align-items: start;
	column-gap: 12px;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	row-gap: 2px;
}

.titmv-drawer__body .woocommerce-mini-cart-item > a:not(.remove) {
	display: contents;
	color: var(--tm-ink);
	font-weight: 700;
	text-decoration: none;
}

.titmv-drawer__body .woocommerce-mini-cart-item img {
	grid-row: span 3;
	margin: 0;
}

.titmv-drawer__body .woocommerce-mini-cart-item .quantity,
.titmv-drawer__body .woocommerce-mini-cart-item dl {
	color: var(--tm-muted);
	font-size: 13px;
	grid-column: 2;
	margin: 0;
}

@media (max-width: 600px) {
	.titmv-product__actions .titmv-product__cart .titmv-trolley-icon {
		display: none;
	}
}

/* TIT Multivendor screens bring their own headings, so the page title is
   kept for screen readers only. */
.tm-plugin-screen .tm-page__title {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
}

/* ==========================================================================
   16. TIT WISHLIST
   The heart in the header, on product cards and in the buy box, and the
   Wishlist page in the theme's colours.
   ========================================================================== */

.tm-theme {
	--titwl-accent: var(--tm-brand);
	--titwl-accent-ink: var(--tm-brand-dark);
	--titwl-on-accent: var(--tm-on-brand);
	--titwl-btn: var(--tm-accent);
	--titwl-btn-hover: var(--tm-accent-dark);
	--titwl-on-btn: var(--tm-on-accent);
	--titwl-link: var(--tm-link);
	--titwl-heart: var(--tm-sale);
	--titwl-heart-soft: color-mix(in srgb, var(--tm-sale) 9%, var(--tm-card));
	--titwl-ink: var(--tm-ink);
	--titwl-ink-2: var(--tm-ink-2);
	--titwl-muted: var(--tm-muted);
	--titwl-line: var(--tm-line);
	--titwl-card: var(--tm-card);
	--titwl-soft: var(--tm-soft);
	--titwl-ok: var(--tm-ok);
	--titwl-bad: var(--tm-sale);
	--titwl-radius: var(--tm-r-m);
	--titwl-radius-s: var(--tm-r-s);
	--titwl-btn-radius: var(--tm-r-s);
	--titwl-shadow: var(--tm-shadow);
	--titwl-shadow-lg: var(--tm-shadow-lg);
}

/* Header: the heart sits between the account menu and the trolley. */
.tm-mainbar__inner.is-layout-flex:has(> .wp-block-tradeintrack-wishlist) {
	grid-template-areas: "menu brand loc search account wish cart";
	grid-template-columns: auto auto auto minmax(0, 1fr) auto auto auto;
}

.tm-mainbar .wp-block-tradeintrack-wishlist {
	grid-area: wish;
}

.tm-wish {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--tm-r-s);
	color: inherit;
	display: flex;
	gap: 8px;
	padding: 5px 8px;
	position: relative;
	text-decoration: none;
	transition: border-color .15s;
}

.tm-header a.tm-wish {
	color: inherit;
}

.tm-wish:hover,
.tm-wish:focus-visible {
	border-color: rgba(255, 255, 255, .55);
	border-color: color-mix(in srgb, currentColor 55%, transparent);
}

.tm-wish__icon {
	display: block;
	position: relative;
}

.tm-wish__icon > .tm-icon {
	display: block;
	height: 30px;
	width: 30px;
}

.tm-wish__count {
	align-items: center;
	background: var(--tm-accent);
	border-radius: 999px;
	box-shadow: 0 0 0 2px var(--tm-header);
	box-sizing: border-box;
	color: var(--tm-on-accent);
	display: flex;
	font-size: 12px;
	font-weight: 800;
	height: 20px;
	justify-content: center;
	left: 16px;
	line-height: 1;
	min-width: 20px;
	padding: 0 5px;
	position: absolute;
	top: -7px;
}

.tm-wish__count[data-count="0"] {
	display: none;
}

.tm-wish__label {
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.tm-mainbar:has(.tm-brand--on-light) .tm-wish__icon > .tm-icon {
	color: var(--tm-brand);
}

/* Product cards: the heart over the picture's top corner. */
ul.products li.product > .titwl-heart {
	right: 18px;
	top: 18px;
}

.titmv-product__actions .titwl-heart--inline {
	height: 34px;
	width: 34px;
}

/* Buy box: under "Add to trolley" and "Buy now". */
.tm-buybox .titwl-single {
	margin: 12px 0 14px;
}

.tm-buybox .titwl-add {
	font-size: 15px;
	font-weight: 800;
	min-height: 46px;
}

.tm-buybox .titwl-add:not(.is-saved):hover {
	background: var(--tm-card);
}

/* Wishlist page: the lists column stays clear of the sticky header. */
.titwl-page .tm-main .wp-block-post-title {
	margin-bottom: 12px;
}

.tm-sticky-header .titwl-lists {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}

@media (max-width: 1100px) {
	.tm-mainbar__inner.is-layout-flex:has(> .wp-block-tradeintrack-wishlist) {
		grid-template-areas: "menu brand search account wish cart";
		grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
	}

	.tm-wish__label {
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}
}

@media (max-width: 959px) {
	.tm-mainbar__inner.is-layout-flex:has(> .wp-block-tradeintrack-wishlist) {
		grid-template-areas:
			"menu brand account wish cart"
			"search search search search search"
			"loc loc loc loc loc";
		grid-template-columns: auto minmax(0, 1fr) auto auto auto;
	}

	.tm-stuck .tm-mainbar__inner.is-layout-flex:has(> .wp-block-tradeintrack-wishlist) {
		grid-template-areas: "menu search cart";
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.tm-stuck .tm-mainbar .wp-block-tradeintrack-wishlist {
		display: none;
	}

	.tm-wish {
		padding: 6px;
	}

	.tm-wish__icon > .tm-icon {
		height: 28px;
		width: 28px;
	}
}

@media (max-width: 600px) {
	ul.products li.product > .titwl-heart {
		height: 32px;
		right: 12px;
		top: 12px;
		width: 32px;
	}
}

/* Sold out: the ribbon takes the picture's top-right corner, so the heart
   moves down and tucks in just under the band. */
ul.products li.product.outofstock > .titwl-heart {
	top: 88px;
}

@media (max-width: 600px) {
	ul.products li.product.outofstock > .titwl-heart {
		top: 78px;
	}
}
