.bluegam-home-category-sections {
	background-color: color-mix(in srgb, var(--wp--preset--color--surface-soft) 62%, var(--wp--preset--color--surface));
	direction: rtl;
	inline-size: 100%;
	margin-block: 0;
	min-inline-size: 0;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--80);
}

.bluegam-home-category-sections__shell {
	display: grid;
	gap: clamp(var(--wp--preset--spacing--80), 5vw, var(--wp--preset--spacing--100));
	inline-size: 100%;
	margin-inline: auto;
	max-inline-size: var(--wp--style--global--wide-size);
	min-inline-size: 0;
	padding-inline: var(--wp--custom--layout--container-padding--desktop);
}

.bluegam-home-category-section {
	min-inline-size: 0;
}

.bluegam-home-category-section__header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-block-end: var(--wp--preset--spacing--40);
}

.bluegam-home-category-section__title {
	color: var(--wp--preset--color--text-primary);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
	margin: 0;
}

.bluegam-home-category-section__all {
	align-items: center;
	color: var(--wp--preset--color--primary);
	display: inline-flex;
	font-size: 14px;
	font-weight: 750;
	gap: 4px;
	min-block-size: 44px;
	text-decoration: none;
}

.bluegam-home-category-section__all:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bluegam-home-category-section__all:focus-visible,
.bluegam-home-category-section__tab:focus-visible {
	border-radius: 10px;
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.bluegam-home-category-section__tabs {
	-webkit-overflow-scrolling: touch;
	display: flex;
	gap: 12px;
	inline-size: 100%;
	margin-block-end: var(--wp--preset--spacing--50);
	min-inline-size: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding-block-end: 4px;
	scroll-snap-type: inline proximity;
	scrollbar-width: none;
}

.bluegam-home-category-section__tabs::-webkit-scrollbar {
	display: none;
}

.bluegam-home-category-section__tab {
	align-items: center;
	appearance: none;
	background-color: color-mix(in srgb, var(--wp--preset--color--border) 62%, transparent);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	color: var(--wp--preset--color--text-secondary);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 14px;
	font-weight: 650;
	justify-content: center;
	min-block-size: 44px;
	min-inline-size: 120px;
	padding-inline: var(--wp--preset--spacing--50);
	scroll-snap-align: start;
	text-decoration: none;
}

.bluegam-home-category-section__tab[aria-selected="true"] {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-weight: 750;
}

.bluegam-home-category-section__tab:not([aria-selected="true"]):not(:disabled):hover {
	background-color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--blue-200);
	color: var(--wp--preset--color--primary);
}

.bluegam-home-category-section__tab:disabled {
	cursor: not-allowed;
	opacity: 0.62;
}

.bluegam-home-category-section__products,
.bluegam-home-category-section__collection {
	min-inline-size: 0;
}

.bluegam-home-category-section__collection .wp-block-post-title {
	block-size: 40px;
	font-size: 14px;
	line-height: 20px;
	max-block-size: 40px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bluegam-home-category-section__empty {
	background-color: color-mix(in srgb, var(--wp--preset--color--blue-50) 68%, var(--wp--preset--color--surface));
	border: 1px dashed var(--wp--preset--color--blue-200);
	border-radius: 10px;
	color: var(--wp--preset--color--text-muted);
	font-size: 14px;
	margin: 0;
	padding: var(--wp--preset--spacing--60);
	text-align: center;
}

.bluegam-home-category-section__empty[hidden],
.bluegam-home-category-section__collection .wc-block-product[hidden],
.bluegam-home-category-section__collection .wc-block-product-template[hidden] {
	display: none;
}

@media (max-width: 1024px) {
	.bluegam-home-category-sections__shell {
		padding-inline: var(--wp--custom--layout--container-padding--tablet);
	}
}

@media (max-width: 600px) {
	.bluegam-home-category-sections {
		padding-block: var(--wp--preset--spacing--60);
	}

	.bluegam-home-category-sections__shell {
		gap: var(--wp--preset--spacing--80);
		padding-inline: var(--wp--custom--layout--container-padding--mobile);
	}

	.bluegam-home-category-section__header {
		margin-block-end: var(--wp--preset--spacing--30);
	}

	.bluegam-home-category-section__title {
		font-size: 16px;
	}

	.bluegam-home-category-section__all {
		font-size: 12px;
		min-block-size: 44px;
	}

	.bluegam-home-category-section__tabs {
		gap: 8px;
		margin-block-end: var(--wp--preset--spacing--40);
	}

	.bluegam-home-category-section__tab {
		border-radius: 8px;
		font-size: 12px;
		font-weight: 700;
		min-block-size: 40px;
		min-inline-size: 96px;
		padding-inline: var(--wp--preset--spacing--40);
	}

	.bluegam-home-category-section__collection .wp-block-post-title {
		block-size: 36px;
		font-size: 11px;
		line-height: 18px;
		max-block-size: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bluegam-home-category-section__tabs {
		scroll-behavior: auto;
	}
}
