/*
Theme Name: Tierly Commerce
Theme URI: https://tierlywp.com/
Author: Rayaxis Technologies
Author URI: https://www.rayaxis.com/
Description: Ultra-fast, high-craft WooCommerce B2B & retail hybrid block theme designed for Tierly. Features a live trade-tier utility bar, glassmorphic header with live mini-cart, MOQ product badges, and seamless styling for bulk variant grids and SKU quick-order blocks.
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: tierly-commerce
Tags: e-commerce, full-site-editing, block-patterns, wide-blocks, custom-colors
WC requires at least: 9.0
WC tested up to: 11.3
*/

:root {
	--tc-bg: #ffffff;
	--tc-bg-soft: #fafaf9;
	--tc-bg-tint: #fff7ed;
	--tc-ink: #1c1917;
	--tc-ink-2: #44403c;
	--tc-muted: #78716c;
	--tc-line: #e7e5e4;
	--tc-brand: #ea580c;
	--tc-brand-2: #c2410c;
	--tc-brand-soft: #fff7ed;
	--tc-good: #0d9488;
	--tc-good-soft: #f0fdfa;
	--tc-dark: #1c1917;
	--tc-dark-2: #292524;
	--tc-radius: 16px;
	--tc-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
	--tc-shadow: 0 14px 34px -16px rgba(28, 25, 23, 0.16);


}

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

body {
	margin: 0;
	background: var(--tc-bg);
	color: var(--tc-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.tc-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   1. Top Trade Status Bar & Sticky Glass Header
   ========================================================================== */
.tc-topbar {
	background: linear-gradient(90deg, var(--tc-brand-soft) 0%, #fafaf9 100%);
	color: #57534e;
	font-size: 0.81rem;
	border-bottom: 1px solid color-mix(in srgb, var(--tc-brand) 30%, #fff);
}
.tc-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	padding-top: 5px;
	padding-bottom: 5px;
	flex-wrap: wrap;
}
.tc-topbar__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #1c1917;
}
.tc-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tc-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-brand) 18%, transparent);
}
.tc-status-dot--approved {
	background: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.tc-tier-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--tc-brand) 50%, #fff);
	color: var(--tc-brand-2);
	font-size: 0.73rem;
	font-weight: 750;
	letter-spacing: 0.01em;
	box-shadow: 0 1px 2px color-mix(in srgb, var(--tc-brand) 8%, transparent);
}
.tc-topbar__links {
	display: flex;
	align-items: center;
	gap: 18px;
}
.tc-topbar__links a {
	color: #57534e;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}
.tc-topbar__links a:hover {
	color: var(--tc-brand);
}

.tc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--tc-line);
	box-shadow: 0 4px 20px -12px rgba(28, 25, 23, 0.08);
}
.tc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 74px;
}
.tc-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--tc-ink);
}
.tc-brand__mark {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%);
	display: grid;
	place-items: center;
	color: #fff;
	box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--tc-brand) 50%, transparent);
}
.tc-brand__mark svg {
	width: 20px;
	height: 20px;
}
.tc-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.tc-brand__text strong {
	font-weight: 800;
	font-size: 1.12rem;
	letter-spacing: -0.025em;
	color: var(--tc-ink);
}
.tc-brand__text small {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--tc-brand);
	margin-top: 2px;
}
.tc-nav {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 42px;
	padding: 3px;
	background: #f5f5f4;
	border: 1px solid #e7e5e4;
	border-radius: 11px;
}
.tc-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 13px;
	border-radius: 8px;
	color: #57534e;
	text-decoration: none;
	font-size: 0.87rem;
	font-weight: 650;
	line-height: 1;
	transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}
.tc-nav__link svg {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	color: #78716c;
	transition: color 0.15s ease;
}
.tc-nav__link:hover {
	color: var(--tc-ink);
	background: rgba(255, 255, 255, 0.7);
}
.tc-nav__link:hover svg {
	color: var(--tc-brand);
}
.tc-nav__link.is-active {
	background: #ffffff;
	color: var(--tc-brand);
	box-shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
}
.tc-nav__link.is-active svg {
	color: var(--tc-brand);
}
.tc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.tc-cart-wrap {
	position: relative;
}
.tc-cart-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
}
.tc-cart-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 42px;
	padding: 0 7px 0 11px;
	border-radius: 11px;
	background: #ffffff;
	border: 1px solid #e7e5e4;
	color: var(--tc-ink);
	text-decoration: none;
	font-size: 0.87rem;
	font-weight: 650;
	line-height: 1;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tc-cart-wrap:hover .tc-cart-pill,
