/*
 * LGNTT Greeting Cards archive — v2.1.2 desktop-balanced retail layout.
 * Principle: title -> compact catalogue controls -> products.
 * No breadcrumbs, duplicate brand labels, collection rails or repeated headings.
 */

body.lgntt-greeting-cards .lgntt-editorial-hero {
	background: #f3f4f0;
	border-bottom: 1px solid var(--lgntt-border);
}

body.lgntt-greeting-cards .lgntt-editorial-hero .lgntt-gift-shell {
	padding-block: 24px 22px;
}

body.lgntt-greeting-cards .lgntt-hero-copy {
	max-width: 760px;
}

body.lgntt-greeting-cards .lgntt-hero-copy h1 {
	margin: 0;
	font-size: clamp(40px, 3.2vw, 46px);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.02;
}

body.lgntt-greeting-cards .lgntt-hero-description {
	max-width: 680px;
	margin-top: 9px;
	color: #59625b;
	font-size: 16px;
	line-height: 1.5;
}

body.lgntt-greeting-cards .lgntt-hero-description p {
	margin: 0;
}

body.lgntt-greeting-cards .lgntt-catalog-shell {
	padding-block: 22px 56px;
}

/* ---------- Compact catalogue toolbar ---------- */
body.lgntt-greeting-cards .lgntt-catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--lgntt-border);
}


body.lgntt-greeting-cards .lgntt-catalog-controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
}

body.lgntt-greeting-cards .lgntt-control-group,
body.lgntt-greeting-cards .lgntt-sort-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

body.lgntt-greeting-cards .lgntt-control-group > span,
body.lgntt-greeting-cards .lgntt-control-group > label,
body.lgntt-greeting-cards .lgntt-sort-form > label {
	display: none;
}

body.lgntt-greeting-cards .lgntt-control-group select,
body.lgntt-greeting-cards .lgntt-sort-form select {
	height: 42px;
	padding: 0 34px 0 12px;
	border: 1px solid #d8ddd6;
	border-radius: 8px;
	background-color: #fff;
	color: var(--lgntt-ink);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

body.lgntt-greeting-cards #lgntt-category-select {
	min-width: 190px;
}

body.lgntt-greeting-cards #lgntt-orderby {
	min-width: 190px;
}

/* ---------- Products ---------- */
body.lgntt-greeting-cards .lgntt-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 22px;
	margin-top: 24px;
}

body.lgntt-greeting-cards .lgntt-product-grid.is-single-product-grid {
	grid-template-columns: minmax(0, 380px);
	max-width: 380px;
}

body.lgntt-greeting-cards .lgntt-product-grid.is-two-product-grid {
	grid-template-columns: repeat(2, minmax(0, 360px));
	justify-content: center;
	max-width: 744px;
	margin-inline: auto;
}

body.lgntt-greeting-cards .lgntt-product-card {
	min-width: 0;
	background: transparent;
}

body.lgntt-greeting-cards .lgntt-product-media {
	display: block;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--lgntt-border);
	border-radius: 10px;
	background: #eef2ec;
	color: inherit;
	box-shadow: 0 2px 10px rgba(16,32,23,.035);
	transition: transform .22s ease, box-shadow .22s ease;
}

body.lgntt-greeting-cards .lgntt-product-card:hover .lgntt-product-media {
	transform: translateY(-3px);
	box-shadow: 0 13px 28px -12px rgba(16,32,23,.18);
}

body.lgntt-greeting-cards .lgntt-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--lgntt-green);
	color: var(--lgntt-ink);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.lgntt-greeting-cards .lgntt-card-badge.is-muted {
	border: 1px solid var(--lgntt-border);
	background: rgba(255,255,255,.94);
	color: #646b66;
}

body.lgntt-greeting-cards .lgntt-product-image {
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #f0f3ef;
}

body.lgntt-greeting-cards .lgntt-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

body.lgntt-greeting-cards .lgntt-product-card:hover .lgntt-product-image img {
	transform: scale(1.018);
}

body.lgntt-greeting-cards .lgntt-product-body {
	padding: 12px 2px 0;
}

body.lgntt-greeting-cards .lgntt-product-category {
	margin-bottom: 4px;
	color: var(--lgntt-forest);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.4;
	text-transform: uppercase;
}

body.lgntt-greeting-cards .lgntt-product-body h3 {
	margin: 0;
	font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.38;
}

body.lgntt-greeting-cards .lgntt-product-body h3 a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--lgntt-ink);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color .18s ease;
}

body.lgntt-greeting-cards .lgntt-product-card:hover .lgntt-product-body h3 a {
	color: var(--lgntt-forest);
}

body.lgntt-greeting-cards .lgntt-product-bottom {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-top: 7px;
}

