/*
Theme Name: Torobino
Theme URI: https://torobino.ir
Author: Torobino
Author URI: https://torobino.ir
Description: قالب اختصاصی ترب‌ینو — کلاسیک، راست‌چین، بدون page builder.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: torobino
*/

/* پایه — فقط توکن‌های --tb-*؛ مقدار خام رنگ و فاصله مجاز نیست. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--tb-color-bg);
	color: var(--tb-color-text);
	font-family: var(--tb-font);
	font-size: var(--tb-fs-body);
	line-height: var(--tb-lh-body);
}

a {
	color: var(--tb-color-brand-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--tb-color-brand-hover);
}

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

.tb-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--tb-space-2);
}

.tb-site-header {
	position: relative;
	z-index: 50;
	background: var(--tb-color-surface);
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-site-header__inner {
	display: flex;
	align-items: center;
	padding-block: var(--tb-space-2);
}

.tb-site-title,
.tb-site-logo {
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-site-logo {
	display: inline-flex;
}

.tb-site-title {
	font-size: var(--tb-fs-h3);
	font-weight: var(--tb-fw-extrabold);
}

.tb-site-title:hover,
.tb-site-logo:hover {
	color: var(--tb-color-brand-text);
}

.tb-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	font-size: calc(var(--tb-logo-size, 29px) * 0.76);
	font-weight: var(--tb-fw-black);
	line-height: 1;
	color: var(--tb-logo-text);
}

.tb-logo__mark {
	display: inline-flex;
	flex: 0 0 auto;
}

.tb-logo__mark svg {
	display: block;
	width: var(--tb-logo-size, 29px);
	height: var(--tb-logo-size, 29px);
}

.tb-num {
	font-family: var(--tb-font-num);
	font-feature-settings: var(--tb-num-features);
}

.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--tb-btn-height);
	padding-inline: var(--tb-space-3);
	border: 0;
	border-radius: var(--tb-btn-radius);
	font-family: var(--tb-font);
	font-size: 16px;
	font-weight: var(--tb-fw-bold);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--tb-dur) var(--tb-ease), transform var(--tb-dur-fast) var(--tb-ease);
}

.tb-btn:active {
	transform: scale(var(--tb-press-scale));
}

.tb-btn--primary {
	background: var(--tb-btn-primary-bg);
	color: var(--tb-btn-primary-text);
	box-shadow: var(--tb-btn-primary-shadow);
}

.tb-btn--primary:hover {
	background: var(--tb-btn-primary-bg-hover);
	color: var(--tb-btn-primary-text);
}

.tb-btn--secondary {
	height: 40px;
	padding-inline: var(--tb-space-2);
	border-radius: var(--tb-radius-sm);
	font-size: 14px;
	background: var(--tb-color-surface);
	color: var(--tb-color-brand-text);
	box-shadow: inset 0 0 0 1.5px var(--tb-color-brand);
}

.tb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-block: 0 var(--tb-space-2);
}

.tb-field label {
	font-size: var(--tb-fs-sm);
	font-weight: var(--tb-fw-semibold);
}

.tb-field input,
.tb-field textarea,
.tb-field select {
	width: 100%;
	padding: 10px var(--tb-space-2);
	border: 0;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	font-family: var(--tb-font);
	font-size: var(--tb-fs-body);
}

.tb-field textarea {
	resize: vertical;
}

.tb-main {
	padding-block: var(--tb-space-4);
}

.tb-site-footer {
	background: var(--tb-color-surface);
	border-top: 1px solid var(--tb-color-line);
	color: var(--tb-color-text-muted);
	font-size: var(--tb-fs-sm);
}

.tb-site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--tb-space-1);
	padding-block: var(--tb-space-3);
}

.tb-card {
	background: var(--tb-card-bg);
	border-radius: var(--tb-card-radius);
	box-shadow: var(--tb-card-shadow);
	padding: var(--tb-card-pad);
}

.tb-entry-title {
	font-size: var(--tb-fs-h2);
	line-height: var(--tb-lh-h2);
}

.tb-empty {
	color: var(--tb-color-text-muted);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	padding: var(--tb-space-1);
	background: var(--tb-color-surface);
	color: var(--tb-color-text);
	z-index: 100000;
}

/* ---------- Badges (shared) ---------- */

.tb-badge {
	font-size: var(--tb-fs-sm);
	font-weight: var(--tb-fw-semibold);
	padding: 4px var(--tb-space-1);
	border-radius: var(--tb-badge-radius);
}

.tb-badge--in {
	background: var(--tb-stock-in-bg);
	color: var(--tb-stock-in-text);
}

