/* =============================================================================
   Category Tile — WooCommerce product_cat card (618:8702)
   Desktop: 322×180px  ·  Mobile: 164×100px (horizontal-scroll grid)
   Full-bleed image with rgba(0,0,0,0.2) scrim + centred ExtraBold label.
   ============================================================================= */

.category-tile {
	display: block;
	position: relative;
	height: 180px;
	border-radius: var(--r-sm);
	overflow: hidden;
	text-decoration: none;
}

/* Mobile: fixed width for horizontal scroll container */
@media (max-width: 767px) {
	.category-tile {
		width: 164px;
		height: 100px;
		flex-shrink: 0;
	}
}

.category-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	border-radius: var(--r-sm);
}

/* Always-on scrim — 20% black as designed */
.category-tile__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	border-radius: var(--r-sm);
	transition: background var(--dur-fast) linear;
}

@media (hover: hover) and (pointer: fine) {
	.category-tile:hover .category-tile__overlay {
		background: rgba(0, 0, 0, 0.35);
	}
}

@media (prefers-reduced-motion: reduce) {
	.category-tile__overlay {
		transition: none;
	}
}

/* Category label — t-body-exbold (Lato ExtraBold 16px / 20.2px) */
.category-tile__name {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
	color: var(--fig-siegel-white);
	padding: 0 12px;
}

.category-tile:focus-visible {
	outline: 2px solid var(--btn-stroke-focused);
	outline-offset: 2px;
}