body.lgntt-greeting-cards .lgntt-product-price {
	color: var(--lgntt-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

body.lgntt-greeting-cards .lgntt-product-price del {
	color: #8a908b;
	font-weight: 400;
}

body.lgntt-greeting-cards .lgntt-product-price ins {
	text-decoration: none;
}

body.lgntt-greeting-cards .lgntt-view-design {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--lgntt-forest);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

body.lgntt-greeting-cards .lgntt-view-design:hover {
	color: var(--lgntt-forest-dark);
}

body.lgntt-greeting-cards .lgntt-pagination {
	margin-top: 42px;
}

body.lgntt-greeting-cards .lgntt-pagination .woocommerce-pagination {
	float: none;
}

body.lgntt-greeting-cards .lgntt-pagination ul.page-numbers {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	border: 0;
}

body.lgntt-greeting-cards .lgntt-pagination ul.page-numbers li {
	border: 0;
}

body.lgntt-greeting-cards .lgntt-pagination .page-numbers a,
body.lgntt-greeting-cards .lgntt-pagination .page-numbers span {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--lgntt-border);
	border-radius: 8px;
	background: #fff;
	color: var(--lgntt-ink);
	font-size: 12px;
}

body.lgntt-greeting-cards .lgntt-pagination .page-numbers .current {
	border-color: var(--lgntt-forest);
	background: var(--lgntt-forest);
	color: #fff;
}

body.lgntt-greeting-cards .lgntt-empty-state {
	margin-top: 24px;
	padding: 30px;
	border: 1px solid var(--lgntt-border);
	border-radius: 10px;
	background: #fff;
}

body.lgntt-greeting-cards .lgntt-empty-state h3 {
	margin: 0 0 5px;
	font-size: 22px;
}

body.lgntt-greeting-cards .lgntt-empty-state p {
	margin: 0;
	color: var(--lgntt-muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	body.lgntt-greeting-cards .lgntt-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- 484px mobile target ---------- */
@media (max-width: 560px) {
	body.lgntt-greeting-cards .lgntt-editorial-hero .lgntt-gift-shell {
		padding-block: 20px 18px;
	}

	body.lgntt-greeting-cards .lgntt-hero-copy h1 {
		font-size: 35px;
		letter-spacing: -.03em;
	}

	body.lgntt-greeting-cards .lgntt-hero-description {
		margin-top: 6px;
		font-size: 14px;
		line-height: 1.45;
	}

	body.lgntt-greeting-cards .lgntt-catalog-shell {
		padding-block: 16px 48px;
	}

	body.lgntt-greeting-cards .lgntt-catalog-toolbar {
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		padding-bottom: 12px;
	}

	body.lgntt-greeting-cards .lgntt-catalog-controls {
		width: 100%;
		gap: 8px;
	}

	body.lgntt-greeting-cards .lgntt-control-group,
	body.lgntt-greeting-cards .lgntt-sort-form {
		flex: 1 1 0;
		min-width: 0;
	}

	body.lgntt-greeting-cards .lgntt-control-group > span,
	body.lgntt-greeting-cards .lgntt-control-group > label,
	body.lgntt-greeting-cards .lgntt-sort-form > label {
		display: none;
	}

	body.lgntt-greeting-cards .lgntt-control-group select,
	body.lgntt-greeting-cards .lgntt-sort-form select,
	body.lgntt-greeting-cards #lgntt-category-select,
	body.lgntt-greeting-cards #lgntt-orderby {
		width: 100%;
		min-width: 0;
		height: 44px;
		padding: 0 30px 0 11px;
		font-size: 12px;
		text-overflow: ellipsis;
	}

	body.lgntt-greeting-cards .lgntt-product-grid,
	body.lgntt-greeting-cards .lgntt-product-grid.is-single-product-grid,
	body.lgntt-greeting-cards .lgntt-product-grid.is-two-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: none;
		gap: 22px 12px;
		margin-top: 18px;
	}

	body.lgntt-greeting-cards .lgntt-product-grid.is-single-product-grid {
		grid-template-columns: minmax(0, 240px);
		max-width: 240px;
	}

	body.lgntt-greeting-cards .lgntt-product-media {
		border-radius: 8px;
	}

	body.lgntt-greeting-cards .lgntt-product-body {
		padding-top: 9px;
	}

	body.lgntt-greeting-cards .lgntt-product-category {
		margin-bottom: 3px;
		font-size: 8px;
	}

	body.lgntt-greeting-cards .lgntt-product-body h3 {
		font-size: 15px;
		font-weight: 700;
		line-height: 1.4;
	}

	body.lgntt-greeting-cards .lgntt-product-body h3 a {
		min-height: 0;
		-webkit-line-clamp: 3;
	}

	body.lgntt-greeting-cards .lgntt-product-bottom {
		margin-top: 5px;
	}

	body.lgntt-greeting-cards .lgntt-product-price {
		font-size: 14px;
	}

	body.lgntt-greeting-cards .lgntt-view-design {
		display: none;
	}
}
