/* ==========================================================================
   Tabaqa 3D — theme styles
   Black and white: white pages with black type by day, the inverse by night.
   RTL-first: logical properties throughout, works LTR too.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
	color-scheme: light;
	--paper: #FFFFFF;
	--paper-rgb: 255, 255, 255;
	--card: #FFFFFF;
	--field: #FFFFFF;
	--well: #F4F4F4;            /* behind product photos */
	--ink: #000000;
	--ink-rgb: 0, 0, 0;
	--ink-2: #3D3D3D;
	--muted: #737373;
	--line: rgba(0, 0, 0, .09);
	--line-2: rgba(0, 0, 0, .16);
	--hair: rgba(0, 0, 0, .12);
	--stage: #F4F4F4;
	--stage-ink: #000000;
	--stage-ink-2: #555555;
	--stage-line: rgba(0, 0, 0, .28);
	--glow: rgba(255, 255, 255, .95);
	--btn-bg: #000000;
	--btn-fg: #FFFFFF;
	--ok: #1E7D4F;
	--err: #C62828;
	--sale: var(--btn-bg);
	--sale-ink: var(--btn-fg);

	/* "accent" is simply the ink colour: black by day, white by night */
	--accent: var(--ink);
	--accent-rgb: var(--ink-rgb);
	--accent-ink: var(--paper);
	--accent-text: var(--ink);

	--font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 64px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4.2vw, 32px);
	--r-panel: 28px;
	--r-well: 20px;
	--r-tag: 18px;
	--r-field: 12px;
	--dir: -1;                  /* drawers slide in from the inline end */
}
html[dir="ltr"], html:not([dir]) { --dir: 1; }

html[data-mode="dark"] {
	color-scheme: dark;
	--paper: #000000;
	--paper-rgb: 0, 0, 0;
	--card: #0E0E0E;
	--field: #0A0A0A;
	--well: #141414;
	--ink: #FFFFFF;
	--ink-rgb: 255, 255, 255;
	--ink-2: #C9C9C9;
	--muted: #8F8F8F;
	--line: rgba(255, 255, 255, .10);
	--line-2: rgba(255, 255, 255, .18);
	--hair: rgba(255, 255, 255, .14);
	--stage: #0E0E0E;
	--stage-ink: #FFFFFF;
	--stage-ink-2: #A3A3A3;
	--stage-line: rgba(255, 255, 255, .3);
	--glow: rgba(255, 255, 255, .08);
	--btn-bg: #FFFFFF;
	--btn-fg: #000000;
	--ok: #5BC48D;
	--err: #FF6B6B;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--display); font-weight: 700; line-height: 1.35; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: rgba(var(--ink-rgb), .16); }
.amount, .tq-cart-count, .tq-steps__n, .woocommerce-order-overview strong { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}
.tq-skip:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	inset-inline-start: 12px;
	top: 12px;
	z-index: 100010;
	padding: 10px 16px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	border-radius: 999px;
}
.tq-hidden { display: none !important; }

.tq-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- 3. Buttons & links ------------------------------------------- */
.tq-btn,
.button,
button.button,
input.button,
a.button,
#place_order,
.single_add_to_cart_button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: transform .15s var(--ease), opacity .2s;
	-webkit-tap-highlight-color: transparent;
}
.tq-btn:active, .button:active, #place_order:active { transform: scale(.97); }
.tq-btn svg { width: 20px; height: 20px; stroke-width: 1.7; }
.button:disabled, .button.disabled, button:disabled[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.button.loading { opacity: .7; pointer-events: none; }
.tq-btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

.tq-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-2);
	text-decoration: underline;
	text-decoration-color: var(--hair);
	text-underline-offset: 7px;
	white-space: nowrap;
}
.tq-link:hover { text-decoration-color: var(--accent-text); }

.tq-iconbtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform .15s var(--ease), border-color .2s;
}
.tq-iconbtn:hover { border-color: var(--hair); }
.tq-iconbtn:active { transform: scale(.94); }
.tq-ico { width: 22px; height: 22px; stroke-width: 1.6; flex: none; }

/* ---------- 4. Header ---------------------------------------------------- */
.tq-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(var(--paper-rgb), .93);
	border-bottom: 1px solid var(--line);
	view-transition-name: tq-header;
}
.admin-bar .tq-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tq-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tq-header { top: 0; } }

.tq-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.tq-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	line-height: 1;
}
.tq-brand__logo { max-height: 40px; width: auto; }
/* Devcore badge + wordmark: the disc takes the ink colour, so it inverts at night */
.tq-badge { display: block; flex: none; }
.tq-badge__disc { fill: var(--ink); }
.tq-badge__mark { fill: var(--paper); }
.tq-word { display: block; flex: none; }
.tq-word__letters { fill: var(--ink); }
.tq-word__c { fill: #8A8A8A; }
.tq-brand__badge { width: 38px; height: 38px; }
.tq-brand__word { width: auto; height: 14px; }

.tq-nav { display: none; min-width: 0; }
.tq-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tq-nav__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 14.5px;
	color: var(--ink-2);
	white-space: nowrap;
	transition: color .2s;
}
.tq-nav__list a:hover { color: var(--ink); }
.tq-nav__list a[aria-current="page"],
.tq-nav__list .current-menu-item > a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; }

.tq-header__actions { display: flex; gap: 8px; margin-inline-start: auto; }
.tq-mode-toggle__sun { display: none; }
html[data-mode="dark"] .tq-mode-toggle__sun { display: block; }
html[data-mode="dark"] .tq-mode-toggle__moon { display: none; }

.tq-cart-count {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}
.tq-cart-count.is-empty { display: none; }
.tq-cart-toggle.is-bump .tq-cart-count { animation: tq-bump .5s var(--ease); }

@media (min-width: 1000px) {
	.tq-nav { display: block; }
	.tq-brand__badge { width: 42px; height: 42px; }
	.tq-brand__word { height: 16px; }
}

