/* Torque Market component styles. Colors come from the theme palette. */
:root {
	--ts-ink: var(--wp--preset--color--ink, #1c1917);
	--ts-ink-2: var(--wp--preset--color--ink-2, #44403c);
	--ts-muted: var(--wp--preset--color--muted, #6f6a66);
	--ts-subtle: var(--wp--preset--color--subtle, #a8a29e);
	--ts-line: var(--wp--preset--color--line, #e7e5e4);
	--ts-tile: var(--wp--preset--color--tile, #f3f2f0);
	--ts-surface: var(--wp--preset--color--surface, #fff);
	--ts-accent: var(--wp--preset--color--accent, #c2571a);
	--ts-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	--ts-display: var(--wp--preset--font-family--display, system-ui, sans-serif);
	--ts-serif: var(--wp--preset--font-family--serif, Georgia, serif);
	--ts-radius: 6px;
}

.ts-mono { font-family: var(--ts-mono); font-size: 0.8125rem; letter-spacing: 0; }
.ts-subtle { color: var(--ts-subtle); }
.ts-dot { color: var(--ts-subtle); margin: 0 0.5em; }
.ts-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; color: var(--ts-muted); margin: 0 0 0.5rem; }
.ts-section-title { font-family: var(--ts-serif); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.01em; margin: 0 0 1rem; }

/* Badges and chips */
.ts-badge { display: inline-flex; align-items: center; gap: 0.25em; border-radius: 3px; padding: 0.15em 0.6em; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.ts-badge--indicative { background: var(--wp--preset--color--amber-soft, #fef3c7); color: var(--wp--preset--color--amber, #92400e); cursor: help; }
.ts-badge--mfr { background: var(--wp--preset--color--emerald-soft, #e9f7ef); color: var(--wp--preset--color--emerald, #047857); }
.ts-badge--trader { background: var(--wp--preset--color--slate-soft, #eef1f4); color: var(--wp--preset--color--slate, #334155); }
.ts-badge--cert { background: var(--ts-surface); color: var(--ts-ink-2); box-shadow: inset 0 0 0 1px var(--ts-line); }
.ts-price-from { font-weight: 400; color: var(--ts-muted); font-size: 0.85em; }
.ts-chip { display: inline-block; font-family: var(--ts-mono); font-size: 0.72rem; color: var(--ts-ink-2); background: var(--ts-tile); border-radius: 6px; padding: 0.15em 0.5em; max-width: 100%; overflow-wrap: anywhere; }
.ts-pill { display: inline-flex; gap: 0.5em; align-items: center; border-radius: 3px; padding: 0.45em 1em; background: var(--ts-surface); box-shadow: inset 0 0 0 1px var(--ts-line); font-size: 0.875rem; font-weight: 500; }
.ts-pill span { color: var(--ts-subtle); font-weight: 400; }
.ts-pill:hover { box-shadow: inset 0 0 0 1px var(--ts-ink); color: var(--ts-ink); }

/* Product card pieces (inside woocommerce/product-template) */
.ts-card-supplier { font-size: 0.8125rem; color: var(--ts-muted); margin-top: 0.75rem; }
.ts-card-supplier a { color: var(--ts-muted); }
.ts-card-supplier a:hover { color: var(--ts-accent); }
.ts-card-specs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }

/* Single product */
.ts-model-line { font-size: 0.875rem; color: var(--ts-muted); display: flex; flex-wrap: wrap; align-items: baseline; }
.ts-model-supplier { font-weight: 600; color: var(--ts-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ts-line); }
.ts-note { font-size: 0.8125rem; line-height: 1.55; color: var(--ts-ink-2); background: var(--ts-tile); border-radius: 6px; padding: 0.75rem 0.9rem; }
.ts-note--amber { background: var(--wp--preset--color--amber-soft, #fef3c7); color: #6b3410; }
.ts-note--ok { background: var(--wp--preset--color--emerald-soft, #e9f7ef); color: #065f46; font-size: 0.95rem; padding: 1rem 1.2rem; }
.ts-buy-notes { margin: 0; border-top: 1px solid var(--ts-line); font-size: 0.8125rem; }
.ts-buy-notes > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ts-line); }
.ts-buy-notes dt { color: var(--ts-muted); }
.ts-buy-notes dd { margin: 0; text-align: right; font-weight: 500; }
.ts-rfq-link { display: inline-block; margin-top: 0.9rem; font-size: 0.875rem; font-weight: 500; color: var(--ts-accent); }
.ts-key-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--ts-line); border-radius: var(--ts-radius); overflow: hidden; box-shadow: 0 0 0 1px var(--ts-line); }
.ts-key-spec { background: var(--ts-surface); padding: 1.25rem 1.25rem 1.1rem; }
.ts-key-spec__value { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ts-key-spec__label { font-size: 0.75rem; color: var(--ts-muted); margin-top: 0.25rem; }
.ts-spec-table h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ts-muted); margin: 1.75rem 0 0.25rem; font-weight: 600; }
.ts-spec-table dl { margin: 0; }
.ts-spec-table dl > div { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--ts-line); font-size: 0.9rem; }
.ts-spec-table dt { color: var(--ts-muted); }
.ts-spec-table dd { margin: 0; font-variant-numeric: tabular-nums; }
.ts-source-note { font-size: 0.75rem; color: var(--ts-muted); }
.ts-source-note a { text-decoration: underline; text-underline-offset: 2px; }
.ts-sheet-link { font-weight: 600; color: var(--ts-ink) !important; }

/* Supplier cards */
.ts-supplier-card { display: block; background: var(--ts-surface); border-radius: var(--ts-radius); box-shadow: 0 0 0 1px var(--ts-line); overflow: hidden; color: var(--ts-ink); transition: box-shadow .15s ease, transform .15s ease; }
.ts-supplier-card:hover { box-shadow: 0 0 0 1px var(--ts-ink-2); color: var(--ts-ink); }
.ts-supplier-card__body { padding: 1rem 1.1rem 1.1rem; }
.ts-supplier-card__name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.ts-supplier-card__cn { color: var(--ts-muted); font-size: 0.8125rem; margin-top: 0.15rem; }
.ts-supplier-card__meta { color: var(--ts-muted); font-size: 0.78rem; margin-top: 0.5rem; }
.ts-supplier-card__desc { color: var(--ts-ink-2); font-size: 0.8125rem; line-height: 1.5; margin: 0.5rem 0 0; }
.ts-supplier-card__badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.ts-supplier-panel .ts-supplier-card { max-width: 420px; }
.ts-supplier-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ts-directory section { margin-bottom: 3rem; }
.ts-directory__prov { font-family: var(--ts-serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 1rem; }
.ts-directory__prov span { font-family: var(--wp--preset--font-family--sans); font-size: 0.875rem; color: var(--ts-subtle); }

/* Brand (supplier) storefront header */
.ts-brand-header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ts-brand-header__name { font-family: var(--ts-serif); font-weight: 400; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.05; margin: 0; }
.ts-brand-header__cn { color: var(--ts-muted); margin: 0.5rem 0 0; }
.ts-brand-header__desc { color: var(--ts-ink-2); max-width: 52ch; }
.ts-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--ts-line); }
.ts-facts dt { font-size: 0.75rem; color: var(--ts-muted); }
.ts-facts dd { margin: 0.15rem 0 0; font-weight: 500; }

/* Category tiles (home) */

/* Hero mosaic */
.ts-mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 0.75rem; aspect-ratio: 5 / 4; }
.ts-mosaic__item { position: relative; background: var(--ts-tile); border-radius: 8px; overflow: hidden; display: block; }
.ts-mosaic__item--1 { grid-row: span 3; }
.ts-mosaic__item img { width: 100%; height: 100%; object-fit: contain; padding: 10%; box-sizing: border-box; mix-blend-mode: multiply; transition: transform .3s ease; }
.ts-mosaic__item:hover img { transform: scale(1.03); }
.ts-mosaic__label { position: absolute; left: 0.75rem; bottom: 0.75rem; right: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--ts-ink); background: rgba(255,255,255,.86); backdrop-filter: blur(6px); border-radius: 3px; padding: 0.3em 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: fit-content; max-width: calc(100% - 1.5rem); }
.ts-mosaic__label em { font-style: normal; font-weight: 400; color: var(--ts-muted); }

/* Request a quote form */
.ts-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.ts-field { display: grid; gap: 0.35rem; font-size: 0.8125rem; font-weight: 500; }
.ts-field--message { grid-column: 1 / -1; }
.ts-field input, .ts-field textarea { font: inherit; font-size: 1rem; font-weight: 400; padding: 0.7rem 0.85rem; border: 1px solid var(--ts-line); border-radius: 6px; background: var(--ts-surface); color: var(--ts-ink); }
.ts-field input:focus, .ts-field textarea:focus { outline: 2px solid var(--ts-accent); outline-offset: 1px; border-color: transparent; }
.ts-form button { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.ts-hp { position: absolute; left: -9999px; }

/* Pilot banner */

@media (max-width: 781px) {
	.ts-supplier-rail { grid-template-columns: 1fr; }
	.ts-brand-header { grid-template-columns: 1fr; }
	.ts-form { grid-template-columns: 1fr; }
	.ts-mosaic { aspect-ratio: 1; }
}

/* Spec range filters */
.ts-ranges { display: grid; gap: 1.1rem; margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ts-line); }
.ts-range { border: 0; margin: 0; padding: 0; min-width: 0; }
.ts-range legend span { text-transform: none; letter-spacing: 0; color: var(--ts-subtle); font-weight: 400; }
.ts-range__slider { position: relative; height: 22px; margin: 0.25rem 0 0.4rem; }
.ts-range__slider input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 22px; }
.ts-range__slider::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--ts-line); border-radius: 2px; }
.ts-range__slider input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ts-surface); box-shadow: 0 0 0 1.5px var(--ts-ink); cursor: grab; }
.ts-range__slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--ts-surface); border: 1.5px solid var(--ts-ink); cursor: grab; }
.ts-range__inputs { display: flex; align-items: center; gap: 0.4rem; }
.ts-range__inputs label { flex: 1; min-width: 0; }
.ts-range__inputs input { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.8125rem; padding: 0.4rem 0.5rem; border: 1px solid var(--ts-line); border-radius: 8px; background: var(--ts-surface); }
.ts-range__dash { color: var(--ts-subtle); }
.ts-ranges__actions { display: flex; align-items: center; gap: 0.75rem; }
.ts-btn-sm { padding: 0.5rem 1rem !important; font-size: 0.8125rem !important; }
.ts-ranges__clear { font-size: 0.8125rem; color: var(--ts-muted); text-decoration: underline; }

/* Compare */
.ts-compare-toggle { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; background: none; border: 0; padding: 0; font: inherit; font-size: 0.78rem; color: var(--ts-muted); cursor: pointer; }
.ts-compare-toggle__box { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ts-subtle); display: inline-block; }
.ts-compare-toggle.is-on { color: var(--ts-ink); font-weight: 600; }
.ts-compare-toggle.is-on .ts-compare-toggle__box { background: var(--ts-ink); box-shadow: none; position: relative; }
.ts-compare-toggle.is-on .ts-compare-toggle__box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ts-compare-tray { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 0.75rem; background: var(--ts-ink); color: #fff; border-radius: 3px; padding: 0.5rem 0.6rem 0.5rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: calc(100vw - 2rem); }
.ts-compare-tray[hidden] { display: none; }
.ts-compare-tray__go { background: #fff !important; color: var(--ts-ink) !important; padding: 0.5rem 1rem !important; font-size: 0.8125rem !important; }
.ts-compare-tray__go.is-disabled { opacity: .5; pointer-events: none; }
.ts-compare-tray__clear { background: none; border: 0; color: #d6d3d1; font: inherit; font-size: 0.75rem; cursor: pointer; }
.ts-compare { overflow-x: auto; }
/* The tile carries the background so the photo's white can multiply into it. */
.ts-compare__differs td { background: color-mix(in srgb, var(--wp--preset--color--accent-soft, #fbeee4) 60%, transparent); }

/* Applications, datasheet */
.ts-applications { margin-top: 2.5rem; }
.ts-app-list, .ts-tips { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--ts-ink-2); }
.ts-applications h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ts-muted); margin: 1.5rem 0 0.5rem; }
.ts-datasheet { display: inline-flex; justify-content: center; width: 100%; box-sizing: border-box; margin-top: 0.9rem; background: var(--ts-surface) !important; color: var(--ts-ink) !important; box-shadow: inset 0 0 0 1px var(--ts-ink); }
.ts-datasheet:hover { background: var(--ts-ink) !important; color: #fff !important; }

/* Collections and guides */
.ts-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.ts-guide { display: block; background: var(--ts-surface); border-radius: 8px; padding: 1.4rem; box-shadow: 0 0 0 1px var(--ts-line); color: var(--ts-ink); }
.ts-guide:hover { box-shadow: 0 0 0 1px var(--ts-ink-2); color: var(--ts-ink); }
.ts-guide__kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ts-accent); font-weight: 700; }
.ts-guide__title { font-family: var(--ts-serif); font-weight: 400; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1.15; margin: 0.4rem 0 0.6rem; }
.ts-guide p { font-size: 0.875rem; color: var(--ts-muted); margin: 0 0 0.9rem; }
.ts-guide__more { font-size: 0.8125rem; font-weight: 600; }
.ts-collection-intro { margin-top: 1rem; }
.ts-tips--inline { max-width: 70ch; }
.ts-guide-link { margin-top: 0.75rem; font-weight: 600; }
.ts-rail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ts-similar, .ts-supplier-more { margin-top: var(--wp--preset--spacing--70, 5rem); }

/* Line icons (includes/home.php) */
.ts-icon { width: 40px; height: 40px; flex: none; }

/* Scroll reveal: market.js adds .is-in when an element enters the viewport. */
.js-reveal .ts-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .ts-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .ts-reveal { opacity: 1; transform: none; transition: none; } }

/* Value props band */
.ts-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ts-value { display: flex; gap: 1rem; align-items: flex-start; }
.ts-value__icon { color: #ee8a50; width: 44px; height: 44px; }
.ts-value__title { color: #fff; font-size: 1.1rem; margin: 0.2rem 0 0.3rem; }
.ts-value__text { color: #d6d3d1; font-size: 0.9rem; margin: 0; line-height: 1.5; }

/* Makers marquee */
.ts-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ts-marquee__track { display: flex; width: max-content; animation: ts-marquee 38s linear infinite; }
.ts-marquee:hover .ts-marquee__track { animation-play-state: paused; }
.ts-marquee__group { display: flex; }
.ts-marquee__item { display: inline-flex; align-items: baseline; gap: 0.6rem; padding: 1.4rem 2.5rem; border-right: 1px solid var(--ts-line); color: var(--ts-ink); white-space: nowrap; }
.ts-marquee__name { font-family: var(--ts-serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.02em; }
.ts-marquee__count { font-size: 0.8125rem; color: var(--ts-muted); }
.ts-marquee__item:hover .ts-marquee__name { color: var(--ts-accent); }
@keyframes ts-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ts-marquee__track { animation: none; flex-wrap: wrap; width: auto; } .ts-marquee__group[aria-hidden] { display: none; } }

/* Category tiles: icon, count and a peak-torque bar */
.ts-cat-groups { display: grid; gap: 2rem; }
.ts-cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ts-cat-tile { display: flex; flex-direction: column; gap: 1rem; background: var(--ts-surface); border-radius: 6px; padding: 1.5rem; box-shadow: 0 0 0 1px var(--ts-line); color: var(--ts-ink); transition: box-shadow .2s ease, transform .2s ease; }
.ts-cat-tile:hover { box-shadow: 0 0 0 1px var(--ts-ink), 0 12px 30px rgba(28,25,23,.08); transform: translateY(-2px); color: var(--ts-ink); }
.ts-cat-tile__art { width: 64px; height: 64px; border-radius: 6px; background: var(--wp--preset--color--accent-soft, #fbeee4); color: var(--ts-accent); display: grid; place-items: center; }
.ts-cat-tile__icon { width: 40px; height: 40px; transition: transform .6s ease; }
.ts-cat-tile:hover .ts-cat-tile__icon { transform: rotate(30deg); }
.ts-cat-tile__body { display: flex; flex-direction: column; flex: 1; }
.ts-cat-tile__name { font-family: var(--ts-serif); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.ts-cat-tile__count { font-size: 0.8125rem; color: var(--ts-muted); margin-top: 0.2rem; }
.ts-cat-tile__desc { font-size: 0.875rem; color: var(--ts-ink-2); margin: 0.6rem 0 0; line-height: 1.5; }
.ts-cat-tile__range { margin-top: auto; padding-top: 1rem; }
.ts-cat-tile__bar { position: relative; height: 6px; border-radius: 3px; background: var(--ts-tile); overflow: hidden; }
.ts-cat-tile__bar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--ts-accent); transform-origin: left; }
.js-reveal .ts-reveal .ts-cat-tile__bar span { transform: scaleX(0); transition: transform 1s .2s cubic-bezier(.2,.7,.2,1); }
.js-reveal .ts-reveal.is-in .ts-cat-tile__bar span { transform: none; }
.ts-cat-tile__span { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ts-muted); margin-top: 0.45rem; }
.ts-subcats { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Application collections */
.ts-collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ts-collection { display: flex; flex-direction: column; background: var(--ts-surface); border-radius: 6px; padding: 1.5rem; color: var(--ts-ink); box-shadow: 0 0 0 1px rgba(194,87,26,.14); transition: transform .2s ease, box-shadow .2s ease; }
.ts-collection:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ts-accent), 0 14px 34px rgba(194,87,26,.12); color: var(--ts-ink); }
.ts-collection__head { display: flex; justify-content: space-between; align-items: flex-start; }
.ts-collection__icon { width: 48px; height: 48px; color: var(--ts-accent); }
.ts-collection__count { font-size: 0.75rem; font-weight: 600; color: #9a4413; background: var(--wp--preset--color--accent-soft, #fbeee4); border-radius: 3px; padding: 0.2rem 0.6rem; }
.ts-collection__name { font-family: var(--ts-serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; margin-top: 1rem; }
.ts-collection__desc { font-size: 0.875rem; color: var(--ts-ink-2); margin: 0.5rem 0 1rem; line-height: 1.5; }
.ts-collection__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: auto; }
.ts-collection__img { aspect-ratio: 1; background: var(--ts-tile); border-radius: 6px; overflow: hidden; display: block; }
.ts-collection__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; box-sizing: border-box; transition: transform .3s ease; }
.ts-collection:hover .ts-collection__img img { transform: scale(1.06); }
.ts-collection__more { font-size: 0.8125rem; font-weight: 600; margin-top: 1rem; color: #9a4413; }

/* Supplier collage: equal tiles on the shared tile colour */
/* The tile colour sits on the collage itself so the photos' white multiplies into it. */
.ts-collage { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0; aspect-ratio: 16 / 10; background: var(--ts-tile); isolation: isolate; }
.ts-collage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; padding: 10%; box-sizing: border-box; }
.ts-collage img:first-child { grid-row: span 2; }
.ts-collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ts-collage--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.ts-collage--2 img:first-child { grid-row: auto; }
.ts-supplier-rail--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ts-supplier-rail--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ts-brand-header .ts-collage { aspect-ratio: 4 / 3; border-radius: 12px; box-shadow: 0 0 0 1px var(--ts-line); }

/* Compare table: equal product columns whatever the name length */
.ts-compare table { border-collapse: collapse; width: 100%; min-width: calc(180px + var(--ts-cols, 2) * 200px); table-layout: fixed; font-size: 0.875rem; }
.ts-compare__label-col { width: 180px; }
.ts-compare th, .ts-compare td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--ts-line); overflow-wrap: anywhere; }
.ts-compare thead th { border-bottom: 0; padding-bottom: 1.25rem; }
.ts-compare tbody th { color: var(--ts-muted); font-weight: 500; }
.ts-compare td { font-variant-numeric: tabular-nums; }
.ts-compare__link { display: block; color: var(--ts-ink); }
.ts-compare__img { display: block; width: 100%; max-width: 220px; aspect-ratio: 1; background: var(--ts-tile); border-radius: 8px; padding: 8%; box-sizing: border-box; isolation: isolate; }
.ts-compare__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ts-compare__title { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; margin-top: 0.75rem; min-height: 2.6em; }
.ts-compare__supplier { display: block; color: var(--ts-muted); font-size: 0.8rem; margin-top: 0.25rem; }
.ts-compare__price { display: block; margin-top: 0.4rem; font-weight: 600; }
.ts-compare__buy { display: inline-block; margin-top: 0.75rem; padding: 0.55rem 1.1rem !important; font-size: 0.8125rem !important; }
.ts-compare__remove { display: block; background: none; border: 0; padding: 0; margin-top: 0.6rem; color: var(--ts-muted); text-decoration: underline; font: inherit; font-size: 0.75rem; cursor: pointer; }
.ts-compare-tray__item { font-size: 0.75rem; background: rgba(255,255,255,.12); border-radius: 3px; padding: 0.2rem 0.6rem; white-space: nowrap; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; }
[data-test="compare-same"] { margin-top: 1.25rem; }

/* Request a quote: the product it is about */
.ts-rfq-product { display: flex; gap: 1rem; align-items: center; background: var(--ts-surface); border-radius: 6px; box-shadow: 0 0 0 1px var(--ts-line); padding: 1rem; margin-bottom: 1.75rem; }
.ts-rfq-product__img { width: 96px; height: 96px; flex: none; background: var(--ts-tile); border-radius: 8px; overflow: hidden; display: block; }
.ts-rfq-product__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; box-sizing: border-box; }
.ts-rfq-product .ts-eyebrow { margin: 0 0 0.2rem; }
.ts-rfq-product__title { font-weight: 600; color: var(--ts-ink); }
.ts-rfq-product__meta { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--ts-muted); }
.ts-rfq-product__hint { margin: 0.35rem 0 0; font-size: 0.8125rem; color: var(--ts-ink-2); }

