/* ==========================================================================
   Trade India Exports Shop: "origin-led editorial" identity.
   Cloud and Paper grounds, Nilgiri Ink text, Tea green for buy/quote actions,
   Blue Mountain for detail, Lemongrass as a small accent.
   Product illustrations (.tie-art) are styled at the end of this file.
   1px rules, square corners, no shadows. Scoped to theme classes or
   body.tie-themed so Elementor canvas pages are untouched.
   ========================================================================== */

:root {
	--tie-cloud: #F4F0E6;
	--tie-paper: #FBF9F4;
	--tie-ink: #1B2420;
	--tie-body: #3A4440;
	--tie-tea: #23402F;
	--tie-tea-dark: #17301F;
	--tie-blue: #4E6E75;
	--tie-mist: #DCE4E1;
	--tie-mist-2: #C9D7D4;
	--tie-gold: #C9921E;
	--tie-gold-light: #E3B04B;
	--tie-rule: #CFCABD;
	--tie-rule-soft: #DDD8CC;
	--tie-stone: #E9E6DC;
	--tie-error: #9B3324;
	--tie-display: "Fraunces", Georgia, serif;
	--tie-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
	--tie-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--tie-wrap: 1328px;
	--tie-gutter: clamp(16px, 4vw, 56px);
	/* Legacy names still used by older markup. */
	--tie-cream: var(--tie-cloud);
	--tie-line: var(--tie-rule);
	--tie-sand: var(--tie-rule-soft);
	--tie-muted: var(--tie-body);
	--tie-radius: 0;
}