/* ---------- 5. Drawers (menu + mini cart) -------------------------------- */
.tq-drawer { position: fixed; inset: 0; z-index: 100001; display: flex; }
.tq-drawer[hidden] { display: none; }
.tq-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 7, .55);
	opacity: 0;
	transition: opacity .3s var(--ease);
}
.tq-drawer__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(420px, 90vw);
	height: 100%;
	margin-inline-start: auto;
	background: var(--card);
	box-shadow: 0 0 40px rgba(0, 0, 0, .2);
	transform: translateX(calc(102% * var(--dir)));
	transition: transform .34s var(--ease);
}
.tq-drawer.is-open .tq-drawer__backdrop { opacity: 1; }
.tq-drawer.is-open .tq-drawer__panel { transform: none; }
html.tq-lock, html.tq-lock body { overflow: hidden; }

.tq-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 12px;
	padding-inline: 20px 16px;
	border-bottom: 1px solid var(--line);
}
.tq-drawer__title { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; }
.tq-drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.tq-drawer__body--cart { display: flex; flex-direction: column; padding: 0; overflow: hidden; }

.tq-search { position: relative; margin-bottom: 18px; }
.tq-search .tq-ico { position: absolute; top: 50%; inset-inline-start: 14px; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.tq-search input[type="search"] { padding-inline-start: 44px; border-radius: 999px; }

.tq-menu-cats { list-style: none; margin: 0 0 12px; padding: 0; }
.tq-menu-cats a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 2px;
	border-bottom: 1px solid var(--line);
	font-size: 17px;
	font-weight: 600;
}
.tq-menu-cats__swatch {
	position: relative;
	width: 16px;
	height: 22px;
	border-radius: 5px;
	background: var(--c, var(--accent));
	box-shadow: inset 0 0 0 1px var(--hair);
	flex: none;
}
.tq-menu-cats__swatch::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 50%;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--card);
}
.tq-menu-cats__count { margin-inline-start: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.tq-menu-links { list-style: none; margin: 0; padding: 8px 0 0; }
.tq-menu-links a { display: block; padding: 10px 2px; font-size: 15px; color: var(--ink-2); }

/* Mini cart */
.tq-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.woocommerce-mini-cart {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	margin: 0;
	padding: 8px 20px;
	list-style: none;
	overscroll-behavior: contain;
}
.woocommerce-mini-cart-item {
	position: relative;
	min-height: 72px;
	padding: 14px 0;
	padding-inline: 84px 36px;
	border-bottom: 1px solid var(--line);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.55;
}
.woocommerce-mini-cart-item img {
	position: absolute;
	top: 14px;
	inset-inline-start: 0;
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: 14px;
	background: var(--well);
}
.woocommerce-mini-cart-item a:not(.remove) { display: block; }
.woocommerce-mini-cart-item .quantity { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.woocommerce-mini-cart-item .variation { margin: 2px 0 0; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd { display: inline; margin: 0; }
.woocommerce-mini-cart-item .variation dd p { display: inline; margin: 0; }
a.remove {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
}
a.remove:hover { color: var(--err); border-color: currentColor; }
.woocommerce-mini-cart-item a.remove { position: absolute; top: 14px; inset-inline-end: 0; }

.woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0;
	padding: 16px 20px 8px;
	border-top: 1px solid var(--line);
	font-size: 15px;
}
.woocommerce-mini-cart__total strong { font-weight: 400; color: var(--ink-2); }
.woocommerce-mini-cart__total .amount { font-size: 19px; font-weight: 600; }
.woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 8px 20px max(20px, env(safe-area-inset-bottom));
}
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .checkout { order: -1; min-height: 54px; font-size: 16px; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.woocommerce-mini-cart__empty-message { margin: auto; padding: 40px 24px; text-align: center; color: var(--muted); }

/* ---------- 6. Hero ------------------------------------------------------ */
.tq-hero { padding: 10px clamp(8px, 2vw, 20px) 0; }
.tq-hero__panel {
	position: relative;
	max-width: 1360px;
	margin-inline: auto;
	overflow: hidden;
	border-radius: var(--r-panel);
	background: var(--stage);
	color: var(--stage-ink);
	box-shadow: inset 0 0 0 1px var(--hair);
	isolation: isolate;
}
.tq-hero__panel::before {
	/* soft light from above */
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .45), transparent 70%);
	z-index: -1;
	pointer-events: none;
}
html[data-mode="dark"] .tq-hero__panel::before { background: radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%); }
.tq-hero__grid { display: grid; gap: 6px; padding: 36px 22px 18px; }
.tq-hero__title {
	margin: 0 0 14px;
	font-size: clamp(36px, 10vw, 72px);
	font-weight: 700;
	line-height: 1.32;
	color: var(--stage-ink);
}
.tq-hero__line { display: block; }
.tq-hero__text { max-width: 38ch; margin: 0 0 24px; font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.9; color: var(--stage-ink-2); text-wrap: pretty; }

.tq-facts { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.tq-facts li { display: inline-flex; align-items: center; gap: 8px; padding-inline-end: 16px; }
.tq-facts li + li { padding-inline-start: 16px; border-inline-start: 1px solid var(--hair); }
.tq-facts .tq-ico { width: 19px; height: 19px; stroke-width: 1.5; color: var(--accent-text); }
.tq-facts--hero { color: var(--stage-ink-2); }

.tq-hero__visual { display: grid; place-items: center; margin-top: 10px; }

@media (min-width: 900px) {
	.tq-hero__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: center;
		gap: 24px;
		padding: 60px clamp(32px, 5vw, 76px) 52px;
	}
	.tq-hero__title { font-size: clamp(44px, 4.8vw, 70px); }
	.tq-hero__visual { margin-top: 0; }
}