/* My account: a clear menu, and addresses and cards as boxes with buttons */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; grid-row: 1; }
.woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-MyAccount-content { grid-column: 2; }
.woocommerce-MyAccount-navigation { position: sticky; top: 100px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0.4rem; display: grid; gap: 2px; background: var(--ts-surface); border-radius: 6px; box-shadow: 0 0 0 1px var(--ts-line); }
.woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.woocommerce-MyAccount-navigation a { display: block; padding: 0.6rem 0.8rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500; color: var(--ts-ink-2); text-decoration: none !important; }
.woocommerce-MyAccount-navigation a:hover { background: var(--ts-tile); color: var(--ts-ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ts-ink); color: #fff; }
.woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--ts-line); margin-top: 0.3rem !important; padding-top: 0.3rem; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; color: var(--ts-ink-2); }
.woocommerce-Addresses { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.woocommerce-Addresses::before, .woocommerce-Addresses::after { content: none !important; }
.woocommerce-Address { width: auto !important; float: none !important; background: var(--ts-surface); border-radius: 6px; box-shadow: 0 0 0 1px var(--ts-line); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.woocommerce-Address-title { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { font-size: 1.25rem !important; margin: 0 !important; }
.woocommerce-Address-title a.edit { display: inline-block; background: var(--ts-ink); color: #fff !important; border-radius: 3px; padding: 0.55rem 1rem; font-size: 0.8125rem; font-weight: 600; text-decoration: none !important; }
.woocommerce-Address-title a.edit:hover { background: var(--ts-accent); }
.woocommerce-Address address { font-style: normal; color: var(--ts-ink-2); font-size: 0.9rem; }
.ts-account-intro { background: var(--ts-tile); border-radius: 6px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.ts-account-intro p { margin: 0; }
.ts-account-intro p + p { margin-top: 0.5rem; }
.woocommerce-MyAccount-content a.button, .woocommerce-MyAccount-content .button { background: var(--ts-ink); color: #fff; border-radius: 3px; padding: 0.7rem 1.2rem; font-weight: 600; font-size: 0.875rem; text-decoration: none; display: inline-block; border: 0; }
.woocommerce-MyAccount-content a.button:hover, .woocommerce-MyAccount-content .button:hover { background: var(--ts-accent); }
@media (max-width: 781px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation), .woocommerce-Addresses { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { grid-column: 1; grid-row: auto; }
	.ts-values, .ts-cat-tiles, .ts-collections { grid-template-columns: 1fr; }
}
@media (min-width: 782px) and (max-width: 1100px) { .ts-cat-tiles, .ts-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Body-region bands (home): intro with a torque bar, then four products */
.ts-region__intro { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px); grid-template-areas: "art eyebrow range" "art title range" "art text more"; column-gap: 1.5rem; align-items: start; margin-bottom: 2rem; }
.ts-region__art { grid-area: art; width: 72px; height: 72px; border-radius: 50%; background: var(--ts-surface); box-shadow: 0 0 0 1px var(--ts-line); color: var(--ts-accent); display: grid; place-items: center; position: relative; }
.ts-region__art::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ts-accent); opacity: 0; animation: ts-pulse 2.8s ease-out infinite; }
@keyframes ts-pulse { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ts-region__art::after { animation: none; } }
.ts-region__icon { width: 44px; height: 44px; }
.ts-region__eyebrow { grid-area: eyebrow; color: #9a4413; margin: 0.2rem 0 0.3rem; }
.ts-region__title { grid-area: title; font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.ts-region__text { grid-area: text; color: var(--ts-ink-2); max-width: 60ch; margin: 0.6rem 0 0; }
.ts-region__range { grid-area: range; align-self: end; padding-top: 0; }
.ts-region__more { grid-area: more; align-self: end; justify-self: end; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 781px) {
	.ts-region__intro { grid-template-columns: 1fr; grid-template-areas: "art" "eyebrow" "title" "text" "range" "more"; row-gap: 0.5rem; }
	.ts-region__more { justify-self: start; }
}

/* Home hero with the exploded joint (includes/home.php, assets/hero-joint.svg) */
.ts-hx { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: stretch; padding: 3.5rem 0; }
.ts-hx__text { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.ts-hx__pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; margin: 0; border-radius: 999px; background: var(--wp--preset--color--accent-soft, #fbeee4); font-size: 13px; font-weight: 600; color: var(--ts-ink-2); }
.ts-hx__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--ts-accent); flex: none; animation: ts-hx-blink 2s ease-in-out infinite; }
.ts-hx__title { margin: 0; font-family: var(--ts-serif); font-weight: 400; font-size: clamp(3rem, 5.6vw, 5rem); line-height: 0.98; letter-spacing: -0.035em; }
.ts-hx__title em { font-style: italic; color: var(--ts-accent); }
.ts-hx__lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ts-ink-2); max-width: 520px; }
.ts-hx__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ts-hx__btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 12px; border: 1.5px solid var(--ts-ink); font-size: 17px; font-weight: 600; color: var(--ts-ink); text-decoration: none; }
.ts-hx__btn:hover { background: var(--ts-ink); color: #fff; }
.ts-hx__btn--primary { background: var(--ts-accent); border-color: var(--ts-accent); color: #fff; font-size: 19px; font-weight: 700; padding: 0 26px; }
.ts-hx__btn--primary:hover { background: #9a4413; border-color: #9a4413; color: #fff; }
.ts-hx__props { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--ts-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ts-hx__props li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ts-hx__prop-icon { width: 22px; height: 22px; color: var(--ts-accent); }
.ts-hx__panel { position: relative; border-radius: 22px; border: 1px solid var(--ts-line); background-color: #fafaf9; background-image: linear-gradient(#efedea 1px, transparent 1px), linear-gradient(90deg, #efedea 1px, transparent 1px); background-size: 32px 32px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ts-hx__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 22px 0; font-family: var(--ts-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ts-ink-2); }
.ts-hx__status { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0; }
.ts-hx__status .ts-hx__dot { width: 7px; height: 7px; }
.ts-hx__svg { display: block; width: 100%; max-width: 680px; height: auto; margin: 0 auto; }
.ts-hx__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--ts-line); background: #fff; }
.ts-hx__shown { font-size: 14px; font-weight: 600; margin-right: auto; }
.ts-hx__chip { font-family: var(--ts-mono); font-size: 12.5px; padding: 5px 10px; border-radius: 6px; background: var(--ts-tile); }
.ts-hx__view { font-size: 14px; font-weight: 600; color: #9a4413; text-decoration: none; }
.ts-hx-ex { animation: ts-hx-ex 9s cubic-bezier(.6, 0, .2, 1) infinite; }
.ts-hx-co { animation: ts-hx-co 9s ease infinite; }
@keyframes ts-hx-ex { 0%, 10% { transform: translateX(0); } 38%, 70% { transform: translateX(var(--dx)); } 94%, 100% { transform: translateX(0); } }
@keyframes ts-hx-co { 0%, 32% { opacity: 0; transform: translateY(6px); } 44%, 66% { opacity: 1; transform: translateY(0); } 76%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes ts-hx-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* Without motion, the drawing rests exploded with its labels shown. */
@media (prefers-reduced-motion: reduce) { .ts-hx-ex, .ts-hx-co, .ts-hx__dot { animation: none; } }
@media (max-width: 1000px) { .ts-hx { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ts-hx__props { grid-template-columns: 1fr; } .ts-hx__btn { height: 50px; font-size: 16px; } }

/* Home sections from the design board (assets/home-sections.html) */
.ts-fx-wrap { font-family: var(--wp--preset--font-family--sans); color: var(--ts-ink); }
.ts-fx a { color: inherit; }
.ts-fx a[style*="color:#9A4413"]:hover { text-decoration: underline !important; }
.ts-fx a[data-cart]:hover { background: var(--ts-accent) !important; }
.ts-fx h2, .ts-fx h3 { color: inherit; }
.ts-a-pulse { transform-box: fill-box; transform-origin: center; animation: ts-a-pulse 2.4s ease-out infinite; }
.ts-a-grow { transform-origin: left center; animation: ts-a-grow 6s cubic-bezier(.2,.7,.2,1) infinite; }
.ts-a-spin { transform-box: fill-box; transform-origin: center; animation: ts-a-spin 16s linear infinite; }
.ts-a-spin-r { transform-box: fill-box; transform-origin: center; animation: ts-a-spin 10s linear infinite reverse; }
.ts-a-bob { animation: ts-a-bob 5s ease-in-out infinite; }
.ts-a-dash { animation: ts-a-dash 2s linear infinite; }
.ts-a-blink { animation: ts-hx-blink 2s ease-in-out infinite; }
@keyframes ts-a-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes ts-a-grow { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes ts-a-spin { to { transform: rotate(360deg); } }
@keyframes ts-a-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ts-a-dash { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .ts-a-pulse, .ts-a-grow, .ts-a-spin, .ts-a-spin-r, .ts-a-bob, .ts-a-dash, .ts-a-blink { animation: none; } }
/* The board is drawn at 1440px; below that, grids fold to fewer columns. */
@media (max-width: 1100px) {
	.ts-fx > [style*="grid-template-columns:repeat(4"], .ts-fx [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ts-fx[style*="grid-template-columns:400px"], .ts-fx[style*="380px;gap"] { grid-template-columns: 1fr !important; }
	.ts-fx[style*="380px;gap"] > :last-child { order: -1; }
	.ts-fx [style*="grid-template-columns:repeat(2,minmax(0,1fr)) 300px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ts-fx [style*="grid-template-columns:repeat(2,minmax(0,1fr)) 300px"] > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.ts-fx { padding-left: 16px !important; padding-right: 16px !important; padding-top: 48px !important; padding-bottom: 48px !important; }
	.ts-fx [style*="grid-template-columns"], .ts-fx--values { grid-template-columns: 1fr !important; }
	.ts-fx [style*="grid-template-columns:180px"] { grid-template-columns: 120px minmax(0, 1fr) !important; }
	.ts-fx [style*="justify-content:space-between"][style*="align-items:flex-end"] { flex-direction: column; align-items: flex-start !important; gap: 12px; }
	.ts-fx h2 { font-size: 34px !important; }
}
.ts-fx svg { flex-shrink: 0; }
/* Cards never squeeze the buy button, price or spec chips onto several lines. */
.ts-fx a[data-cart], .ts-fx [style*="font-size:16px;font-weight:600"] { white-space: nowrap; flex: none; }
.ts-fx [style*="padding:4px 8px;border-radius:6px"] { white-space: nowrap; }
.ts-fx [style*="display:flex;gap:6px;font-family"] { flex-wrap: wrap; }
.ts-fx [style*="margin-top:auto;display:flex"] { gap: 10px; flex-wrap: wrap; }
@media (max-width: 1440px) {
	.ts-fx [style*="grid-template-columns:180px"] { grid-template-columns: 130px minmax(0, 1fr) !important; }
	.ts-fx [style*="grid-template-columns:180px"] img { width: 110px !important; height: 110px !important; }
	.ts-fx[style*="grid-template-columns:400px"] { grid-template-columns: 320px minmax(0, 1fr) !important; }
}
@media (max-width: 1280px) {
	.ts-fx[style*="grid-template-columns:400px"] > div > [style*="grid-template-columns:repeat(2,minmax(0,1fr))"]:not([style*="300px"]), .ts-fx[style*="grid-template-columns:400px"] > [style*="grid-template-columns:repeat(2,minmax(0,1fr));gap:20px"] { grid-template-columns: 1fr !important; }
}