.tb-badge--out {
	background: var(--tb-stock-out-bg);
	color: var(--tb-stock-out-text);
}

.tb-badge--verified {
	background: var(--tb-color-success-soft);
	color: var(--tb-color-success);
	font-size: 12px;
}

/* ---------- Trust block (shared) ---------- */

.tb-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tb-space-2);
	background: var(--tb-color-surface);
	border-radius: var(--tb-radius);
	padding: var(--tb-space-3);
}

@media (min-width: 768px) {
	.tb-trust--no-symbol {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--tb-space-4);
		align-items: center;
	}

	.tb-trust--with-symbol {
		grid-template-columns: auto repeat(3, minmax(0, 1fr));
		gap: var(--tb-space-4);
		align-items: center;
	}

	.tb-trust--with-symbol .tb-trust__item:not(.tb-trust__item--enamad) {
		border-inline-start: 1px solid var(--tb-color-line);
		padding-inline-start: var(--tb-space-3);
	}

	.tb-trust__title {
		font-size: 15px;
	}
}

.tb-trust__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: var(--tb-fs-sm);
	min-width: 0;
}

.tb-trust__title {
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-text);
}

.tb-trust__title a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tb-trust__note {
	color: var(--tb-color-text-muted);
	text-decoration: none;
}

.tb-trust__item--enamad img {
	max-width: 72px;
	height: auto;
}

.tb-trust__item--enamad {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
}

/* ---------- Product card (shared) ---------- */

.tb-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: var(--tb-space-2);
	background: var(--tb-card-bg);
	border-radius: var(--tb-card-radius);
	padding: var(--tb-card-pad);
	box-shadow: var(--tb-card-shadow);
	color: var(--tb-color-text);
	text-decoration: none;
	transition: transform var(--tb-dur) var(--tb-ease), box-shadow var(--tb-dur) var(--tb-ease);
}

.tb-product-card:hover {
	transform: translateY(var(--tb-lift));
	box-shadow: var(--tb-card-shadow-hover);
	color: var(--tb-color-text);
}

.tb-product-card__image {
	aspect-ratio: 4 / 3;
	border-radius: var(--tb-radius);
	background: var(--tb-color-surface-2);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.tb-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tb-product-card__image--empty {
	color: var(--tb-color-text-muted);
}

.tb-product-card__image-label {
	font-size: var(--tb-fs-sm);
}

.tb-product-card__title {
	margin: 0;
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
	line-height: var(--tb-lh-product-title);
	min-height: calc(3.4em);
	text-wrap: pretty;
}

.tb-product-card__meta {
	display: flex;
	align-items: center;
	gap: var(--tb-space-1);
	flex-wrap: wrap;
}

.tb-product-card__ship {
	font-size: var(--tb-fs-sm);
	color: var(--tb-color-text-muted);
}

.tb-product-card__prices {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-half);
	min-height: 60px;
	justify-content: flex-end;
	margin-top: auto;
}

.tb-product-card__old {
	color: var(--tb-price-old-text);
	font-size: var(--tb-fs-price-old);
}

.tb-product-card__price {
	display: flex;
	align-items: baseline;
	gap: var(--tb-space-half);
}

.tb-product-card__price .tb-num {
	font-size: 20px;
	font-weight: var(--tb-fw-price);
	color: var(--tb-price-text);
}

.tb-product-card__unit {
	font-size: var(--tb-fs-sm);
	font-weight: var(--tb-fw-medium);
	color: var(--tb-price-unit-text);
}

/* ---------- Header ---------- */

.tb-header {
	display: flex;
	align-items: center;
	gap: var(--tb-space-3);
	flex-wrap: nowrap;
	min-height: 72px;
	padding-block: 0;
}

.tb-header__search {
	flex: 1 1 0;
	max-width: 560px;
	min-width: 0;
}

.tb-header__search .tb-search {
	height: 48px;
	background: var(--tb-color-surface-2);
	box-shadow: none;
}

.tb-header__nav {
	display: flex;
	align-items: center;
	gap: var(--tb-space-1);
	margin-inline-start: auto;
	flex: 0 0 auto;
}

.tb-header__icons {
	display: none;
}

.tb-header__link {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding-inline: var(--tb-space-2);
	font-size: 14px;
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-text);
	text-decoration: none;
	border-radius: var(--tb-radius-sm);
}

.tb-header__cart {
	display: inline-flex;
	align-items: center;
	gap: var(--tb-space-1);
	height: 44px;
	padding-inline: var(--tb-space-2);
	border-radius: var(--tb-radius);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	color: var(--tb-color-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
}

.tb-header__cart-count {
	min-width: 20px;
	height: 20px;
	padding-inline: 4px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-brand);
	color: var(--tb-color-on-brand);
	font-size: 12px;
	display: grid;
	place-items: center;
}