/* ---------- 7. The print scene: a controller printed in silk filament ---- */
.tq-scene {
	--s: min(86vw, 380px);
	--t0: .5s;                 /* print starts */
	--tp: 3s;                  /* print duration */
	/* matte black PLA by day */
	--f1: #0B0B0B;
	--f2: #3D3D3D;
	--f3: #1C1C1C;
	--f4: #050505;
	--engrave: rgba(255, 255, 255, .2);
	--cap: rgba(255, 255, 255, .1);
	width: var(--s);
	-webkit-user-select: none;
	user-select: none;
}
@media (min-width: 900px) { .tq-scene { --s: min(42vw, 520px); } }
html[data-mode="dark"] .tq-scene {
	/* white PLA by night */
	--f1: #CFCFCF;
	--f2: #FFFFFF;
	--f3: #EDEDED;
	--f4: #BDBDBD;
	--engrave: rgba(0, 0, 0, .26);
	--cap: rgba(255, 255, 255, .7);
}

.tq-scene__stage { position: relative; width: 100%; height: calc(var(--s) * .66); }
.tq-scene__glow {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	width: var(--s);
	height: calc(var(--s) * .62);
	margin-inline: auto;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--glow), transparent);
}
.tq-plate {
	/* the build plate, drawn as a hairline */
	position: absolute;
	inset-inline: 0;
	bottom: calc(var(--s) * .09);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--stage-line) 18%, var(--stage-line) 82%, transparent);
}
.tq-print,
.tq-gantry {
	position: absolute;
	inset-inline: 0;
	bottom: calc(var(--s) * .09);
	width: calc(var(--s) * .86);
	aspect-ratio: 320 / 160;
	margin-inline: auto;
}
.tq-print { isolation: isolate; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.tq-print::before {
	content: "";
	position: absolute;
	inset-inline: 6%;
	bottom: -7%;
	height: 13%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0, 0, 0, .38), transparent);
	z-index: -1;
}
.tq-print.is-pressed { animation: tq-rumble .42s linear; }

/* Reveal: the mover slides up one layer at a time while its child slides down
   by the same amount — the picture stays put and appears from the bottom. */
.tq-print__mover,
.tq-print__inner { position: absolute; inset: 0; }
.tq-print__mover { overflow: hidden; transform: translateY(100%); animation: tq-z-up var(--tp) steps(20, end) var(--t0) both; }
.tq-print__inner { transform: translateY(-100%); animation: tq-z-down var(--tp) steps(20, end) var(--t0) both; }
.tq-pad { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tqs-f1 { stop-color: var(--f1); }
.tqs-f2 { stop-color: var(--f2); }
.tqs-f3 { stop-color: var(--f3); }
.tqs-f4 { stop-color: var(--f4); }
.tq-pad__engrave { fill: var(--engrave); }
.tq-pad__caps { fill: var(--cap); }
.tq-sheen { animation: tq-sheen 1.15s cubic-bezier(.4, 0, .2, 1) calc(var(--t0) + var(--tp) + .2s) both; }
.tq-print__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.tq-scene--image .tq-print { cursor: default; }

/* Nozzle: steps up with the layers, sweeps along X, then lifts away. */
.tq-gantry { pointer-events: none; animation: tq-park .6s var(--ease) calc(var(--t0) + var(--tp)) both; }
.tq-gantry__z { position: absolute; inset: 0; transform: translateY(-5%); animation: tq-gz var(--tp) steps(20, end) var(--t0) both; }
.tq-head { position: absolute; inset-inline: 0; bottom: 0; height: 0; animation: tq-sweep .3s ease-in-out var(--t0) 10 alternate both; }
.tq-head::before {
	/* filament feeding the nozzle */
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(var(--s) * .068);
	width: 1px;
	height: calc(var(--s) * 1.1);
	margin-left: -.5px;
	background: linear-gradient(to top, rgba(var(--ink-rgb), .75), rgba(var(--ink-rgb), 0));
}
.tq-nozzle { position: absolute; bottom: 0; left: 50%; width: 9%; margin-left: -4.5%; overflow: visible; }

.tq-scene__hint {
	margin: 2px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--stage-ink-2);
	opacity: 0;
	animation: tq-fade .5s ease calc(var(--t0) + var(--tp) + 1.3s) both;
}
.tq-scene.is-played .tq-scene__hint { animation: none; opacity: 0; transition: opacity .3s; }

@keyframes tq-z-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes tq-z-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes tq-gz { from { transform: translateY(-5%); } to { transform: translateY(-105%); } }
@keyframes tq-sweep { from { transform: translateX(-38%); } to { transform: translateX(38%); } }
@keyframes tq-park { to { opacity: 0; transform: translateY(-14%); } }
@keyframes tq-sheen { from { transform: translateX(0); } to { transform: translateX(560px); } }
@keyframes tq-fade { to { opacity: 1; } }
@keyframes tq-rumble {
	0%, 100% { transform: none; }
	15% { transform: translate(-1.2%, .4%) rotate(-.8deg); }
	30% { transform: translate(1.2%, -.3%) rotate(.8deg); }
	45% { transform: translate(-1%, .3%) rotate(-.6deg); }
	60% { transform: translate(.9%, -.2%) rotate(.5deg); }
	75% { transform: translate(-.5%, .1%) rotate(-.3deg); }
}

/* ---------- 8. Sections -------------------------------------------------- */
.tq-section { padding-top: clamp(40px, 6.5vw, 80px); }
.tq-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.tq-section__title { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; }
.tq-main { padding-bottom: clamp(48px, 8vw, 96px); }

/* Categories — silk filament swatch tags */
.tq-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tq-swatch {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	min-height: 160px;
	padding: 16px;
	border-radius: var(--r-tag);
	background: var(--sw);
	color: var(--sw-ink);
	box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .22);
	overflow: hidden;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition: transform .16s var(--ease);
}
.tq-swatch::before {
	/* layer lines */
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(180deg, transparent 0, transparent 3.5px, rgba(0, 0, 0, .09) 3.5px, rgba(0, 0, 0, .09) 4.5px, rgba(255, 255, 255, .06) 4.5px, rgba(255, 255, 255, .06) 5px);
	z-index: -1;
	pointer-events: none;
}
.tq-swatch::after {
	/* the punched hole of a swatch tag */
	content: "";
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .12);
}
.tq-swatch:active { transform: scale(.985); }
.tq-swatch__text { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 22px; }
.tq-swatch__name { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.45; }
.tq-swatch__desc { display: none; max-width: 30ch; margin-top: 4px; font-size: 13.5px; line-height: 1.75; opacity: .8; }
.tq-swatch__count { margin-top: 2px; font-size: 13px; opacity: .72; }
.tq-swatch__art { align-self: flex-end; display: grid; place-items: center; color: var(--sw-icon); }
.tq-swatch__icon { width: 64px; height: 64px; stroke-width: 1.8; }
.tq-swatch__img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }

/* finishes — real filament types, in black and white */
.tq-fin--black { --sw: linear-gradient(135deg, #222222 0%, #0B0B0B 45%, #000000 100%); --sw-ink: #FFFFFF; --sw-icon: #FFFFFF; }
.tq-fin--white { --sw: linear-gradient(135deg, #FFFFFF 0%, #F4F4F4 55%, #E8E8E8 100%); --sw-ink: #000000; --sw-icon: #000000; }
.tq-fin--marble {
	/* flecks on three uneven grids, so no pattern shows */
	--sw: radial-gradient(rgba(0, 0, 0, .28) .8px, transparent 1.3px) 0 0 / 17px 13px,
		radial-gradient(rgba(0, 0, 0, .16) .6px, transparent 1.1px) 6px 4px / 23px 19px,
		radial-gradient(rgba(0, 0, 0, .22) 1px, transparent 1.6px) 11px 9px / 31px 29px,
		linear-gradient(135deg, #FBFBFB 0%, #EAEAEA 100%);
	--sw-ink: #000000;
	--sw-icon: #000000;
}
.tq-fin--silver { --sw: linear-gradient(118deg, #A8A8A8 0%, #F3F3F3 36%, #C8C8C8 56%, #8E8E8E 100%); --sw-ink: #000000; --sw-icon: #000000; }
.tq-fin--galaxy {
	/* glitter on three uneven grids */
	--sw: radial-gradient(rgba(255, 255, 255, .75) .7px, transparent 1.1px) 0 0 / 23px 19px,
		radial-gradient(rgba(255, 255, 255, .4) .6px, transparent 1px) 7px 11px / 29px 31px,
		radial-gradient(rgba(255, 255, 255, .55) .5px, transparent .9px) 15px 3px / 37px 41px,
		linear-gradient(135deg, #1C1C1C 0%, #050505 100%);
	--sw-ink: #FFFFFF;
	--sw-icon: #FFFFFF;
}
.tq-fin--graphite { --sw: linear-gradient(118deg, #262626 0%, #4A4A4A 36%, #303030 58%, #1C1C1C 100%); --sw-ink: #FFFFFF; --sw-icon: #FFFFFF; }

.tq-swatch--feature {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	min-height: 178px;
	padding: 20px;
}
.tq-swatch--feature .tq-swatch__name { font-size: 24px; }
.tq-swatch--feature .tq-swatch__desc { display: block; }
.tq-swatch--feature .tq-swatch__count { margin-top: 10px; }
.tq-swatch--feature .tq-swatch__art { align-self: center; margin-inline-end: 4px; }
.tq-swatch--feature .tq-swatch__icon { width: 108px; height: 108px; stroke-width: 1.5; }
.tq-swatch--feature .tq-swatch__img { width: 120px; height: 120px; }

@media (min-width: 900px) {
	.tq-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.tq-swatch { min-height: 204px; padding: 20px; }
	.tq-swatch__desc { display: block; }
	.tq-swatch__icon { width: 72px; height: 72px; }
	.tq-swatch--feature {
		grid-column: span 2;
		grid-row: span 2;
		flex-direction: column;
		align-items: stretch;
		padding: 28px;
	}
	.tq-swatch--feature .tq-swatch__name { font-size: 36px; }
	.tq-swatch--feature .tq-swatch__desc { font-size: 15px; }
	.tq-swatch--feature .tq-swatch__art { align-self: flex-end; margin: 0; }
	.tq-swatch--feature .tq-swatch__icon { width: 224px; height: 224px; stroke-width: 1.2; }
	.tq-swatch--feature .tq-swatch__img { width: 220px; height: 220px; }
	.tq-swatch--feature::after { top: 20px; inset-inline-end: 20px; width: 18px; height: 18px; }
}

/* Empty state */
.tq-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 40px 20px;
	border: 1px dashed var(--hair);
	border-radius: var(--r-well);
	text-align: center;
	color: var(--ink-2);
}
.tq-empty__icon { width: 56px; height: 56px; stroke-width: 1.4; color: var(--accent-text); }
.tq-empty__title { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); }
.tq-empty--404 { margin-top: 40px; padding: 64px 20px; }

/* Custom order panel */
.tq-custom__panel {
	display: grid;
	gap: 18px;
	align-items: center;
	padding: 28px 22px;
	border-radius: var(--r-panel);
	background: var(--stage);
	color: var(--stage-ink);
	box-shadow: inset 0 0 0 1px var(--hair);
}
.tq-custom__title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.tq-custom__text { margin: 0; max-width: 46ch; color: var(--stage-ink-2); }
.tq-custom .tq-btn { justify-self: start; }
@media (min-width: 760px) { .tq-custom__panel { grid-template-columns: 1fr auto; padding: 36px 44px; } }

/* ---------- 9. Product cards (WooCommerce loop) -------------------------- */
ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 700px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1100px) {
	ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
ul.products li.product,
ul.products li.product-category { position: relative; margin: 0; padding: 0; width: auto; float: none; }

.tq-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: var(--r-well);
	background: var(--well);
}
.tq-thumb img { width: 100%; height: 100%; object-fit: cover; }
li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 2px;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}
li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	min-height: 40px;
	padding-inline-end: 50px;
	font-size: 15px;
	font-weight: 600;
}
.price del { color: var(--muted); font-size: .85em; font-weight: 400; }
.price ins { text-decoration: none; }
li.product .star-rating { margin: 2px 0; }

/* the round add button */
li.product .button {
	position: absolute;
	inset-inline-end: 0;
	bottom: 0;
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border-radius: 50%;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
}
li.product .button::before,
li.product .button::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	border-radius: 2px;
}
/* AJAX-addable products get a plus; everything else (options, read more) an arrow. */
li.product .button::after { display: none; }
li.product .button::before {
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -2px;
	background: none;
	border: solid currentColor;
	border-width: 0 0 1.8px 1.8px;
	border-radius: 0;
	transform: rotate(45deg);
}
html[dir="ltr"] li.product .button::before { margin-left: -6px; transform: rotate(-135deg); }
li.product .button.ajax_add_to_cart::after { display: block; width: 1.8px; height: 15px; margin: -7.5px 0 0 -.9px; }
li.product .button.ajax_add_to_cart::before { width: 15px; height: 1.8px; margin: -.9px 0 0 -7.5px; background: currentColor; border: 0; border-radius: 2px; transform: none; }
li.product .button.loading { opacity: 1; }
li.product .button.loading::after { display: none; }
li.product .button.loading::before {
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	background: none;
	border: 1.8px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: tq-spin .7s linear infinite;
}
li.product .button.added::after { display: none; }
li.product .button.added::before {
	width: 6px;
	height: 11px;
	margin: -7px 0 0 -3px;
	background: none;
	border: solid currentColor;
	border-width: 0 1.8px 1.8px 0;
	border-radius: 0;
	transform: rotate(45deg);
}
li.product .added_to_cart { display: none; }

.onsale {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--sale);
	color: var(--sale-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

li.product-category a { display: block; }
li.product-category img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-well); margin-bottom: 10px; }
li.product-category h2 { font-size: 15px; }
li.product-category .count { background: none; color: var(--muted); font-weight: 400; }

/* Stars without an icon font */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.6em;
	height: 1.1em;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.1;
}
.star-rating::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	letter-spacing: .12em;
	color: var(--line-2);
}
.star-rating span { position: absolute; top: 0; inset-inline-start: 0; height: 100%; overflow: hidden; font-size: 0; }
.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	font-size: 13px;
	letter-spacing: .12em;
	color: var(--accent);
}
p.stars { margin: 4px 0 12px; }
p.stars span { display: inline-flex; gap: 4px; }
p.stars a { position: relative; display: inline-block; width: 28px; height: 28px; font-size: 0; color: var(--line-2); }
p.stars a::before { content: "★"; position: absolute; inset: 0; font-size: 26px; line-height: 28px; text-align: center; color: inherit; }
p.stars:hover a { color: var(--accent); }
p.stars a:hover ~ a { color: var(--line-2); }
p.stars.selected a.active, p.stars.selected a:not(.active) { color: var(--accent); }
p.stars.selected a.active ~ a { color: var(--line-2); }

