/* Shop Tabs — sticky category tab bar on the category archives and product
   pages (design.md §Category page). Same tab language as the shop catalog's
   tabs, on the ink band with a #30302e rule. */

.tt-shop-tabs {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	border-bottom: 1px solid #30302e;
	background: var(--wp--preset--color--ink, #141412);
}

.tt-shop-tabs__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	height: 64px;
	padding-inline: calc(50px + var(--tt-bleed));
}

.tt-shop-tabs__list {
	display: flex;
	gap: 36px;
	height: 100%;
}

.tt-shop-tabs__tab {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
	white-space: nowrap;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
	transition: color 0.25s ease;
}

.tt-shop-tabs__tab::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: var(--wp--preset--color--red, #cf2026);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.tt-shop-tabs__tab:hover,
.tt-shop-tabs__tab--active {
	color: #fff !important;
}

.tt-shop-tabs__tab:hover::after,
.tt-shop-tabs__tab--active::after {
	transform: scaleX(1);
}

/* Underline grows in from the left as the text turns white (the export's
   ft-text-link, shared with the breadcrumbs). */
.tt-shop-tabs__all,
.tt-text-link {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--wp--preset--color--grey-light, #adadad) !important;
	background: linear-gradient(currentColor, currentColor) left calc(100% - 1px) / 0 1px no-repeat;
	transition: color 0.25s ease, background-size 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-shop-tabs__all:hover,
.tt-text-link:hover {
	color: #fff !important;
	background-size: 100% 1px;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 1099px) {
	.tt-shop-tabs__inner {
		height: 52px;
		padding-inline: 0;
	}

	.tt-shop-tabs__list {
		gap: 26px;
		width: 100%;
		padding-inline: 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.tt-shop-tabs__list::-webkit-scrollbar {
		display: none;
	}

	.tt-shop-tabs__list::after {
		content: "";
		flex: 0 0 1px;
	}

	.tt-shop-tabs__tab {
		flex-shrink: 0;
		font-size: 13px;
	}

	.tt-shop-tabs__tab::after {
		bottom: 0;
	}

	.tt-shop-tabs__all {
		display: none;
	}
}