/* ---------- Base (theme-rendered pages only) ---------- */
body.tie-themed {
	background: var(--tie-cloud);
	color: var(--tie-ink);
	font-family: var(--tie-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.tie-themed h1,
body.tie-themed h2,
body.tie-themed h3,
body.tie-themed h4 {
	font-family: var(--tie-display);
	font-weight: 400;
	color: var(--tie-ink);
	line-height: 1.08;
	letter-spacing: -0.02em;
	font-variation-settings: "opsz" 96;
}
body.tie-themed h1 em,
body.tie-themed h2 em { font-style: italic; color: var(--tie-tea); }
body.tie-themed a { color: var(--tie-tea); text-underline-offset: 3px; }
body.tie-themed a:hover { color: var(--tie-ink); }
body.tie-themed :focus-visible { outline: 2px solid var(--tie-tea); outline-offset: 2px; }
body.tie-themed ::selection { background: var(--tie-mist); }

.tie-page { min-height: 50vh; }
body.tie-themed .site-main,
body.tie-themed .page-header,
body.tie-themed .page-content,
body.tie-themed #primary {
	max-width: var(--tie-wrap);
	margin-inline: auto;
	padding-inline: var(--tie-gutter);
}
body.tie-themed .site-main { padding-block: clamp(28px, 5vw, 64px); }
body.tie-themed .page-header .entry-title,
body.tie-themed .woocommerce-products-header__title {
	font-size: clamp(2.4rem, 5vw, 4rem);
	margin: 0 0 0.4em;
}

.tie-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.tie-icon { flex: none; }
.tie-eyebrow,
.tie-mono {
	font-family: var(--tie-mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tie-blue);
	margin: 0 0 0.75rem;
}
.tie-num { font-family: var(--tie-mono); font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.tie-btn,
body.tie-themed a.button,
body.tie-themed button.button,
body.tie-themed input.button,
body.tie-themed .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 52px;
	font-family: var(--tie-sans);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	padding: 0 1.6em;
	border-radius: 0 !important;
	border: 1px solid transparent;
	box-shadow: none !important;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tie-btn--primary,
body.tie-themed .button.alt,
body.tie-themed .single_add_to_cart_button,
body.tie-themed .checkout-button,
body.tie-themed .wc-block-components-button:not(.is-link) {
	background: var(--tie-tea) !important;
	color: var(--tie-cloud) !important;
	border-color: var(--tie-tea) !important;
}
.tie-btn--primary:hover,
body.tie-themed .button.alt:hover,
body.tie-themed .single_add_to_cart_button:hover,
body.tie-themed .checkout-button:hover,
body.tie-themed .wc-block-components-button:not(.is-link):hover {
	background: var(--tie-tea-dark) !important;
	border-color: var(--tie-tea-dark) !important;
	color: var(--tie-cloud) !important;
}
.tie-btn--ghost,
body.tie-themed .button:not(.alt):not(.single_add_to_cart_button):not(.checkout-button) {
	background: transparent !important;
	color: var(--tie-ink) !important;
	border-color: var(--tie-ink) !important;
}
.tie-btn--ghost:hover,
body.tie-themed .button:not(.alt):not(.single_add_to_cart_button):not(.checkout-button):hover {
	background: var(--tie-ink) !important;
	color: var(--tie-cloud) !important;
}
.tie-btn--light { background: var(--tie-cloud) !important; color: var(--tie-ink) !important; border-color: var(--tie-cloud) !important; }
.tie-btn--light:hover { background: #fff !important; color: var(--tie-ink) !important; }
.tie-btn--outline-light { background: transparent !important; color: var(--tie-cloud) !important; border-color: var(--tie-mist-2) !important; }
.tie-btn--outline-light:hover { background: var(--tie-cloud) !important; color: var(--tie-ink) !important; }
.tie-btn--small { min-height: 44px; padding: 0 1.1em; font-size: 0.95rem; }
.tie-link {
	font-weight: 600;
	text-decoration: none;
	color: var(--tie-tea) !important;
}
.tie-link:hover { text-decoration: underline; }
body.tie-themed .single_add_to_cart_button.disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Announcement bar ---------- */
.tie-announce {
	background: var(--tie-ink);
	color: var(--tie-mist);
	font-size: 0.8rem;
	padding: 9px var(--tie-gutter);
}
.tie-announce ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 28px;
}
.tie-announce li + li::before { content: "·"; color: var(--tie-blue); margin-right: 28px; }
@media (max-width: 720px) {
	.tie-announce li:not(:first-child) { display: none; }
}

/* ---------- Header ---------- */
.tie-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--tie-cloud);
	border-bottom: 1px solid var(--tie-rule);
}
.admin-bar .tie-header { top: 32px; }
.tie-header__inner {
	max-width: var(--tie-wrap);
	margin-inline: auto;
	padding: 14px var(--tie-gutter);
	display: flex;
	align-items: center;
	gap: 36px;
	min-height: 80px;
	box-sizing: border-box;
}
.tie-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--tie-ink) !important;
	flex: none;
}
.tie-header__logo { width: 46px; height: 46px; object-fit: contain; display: block; }
.tie-header__name {
	display: flex;
	flex-direction: column;
	font-family: var(--tie-display);
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
}
.tie-header__name span {
	font-family: var(--tie-mono);
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	color: var(--tie-blue);
	margin-top: 5px;
}
.tie-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.tie-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.tie-nav__list a {
	color: var(--tie-ink) !important;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	padding-block: 6px;
	background: linear-gradient(var(--tie-tea), var(--tie-tea)) no-repeat left bottom / 0 1px;
	transition: background-size 0.25s ease;
}
.tie-nav__list a:hover,
.tie-nav__list .current-menu-item > a,
.tie-nav__list a[aria-current="page"] { background-size: 100% 1px; }
.tie-nav__cta { margin-left: auto; min-height: 46px; padding: 0 1.2em; font-size: 0.95rem; }
.tie-header__actions { display: flex; align-items: center; gap: 6px; }
.tie-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--tie-ink) !important;
}
.tie-cart .tie-icon { width: 24px; height: 24px; }
.tie-cart__count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	background: var(--tie-tea);
	color: var(--tie-cloud);
	font-family: var(--tie-mono);
	font-size: 0.68rem;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}
.tie-cart__count[data-count="0"] { display: none; }
.tie-header__toggle {
	display: none;
	background: none;
	border: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	align-items: center;
	justify-content: center;
	color: var(--tie-ink);
	cursor: pointer;
}
.tie-header__toggle .tie-icon { width: 24px; height: 24px; }