/* ---------- 10. Shop / category pages ------------------------------------ */
.tq-archive-head { padding: 26px 0 4px; }
.tq-archive-head__title { margin: 0; font-size: clamp(32px, 6vw, 54px); line-height: 1.3; }
.tq-archive-head__desc { max-width: 60ch; margin-top: 6px; color: var(--ink-2); }
.tq-archive-head__desc p { margin: 0; }

.tq-chips {
	display: flex;
	gap: 8px;
	margin: 14px calc(var(--gutter) * -1) 0;
	padding: 4px var(--gutter) 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tq-chips::-webkit-scrollbar { display: none; }
.tq-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	font-size: 14px;
	color: var(--ink-2);
	white-space: nowrap;
	scroll-snap-align: start;
}
.tq-chip[style]::before { content: ""; width: 9px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px var(--hair); }
.tq-chip.is-active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }

.tq-shop { padding-top: 14px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-ordering { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.woocommerce-ordering select { width: auto; min-height: 40px; padding-block: 6px; font-size: 14px; border-radius: 999px; background-color: transparent; }

.woocommerce-pagination { margin-top: 36px; }
.woocommerce-pagination ul,
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	font-size: 14px;
	font-weight: 600;
}
.page-numbers.current { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/* ---------- 11. Notices -------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments,
.woocommerce-notice:not(.woocommerce-thankyou-order-received) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-inline-start: 3px solid var(--accent);
	list-style: none;
	font-size: 14.5px;
	line-height: 1.75;
}
.woocommerce-message { border-inline-start-color: var(--ok); }
.woocommerce-error { display: block; border-inline-start-color: var(--err); }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button) { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 5px; }
.woocommerce-store-notice, p.demo_store {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 99;
	margin: 0;
	padding: 12px 16px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 14px;
	text-align: center;
}
.woocommerce-store-notice__dismiss-link { margin-inline-start: 12px; text-decoration: underline; }

/* WooCommerce loading overlay (inline-styled white by jQuery BlockUI) */
.blockUI.blockOverlay { background: rgba(var(--paper-rgb), .55) !important; opacity: 1 !important; border-radius: inherit; }

/* ---------- 12. Forms ---------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input.input-text,
select,
textarea {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-field);
	background: var(--field);
	color: var(--ink);
	font: inherit;
	font-size: 16px; /* no zoom on iPhone */
	line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22);
}
select {
	padding-inline-end: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}
html[dir="rtl"] select { background-position: left 16px center; }
input[type="tel"], input[type="email"] { direction: ltr; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); vertical-align: middle; }

.form-row { margin: 0 0 14px; padding: 0; }
.form-row label,
.tq-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.form-row label.checkbox,
.form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.form-row .required { color: var(--accent-text); text-decoration: none; border: 0; font-weight: 600; }
.form-row .optional { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.woocommerce-input-wrapper { display: block; }
.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select { border-color: var(--err); }
.form-row .description { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- 13. Single product ------------------------------------------- */
.tq-product-page { padding-top: 16px; }
.tq-product-page div.product { position: relative; display: grid; gap: 22px; }
.tq-product-page div.product > .onsale { top: 14px; inset-inline-start: 14px; }
.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__image:only-child,
.woocommerce-product-gallery--without-images .woocommerce-product-gallery__wrapper {
	border-radius: var(--r-well);
	overflow: hidden;
	background: var(--well);
}
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.flex-control-thumbs li { margin: 0; }
.flex-control-thumbs img { border-radius: 12px; background: var(--well); opacity: .55; cursor: pointer; transition: opacity .2s; }
.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--card);
	font-size: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
.woocommerce-product-gallery__trigger::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 11px;
	width: 13px;
	height: 13px;
	border: 1.8px solid var(--ink);
	border-radius: 50%;
}
.woocommerce-product-gallery__trigger::after {
	content: "";
	position: absolute;
	top: 25px;
	left: 24px;
	width: 1.8px;
	height: 7px;
	background: var(--ink);
	border-radius: 2px;
	transform: rotate(-45deg);
}
.woocommerce-product-gallery__trigger span { display: none; }

