/* DKLens category drill-down: subcategory tiles + manufacturer logos */

.dkdd {
	margin: 0 0 30px;
}

.dkdd-block {
	margin: 0 0 26px;
}

.dkdd-block__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: #777;
	text-transform: none;
}

/* --- Tiles ------------------------------------------------------------- */
.dkdd-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}

.dkdd-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 16px 12px 14px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	text-align: center;
	color: #333;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.dkdd-tile:hover,
.dkdd-tile:focus-visible {
	border-color: var(--wd-primary-color, #e8561c);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
	color: #111;
}

.dkdd-tile__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 110px;
}

.dkdd-tile__img img {
	max-width: 100%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dkdd-tile__img .dkl-mega__ph {
	display: block;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #f1f1f1;
}

.dkdd-tile__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.dkdd-tile__count {
	font-size: 12px;
	color: #999;
}

/* --- Brands ------------------------------------------------------------ */
.dkdd-brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.dkdd-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 72px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	text-decoration: none;
	transition: border-color .15s ease;
}

.dkdd-brand img {
	max-width: 100%;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dkdd-brand:hover,
.dkdd-brand.is-active {
	border-color: var(--wd-primary-color, #e8561c);
}

.dkdd-brand.is-active {
	box-shadow: inset 0 0 0 1px var(--wd-primary-color, #e8561c);
}

.dkdd-brand__name {
	font-size: 14px;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
}

/* --- Mobile ------------------------------------------------------------ */
@media (max-width: 767px) {
	.dkdd-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.dkdd-tile {
		padding: 12px 8px;
	}

	.dkdd-tile__img {
		height: 80px;
	}

	.dkdd-tile__img img {
		max-height: 80px;
	}

	.dkdd-brands {
		display: flex;
		overflow-x: auto;
		gap: 10px;
		padding-bottom: 4px;
		scroll-snap-type: x mandatory;
	}

	.dkdd-brand {
		flex: 0 0 110px;
		height: 60px;
		scroll-snap-align: start;
	}
}