.tb-header__icon {
	position: relative;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-header__icon:hover {
	color: var(--tb-color-text);
}

.tb-header__cart-badge {
	position: absolute;
	top: 6px;
	inset-inline-end: 4px;
	min-width: 18px;
	height: 18px;
	padding-inline: 4px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-brand);
	color: var(--tb-color-on-brand);
	font-size: 11px;
	font-weight: var(--tb-fw-bold);
	display: grid;
	place-items: center;
}

.tb-search {
	display: flex;
	align-items: center;
	gap: var(--tb-space-1);
	height: 48px;
	padding-inline: var(--tb-space-1) var(--tb-space-2);
	border-radius: var(--tb-radius);
	background: var(--tb-color-surface);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
}

.tb-search__input {
	flex: 1 1 0%;
	min-width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	font-family: var(--tb-font);
	font-size: var(--tb-fs-body);
	color: var(--tb-color-text);
}

.tb-search__input:focus {
	outline: none;
}

.tb-search__input::placeholder {
	color: var(--tb-color-text-muted);
}

.tb-search__button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-brand-soft);
	color: var(--tb-color-brand-text);
	cursor: pointer;
	flex: 0 0 auto;
}

/* ---------- Footer ---------- */

.tb-footer {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-3);
	padding-block: var(--tb-space-5) var(--tb-space-3);
}

.tb-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tb-space-3);
	align-items: start;
}

.tb-footer__col {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-half);
	min-width: 0;
}

.tb-footer__col--brand {
	gap: var(--tb-space-2);
}

.tb-footer__identity {
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-1);
	font-size: 14px;
	line-height: var(--tb-lh-body);
}

.tb-footer__identity-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.tb-footer__legal {
	font-weight: var(--tb-fw-semibold);
	color: var(--tb-color-text);
}

.tb-footer__muted {
	color: var(--tb-color-text-muted);
}

.tb-footer__phone {
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-footer__support {
	color: var(--tb-color-brand-text);
	font-weight: var(--tb-fw-bold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tb-footer__heading {
	margin: 0 0 var(--tb-space-half);
	font-size: 15px;
	font-weight: var(--tb-fw-extrabold);
}

.tb-footer__heading--social {
	margin-top: var(--tb-space-1);
}

.tb-footer__col a {
	display: flex;
	align-items: center;
	min-height: 40px;
	font-size: 14px;
	color: var(--tb-color-text);
	text-decoration: none;
}

.tb-footer__col a:hover {
	color: var(--tb-color-brand-text);
}

.tb-footer__symbols {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tb-footer__symbols img {
	max-width: 88px;
	height: auto;
}

.tb-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tb-space-1);
}

.tb-footer__socials a {
	min-height: 32px;
	padding-inline: var(--tb-space-1);
	border-radius: var(--tb-radius-sm);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	font-size: 13px;
}

.tb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--tb-space-1) var(--tb-space-3);
	padding-top: var(--tb-space-2);
	border-top: 1px solid var(--tb-color-line);
	font-size: 13px;
	line-height: var(--tb-lh-body);
}

.tb-footer__disclaimer {
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-text);
}

.tb-footer__copy {
	color: var(--tb-color-text-muted);
}

@media (min-width: 768px) {
	.tb-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--tb-space-3) var(--tb-space-4);
	}
}

@media (min-width: 1024px) {
	.tb-footer__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
	}
}

.tb-footer__all-cats {
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
}

/* ---------- C8 demo preview bar ---------- */

.tb-demo-bar {
	padding: var(--tb-space-1) var(--tb-space-2);
	background: var(--tb-color-warning-soft);
	color: var(--tb-color-warning);
	border-bottom: 1px solid var(--tb-amber-300);
	font-size: var(--tb-fs-sm);
	font-weight: var(--tb-fw-medium);
	line-height: var(--tb-lh-sm);
	text-align: center;
}

/* ---------- Generic page ---------- */

.tb-page__title {
	margin: 0 0 var(--tb-space-2);
	font-size: var(--tb-fs-h1);
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h1);
}

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

@media (min-width: 768px) {
	.tb-header .tb-logo {
		--tb-logo-size: 34px !important;
	}
}