.summary.entry-summary { min-width: 0; }
.product_title { margin: 0 0 6px; font-size: clamp(28px, 5vw, 40px); line-height: 1.4; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.summary .price { margin: 6px 0 16px; font-size: 26px; font-weight: 600; color: var(--ink); }
.summary .price .woocommerce-Price-currencySymbol { font-size: .62em; font-weight: 400; }
.woocommerce-product-details__short-description { color: var(--ink-2); }
.woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

form.cart { margin: 20px 0 0; }
form.cart:not(.variations_form):not(.grouped_form),
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; }
.single_add_to_cart_button { flex: 1; min-height: 56px; font-size: 16px; }
.single_add_to_cart_button.disabled { opacity: .45; }
table.variations { width: 100%; margin: 0 0 14px; border-collapse: collapse; }
table.variations tr { display: grid; gap: 6px; margin-bottom: 12px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: start; }
table.variations label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.woocommerce-variation { margin-bottom: 12px; }
.woocommerce-variation-price .price { font-size: 22px; margin: 0; }
.stock { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--ok); }
.stock.out-of-stock { color: var(--err); }
.grouped_form table { width: 100%; margin-bottom: 14px; }
.grouped_form td { padding: 8px 0; vertical-align: middle; }

/* quantity stepper (buttons are added by theme.js) */
.quantity { display: inline-flex; align-items: stretch; flex: none; }
.quantity input.qty {
	width: 64px;
	min-height: 48px;
	padding: 0 4px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tq-qty { border: 1px solid var(--line-2); border-radius: 999px; background: var(--field); overflow: hidden; }
.tq-qty input.qty { width: 44px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tq-qty__btn {
	display: grid;
	place-items: center;
	width: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.tq-qty__btn:active { background: var(--paper); }
form.cart .tq-qty { min-height: 56px; }

.tq-facts--product { margin-top: 18px; color: var(--ink-2); }

.product_meta { display: grid; gap: 4px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.product_meta a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 5px; }
.product_meta .sku_wrapper { display: none; }

.woocommerce-tabs { margin-top: 12px; }
.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 22px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	border-bottom: 1px solid var(--line);
	scrollbar-width: none;
}
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.woocommerce-Tabs-panel { padding: 4px 0 0; }
.woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce-Tabs-panel--additional_information > h2:first-child { display: none; }
.woocommerce-Tabs-panel > :last-child { margin-bottom: 0; }
table.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
table.woocommerce-product-attributes th { width: 34%; font-weight: 600; color: var(--ink-2); }
table.woocommerce-product-attributes p { margin: 0; }

#reviews .commentlist { margin: 0 0 20px; padding: 0; list-style: none; }
#reviews .comment_container { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
#reviews img.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
#reviews .comment-text { flex: 1; min-width: 0; }
#reviews .meta { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
#reviews .description p { margin: 0; }
#review_form .comment-reply-title { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 19px; font-weight: 700; }
#review_form .comment-form p { margin: 0 0 12px; }
#review_form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }

section.related > h2,
section.up-sells > h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); }

@media (min-width: 900px) {
	.tq-product-page { padding-top: 28px; }
	.tq-product-page div.product {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
		column-gap: clamp(28px, 4vw, 64px);
		row-gap: 44px;
		align-items: start;
	}
	.tq-product-page div.product > * { grid-column: 1 / -1; }
	.tq-product-page div.product > .woocommerce-product-gallery { grid-column: 1; }
	.tq-product-page div.product > .summary {
		grid-column: 2;
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
	.admin-bar .tq-product-page div.product > .summary { top: calc(var(--header-h) + 56px); }
}

/* ---------- 14. Pages, steps, cart --------------------------------------- */
.tq-page { padding-top: 22px; }
.tq-page__head { margin-bottom: 18px; }
.tq-page__title { margin: 0; font-size: clamp(30px, 5vw, 46px); }

.tq-steps {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 22px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}
.tq-steps li { display: inline-flex; align-items: center; gap: 6px; }
.tq-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--line-2); }
.tq-steps__n {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--line-2);
	font-size: 12.5px;
	font-weight: 600;
}
.tq-steps__n .tq-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.tq-steps .is-current { color: var(--ink); }
.tq-steps .is-current .tq-steps__n { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.tq-steps .is-done { color: var(--ink-2); }
.tq-steps .is-done .tq-steps__n { border-color: var(--ink); color: var(--ink); }
.tq-steps .is-done + li::before { background: var(--ink); }
@media (min-width: 600px) {
	.tq-steps { gap: 10px; font-size: 13.5px; }
	.tq-steps li { gap: 8px; }
	.tq-steps li + li::before { width: 28px; }
}

.woocommerce-cart .tq-page__content > .woocommerce { display: grid; gap: 18px; }
.woocommerce-cart .tq-page__content > .woocommerce > * { grid-column: 1 / -1; min-width: 0; }

table.shop_table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 15px; }
table.shop_table th, table.shop_table td { padding: 12px 0; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--line); }