.tc-cart-wrap:focus-within .tc-cart-pill {
	border-color: color-mix(in srgb, var(--tc-brand) 50%, #fff);
	box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--tc-brand) 15%, transparent);
}
.tc-cart-pill__icon,
.tc-cart-pill svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	color: var(--tc-brand);
}
.tc-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 28px;
	padding: 0 8px;
	border-radius: 7px;
	background: var(--tc-brand-soft);
	border: 1px solid color-mix(in srgb, var(--tc-brand) 50%, #fff);
	color: var(--tc-brand-2);
	font-size: 0.76rem;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.tc-cart-pop {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 330px;
	background: #ffffff;
	border: 1px solid #e7e5e4;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 20px 44px -16px rgba(28, 25, 23, 0.22), 0 2px 6px rgba(28, 25, 23, 0.05);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 80;
}
.tc-cart-wrap:hover .tc-cart-pop,
.tc-cart-wrap:focus-within .tc-cart-pop {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}
.tc-cart-pop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f5f5f4;
}
.tc-cart-pop__head strong {
	font-size: 0.92rem;
	font-weight: 750;
	color: #1c1917;
}
.tc-cart-pop__head span {
	font-size: 0.75rem;
	font-weight: 650;
	color: var(--tc-brand-2);
	background: var(--tc-brand-soft);
	border: 1px solid color-mix(in srgb, var(--tc-brand) 30%, #fff);
	padding: 2px 8px;
	border-radius: 999px;
}
.tc-cart-pop__list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	display: grid;
	gap: 2px;
	max-height: 220px;
	overflow-y: auto;
}
.tc-cart-pop__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 4px;
	border-bottom: 1px solid #fafaf9;
}
.tc-cart-pop__item:last-child {
	border-bottom: 0;
}
.tc-cart-pop__meta {
	min-width: 0;
	display: grid;
	gap: 2px;
}
.tc-cart-pop__meta strong {
	font-size: 0.83rem;
	font-weight: 650;
	color: #1c1917;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tc-cart-pop__meta small {
	font-size: 0.74rem;
	color: #78716c;
}
.tc-cart-pop__meta code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.72rem;
	color: #57534e;
}
.tc-cart-pop__price {
	font-size: 0.84rem;
	font-weight: 700;
	color: #1c1917;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.tc-cart-pop__more {
	margin: 0;
	padding: 6px 8px;
	border-radius: 8px;
	background: #fafaf9;
	color: #78716c;
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
}
.tc-cart-pop__sub {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding: 12px 0;
	border-top: 1px solid #e7e5e4;
}
.tc-cart-pop__sub span {
	display: block;
	font-size: 0.84rem;
	font-weight: 650;
	color: #44403c;
}
.tc-cart-pop__sub small {
	display: block;
	font-size: 0.72rem;
	color: #0d9488;
	font-weight: 600;
}
.tc-cart-pop__sub strong {
	font-size: 1.05rem;
	font-weight: 800;
	color: #1c1917;
	font-variant-numeric: tabular-nums;
}
.tc-cart-pop__actions {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 8px;
}
.tc-pop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 12px;
	border-radius: 9px;
	font-size: 0.83rem;
	font-weight: 650;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tc-pop-btn--ghost {
	background: #fafaf9;
	border: 1px solid #e7e5e4;
	color: #1c1917 !important;
}
.tc-pop-btn--ghost:hover {
	background: #f5f5f4;
	border-color: #d6d3d1;
}
.tc-pop-btn--primary {
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%);
	color: #ffffff !important;
}
.tc-pop-btn--primary:hover {
	transform: translateY(-1px);
}
.tc-cart-pop__empty {
	padding: 14px 0 4px;
	text-align: center;
}
.tc-cart-pop__empty p {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: #78716c;
}
.tc-mobile-menu {
	display: none;
	position: relative;
}
.tc-mobile-menu summary {
	list-style: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--tc-line);
	background: #f8fafc;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--tc-ink);
}
.tc-mobile-menu summary::-webkit-details-marker { display: none; }
.tc-mobile-menu summary svg { width: 19px; height: 19px; }
.tc-mobile-menu__panel {
	position: absolute;
	right: 0;
	top: 48px;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid var(--tc-line);
	border-radius: 14px;
	padding: 8px;
	box-shadow: var(--tc-shadow);
	display: grid;
	gap: 4px;
	z-index: 60;
}
.tc-mobile-menu__panel a {
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--tc-ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}
.tc-mobile-menu__panel a:hover {
	background: var(--tc-bg-soft);
	color: var(--tc-brand);
}
@media (max-width: 1020px) {
	.tc-nav { display: none; }
	.tc-mobile-menu { display: block; }
}
@media (max-width: 560px) {
	.tc-actions .tc-btn--primary { display: none; }
}
.tc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 42px;
	padding: 0 16px;
	border-radius: 11px;
	font-size: 0.87rem;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tc-btn svg {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	transition: transform 0.15s ease;
}
.tc-btn--primary {
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%);
	color: #fff !important;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.tc-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--tc-brand-2) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tc-btn--primary:hover svg {
	transform: translateX(2px);
}
.tc-btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.24);
}
.tc-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 860px) {
	/* Navigation moves to its own scrollable row under the logo. */
	.tc-header__inner { flex-wrap: wrap; row-gap: 10px; }
	.tc-nav {
		order: 3;
		width: 100%;
		gap: 20px;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 2px;
	}
	.tc-nav::-webkit-scrollbar { display: none; }
	.tc-nav a { white-space: nowrap; font-size: .88rem; }
	.tc-actions .tc-btn--primary { display: none; }
	.tc-brand { min-width: 0; }
	.tc-brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tc-brand__tag { display: none; }
	.tc-topbar__links a:not(:last-child) { display: none; }
	.tc-topbar__links a { white-space: nowrap; }
	.tc-brand { flex: 1 1 auto; }
	.tc-cart-pill > span:not(.tc-cart-count) { display: none; }
	.tc-header__inner { flex-wrap: wrap; }
	.tc-topbar__status span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 520px) {
	.tc-topbar__inner { flex-wrap: nowrap; gap: 10px; }
	.tc-topbar__status { min-width: 0; font-size: .78rem; }
	.tc-hero__metrics { grid-template-columns: 1fr !important; gap: 14px; }
}

/* ==========================================================================
   2. Front-Page B2B Showcase Hero & Feature Strip
   ========================================================================== */
.tc-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(680px 380px at 88% 12%, color-mix(in srgb, var(--tc-brand) 34%, transparent), transparent 70%),
		radial-gradient(540px 320px at 12% 95%, color-mix(in srgb, var(--tc-brand-2) 26%, transparent), transparent 70%),
		linear-gradient(135deg, #1c1917 0%, #292524 100%);
	color: #f8fafc;
	padding: clamp(3.5rem, 6vw, 5.5rem) 0;
	border-bottom: 1px solid var(--tc-line);
}
.tc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 48px;
	align-items: center;
}
@media (max-width: 920px) {
	.tc-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}