@media (max-width: 767px) {
	.tb-header {
		min-height: 56px;
		padding-inline: var(--tb-space-2);
		gap: var(--tb-space-1);
	}

	.tb-header__search {
		display: none;
	}

	.tb-header--search .tb-header__search {
		display: block;
		flex: 1 1 100%;
		max-width: none;
	}

	.tb-header--search .tb-header__search .tb-search {
		height: 40px;
	}

	.tb-header--search .tb-site-logo,
	.tb-header--search .tb-header__nav,
	.tb-header--404 .tb-header__nav {
		display: none;
	}

	.tb-header__link--track,
	.tb-header__cart--desktop {
		display: none;
	}

	.tb-header__link--help {
		padding-inline: var(--tb-space-1);
		font-size: 13px;
	}

	.tb-header__icons {
		display: flex;
		align-items: center;
		gap: 0;
	}

	.tb-header__cart-badge {
		top: 5px;
		inset-inline-end: 3px;
	}

	.tb-header--search .tb-header__menu-toggle,
	.tb-header--404 .tb-header__menu-toggle {
		display: none;
	}
}

/* ---------- Header category navigation (C9.1) ---------- */

.tb-header__menu-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-color-text);
	text-decoration: none;
	flex: 0 0 auto;
}

.tb-header__menu-toggle:hover {
	color: var(--tb-color-text);
}

.tb-header__cat-toggle {
	display: none;
	align-items: center;
	gap: var(--tb-space-1);
	height: 48px;
	padding-inline: var(--tb-space-2);
	border-radius: var(--tb-radius);
	background: var(--tb-color-surface-2);
	color: var(--tb-color-text);
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
}

.tb-header__cat-toggle[aria-expanded="true"] {
	background: var(--tb-color-brand-soft);
	color: var(--tb-color-brand-text);
}

.tb-header__menu-toggle:focus-visible,
.tb-header__cat-toggle:focus-visible,
.tb-cat-menu a:focus-visible,
.tb-cat-menu button:focus-visible,
.tb-cat-drawer a:focus-visible,
.tb-cat-drawer button:focus-visible {
	outline: none;
	box-shadow: var(--tb-focus-ring);
}

/* Desktop mega menu */

.tb-cat-menu {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	z-index: 60;
}

.tb-cat-menu[hidden],
.tb-cat-menu__panel[hidden],
.tb-cat-drawer[hidden],
.tb-cat-drawer__panel[hidden] {
	display: none;
}

.tb-cat-menu__backdrop {
	position: fixed;
	inset: 73px 0 0;
	background: rgb(12 15 26 / .45);
}

.tb-cat-menu__dialog {
	position: relative;
	z-index: 1;
	width: calc(100% - 2 * var(--tb-space-2));
	max-width: 1200px;
	margin: var(--tb-space-1) auto 0;
	background: var(--tb-color-surface);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-3);
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	overflow: hidden;
}

.tb-cat-menu__list {
	margin: 0;
	padding: var(--tb-space-2);
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--tb-color-surface-2);
}

.tb-cat-menu__item {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	padding-inline: 12px;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-color-text);
	font-size: 14px;
	font-weight: var(--tb-fw-medium);
	text-decoration: none;
}

.tb-cat-menu__item svg {
	flex: 0 0 auto;
	color: var(--tb-color-text-muted);
}

.tb-cat-menu__item.is-active,
.tb-cat-menu__item:hover {
	background: var(--tb-color-surface);
	color: var(--tb-color-brand-text);
	font-weight: var(--tb-fw-bold);
}

.tb-cat-menu__panels {
	min-width: 0;
}

.tb-cat-menu__panel {
	padding: var(--tb-space-3) var(--tb-space-4);
	display: flex;
	flex-direction: column;
	gap: var(--tb-space-2);
}

.tb-cat-menu__panel-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--tb-space-2);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-cat-menu__panel-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: var(--tb-fw-extrabold);
	line-height: var(--tb-lh-h3);
}

.tb-cat-menu__all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
	text-decoration: none;
}

.tb-cat-menu__cats {
	column-count: var(--tb-cat-cols, 3);
	column-gap: var(--tb-space-4);
}

.tb-cat-menu__cat {
	break-inside: avoid;
	display: flex;
	flex-direction: column;
	padding-bottom: 20px;
}

.tb-cat-menu__cat-title {
	margin: 0;
}

.tb-cat-menu__cat-title a {
	min-height: 36px;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--tb-color-text);
	font-size: 15px;
	font-weight: var(--tb-fw-extrabold);
	text-decoration: none;
}

.tb-cat-menu__cat-title a::before {
	content: "";
	width: 3px;
	height: 16px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-brand);
	flex: 0 0 auto;
}

.tb-cat-menu__subs {
	margin: 0;
	padding: 0 9px 0 0;
	list-style: none;
	display: flex;
	flex-direction: column;
}