/* cart items as cards */
.woocommerce-cart-form__contents,
.woocommerce-cart-form__contents tbody { display: block; }
.woocommerce-cart-form__contents thead { display: none; }
.woocommerce-cart-form__contents tr.cart_item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name remove"
		"thumb price price"
		"thumb qty total";
	align-items: center;
	gap: 2px 14px;
	margin-bottom: 10px;
	padding: 14px;
	border-radius: var(--r-well);
	background: var(--card);
	border: 1px solid var(--line);
}
table.shop_table.woocommerce-cart-form__contents td { display: block; padding: 0; border: 0; }
.woocommerce-cart-form__contents td.product-thumbnail { grid-area: thumb; align-self: start; }
.woocommerce-cart-form__contents td.product-thumbnail img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; background: var(--well); }
.woocommerce-cart-form__contents td.product-name { grid-area: name; font-weight: 600; line-height: 1.55; }
.woocommerce-cart-form__contents td.product-name .variation { margin: 2px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.woocommerce-cart-form__contents td.product-name .variation dt,
.woocommerce-cart-form__contents td.product-name .variation dd { display: inline; margin: 0; }
.woocommerce-cart-form__contents td.product-name .variation dd p { display: inline; margin: 0; }
.woocommerce-cart-form__contents td.product-remove { grid-area: remove; align-self: start; }
.woocommerce-cart-form__contents td.product-price { grid-area: price; font-size: 13.5px; color: var(--muted); }
.woocommerce-cart-form__contents td.product-quantity { grid-area: qty; margin-top: 6px; }
.woocommerce-cart-form__contents td.product-subtotal { grid-area: total; margin-top: 6px; font-weight: 600; text-align: end; }
.woocommerce-cart-form__contents .tq-qty { min-height: 40px; }
.woocommerce-cart-form__contents .tq-qty input.qty { min-height: 40px; width: 40px; }
.woocommerce-cart-form__contents .tq-qty__btn { width: 36px; }
.woocommerce-cart-form__contents tr:not(.cart_item) { display: block; }
table.shop_table.woocommerce-cart-form__contents td.actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 0; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; flex: 1 1 260px; }
.woocommerce-cart-form .coupon .input-text { flex: 1; min-height: 46px; width: auto; }
.woocommerce-cart-form .coupon .button { min-height: 46px; background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.js .woocommerce-cart-form [name="update_cart"] { display: none; }

.cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-billing-fields,
.woocommerce-additional-fields,
.woocommerce-account-fields,
.woocommerce-order-details,
.woocommerce-customer-details,
.woocommerce-MyAccount-content,
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
	padding: 20px;
	border-radius: var(--r-well);
	background: var(--card);
	border: 1px solid var(--line);
}
.cart_totals h2 { margin: 0 0 6px; font-size: 20px; }
.cart_totals table.shop_table th { width: 45%; font-weight: 400; color: var(--ink-2); }
.cart_totals table.shop_table td { text-align: end; }
.cart_totals .order-total th, .cart_totals .order-total td { border-bottom: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
#shipping_method { margin: 0; padding: 0; list-style: none; }
#shipping_method li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 2px 0; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 13px; color: var(--muted); }
.wc-proceed-to-checkout { margin-top: 14px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 16px; }
.cart-empty.woocommerce-info { justify-content: center; padding: 28px 16px; font-size: 16px; }
.return-to-shop { text-align: center; }

@media (min-width: 960px) {
	.woocommerce-cart .tq-page__content > .woocommerce { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; column-gap: 28px; }
	.woocommerce-cart .tq-page__content > .woocommerce > .woocommerce-cart-form { grid-column: 1; }
	.woocommerce-cart .tq-page__content > .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- 15. Checkout ------------------------------------------------- */
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info { background: transparent; border: 1px dashed var(--hair); font-size: 14px; }
form.checkout_coupon { margin: 0 0 18px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
form.checkout_coupon p { margin: 0 0 10px; }
form.checkout_coupon .form-row { display: inline-block; margin: 0; }
form.checkout_coupon .form-row-first { width: calc(100% - 132px); }
form.checkout_coupon .form-row-last { width: 124px; margin-inline-start: 4px; }
form.checkout_coupon .button { width: 100%; min-height: 50px; }

form.checkout { display: grid; gap: 18px; }
form.checkout > * { min-width: 0; }
#customer_details { display: grid; gap: 18px; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
#customer_details .col-2:empty { display: none; }
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3,
#order_review_heading { margin: 0 0 14px; font-size: 21px; }
.woocommerce-additional-fields > h3 { display: none; }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; }
.woocommerce-additional-fields .form-row { margin-bottom: 0; }
#order_review_heading { margin: 4px 0 -4px; }

.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table td { vertical-align: top; }
.woocommerce-checkout-review-order-table td.product-name {
	position: relative;
	min-height: 68px;
	padding-block: 12px;
	padding-inline-start: 66px;
	font-weight: 600;
	line-height: 1.55;
}
.woocommerce-checkout-review-order-table td.product-name .product-quantity { font-weight: 400; color: var(--muted); }
.woocommerce-checkout-review-order-table .variation { margin: 2px 0 0; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.woocommerce-checkout-review-order-table .variation dt,
.woocommerce-checkout-review-order-table .variation dd { display: inline; margin: 0; }
.woocommerce-checkout-review-order-table .variation dd p { display: inline; margin: 0; }
.tq-review-thumb {
	position: absolute;
	top: 12px;
	inset-inline-start: 0;
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 12px;
	background: var(--well);
}
.woocommerce-checkout-review-order-table td.product-total { padding-top: 12px; text-align: end; white-space: nowrap; font-weight: 600; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 400; color: var(--ink-2); }
.woocommerce-checkout-review-order-table tfoot td { text-align: end; font-weight: 600; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; font-size: 19px; font-weight: 600; color: var(--ink); }

#payment { margin-top: 10px; }
#payment ul.payment_methods { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
#payment ul.payment_methods li {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--field);
	border: 1px solid var(--accent);
}
#payment ul.payment_methods li label { display: inline; font-weight: 600; cursor: pointer; }
#payment ul.payment_methods li input[type="radio"] { margin-inline-end: 8px; }
#payment ul.payment_methods li img { display: inline-block; max-height: 24px; vertical-align: middle; }
#payment .payment_box { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
#payment .payment_box p { margin: 0; }
#payment .place-order { margin: 0; padding: 0; }
#place_order { width: 100%; min-height: 58px; font-size: 17px; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.woocommerce-privacy-policy-text p { margin: 0 0 12px; }
.woocommerce-privacy-policy-text a { text-decoration: underline; }
.woocommerce-NoticeGroup-checkout { grid-column: 1 / -1; }

@media (min-width: 560px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.woocommerce-billing-fields__field-wrapper > .form-row-wide,
	.woocommerce-shipping-fields__field-wrapper > .form-row-wide,
	.woocommerce-address-fields__field-wrapper > .form-row-wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	form.checkout { grid-template-columns: minmax(0, 1fr) 410px; grid-template-rows: auto 1fr; align-items: start; column-gap: 28px; }
	form.checkout:has(> .woocommerce-NoticeGroup) { grid-template-rows: auto auto 1fr; }
	form.checkout > * { grid-column: 1 / -1; }
	form.checkout > #customer_details { grid-column: 1; grid-row: span 2; }
	form.checkout > #order_review_heading { grid-column: 2; margin: 0; }
	form.checkout > #order_review { grid-column: 2; position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- 16. Order received ------------------------------------------- */
.woocommerce-order { display: grid; gap: 16px; }
.woocommerce-thankyou-order-received {
	position: relative;
	margin: 0;
	padding: 96px 20px 28px;
	border-radius: var(--r-well);
	background: var(--card);
	border: 1px solid var(--line);
	font-family: var(--display);
	font-size: clamp(19px, 3vw, 24px);
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}
.woocommerce-thankyou-order-received::before {
	content: "";
	position: absolute;
	top: 26px;
	left: 50%;
	width: 56px;
	height: 56px;
	margin-left: -28px;
	border-radius: 50%;
	background: var(--accent);
}
.woocommerce-thankyou-order-received::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 12px;
	height: 22px;
	margin-left: -6px;
	border: solid var(--accent-ink);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}
ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.woocommerce-order-overview li {
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}
ul.woocommerce-order-overview li strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
@media (min-width: 760px) { ul.woocommerce-order-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.woocommerce-order-details__title,
.woocommerce-column__title { font-size: 20px; margin: 0 0 8px; }
.woocommerce-order > p:not(.woocommerce-thankyou-order-received) { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.woocommerce-customer-details address { font-style: normal; line-height: 1.9; }
.woocommerce-customer-details--phone, .woocommerce-customer-details--email { margin: 4px 0 0; }

/* ---------- 17. My account ----------------------------------------------- */
.woocommerce-account .tq-page__content > .woocommerce { display: grid; gap: 18px; }
.woocommerce-MyAccount-navigation ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0 0 4px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.woocommerce-MyAccount-content a:not(.button) { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 5px; }
#customer_login { display: grid; gap: 18px; }
#customer_login h2 { font-size: 22px; }
.woocommerce-form-login .button, .woocommerce-form-register .button { width: 100%; margin-top: 6px; }
.woocommerce-LostPassword { margin: 12px 0 0; font-size: 14px; }
@media (min-width: 860px) {
	#customer_login.col2-set { grid-template-columns: 1fr 1fr; }
	.woocommerce-account .tq-page__content > .woocommerce { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
	.woocommerce-MyAccount-navigation ul { flex-direction: column; }
}
@media (max-width: 760px) {
	table.shop_table_responsive.woocommerce-orders-table thead,
	table.shop_table_responsive.my_account_orders thead { display: none; }
	table.shop_table_responsive.woocommerce-orders-table tr,
	table.shop_table_responsive.my_account_orders tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
	table.shop_table_responsive.woocommerce-orders-table td,
	table.shop_table_responsive.my_account_orders td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: end; }
	table.shop_table_responsive.woocommerce-orders-table td::before,
	table.shop_table_responsive.my_account_orders td::before { content: attr(data-title); font-weight: 600; color: var(--ink-2); text-align: start; }
}

/* ---------- 18. Text pages ----------------------------------------------- */
.tq-prose { max-width: 72ch; }
.tq-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.tq-prose h2 { margin-top: 1.6em; font-size: 28px; }
.tq-prose h3 { margin-top: 1.4em; font-size: 22px; }
.tq-prose img { border-radius: var(--r-well); }
.tq-prose blockquote { margin: 1.5em 0; padding-inline-start: 18px; border-inline-start: 2px solid var(--accent); color: var(--ink-2); }
.tq-post__thumb { margin: 0 0 20px; border-radius: var(--r-well); }
.tq-posts { display: grid; gap: 12px; }
.tq-post-card { padding: 20px; border-radius: var(--r-well); background: var(--card); border: 1px solid var(--line); }
.tq-post-card__title { margin: 0 0 6px; font-size: 22px; }
.tq-post-card__excerpt p { margin: 0; color: var(--ink-2); }
.tq-comments { margin-top: 40px; max-width: 72ch; }
.tq-comments__list { padding: 0; list-style: none; }
.search-form { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.search-form label { flex: 1; }

/* ---------- 19. Motion ---------------------------------------------------- */
@keyframes tq-spin { to { transform: rotate(360deg); } }
@keyframes tq-bump { 0%, 100% { transform: none; } 40% { transform: scale(1.35); } }

/* Gentle cross-fade between pages (Chrome / Edge / Safari 18.2+); others just navigate. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tq-vt-out .2s ease both; }
::view-transition-new(root) { animation: tq-vt-in .32s var(--ease) both; }
@keyframes tq-vt-out { to { opacity: 0; } }
@keyframes tq-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Day ↔ night: the new mode opens as a circle from the toggle (theme.js drives the circle). */
html.tq-theming .tq-header { view-transition-name: none; }
html.tq-theming::view-transition-old(root),
html.tq-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.tq-theming::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
	.tq-print__mover, .tq-print__inner { transform: none; animation: none; }
	.tq-gantry { display: none; }
	.tq-sheen { animation: none; }
	.tq-print.is-pressed { animation: none; }
	.tq-scene__hint { opacity: 1; animation: none; }
	.tq-cart-toggle.is-bump .tq-cart-count { animation: none; }
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
