/*!
 * Netden Seçim Rehberi — ana sayfa kaşi bölümü.
 * Renk ve ölçüler tema tokenlarindan (--nd-*) gelir.
 */

.ndf-tiles {
	--ndf-ink: var(--nd-ink, #0C1424);
	--ndf-text-3: var(--nd-text-3, #6B7590);
	--ndf-surface: var(--nd-surface, #fff);
	--ndf-border: var(--nd-border, #E5E9F2);
	--ndf-hairline: var(--nd-hairline, #EDF0F7);
	--ndf-accent: var(--nd-accent, #F4470B);
	--ndf-accent-soft: var(--nd-accent-soft, #FFECE3);
	--ndf-accent-border: var(--nd-accent-border, #FFD2B8);
	--ndf-radius-card: var(--nd-radius-card, 16px);
	--ndf-font-display: var(--nd-font-display, "Outfit", sans-serif);
	--ndf-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ndf-tiles__head {
	margin-bottom: 20px;
}

.ndf-tiles__kicker {
	font-family: var(--ndf-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--ndf-accent);
	margin: 0 0 6px;
}

.ndf-tiles__title {
	font-family: var(--ndf-font-display);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--ndf-ink);
	margin: 0 0 6px;
}

.ndf-tiles__sub {
	margin: 0;
	color: var(--ndf-text-3);
	font-size: 14px;
	max-width: 62ch;
}

.ndf-tiles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.ndf-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	background: var(--ndf-surface);
	border: 1px solid var(--ndf-border);
	border-radius: var(--ndf-radius-card);
	padding: 20px 18px;
	text-decoration: none;
	color: var(--ndf-ink);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ndf-tile:hover {
	border-color: var(--ndf-accent-border);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(12, 20, 36, 0.08);
	color: var(--ndf-ink);
	text-decoration: none;
}

.ndf-tile__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--ndf-accent-soft);
	color: var(--ndf-accent);
	margin-bottom: 6px;
}

/* Ürün görseli — ürün fotoğrafları beyaz zeminli olduğu için
   çerçeve de beyaza yakın tutuluyor, ürün "kesilmiş" görünmüyor. */
.ndf-tile__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 128px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--ndf-accent-soft) 0%, #fff 100%);
	overflow: hidden;
}

.ndf-tile__img {
	max-width: 86%;
	max-height: 86%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply; /* Beyaz zemini degrade uzerinde eritir. */
	transition: transform 0.18s ease;
}

.ndf-tile:hover .ndf-tile__img {
	transform: scale(1.04);
}

.ndf-tile__label {
	font-family: var(--ndf-font-display);
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.25;
}

.ndf-tile__desc {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--ndf-text-3);
	flex: 1 1 auto;
}

.ndf-tile__cta {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--ndf-hairline);
	width: 100%;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--ndf-accent);
}

.ndf-tile:hover .ndf-tile__cta span {
	display: inline-block;
	transform: translateX(3px);
	transition: transform 0.15s ease;
}

.ndf-tile:focus-visible {
	outline: 2px solid var(--ndf-accent);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.ndf-tiles__title {
		font-size: 19px;
	}

	.ndf-tiles__grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 10px;
	}

	.ndf-tile {
		padding: 16px 14px;
	}

	.ndf-tile__badge {
		width: 40px;
		height: 40px;
		border-radius: 11px;
	}

	.ndf-tile__media {
		height: 104px;
		margin-bottom: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ndf-tile,
	.ndf-tile__cta span,
	.ndf-tile__img {
		transition: none !important;
		transform: none !important;
	}
}
