/* ═══════════════════════════════════════════════════════════════════════════
   LEADER HELLAS — ΕΠΙΛΕΓΜΕΝΑ ΠΡΟΪΟΝΤΑ (tabs + grid)
   Figma @1920: section 914 · padding 120/50 · bar margin-bottom 51 · gap 40
                κάρτα 490 εικόνα + 98 όνομα · printing κάρτα 588
   ═══════════════════════════════════════════════════════════════════════════ */

.lh-products,
.lh-products *,
.lh-products *::before,
.lh-products *::after {
	box-sizing: border-box;
}

.lh-products {
	--lh-prod-cols: 4;
	--lh-prod-gap: 4rem;          /* 40px */
	--lh-prod-img-h: 49rem;       /* 490px */
	--lh-prod-card-h: 58.8rem;    /* 588px */
	--lh-prod-bg: var(--lh-light);
	--lh-prod-name: var(--lh-ink);
	--lh-tab-bg: var(--lh-white);
	--lh-tab-color: var(--lh-navy);
	--lh-tab-active-bg: var(--lh-navy);
	--lh-tab-active-color: var(--lh-white);

	width: 100%;
	padding: 12rem var(--lh-gutter);  /* 120px 50px */
}

/* ─── Μπάρα τίτλου + tabs ──────────────────────────────────────────────── */