.tc-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--tc-brand) 18%, transparent);
	border: 1px solid rgba(251, 146, 60, 0.34);
	color: color-mix(in srgb, var(--tc-brand) 30%, #fff);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.tc-hero h1 {
	color: #ffffff;
	font-size: clamp(2.1rem, 4.2vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
}
.tc-hero h1 em {
	font-style: normal;
	background: linear-gradient(90deg, color-mix(in srgb, var(--tc-brand) 50%, #fff) 0%, color-mix(in srgb, var(--tc-brand) 30%, #fff) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.tc-hero__lead {
	color: #cbd5e1;
	font-size: 1.06rem;
	line-height: 1.65;
	max-width: 56ch;
	margin: 0 0 26px;
}
.tc-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}
.tc-hero__metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.tc-metric strong {
	display: block;
	font-size: 1.15rem;
	color: #fff;
	font-weight: 750;
}
.tc-metric span {
	font-size: 0.8rem;
	color: #94a3b8;
}
.tc-hero-card {
	background: rgba(15, 23, 42, 0.78);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 20px;
	padding: 24px;
	box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.65);
}
.tc-hero-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 14px;
	font-size: 0.86rem;
	font-weight: 700;
	color: #fff;
}
.tc-hero-card__rows {
	display: grid;
	gap: 10px;
}
.tc-hero-card__row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.85rem;
}
.tc-hero-card__row code {
	color: color-mix(in srgb, var(--tc-brand) 30%, #fff);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tc-hero-card__row span { color: #94a3b8; }
.tc-hero-card__row strong { color: #fff; }
.tc-hero-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.84rem;
}
.tc-hero-card__ok {
	color: #34d399;
	font-weight: 650;
}

.tc-strip {
	background: var(--tc-bg-soft);
	border-bottom: 1px solid var(--tc-line);
	padding: 20px 0;
}
.tc-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
@media (max-width: 860px) {
	.tc-strip__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.tc-strip__grid { grid-template-columns: 1fr; }
}
.tc-strip__item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.86rem;
}
.tc-strip__icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--tc-brand-soft);
	color: var(--tc-brand);
	display: grid;
	place-items: center;
}
.tc-strip__icon svg { width: 18px; height: 18px; }
.tc-strip__item strong { display: block; color: var(--tc-ink); font-weight: 650; }
.tc-strip__item span { color: var(--tc-muted); font-size: 0.8rem; }

/* ==========================================================================
   3. WooCommerce Shop Grid, Product Cards & MOQ Badges
   ========================================================================== */
.tc-section {
	padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.tc-section--soft {
	background: var(--tc-bg-soft);
	border-top: 1px solid var(--tc-line);
	border-bottom: 1px solid var(--tc-line);
}
.tc-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.tc-section__head h2 {
	margin: 4px 0 0;
	font-size: clamp(1.55rem, 2.8vw, 2.1rem);
	letter-spacing: -0.025em;
}
.tc-section__kicker {
	font-size: 0.75rem;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tc-brand);
}

.woocommerce ul.products,
.wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
	gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}
.woocommerce ul.products li.product,
.wc-block-grid__product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	background: var(--tc-bg);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	padding: 16px !important;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--tc-brand) 45%, var(--tc-line));
	box-shadow: var(--tc-shadow);
}
.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img {
	width: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	background: #f4f6f9;
	margin: 0 0 14px !important;
}
.tc-moq-badge {
	position: absolute;
	top: 26px;
	left: 26px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(11, 19, 36, 0.84);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	font-size: 1.02rem !important;
	font-weight: 700 !important;
	color: var(--tc-ink) !important;
	line-height: 1.35 !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
}
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
	font-size: 1.08rem !important;
	font-weight: 750 !important;
	color: var(--tc-ink) !important;
	margin: auto 0 14px !important;
}
.b2b-wholesale-label {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--tc-brand-soft);
	color: var(--tc-brand);
	font-size: 0.72rem;
	font-weight: 700;
	vertical-align: middle;
	margin-left: 4px;
}
.woocommerce ul.products li.product .button,
.wc-block-grid__product-add-to-cart .wp-block-button__link {
	width: 100%;
	text-align: center;
	padding: 11px 16px !important;
	border-radius: 10px !important;
	background: var(--tc-bg-soft) !important;
	color: var(--tc-ink) !important;
	border: 1px solid var(--tc-line) !important;
	font-size: 0.88rem !important;
	font-weight: 650 !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}
.woocommerce ul.products li.product:hover .button,
.wc-block-grid__product:hover .wp-block-button__link {
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%) !important;
	color: #ffffff !important;
	border-color: transparent !important;
}

/* ==========================================================================
   4. Single Product, My Account & Tierly Block Integration
   ========================================================================== */
.woocommerce div.product div.images img {
	border-radius: 16px;
	border: 1px solid var(--tc-line);
	background: #f4f6f9;
}
.woocommerce div.product .product_title {
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	letter-spacing: -0.025em;
	margin-bottom: 10px;
}
.woocommerce div.product p.price {
	font-size: 1.4rem !important;
	font-weight: 800 !important;
	color: var(--tc-ink) !important;
}
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%) !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 13px 24px !important;
	font-weight: 650 !important;
	border: 0 !important;
}

