.alp-grid {
	display: grid;
	grid-template-columns: repeat(var(--alp-cols, 3), 1fr);
	gap: 22px;
	margin: 24px 0;
}

@media (max-width: 700px) {
	.alp-grid {
		grid-template-columns: 1fr;
	}
}

.alp-box {
	display: flex;
	gap: 22px;
	position: relative;
	border: 1px solid #eee1c8;
	background: #fffdf9;
	border-radius: 14px;
	padding: 22px;
	align-items: flex-start;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	max-width: 100%;
	box-shadow: 0 2px 6px rgba(20, 20, 20, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.alp-box:hover {
	box-shadow: 0 10px 28px rgba(20, 20, 20, 0.12);
	transform: translateY(-3px);
	border-color: #f3d98b;
}

.alp-grid .alp-box {
	flex-direction: column;
	height: 100%;
}

.alp-error {
	color: #a94442;
	background: #f8eaea;
	border-color: #e0b4b4;
	box-shadow: none;
}
.alp-error:hover {
	transform: none;
	box-shadow: none;
}

.alp-image {
	flex: 0 0 auto;
	position: relative;
}

.alp-image img {
	max-width: 140px;
	height: auto;
	display: block;
	border-radius: 8px;
	transition: transform 0.25s ease;
}

.alp-box:hover .alp-image img {
	transform: scale(1.04);
}

.alp-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.alp-badge {
	display: inline-block;
	align-self: flex-start;
	background: #fff3d6;
	color: #a3690a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 20px;
	margin-bottom: 2px;
}

.alp-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	line-height: 1.35;
	overflow-wrap: break-word;
	word-break: normal;
	transition: color 0.15s ease;
}

.alp-title:hover {
	color: #cc7a00;
	text-decoration: underline;
}

.alp-rating {
	color: #e4a11b;
	font-size: 14px;
	letter-spacing: 1px;
}

.alp-rating-num {
	color: #666;
	margin-left: 5px;
	letter-spacing: normal;
	font-size: 13px;
}

.alp-price {
	font-size: 23px;
	font-weight: 800;
	color: #b12704;
}

.alp-availability {
	font-size: 13px;
	color: #4c8c4a;
	font-weight: 600;
}

.alp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	padding: 12px 22px;
	background: linear-gradient(180deg, #ffd25e, #f7ca4f 60%, #f3bb2a);
	color: #111 !important;
	font-weight: 700;
	font-size: 15px;
	border-radius: 8px;
	text-decoration: none !important;
	width: fit-content;
	box-shadow: 0 3px 0 #c98f0f, 0 4px 10px rgba(201, 143, 15, 0.25);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.alp-button:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
	box-shadow: 0 4px 0 #c98f0f, 0 8px 16px rgba(201, 143, 15, 0.3);
}

.alp-button:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 #c98f0f;
}

.alp-grid .alp-button {
	width: 100%;
}

@media (max-width: 480px) {
	.alp-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 18px;
		gap: 12px;
	}

	.alp-image img {
		max-width: 170px;
		margin: 0 auto;
	}

	.alp-badge {
		align-self: center;
	}

	.alp-content {
		width: 100%;
	}

	.alp-title {
		font-size: 16px;
	}

	.alp-button {
		width: 100%;
		justify-content: center;
		white-space: nowrap;
		box-sizing: border-box;
	}
}