.tb-cat-menu__subs a {
	min-height: 34px;
	display: flex;
	align-items: center;
	color: var(--tb-color-text-muted);
	font-size: 14px;
	text-decoration: none;
}

.tb-cat-menu__subs a:hover {
	color: var(--tb-color-brand-text);
}

.tb-cat-menu__more {
	min-height: 34px;
	display: flex;
	align-items: center;
	color: var(--tb-color-brand-text);
	font-size: 13px;
	font-weight: var(--tb-fw-bold);
	text-decoration: none;
}

@media (max-width: 1199px) {
	.tb-cat-menu__cats {
		column-count: 2;
	}
}

.tb-cat-menu__children {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px var(--tb-space-3);
}

.tb-cat-menu__children a {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-text);
	font-size: 15px;
	text-decoration: none;
}

.tb-cat-menu__count {
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-cat-menu__foot {
	margin-top: auto;
	padding-top: var(--tb-space-1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--tb-space-2);
	font-size: 13px;
	color: var(--tb-color-text-muted);
}

.tb-cat-menu__foot a {
	font-size: 14px;
	font-weight: var(--tb-fw-bold);
	color: var(--tb-color-brand-text);
	text-decoration: none;
}

.tb-cat-menu__foot kbd {
	display: inline-block;
	padding: 1px 5px;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
	box-shadow: inset 0 0 0 1px var(--tb-color-line);
	font-family: var(--tb-font-num);
	font-size: 12px;
}

/* Mobile drawer */

.tb-cat-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--tb-color-surface);
}

.tb-cat-drawer__dialog {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tb-cat-drawer__levels {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tb-cat-drawer__panel {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.tb-cat-drawer__head {
	height: 56px;
	flex: 0 0 auto;
	padding-inline: var(--tb-space-1);
	display: flex;
	align-items: center;
	gap: 4px;
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-cat-drawer__back,
.tb-cat-drawer__close {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: var(--tb-radius-sm);
	background: transparent;
	color: var(--tb-color-text);
	cursor: pointer;
}

.tb-cat-drawer__heading {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding-inline: 4px;
}

.tb-cat-drawer__eyebrow {
	font-size: 12px;
	color: var(--tb-color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tb-cat-drawer__title {
	margin: 0;
	font-size: 16px;
	font-weight: var(--tb-fw-extrabold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tb-cat-drawer__body {
	flex: 1 1 0;
	min-height: 0;
	overflow-y: auto;
	padding: var(--tb-space-1) var(--tb-space-2);
}

.tb-cat-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-cat-drawer__group {
	border-bottom: 1px solid var(--tb-color-line);
}

.tb-cat-drawer__toggle {
	width: 100%;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tb-color-text);
	font-family: var(--tb-font);
	font-size: 15px;
	font-weight: var(--tb-fw-medium);
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.tb-cat-drawer__toggle[aria-expanded="true"] {
	font-weight: var(--tb-fw-bold);
}

.tb-cat-drawer__toggle svg {
	flex: 0 0 auto;
	color: var(--tb-color-text-muted);
	transition: transform var(--tb-dur) var(--tb-ease);
}

.tb-cat-drawer__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.tb-cat-drawer__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tb-color-text-muted);
	font-size: 13px;
	flex: 0 0 auto;
}

.tb-cat-drawer__toggle svg {
	color: var(--tb-color-text-muted);
}

.tb-cat-drawer__all-cats {
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tb-space-1);
	border-bottom: 1px solid var(--tb-color-line);
	color: var(--tb-color-brand-text);
	font-size: 15px;
	font-weight: var(--tb-fw-bold);
	text-decoration: none;
}

.tb-cat-drawer__all-cats svg {
	flex: 0 0 auto;
}

.tb-cat-drawer__quick {
	flex: 0 0 auto;
	padding: var(--tb-space-1) var(--tb-space-2) var(--tb-space-2);
	border-top: 1px solid var(--tb-color-line);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tb-space-1);
}

.tb-cat-drawer__quick a,
.tb-cat-drawer__quick span {
	min-height: 44px;
	display: grid;
	place-items: center;
	border-radius: var(--tb-radius-sm);
	background: var(--tb-color-surface-2);
	color: var(--tb-color-text);
	font-size: 13px;
	font-weight: var(--tb-fw-semibold);
	text-decoration: none;
	text-align: center;
}

body.tb-nav-open {
	overflow: hidden;
}

@media (min-width: 768px) {
	.tb-header__menu-toggle {
		display: none;
	}

	.tb-header__cat-toggle {
		display: inline-flex;
	}

	.tb-cat-drawer {
		display: none;
	}
}

@media (max-width: 767px) {
	.tb-cat-menu {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.tb-cat-menu__children {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