/* WooCommerce My Account Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--tc-bg-soft);
	border: 1px solid var(--tc-line);
	border-radius: 14px;
	display: grid;
	gap: 4px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: 9px;
	color: var(--tc-ink-2);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--tc-bg);
	color: var(--tc-brand);
	box-shadow: var(--tc-shadow-sm);
}

/* Catalog Template Support */
.b2b-sticky-order-bar {
	position: sticky;
	top: calc(var(--tierly-sticky-top, 0px) + 12px);
	z-index: 40;
	box-shadow: var(--tc-shadow);
}
.b2b-live-Order-metrics {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	margin-right: 16px;
}
.b2b-metric-divider { color: var(--tc-line); }
.b2b-catalog-row { transition: background-color 0.15s ease; }
.b2b-catalog-row:hover { background-color: var(--tc-bg-soft); }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.tc-footer {
	background: radial-gradient(640px 240px at 15% 0%, color-mix(in srgb, var(--tc-brand) 14%, transparent), transparent 70%), #141210;
	color: #a8a29e;
	padding: 56px 0 28px;
	margin-top: 64px;
	font-size: 0.9rem;
}
.tc-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 32px;
}
@media (max-width: 820px) {
	.tc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.tc-footer__grid { grid-template-columns: 1fr; }
}
.tc-footer h4 {
	color: #f8fafc;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 14px;
}
.tc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}
.tc-footer a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.15s ease;
}
.tc-footer a:hover { color: #ffffff; }
.tc-footer__base {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.82rem;
	color: #64748b;
}

/* How it works (front page) */
.tc-how { margin-top: 4.5rem; padding: 3rem; border-radius: 24px; background: linear-gradient(135deg, #1c1917, #292524); color: #e7e5e4; }
.tc-how__head h2 { margin: .35rem 0 2rem; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tc-how .tc-kicker { color: color-mix(in srgb, var(--tc-brand) 50%, #fff); background: color-mix(in srgb, var(--tc-brand) 16%, transparent); border-color: rgba(251, 146, 60, 0.32); }
.tc-how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.tc-how__steps li { margin: 0; padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.tc-how__steps h3 { margin: .9rem 0 .4rem; color: #fff; font-size: 1.1rem; }
.tc-how__steps p { margin: 0; color: #a8a29e; font-size: .95rem; line-height: 1.6; }
.tc-how__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff), var(--tc-brand-2)); color: #fff; font-weight: 800; }
.tc-how__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.tc-how .tc-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
@media (max-width: 781px) {
	.tc-how { padding: 1.75rem 1.25rem; }
	.tc-how__steps { grid-template-columns: 1fr; }
}

/* Breadcrumbs and product meta links */
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: .9rem; color: var(--tc-muted, #78716c); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a, .product_meta a { color: var(--tc-ink-2, #44403c); text-decoration: none; }
.woocommerce-breadcrumb a:hover, .wc-block-breadcrumbs a:hover, .product_meta a:hover { color: var(--tc-brand, var(--tc-brand)); }
.product_meta { font-size: .9rem; color: var(--tc-muted, #78716c); display: flex; gap: 16px; flex-wrap: wrap; }

/* My Account menu: compact list */
.woocommerce-MyAccount-navigation ul { display: flex !important; flex-direction: column; gap: 2px !important; margin: 0; padding: 8px !important; list-style: none; }
.woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px !important; border-radius: 10px; text-decoration: none !important; }

/* Layout: footer at the bottom of short pages */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .tc-main { flex: 1 0 auto; width: 100%; }
.tc-main--center { display: flex; flex-direction: column; justify-content: center; text-align: center; }

/* 404 */
.tc-404 { padding: 2rem 0; }
.tc-404__code { margin: 0; font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff), var(--tc-brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-404 .wp-block-search { max-width: 460px; margin: 1.5rem auto; }
.tc-404 h1 { margin: .5rem 0; }
.tc-404 p { color: var(--tc-muted, #78716c); }

/* Search, archive and blog results */
.tc-search-again { max-width: 520px; margin: 1rem 0 2rem; }
.tc-results .wp-block-post-template { gap: 24px; }
.tc-result-card { height: 100%; padding: 14px; border: 1px solid var(--tc-line, #e7e5e4); border-radius: 18px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.tc-result-card:hover { border-color: color-mix(in srgb, var(--tc-brand) 50%, #fff); box-shadow: 0 16px 34px -22px rgba(28, 25, 23, .35); }
.tc-result-card .wp-block-post-title { margin: 14px 4px 6px; }
.tc-result-card .wp-block-post-title a { color: var(--tc-ink, #1c1917); text-decoration: none; }
.tc-result-card .wp-block-post-excerpt { margin: 0 4px; color: var(--tc-muted, #78716c); font-size: .93rem; }
.tc-result-card .wp-block-post-featured-image:empty { display: none; }
.tc-empty { padding: 2rem; border: 1px dashed #d6d3d1; border-radius: 16px; text-align: center; color: var(--tc-muted, #78716c); }
@media (max-width: 781px) { .tc-results .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* Articles */
.tc-article__date { color: var(--tc-muted, #78716c); font-size: .9rem; }
.tc-article .wp-block-post-featured-image { margin: 1.5rem 0; }
.tc-article .wp-block-post-content { font-size: 1.06rem; line-height: 1.75; }
.wc-block-grid__product, .woocommerce ul.products li.product { max-width: none !important; flex: none !important; }

/* WooCommerce caps account and cart pages at 1000px; use the theme's width so they line up with the header. */
.woocommerce-account .wp-block-post-title,
.woocommerce-account main .woocommerce,
.woocommerce-cart .wp-block-post-title,
.woocommerce-cart main .woocommerce,
.woocommerce-checkout .wp-block-post-title,
.woocommerce-checkout main .woocommerce,
.woocommerce-order-received main .woocommerce { max-width: var(--wp--style--global--content-size, 1200px) !important; }

/* Classic WooCommerce forms (scoped away from Block Checkout floating-label inputs) */
.woocommerce form .input-text:not(.wc-block-components-text-input input),
.woocommerce form select:not(.wc-blocks-components-select__select),
.woocommerce-page form .input-text:not(.wc-block-components-text-input input),
.woocommerce form input[type="text"]:not(.wc-block-components-text-input input),
.woocommerce form input[type="email"]:not(.wc-block-components-text-input input),
.woocommerce form input[type="password"]:not(.wc-block-components-text-input input),
.woocommerce form input[type="tel"]:not(.wc-block-components-text-input input),
.woocommerce .select2-container .select2-selection--single {
	border: 1px solid #d6d3d1 !important; border-radius: 10px !important; background: #fff; min-height: 46px; padding: 10px 14px !important; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.woocommerce form .input-text:focus, .woocommerce form input:focus, .woocommerce form select:focus {
	outline: none; border-color: var(--tc-brand, var(--tc-brand)) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-brand, var(--tc-brand)) 18%, transparent);
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }
.woocommerce form fieldset { border: 1px solid var(--tc-line); border-radius: 14px; padding: 8px 18px 18px; }
.woocommerce form fieldset legend { padding: 0 8px; font-weight: 700; }
.wc-block-grid__product-title, .wc-block-grid__product-link { text-decoration: none !important; color: var(--tc-ink, #1c1917); }
.woocommerce-orders-table__cell-order-number a, .woocommerce-MyAccount-content a { text-decoration: none; font-weight: 600; }

/* ==========================================================================
   WooCommerce Block Checkout & Cart Polish
   ========================================================================== */
.tc-checkout-head {
	margin-bottom: 1.5rem !important;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--tc-line);
}
.tc-checkout-head h1 {
	font-size: clamp(1.75rem, 3vw, 2.3rem);
	letter-spacing: -0.025em;
	margin: 0;
}
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.wc-block-checkout__main {
	padding-right: 12px;
}
.wp-block-woocommerce-checkout-totals-block,
.wp-block-woocommerce-cart-totals-block {
	background: var(--tc-bg-soft);
	border: 1px solid var(--tc-line);
	border-radius: 18px;
	padding: 24px !important;
	box-shadow: 0 10px 28px -16px rgba(28, 25, 23, 0.08);
}
.wc-block-components-sidebar-layout .wc-block-components-main {
	padding-right: 32px;
}
@media (max-width: 900px) {
	.wc-block-components-sidebar-layout .wc-block-components-main {
		padding-right: 0;
	}
}
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="number"],
.wc-blocks-components-select .wc-blocks-components-select__select {
	border: 1px solid #d6d3d1 !important;
	border-radius: 10px !important;
	background-color: #ffffff !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--tc-brand, var(--tc-brand)) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-brand) 16%, transparent) !important;
	outline: none !important;
}
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 15px 26px !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--tc-brand) 55%, transparent) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--tc-brand) 70%, transparent) !important;
}
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option {
	border-radius: 10px;
}

@media (max-width: 860px) {
	.tc-brand { flex: 1 1 0 !important; }
	.tc-actions { flex: 0 0 auto; }
	.tc-topbar__status > span:nth-child(2):not(:last-child) { display: none; }
}

/* ==========================================================================
   Store home page
   ========================================================================== */
.tc-store-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 6rem);
	background:
		radial-gradient(720px 420px at 85% 20%, color-mix(in srgb, var(--tc-brand) 32%, transparent), transparent 70%),
		radial-gradient(520px 340px at 0% 100%, color-mix(in srgb, var(--tc-brand-2) 26%, transparent), transparent 70%),
		linear-gradient(135deg, #1c1917 0%, #292524 100%);
	color: #e7e5e4;
}
.tc-store-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.tc-store-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.tc-store-hero h1 { margin: 18px 0 16px; color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; }
.tc-store-hero h1 em { font-style: normal; background: linear-gradient(90deg, color-mix(in srgb, var(--tc-brand) 50%, #fff), color-mix(in srgb, var(--tc-brand) 30%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-store-hero__lead { max-width: 560px; margin: 0 0 26px; color: #d6d3d1; font-size: 1.12rem; line-height: 1.6; }

.tc-hero-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 7px 7px 7px 16px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.tc-hero-search svg { width: 20px; height: 20px; flex: 0 0 auto; color: #78716c; }
.tc-hero-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; outline: none; background: none; font-size: 1rem; color: #1c1917; padding: 10px 0 !important; box-shadow: none !important; }
.tc-hero-search button { border: 0; border-radius: 10px; padding: 12px 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff), var(--tc-brand-2)); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; }
.tc-hero-search button:hover { opacity: .94; }

.tc-store-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tc-store-hero__proof { display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.1); list-style: none; }
.tc-store-hero__proof li { margin: 0; display: flex; flex-direction: column; }
.tc-store-hero__proof strong { color: #fff; font-size: 1.2rem; }
.tc-store-hero__proof span { color: #a8a29e; font-size: .88rem; }

.tc-store-hero__visual { position: relative; height: 470px; }
.tc-float {
	position: absolute; display: grid; grid-template-columns: 1fr; gap: 4px; width: 230px; padding: 12px 12px 14px;
	border-radius: 20px; background: #fff; color: #1c1917 !important; text-decoration: none !important;
	box-shadow: 0 30px 60px -24px rgba(0,0,0,.65); transition: transform .3s ease;
}
.tc-float:hover { transform: translateY(-6px) rotate(0deg) !important; }
.tc-float img { width: 100% !important; height: 170px !important; object-fit: cover; border-radius: 14px; margin-bottom: 8px; background: #fafaf9; }
.tc-float__name { font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-float__price { font-weight: 800; color: var(--tc-brand); font-size: 1rem; }
.tc-float__price del { color: #a8a29e; font-weight: 500; font-size: .85rem; }
.tc-float__price small, .tc-float__price .b2b-wholesale-label { display: none; }
.tc-float--1 { left: 4%; top: 30px; transform: rotate(-5deg); z-index: 2; }
.tc-float--2 { right: 2%; top: 0; transform: rotate(4deg); z-index: 1; }
.tc-float--3 { left: 30%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.tc-float-badge {
	position: absolute; right: 0; bottom: 70px; z-index: 4; display: flex; flex-direction: column; gap: 2px;
	padding: 12px 16px; border-radius: 14px; background: #0d9488; color: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
}
.tc-float-badge span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.tc-float-badge strong { font-size: .98rem; }

.tc-usp { border-bottom: 1px solid var(--tc-line); background: #fff; }
.tc-usp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px clamp(1.25rem, 4vw, 2.5rem) !important; }
.tc-usp__grid > div { display: flex; gap: 12px; align-items: flex-start; }
.tc-usp svg { width: 40px; height: 40px; flex: 0 0 40px; padding: 9px; border-radius: 12px; background: var(--tc-brand-soft); color: var(--tc-brand); }
.tc-usp span { display: flex; flex-direction: column; color: var(--tc-muted); font-size: .88rem; line-height: 1.45; }
.tc-usp strong { color: var(--tc-ink); font-size: .95rem; }

/* Section heads */
.tc-section { margin: 0 0 4.5rem; }
.tc-section__head { display: flex !important; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 1.6rem !important; }
.tc-section__head h2 { margin: .3rem 0 0; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.02em; }
.tc-eyebrow { color: var(--tc-brand); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tc-eyebrow--light { color: color-mix(in srgb, var(--tc-brand) 30%, #fff); }
.tc-link-arrow { color: var(--tc-brand) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.tc-link-arrow:hover { text-decoration: underline !important; }

/* Categories */
.tc-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tc-cat { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border: 1px solid var(--tc-line); border-radius: 18px; background: #fff; color: var(--tc-ink) !important; text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tc-cat:hover { border-color: color-mix(in srgb, var(--tc-brand) 50%, #fff); box-shadow: 0 16px 34px -22px rgba(28,25,23,.4); transform: translateY(-3px); }
.tc-cat__img { display: block; aspect-ratio: 1; margin-bottom: 8px; overflow: hidden; border-radius: 12px; background: var(--tc-bg-soft); }
.tc-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tc-cat:hover .tc-cat__img img { transform: scale(1.05); }
.tc-cat__name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.tc-cat__count { color: var(--tc-muted); font-size: .82rem; }

/* Volume promo */
.tc-promo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; margin: 4.5rem 0 0; padding: clamp(2rem, 4vw, 3.25rem); border-radius: 26px; color: color-mix(in srgb, var(--tc-brand) 16%, #fff);
	background: radial-gradient(500px 300px at 100% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, var(--tc-brand), color-mix(in srgb, var(--tc-brand-2) 80%, #000)); }
.tc-promo h2 { margin: .35rem 0 .7rem; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tc-promo p { margin: 0 0 1.4rem; max-width: 480px; line-height: 1.6; }
.tc-btn--light { background: #fff !important; color: var(--tc-brand-2) !important; border-color: #fff !important; }
.tc-promo__steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-promo__steps li { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.tc-promo__steps li:last-child { background: #fff; color: color-mix(in srgb, var(--tc-brand-2) 80%, #000); }
.tc-promo__steps span { font-weight: 600; }
.tc-promo__steps strong { color: #fff; font-size: 1.05rem; }
.tc-promo__steps li:last-child strong { color: #0d9488; }

/* Products heading spacing on the home page */
.tc-section__head--products { margin-top: 0 !important; }

@media (max-width: 960px) {
	.tc-store-hero__grid, .tc-promo { grid-template-columns: 1fr; }
	.tc-store-hero__visual { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
	.tc-usp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.tc-store-hero__visual { height: 330px; }
	.tc-float { width: 168px; padding: 9px; }
	.tc-float img { height: 118px !important; }
	.tc-float--3 { left: 22%; }
	.tc-float-badge { bottom: 40px; }
	.tc-usp__grid { grid-template-columns: 1fr; gap: 16px; }
	.tc-hero-search button { padding: 12px 14px; }
	.tc-store-hero__proof { gap: 18px; }
}
/* Hero showcase: spread the cards so names stay readable */
.tc-store-hero__visual { height: 500px; }
.tc-float { width: 210px; }
.tc-float img { height: 150px !important; }
.tc-float--1 { left: 0; top: 60px; }
.tc-float--2 { right: 0; top: 0; }
.tc-float--3 { left: 33%; top: 230px; bottom: auto; }
.tc-float-badge { right: 0; bottom: 30px; }
.tc-section.tc-cats { margin-top: -1rem; }
@media (max-width: 560px) {
	.tc-store-hero__visual { height: 360px; }
	.tc-float { width: 150px; }
	.tc-float img { height: 100px !important; }
	.tc-float--3 { left: 26%; top: 150px; }
	.tc-float-badge { bottom: 0; }
}
.tc-float-badge { left: 0; right: auto; bottom: 10px; }
@media (max-width: 560px) {
	.tc-store-hero__visual { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.tc-float { position: static; width: auto; transform: none !important; }
	.tc-float--3, .tc-float-badge { display: none; }
	.tc-float img { height: 120px !important; }
	.woocommerce ul.products, .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
	.woocommerce ul.products li.product, .wc-block-grid__product { padding: 10px !important; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .88rem !important; }
	.woocommerce ul.products li.product .button { font-size: .82rem !important; padding: 8px !important; }
	.tc-section__head { flex-wrap: wrap; }
}

/* ==========================================================================
   Wholesale Catalogue: Light Bar + Optimized List & Grid Cards
   ========================================================================== */
:root {
	--tc-radius: 16px;
	--tierly-radius: 14px;
	--tierly-radius-sm: 10px;
	--tierly-bar-bg: rgba(255, 255, 255, 0.95);
	--tierly-bar-ink: #1c1917;
	--tierly-bar-line: #e7e5e4;
	--tierly-bar-field: #fafaf9;
	--tierly-bar-muted: #78716c;
	--tierly-bar-value: var(--tc-brand);
}

/* This theme always shows a light catalogue bar to match its header (Tierly's Appearance setting is overridden here on purpose). */
.b2b-sticky-order-bar {
	top: calc(var(--tierly-sticky-top, 0px) + 12px) !important;
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid #e7e5e4 !important;
	border-radius: 16px !important;
	padding: 14px 20px !important;
	box-shadow: 0 10px 28px -14px rgba(28, 25, 23, 0.1) !important;
}
.b2b-sticky-order-bar h2 {
	color: #1c1917 !important;
	font-weight: 750 !important;
}
.b2b-live-Order-metrics {
	background: var(--tc-brand-soft) !important;
	border: 1px solid color-mix(in srgb, var(--tc-brand) 30%, #fff) !important;
	color: #44403c !important;
	border-radius: 10px !important;
	padding: 8px 14px !important;
}
.b2b-live-Order-metrics strong {
	color: var(--tc-brand) !important;
	font-weight: 750 !important;
}
.b2b-catalog-portal-shell .wp-block-button__link.has-brand-background-color {
	background: linear-gradient(135deg, color-mix(in srgb, var(--tc-brand) 85%, #fff) 0%, var(--tc-brand-2) 100%) !important;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tc-brand) 50%, transparent) !important;
}

/* List View: Individual elevated cards with balanced product + matrix columns */
.b2b-catalog-list:not(.is-grid) {
	display: grid !important;
	gap: 16px !important;
	border: 0 !important;
	background: transparent !important;
	overflow: visible !important;
}
.b2b-catalog-list:not(.is-grid) > li {
	margin: 0 !important;
	border: 0 !important;
}
.b2b-catalog-list:not(.is-grid) .b2b-catalog-row {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) !important;
	gap: 24px !important;
	align-items: start !important;
	padding: 20px 24px !important;
	border: 1px solid #e7e5e4 !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	box-shadow: 0 1px 3px rgba(28, 25, 23, 0.03), 0 10px 24px -14px rgba(28, 25, 23, 0.08) !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}
.b2b-catalog-list:not(.is-grid) .b2b-catalog-row:hover {
	border-color: color-mix(in srgb, var(--tc-brand) 50%, #fff) !important;
	background: #ffffff !important;
	box-shadow: 0 14px 32px -16px color-mix(in srgb, var(--tc-brand) 16%, transparent) !important;
}
.b2b-catalog-list:not(.is-grid) .b2b-catalog-row > .wp-block-group:first-child {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 16px !important;
	width: 100% !important;
	max-width: none !important;
	padding: 4px 0 0 !important;
	border: 0 !important;
}
.b2b-catalog-list:not(.is-grid) .wp-block-post-featured-image,
.b2b-catalog-list:not(.is-grid) .wp-block-post-featured-image img {
	width: 88px !important;
	height: 88px !important;
	flex: 0 0 88px !important;
	border-radius: 12px !important;
}
.b2b-catalog-list:not(.is-grid) .wp-block-post-featured-image img {
	border: 1px solid #e7e5e4;
	background: #fafaf9;
	object-fit: cover;
}
.b2b-catalog-list:not(.is-grid) .b2b-matrix-wrapper:not(.is-locked) {
	border: 1px solid #e7e5e4 !important;
	border-radius: 12px !important;
	background: #fafaf9 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}
.b2b-catalog-list:not(.is-grid) .b2b-matrix-footer {
	background: #f5f5f4 !important;
	border-top: 1px solid #e7e5e4 !important;
}
.b2b-catalog-list:not(.is-grid) .b2b-matrix-wrapper.is-locked {
	align-self: center;
	padding: 14px 18px !important;
	border-radius: 12px !important;
}

/* Grid View: 2-column cards with aligned headers and bottom-pinned order grids */
.b2b-catalog-list.is-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 20px !important;
}
.b2b-catalog-list.is-grid > li > .b2b-catalog-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: auto 1fr !important;
	gap: 18px !important;
	height: 100% !important;
	padding: 22px !important;
	border: 1px solid #e7e5e4 !important;
	border-radius: 18px !important;
	background: #ffffff !important;
	box-shadow: 0 1px 3px rgba(28, 25, 23, 0.03), 0 10px 24px -14px rgba(28, 25, 23, 0.08) !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}
.b2b-catalog-list.is-grid > li > .b2b-catalog-row:hover {
	border-color: color-mix(in srgb, var(--tc-brand) 50%, #fff) !important;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--tc-brand) 20%, transparent) !important;
}
.b2b-catalog-list.is-grid > li > .b2b-catalog-row > .wp-block-group:first-child {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 16px !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 0 16px !important;
	border-bottom: 1px solid #f5f5f4 !important;
}
.b2b-catalog-list.is-grid .wp-block-post-featured-image,
.b2b-catalog-list.is-grid .wp-block-post-featured-image img {
	width: 84px !important;
	height: 84px !important;
	flex: 0 0 84px !important;
	border-radius: 12px !important;
}
.b2b-catalog-list.is-grid .b2b-matrix-wrapper:not(.is-locked) {
	align-self: end;
	width: 100%;
	border: 1px solid #e7e5e4 !important;
	border-radius: 12px !important;
	background: #fafaf9 !important;
}

@media (max-width: 900px) {
	.b2b-catalog-list:not(.is-grid) .b2b-catalog-row {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
	.b2b-catalog-list:not(.is-grid) .b2b-catalog-row > .wp-block-group:first-child {
		padding-bottom: 14px !important;
		border-bottom: 1px solid #f5f5f4 !important;
	}
	.b2b-catalog-list.is-grid {
		grid-template-columns: 1fr !important;
	}
}
.tc-float-badge { left: 0; right: auto; top: 0; bottom: auto; }

/* Tierly catalogue bar sits below this theme's sticky header. */

/* ==========================================================================
   Product cards: equal height, same rhythm in every card
   ========================================================================== */
.woocommerce ul.products li.product { height: 100%; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	text-decoration: none !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.35em * 2);
}
.woocommerce ul.products li.product .price {
	display: block !important;
	margin: auto 0 16px !important;
	padding-top: 12px;
	border-top: 1px dashed var(--tc-line);
	font-size: 1.45rem !important;
	font-weight: 800 !important;
	letter-spacing: -.02em;
	line-height: 1.2 !important;
	color: var(--tc-ink) !important;
}
.woocommerce ul.products li.product .price .tc-from { display: block; margin-bottom: 2px; color: var(--tc-muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.woocommerce ul.products li.product .price .tc-unit { color: var(--tc-muted); font-size: .85rem; font-weight: 600; letter-spacing: 0; }
.woocommerce ul.products li.product .price del { display: inline-block; margin-right: 6px; color: var(--tc-muted); font-size: .95rem; font-weight: 600; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price .b2b-wholesale-label { display: table; margin: 8px 0 0; font-size: .72rem; letter-spacing: 0; }
.woocommerce ul.products li.product .price .b2b-price-hidden { font-size: .95rem; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart { margin-top: 0 !important; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: 8px !important; text-align: center; font-size: .85rem; }

/* Sticky header that really sticks: the template-part wrapper steps aside so the header can stick to the page. */
.wp-site-blocks > div:has(> .tc-header) { display: contents; }
.tc-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .tc-header { top: 0; } }

/* Catalogue bar: 12px below the sticky header (Tierly measures the exact offset).
   The strip above it is covered so products don't show through the gap. */
:root { --tierly-bar-gap: 12px; }
.b2b-sticky-order-bar { top: calc(var(--tierly-sticky-top, 0px) + 12px) !important; }
.b2b-sticky-order-bar.is-stuck::before { content: ""; position: absolute; left: -2px; right: -2px; bottom: calc(100% + 1px); height: 13px; background: var(--tc-bg); pointer-events: none; }

/* List / Grid switch: breathing room above the products */
.b2b-view-toggle { float: none !important; display: flex !important; width: max-content; margin: 0 0 10px auto !important; }

/* ==========================================================================
   Pagination (shop, categories, search, wholesale catalogue, account orders)
   ========================================================================== */
.woocommerce nav.woocommerce-pagination { margin: 2.5rem 0 0; text-align: center; }
.woocommerce nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex !important; align-items: center; gap: 8px;
	margin: 0; padding: 0; border: 0 !important; list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li { margin: 0 !important; border: 0 !important; float: none; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 42px; height: 42px; padding: 0 14px !important;
	border: 1px solid var(--tc-line) !important; border-radius: 10px;
	background: #fff; color: var(--tc-ink) !important;
	font-size: .95rem !important; font-weight: 650; line-height: 1;
	text-decoration: none !important;
	transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.wp-block-query-pagination-numbers a.page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	border-color: var(--tc-brand) !important; color: var(--tc-brand) !important;
	box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--tc-brand) 60%, transparent);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--tc-brand) !important; border-color: var(--tc-brand) !important; color: var(--tc-brand-ink, #fff) !important;
	box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--tc-brand) 70%, transparent);
}
.wp-block-query-pagination-numbers .page-numbers.dots,
.woocommerce nav.woocommerce-pagination ul li span.dots { border-color: transparent !important; background: none; }

/* Wholesale catalogue: Previous · numbers · Next on one row below the list */
.wp-block-query-pagination {
	display: flex !important; align-items: center; justify-content: center !important; flex-wrap: wrap; gap: 8px !important;
	margin-top: 2rem !important; padding-top: 1.5rem; border-top: 1px solid var(--tc-line);
}
.wp-block-query-pagination-numbers { display: inline-flex; gap: 8px; order: 2; }
.wp-block-query-pagination-previous { order: 1; }
.wp-block-query-pagination-next { order: 3; }
.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow { margin: 0 !important; }

/* My Account orders: Previous / Next buttons */
.woocommerce-pagination--without-numbers { display: flex; justify-content: space-between; margin-top: 1.5rem; }
.woocommerce-pagination--without-numbers .woocommerce-button { border-radius: 10px !important; }
.wp-block-query-pagination > * { margin: 0 !important; }
.wp-block-query-pagination.is-content-justification-space-between { justify-content: center !important; }

/* Search results head: title and search box share the content's left edge */
.tc-search-head .tc-search-again { max-width: 560px; margin: 1rem 0 2rem !important; }
.tc-search-head .wp-block-search__input { border: 1px solid var(--tc-line) !important; border-radius: 10px !important; padding: 10px 14px !important; }
.tc-search-head .wp-block-search__button { border-radius: 10px !important; background: var(--tc-brand) !important; color: var(--tc-brand-ink, #fff) !important; border: 0 !important; }
.tc-brand__logo { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain; }

/* Wholesale catalogue page: less space above the catalogue bar. */
body.b2b-commerce-pro-page main.wp-block-group { margin-top: 0 !important; padding-top: 24px !important; }

/* Header on medium screens: keep everything on one row. */
.tc-brand__text strong { white-space: nowrap; }
.tc-quick-btn__icon { display: none; width: 20px; height: 20px; flex: none; }
@media (max-width: 1200px) {
	.tc-quick-btn { width: 44px; height: 44px; padding: 0 !important; justify-content: center; }
	.tc-quick-btn__label, .tc-quick-btn > svg:not(.tc-quick-btn__icon) { display: none; }
	.tc-quick-btn__icon { display: block; }
}
@media (max-width: 1150px) {
	.tc-nav__link svg { display: none; }
}
