/* Affiliate Link Matcher – Frontend */

.alm-box {
	margin: 2.5em 0;
	padding: 1.5em;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	background: #fafafb;
}

.alm-box-title {
	margin: 0 0 1em;
	font-size: 1.25em;
	line-height: 1.3;
}

.alm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1em;
}

.alm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececf1;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease;
}

.alm-card:hover {
	box-shadow: 0 8px 24px rgba(20, 20, 40, .08);
	transform: translateY(-2px);
}

.alm-card-image {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f1f1f4;
	overflow: hidden;
}

.alm-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.alm-card-body {
	display: flex;
	flex-direction: column;
	gap: .5em;
	padding: .9em 1em 1em;
	flex: 1;
}

.alm-card-title {
	font-weight: 600;
	font-size: 1.02em;
	line-height: 1.35;
	text-decoration: none;
	color: inherit;
}

.alm-card-title:hover {
	text-decoration: underline;
}

.alm-card-desc {
	margin: 0;
	font-size: .9em;
	line-height: 1.5;
	color: #555;
	flex: 1;
}

.alm-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6em;
	margin-top: .4em;
	flex-wrap: wrap;
}

.alm-card-price {
	font-weight: 700;
	font-size: 1.05em;
	color: #1a1a2e;
}

.alm-button {
	display: inline-block;
	padding: .55em 1.1em;
	border-radius: 9px;
	background: #2563eb;
	color: #fff !important;
	font-size: .9em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease;
}

.alm-button:hover {
	background: #1d4ed8;
}

.alm-disclosure {
	margin: 1.2em 0 0;
	font-size: .8em;
	line-height: 1.5;
	color: #777;
}

.alm-inline-link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 480px) {
	.alm-cards {
		grid-template-columns: 1fr;
	}
}