@media (max-width: 1100px) {
	.tie-header__inner { gap: 12px; min-height: 64px; padding-block: 8px; }
	.tie-header__brand { margin-right: auto; }
	.tie-header__toggle { display: inline-flex; order: -1; }
	.tie-header__logo { width: 38px; height: 38px; }
	.tie-header__name { font-size: 1.1rem; }
	.tie-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--tie-cloud);
		border-bottom: 1px solid var(--tie-ink);
		padding: 8px var(--tie-gutter) 20px;
	}
	.tie-nav.is-open { display: flex; }
	.tie-nav__list { flex-direction: column; gap: 0; }
	.tie-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tie-rule-soft); background: none; font-size: 1.05rem; }
	.tie-nav__cta { margin: 16px 0 0; }
}
@media (max-width: 480px) {
	.tie-header__name span { display: none; }
}
@media (max-width: 782px) { .admin-bar .tie-header { top: 46px; } }

/* ---------- Shop archive ---------- */
body.tie-themed .woocommerce-products-header { border-bottom: 1px solid var(--tie-ink); margin-bottom: 28px; padding-bottom: 8px; }
.tie-shop-intro {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px 32px;
	margin: 0 0 8px;
}
.tie-shop-intro p { margin: 0; max-width: 620px; color: var(--tie-body); font-size: 1.05rem; }
body.tie-themed ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 !important;
	padding: 0;
}
body.tie-themed ul.products::before,
body.tie-themed ul.products::after { display: none !important; }
body.tie-themed ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	background: var(--tie-paper);
	border: 1px solid var(--tie-rule);
	transition: border-color 0.2s ease;
}
body.tie-themed ul.products li.product:hover { border-color: var(--tie-ink); }
body.tie-themed ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: var(--tie-ink);
}
body.tie-themed ul.products li.product img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	margin: 0 !important;
	background: var(--tie-mist);
	border-bottom: 1px solid var(--tie-rule);
}
body.tie-themed ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--tie-display);
	font-weight: 400;
	font-size: 1.35rem !important;
	line-height: 1.15;
	padding: 18px 18px 0 !important;
	margin: 0;
}
.tie-card__botanical {
	font-family: var(--tie-display);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--tie-body);
	padding: 2px 18px 0;
	margin: 0;
}
.tie-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 14px 18px 0;
	margin-top: auto;
	font-family: var(--tie-mono);
	font-size: 0.8rem;
}
.tie-card__price { color: var(--tie-ink); }
.tie-card__price small { color: var(--tie-body); font-size: inherit; }
.tie-card__price--na { color: var(--tie-body); }
.tie-card__sizes { color: var(--tie-blue); white-space: nowrap; }
.tie-card__link {
	display: block;
	margin: 14px 18px 18px;
	padding-top: 12px;
	border-top: 1px solid var(--tie-rule-soft);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--tie-tea) !important;
	text-decoration: none;
}
@media (max-width: 1024px) { body.tie-themed ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	body.tie-themed ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	body.tie-themed ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem !important; padding: 14px 12px 0 !important; }
	.tie-card__botanical { padding-inline: 12px; font-size: 0.85rem; }
	.tie-card__meta { flex-direction: column; gap: 2px; padding-inline: 12px; }
	.tie-card__link { margin-inline: 12px; }
}

body.tie-themed .woocommerce-result-count { color: var(--tie-body); font-size: 0.9rem; }
body.tie-themed .woocommerce-ordering select {
	border: 1px solid var(--tie-rule);
	background: var(--tie-paper);
	padding: 10px 12px;
	border-radius: 0;
	font: inherit;
}
body.tie-themed .woocommerce-breadcrumb { font-size: 0.85rem; color: var(--tie-body); margin-bottom: 20px; }
body.tie-themed .woocommerce-breadcrumb a { color: var(--tie-body); text-decoration: none; }
body.tie-themed .woocommerce-breadcrumb a:hover { color: var(--tie-ink); text-decoration: underline; }