.lh-products__bar {
	min-height: 3.5rem;
	margin-bottom: 5.1rem;   /* 51px */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

.lh-products__eyebrow {
	margin: 0;
	font-family: var(--lh-display);
	font-size: 2rem;
	font-weight: 800;
	line-height: 2.2rem;
	letter-spacing: .1rem;
	text-transform: uppercase;
}

.lh-products__tabs {
	display: flex;
	gap: 1.8rem;   /* 18px */
}

.lh-tab {
	appearance: none;
	min-height: 3.5rem;
	padding: .6rem 2rem;
	border: .1rem solid var(--lh-tab-active-bg);
	border-radius: var(--lh-radius);
	background: var(--lh-tab-bg);
	color: var(--lh-tab-color);
	font-family: var(--lh-display);
	font-size: 1.6rem;     /* 16px */
	font-weight: 800;
	line-height: 2.2rem;
	letter-spacing: .08rem;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s var(--lh-ease), color .2s var(--lh-ease);
}

.lh-tab.is-active,
.lh-tab:hover {
	background: var(--lh-tab-active-bg);
	color: var(--lh-tab-active-color);
}

.lh-tab:focus-visible {
	outline: .2rem solid var(--lh-blue);
	outline-offset: .3rem;
}

/* ─── Πλέγμα ───────────────────────────────────────────────────────────── */

.lh-products__grid {
	display: grid;
	grid-template-columns: repeat(var(--lh-prod-cols), minmax(0, 1fr));
	gap: var(--lh-prod-gap);
}

.lh-products__grid[hidden] {
	display: none;
}

/* (0,1,1) — ρητό hover, αλλιώς το `a:hover` του θέματος βάφει την κάρτα. */
.lh-card,
.lh-card:hover,
.lh-card:focus {
	color: inherit;
}

.lh-card {
	min-width: 0;
	display: block;
	border-radius: var(--lh-radius);
	overflow: hidden;
	background: var(--lh-prod-bg);
	text-decoration: none;
	/* transform + box-shadow: compositor-friendly, δεν προκαλούν reflow. */
	transition: transform .2s var(--lh-ease), box-shadow .2s var(--lh-ease);
	-webkit-tap-highlight-color: transparent;
}

.lh-card:hover,
.lh-card:focus-visible {
	transform: translateY(-.6rem);
	box-shadow: 0 1.6rem 3.4rem rgba(37, 28, 82, .12);
}

.lh-card__image {
	height: var(--lh-prod-img-h);
	padding: 2.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* (0,2,1) — δες τη σημείωση ειδικότητας στο leader-core.css. */
.lh-products .lh-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lh-card__name {
	min-height: 9.8rem;   /* 98px */
	margin: 0;
	padding: 0 3.1rem 2.8rem;
	color: var(--lh-prod-name);
	font-size: 2rem;      /* 20px */
	line-height: 3rem;    /* 30px */
}

/* ─── Κάρτα τυπογραφικού χαρτιού ───────────────────────────────────────── */

.lh-card--printing {
	position: relative;
	height: var(--lh-prod-card-h);
	text-align: center;
}

.lh-card__display {
	position: absolute;
	z-index: 1;
	top: 5rem;    /* 50px */
	left: 0;
	width: 100%;
	color: var(--lh-blue);
	font-family: var(--lh-display);
	font-size: 12.8rem;    /* 128px */
	font-weight: 800;
	line-height: 9rem;     /*  90px */
	letter-spacing: .256rem;
	text-transform: uppercase;
}

.lh-card--green .lh-card__display {
	color: var(--lh-green);
}

/* (0,2,0) / (0,3,0) — δες τη σημείωση ειδικότητας στο leader-core.css. */
.lh-products .lh-card__pallet {
	position: absolute;
	left: 0;
	width: 100%;
	max-width: none;
	object-fit: contain;
	top: 11.6rem;   /* 116px */
	height: 36.3rem;
}

.lh-products .lh-card--writing .lh-card__pallet {
	top: 10.9rem;   /* 109px */
	height: 34.6rem;
}

.lh-card--printing .lh-card__name {
	position: absolute;
	bottom: 3.8rem;
	left: 0;
	width: 100%;
	min-height: 6rem;
	padding: 0 3.1rem;
	text-align: left;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ≤1024px
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

	.lh-products {
		--lh-prod-cols: 2;
		--lh-prod-gap: 2.4rem;
		--lh-prod-img-h: 34rem;
		--lh-prod-card-h: 44rem;

		padding: 8rem var(--lh-gutter);
	}

	.lh-products__bar {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: 3.6rem;
	}

	/*
	 * `1fr` = `minmax(auto, 1fr)`: το track δεν συρρικνώνεται κάτω από το
	 * min-content του κουμπιού, οπότε η λέξη «ΤΥΠΟΓΡΑΦΕΙΟΥ» έσπρωχνε τη
	 * γραμμή έξω από την οθόνη (το ίδιο συμβαίνει και στο static export).
	 * Το `minmax(0, 1fr)` επιτρέπει τη συρρίκνωση.
	 */
	.lh-products__tabs {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lh-tab {
		padding-inline: 1.2rem;
		overflow-wrap: anywhere;
	}

	.lh-card__display {
		top: 3.2rem;
		font-size: 8.4rem;
		line-height: 6.4rem;
	}

	.lh-products .lh-card__pallet,
	.lh-products .lh-card--writing .lh-card__pallet {
		top: 9rem;
		height: 24rem;
	}

	.lh-card--printing .lh-card__name {
		bottom: 2.4rem;
	}
}

/* Κάτω από ~600px δύο tabs δίπλα-δίπλα δεν χωράνε ευανάγνωστα. */
@media (max-width: 600px) {

	.lh-products__tabs {
		grid-template-columns: 1fr;
	}

	.lh-tab {
		padding-inline: 2rem;
	}
}

@media (max-width: 767px) {

	.lh-products {
		--lh-prod-cols: 1;
		--lh-prod-img-h: 42rem;
		--lh-prod-card-h: 51.8rem;
	}

	.lh-card__display {
		font-size: 11rem;
		line-height: 8.4rem;
	}

	.lh-products .lh-card__pallet,
	.lh-products .lh-card--writing .lh-card__pallet {
		top: 11.2rem;
		height: 31rem;
	}
}

@media (prefers-reduced-motion: reduce) {

	.lh-card,
	.lh-tab {
		transition: none;
	}

	.lh-card:hover,
	.lh-card:focus-visible {
		transform: none;
	}
}