/* ---------- Product page ---------- */
body.tie-themed div.product {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 clamp(28px, 4vw, 48px);
	align-items: start;
}
body.tie-themed div.product .woocommerce-product-gallery,
body.tie-themed div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
body.tie-themed div.product .woocommerce-product-gallery { grid-column: span 6; position: relative !important; top: 0 !important; }
body.tie-themed div.product .summary { grid-column: span 6; display: flex; flex-direction: column; }
body.tie-themed div.product .woocommerce-product-gallery__wrapper { background: var(--tie-mist); }
body.tie-themed div.product .woocommerce-product-gallery img { border-radius: 0; background: var(--tie-mist); }
body.tie-themed div.product .woocommerce-product-gallery__image img { width: 100% !important; height: auto; }
body.tie-themed div.product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px !important; }
body.tie-themed div.product .flex-control-thumbs li { width: auto !important; margin: 0 !important; }
body.tie-themed div.product .woocommerce-tabs,
body.tie-themed div.product .related,
body.tie-themed div.product .upsells,
body.tie-themed div.product .tie-bulkcalc { grid-column: 1 / -1; }
body.tie-themed div.product .product_title {
	font-size: clamp(2.4rem, 4.2vw, 3.6rem);
	line-height: 1;
	margin: 0;
}
.tie-origin-line { font-family: var(--tie-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tie-blue); margin: 0 0 10px; }
.tie-botanical {
	font-family: var(--tie-display);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--tie-body);
	margin: 8px 0 18px;
}
body.tie-themed div.product .summary > .price { display: none; }
.tie-perkg { font-family: var(--tie-mono); font-size: 0.85rem; color: var(--tie-body); margin: 0 0 18px; }
.tie-perkg .amount { color: var(--tie-tea); }
body.tie-themed div.product .woocommerce-product-details__short-description { font-size: 1.02rem; color: var(--tie-body); margin-bottom: 8px; }
body.tie-themed div.product .woocommerce-product-details__short-description p { margin: 0 0 12px; }
body.tie-themed div.product .product_meta { display: none; }

.tie-spec { margin: 0; border-top: 1px solid var(--tie-ink); }
.tie-spec > div {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tie-rule-soft);
	font-size: 0.95rem;
}
.tie-spec dt { margin: 0; font-family: var(--tie-mono); color: var(--tie-blue); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.tie-spec dd { margin: 0; }
.tie-spec__italic { font-family: var(--tie-display); font-style: italic; }

/* Pack-size buttons */
body.tie-themed div.product form.variations_form table.variations { margin: 0 0 4px; border: 0; }
body.tie-themed div.product form.variations_form table.variations th,
body.tie-themed div.product form.variations_form table.variations td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}
body.tie-themed div.product form.variations_form table.variations th label { font-size: 0.9rem; font-weight: 600; color: var(--tie-ink); }
.tie-sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 8px;
	margin: 10px 0 6px;
}
.tie-sizes .tie-size,
.tie-sizes .tie-size:hover,
.tie-sizes .tie-size:focus {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: 12px;
	min-height: 72px;
	background: #fff;
	border: 1px solid var(--tie-rule);
	border-radius: 0;
	color: var(--tie-ink);
	font-family: var(--tie-sans);
	font-size: 1rem;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.tie-sizes .tie-size:hover { border-color: var(--tie-ink); }
.tie-sizes .tie-size.is-active,
.tie-sizes .tie-size.is-active:hover,
.tie-sizes .tie-size.is-active:focus {
	border-color: var(--tie-tea);
	box-shadow: inset 0 0 0 1px var(--tie-tea);
	background: #fff;
	color: var(--tie-ink);
}
.tie-sizes .tie-size.is-active .tie-size__label { color: var(--tie-tea); }
.tie-size__label { font-weight: 600; font-size: 1rem; color: var(--tie-ink); }
.tie-size__price { font-family: var(--tie-mono); font-size: 0.82rem; color: var(--tie-ink); }
.tie-size__price--na { font-family: var(--tie-sans); color: var(--tie-body); font-size: 0.8rem; }
.tie-size__perkg { font-family: var(--tie-mono); font-size: 0.72rem; color: var(--tie-blue); }
.tie-sizes .tie-size--drum,
.tie-sizes .tie-size--drum:hover { border-style: dashed; border-color: var(--tie-blue); background: var(--tie-mist); text-decoration: none; }
.tie-size--drum .tie-size__go { font-size: 0.78rem; font-weight: 600; color: var(--tie-tea); }
body.tie-themed div.product .reset_variations { font-size: 0.85rem; }
body.tie-themed div.product .woocommerce-variation-price .price { font-family: var(--tie-mono); font-size: 1.1rem; color: var(--tie-ink); }
body.tie-themed div.product form.cart:not(.variations_form),
body.tie-themed div.product .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin-top: 14px;
}
body.tie-themed div.product .quantity .qty {
	width: 5.5em;
	height: 100%;
	min-height: 54px;
	border: 1px solid var(--tie-rule);
	border-radius: 0;
	background: #fff;
	text-align: center;
	font-family: var(--tie-mono);
	font-size: 1rem;
}
body.tie-themed div.product .single_add_to_cart_button { flex: 1; min-height: 54px; font-size: 1.02rem; }

/* Next to basket */
.tie-facts { margin: 22px 0 0; border-top: 1px solid var(--tie-ink); }
.tie-facts > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tie-rule-soft);
	font-size: 0.92rem;
}
.tie-facts > div > span:last-child { text-align: right; color: var(--tie-body); }
.tie-facts a { font-weight: 600; text-decoration: none; }

/* Proof grid */
.tie-proof {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--tie-rule);
	background: var(--tie-paper);
}
.tie-proof li { padding: 14px 16px; border-bottom: 1px solid var(--tie-rule-soft); }
.tie-proof li:nth-child(odd) { border-right: 1px solid var(--tie-rule-soft); }
.tie-proof li:nth-last-child(-n+2) { border-bottom: 0; }
.tie-proof strong { display: block; font-family: var(--tie-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.tie-proof span { font-size: 0.82rem; color: var(--tie-body); }

.tie-safety {
	font-size: 0.82rem;
	color: var(--tie-body);
	margin: 18px 0 0;
}

/* Bulk calculator */
.tie-bulkcalc {
	margin: clamp(40px, 6vw, 72px) 0 0;
	background: var(--tie-mist);
	border: 1px solid var(--tie-blue);
	padding: clamp(20px, 3vw, 36px);
	display: grid;
	grid-template-columns: 5fr 4fr 4fr;
	gap: clamp(20px, 3vw, 32px);
	scroll-margin-top: 120px;
}
.tie-bulkcalc h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
.tie-bulkcalc .tie-eyebrow { color: var(--tie-tea); }
.tie-bulkcalc__intro { margin: 0 0 18px; color: var(--tie-body); }
.tie-bulkcalc label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.tie-bulkcalc__qty { display: flex; gap: 10px; align-items: center; }
.tie-bulkcalc input[type="range"] { flex: 1; accent-color: var(--tie-tea); height: 32px; }
.tie-bulkcalc input[type="number"] {
	width: 7.5rem;
	height: 48px;
	box-sizing: border-box;
	border: 1px solid var(--tie-blue);
	border-radius: 0;
	background: #fff;
	padding: 0 12px;
	font-family: var(--tie-mono);
	font-size: 1rem;
}
.tie-bulkcalc__scale { display: flex; justify-content: space-between; font-family: var(--tie-mono); font-size: 0.75rem; color: var(--tie-body); margin-top: 4px; }
.tie-bulkcalc__note { font-size: 0.85rem; color: var(--tie-body); margin: 16px 0 0; }
.tie-ladder { background: #fff; border: 1px solid var(--tie-blue); padding: 18px 20px; }
.tie-ladder table { width: 100%; border-collapse: collapse; font-family: var(--tie-mono); font-size: 0.88rem; }
.tie-ladder table, .tie-ladder th, .tie-ladder td { border: 0 !important; background: transparent; }
.tie-ladder th { text-align: left; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tie-blue); padding: 0 0 10px; }
.tie-ladder th:last-child, .tie-ladder td:last-child { text-align: right; }
.tie-ladder td { padding: 9px 0; border-top: 1px solid var(--tie-rule-soft) !important; }
.tie-ladder tbody tr:nth-child(odd) > td, .tie-ladder tbody tr:nth-child(odd) > th, .tie-ladder tbody tr:hover > td { background: transparent; }
.tie-ladder tr.is-used td, .tie-ladder tbody tr.is-used:nth-child(odd) > td { background: var(--tie-mist); font-weight: 500; }
.tie-ladder tr.is-used td:first-child { box-shadow: -8px 0 0 var(--tie-mist); }
.tie-ladder tr.is-used td:last-child { box-shadow: 8px 0 0 var(--tie-mist); }
.tie-ladder__plan { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--tie-ink); font-size: 0.82rem; color: var(--tie-body); }
.tie-bulkcalc__result { display: flex; flex-direction: column; gap: 12px; }
.tie-bulkcalc__label { font-size: 0.85rem; color: var(--tie-body); }
.tie-bulkcalc__total { font-family: var(--tie-display); font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; }
.tie-bulkcalc__perkg { font-family: var(--tie-mono); font-size: 0.85rem; }
.tie-bulkcalc__result .tie-btn { width: 100%; box-sizing: border-box; padding: 0 1em; text-align: center; line-height: 1.2; }
.tie-bulkcalc__docs { font-size: 0.85rem; color: var(--tie-body); margin: 0; }
.tie-bulkcalc.is-manual .tie-bulkcalc__instant { display: none; }
.tie-bulkcalc:not(.is-manual) .tie-bulkcalc__manual { display: none; }
.tie-bulkcalc__manual p { margin: 0 0 12px; font-size: 0.95rem; }
@media (max-width: 1024px) {
	.tie-bulkcalc { grid-template-columns: 1fr 1fr; }
	.tie-bulkcalc__head { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.tie-bulkcalc { grid-template-columns: 1fr; }
}

/* Tabs */
body.tie-themed .woocommerce-tabs { margin-top: clamp(40px, 6vw, 72px); }
body.tie-themed .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0 36px; padding: 0 !important; margin: 0 0 28px !important; border-bottom: 1px solid var(--tie-ink); overflow: visible; }
body.tie-themed .woocommerce-tabs ul.tabs::before { display: none; }
body.tie-themed .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; }
body.tie-themed .woocommerce-tabs ul.tabs li::before,
body.tie-themed .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.tie-themed .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 0 !important; font-weight: 500 !important; color: var(--tie-body) !important; text-decoration: none; }
body.tie-themed .woocommerce-tabs ul.tabs li.active a { color: var(--tie-ink) !important; font-weight: 600 !important; box-shadow: inset 0 -2px 0 var(--tie-tea); }
body.tie-themed .woocommerce-tabs .panel { max-width: 980px; }
body.tie-themed .woocommerce-tabs .panel > h2:first-child { display: none; }
.tie-origin {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 0 0 28px;
}
.tie-origin h3 { font-size: 1.5rem; margin: 0 0 8px; }
.tie-origin p { margin: 0; color: var(--tie-body); font-size: 0.95rem; }
.tie-docs__list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--tie-ink); }
.tie-docs__list li { border-bottom: 1px solid var(--tie-rule-soft); }
.tie-docs__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	text-decoration: none;
	color: var(--tie-ink) !important;
	font-weight: 500;
}
.tie-docs__list a:hover { color: var(--tie-tea) !important; }
body.tie-themed .related > h2 { font-size: 2.2rem; margin: 64px 0 20px; border-bottom: 1px solid var(--tie-ink); padding-bottom: 12px; }
@media (max-width: 860px) {
	body.tie-themed div.product .woocommerce-product-gallery,
	body.tie-themed div.product .summary { grid-column: 1 / -1; }
	body.tie-themed div.product .woocommerce-product-gallery { margin-bottom: 24px !important; }
	.tie-origin { grid-template-columns: 1fr; gap: 20px; }
	.tie-spec > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Mobile sticky bar */
.tie-sticky {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 60;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 12px var(--tie-gutter) calc(14px + env(safe-area-inset-bottom));
	background: var(--tie-cloud);
	border-top: 1px solid var(--tie-ink);
	transform: translateY(110%);
	transition: transform 0.3s ease;
}
.tie-sticky__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tie-sticky__name { font-size: 0.82rem; color: var(--tie-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie-sticky__detail { font-family: var(--tie-mono); font-size: 0.95rem; color: var(--tie-ink); }
.tie-sticky__btn { min-height: 50px; padding: 0 1.3em; }
@media (max-width: 860px) {
	.tie-sticky { display: flex; }
	.tie-sticky.is-visible { transform: translateY(0); }
}

/* ---------- WooCommerce notices, basket, checkout ---------- */
body.tie-themed #primary .site-main { padding-inline: 0; max-width: none; }
body.tie-themed .woocommerce-message,
body.tie-themed .woocommerce-info,
body.tie-themed .woocommerce-error {
	background: var(--tie-paper);
	border: 1px solid var(--tie-rule);
	border-left: 3px solid var(--tie-tea);
	border-radius: 0;
	color: var(--tie-ink);
}
body.tie-themed .woocommerce-message::before,
body.tie-themed .woocommerce-info::before { color: var(--tie-tea); }
body.tie-themed .woocommerce-error { border-left-color: var(--tie-error); }
body.tie-themed .wc-block-cart,
body.tie-themed .wc-block-checkout { font-family: var(--tie-sans); }
body.tie-themed .wc-block-components-totals-wrapper,
body.tie-themed .wc-block-components-sidebar { background: var(--tie-paper); }
body.tie-themed .wc-block-components-text-input input,
body.tie-themed .wc-block-components-combobox .components-combobox-control input,
body.tie-themed .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 0 !important; }

/* ---------- Bulk quote form ---------- */
.tie-quote {
	max-width: 920px;
	margin: 0 auto;
	scroll-margin-top: 120px;
}
.tie-quote__form { display: grid; gap: 0; border-top: 1px solid var(--tie-ink); }
.tie-quote__step {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--tie-rule);
	padding: 28px 0;
}
.tie-quote__step h3 {
	display: flex;
	align-items: baseline;
	gap: 14px;
	font-family: var(--tie-display);
	font-size: 1.6rem;
	margin: 0 0 20px;
}
.tie-quote__step h3 span {
	font-family: var(--tie-mono);
	font-size: 0.85rem;
	color: var(--tie-gold);
	letter-spacing: 0.08em;
}
.tie-quote__step h3 span::before { content: "0"; }
.tie-quote label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tie-ink);
}
.tie-quote input,
.tie-quote select,
.tie-quote textarea {
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: var(--tie-ink);
	background: #fff;
	border: 1px solid var(--tie-rule);
	border-radius: 0;
	padding: 12px;
	min-height: 48px;
	width: 100%;
	box-sizing: border-box;
}
.tie-quote input:focus,
.tie-quote select:focus,
.tie-quote textarea:focus { border-color: var(--tie-tea); outline: none; box-shadow: inset 0 0 0 1px var(--tie-tea); }
.tie-quote abbr { text-decoration: none; color: var(--tie-tea); }
.tie-quote__hint { font-weight: 400; color: var(--tie-body); }
.tie-quote__line {
	display: grid;
	grid-template-columns: 1.3fr 1.3fr 0.8fr auto;
	gap: 12px;
	align-items: end;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--tie-rule-soft);
}
.tie-quote__remove {
	background: none;
	border: 0;
	color: var(--tie-body);
	text-decoration: underline;
	cursor: pointer;
	padding: 12px 0;
	font-size: 0.85rem;
}
.tie-quote__line:only-child .tie-quote__remove { visibility: hidden; }
.tie-quote__add { min-height: 44px; font-size: 0.92rem; }
.tie-quote__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tie-quote__wide { grid-column: 1 / -1; }
.tie-quote__summary:empty { display: none; }
.tie-quote__summary { padding: 28px 0; border-bottom: 1px solid var(--tie-rule); }
.tie-quote__estimate {
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid var(--tie-blue);
	background: var(--tie-mist);
}
.tie-quote__estimate.is-manual { background: var(--tie-paper); border-color: var(--tie-rule); }
.tie-quote-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 8px 0 12px; }
.tie-quote-table th { text-align: left; font-family: var(--tie-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tie-blue); padding: 8px 6px; border-bottom: 1px solid var(--tie-ink) !important; }
.tie-quote-table td { padding: 10px 6px; border-bottom: 1px solid var(--tie-rule-soft) !important; }
.tie-quote__total { font-family: var(--tie-display); font-size: 2rem; margin: 6px 0; }
.tie-quote__small { font-size: 0.88rem; color: var(--tie-body); margin: 10px 0 0; }
.tie-quote__submit { justify-self: start; margin-top: 28px; padding: 0 2.2em; }
.tie-quote__result {
	background: var(--tie-mist);
	border: 1px solid var(--tie-blue);
	padding: clamp(20px, 3vw, 32px);
	margin-bottom: 32px;
}
.tie-quote__result h2 { margin: 0 0 8px; font-size: 2.2rem; }
.tie-quote__error {
	background: #F6E7E2;
	border-left: 3px solid var(--tie-error);
	padding: 12px 16px;
}
.tie-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) {
	.tie-quote__line { grid-template-columns: 1fr 1fr; }
	.tie-quote__line label:first-child { grid-column: 1 / -1; }
	.tie-quote__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.tie-footer {
	background: var(--tie-ink);
	color: var(--tie-mist-2);
	margin-top: clamp(56px, 8vw, 104px);
	font-size: 0.92rem;
}
.tie-page:has(> .tie-cta-band:last-child) + .tie-footer { margin-top: 0; border-top: 1px solid rgba(220, 228, 225, 0.18); }
.tie-footer a { color: var(--tie-mist-2) !important; text-decoration: none; }
.tie-footer a:hover { color: var(--tie-cloud) !important; text-decoration: underline; }
.tie-footer__inner {
	max-width: var(--tie-wrap);
	margin-inline: auto;
	padding: clamp(44px, 6vw, 72px) var(--tie-gutter) 36px;
	display: grid;
	grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
	gap: 32px;
}
.tie-footer h2 {
	font-family: var(--tie-mono) !important;
	font-weight: 400 !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase;
	color: var(--tie-cloud) !important;
	margin: 0 0 16px;
}
.tie-footer__logo { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.tie-footer__logo img { width: 52px; height: 52px; object-fit: contain; background: var(--tie-cloud); padding: 4px; }
.tie-footer__name { font-family: var(--tie-display); font-size: 1.6rem; line-height: 1.1; color: var(--tie-cloud); margin: 0; }
.tie-footer__brand p { margin: 0 0 12px; max-width: 34ch; }
.tie-footer__certs { font-family: var(--tie-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tie-gold-light); }
.tie-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tie-footer__contact p { margin: 0 0 10px; }
.tie-footer__legal {
	max-width: var(--tie-wrap);
	margin-inline: auto;
	padding: 20px var(--tie-gutter) 36px;
	border-top: 1px solid rgba(220, 228, 225, 0.18);
	font-size: 0.8rem;
	color: rgba(220, 228, 225, 0.7);
}
.tie-footer__legal p { margin: 0 0 4px; }
@media (max-width: 960px) {
	.tie-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tie-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Elementor kit button styles must not reach theme buttons ---------- */
body.tie-themed button.tie-btn,
body.tie-themed button.tie-btn:hover,
body.tie-themed button.tie-btn:focus { font-family: var(--tie-sans) !important; font-weight: 600 !important; font-size: 1rem !important; border-radius: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.tie-themed button.tie-btn--light { background: var(--tie-cloud) !important; color: var(--tie-ink) !important; border: 1px solid var(--tie-cloud) !important; }
body.tie-themed .tie-header__toggle,
body.tie-themed .tie-header__toggle:hover,
body.tie-themed .tie-header__toggle:focus { background: transparent !important; color: var(--tie-ink) !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }

/* Product illustrations (shown until a real photo is added) */
.tie-art { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.tie-art svg { display: block; width: 100%; height: 100%; }
.tie-art-gallery { background: var(--tie-mist); }
.tie-pcard__img .tie-art { height: 100%; }

/* VAT note under the pack-size buttons */
.tie-sizes__vat { margin: 8px 0 0; font-size: 13px; color: var(--tie-muted, #5b6460); }
