.lcp-box {
	margin: 28px 0;
	padding: 18px;
	background: #101f3c;
	border: 1px solid #223462;
	border-radius: 14px;
	direction: rtl;
	font-family: inherit;
}

.lcp-box__heading {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.lcp-box__heading::before {
	content: "🧸";
	font-size: 16px;
}

.lcp-box__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

/* 3 (or more) products side by side, wrapping down on narrow screens/columns. */
.lcp-box__grid--multi {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.lcp-card {
	display: flex;
	gap: 14px;
	background: #ffffff;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	align-items: center;
}

.lcp-box__grid--multi .lcp-card {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	padding: 10px;
}

.lcp-card__image-link {
	flex-shrink: 0;
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 10px;
	overflow: hidden;
	background: #f4f4f4;
}

/* Square product photo, like a typical "you might also like" product grid. */
.lcp-box__grid--multi .lcp-card__image-link {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}

.lcp-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lcp-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lcp-box__grid--multi .lcp-card__body {
	margin-top: 10px;
	gap: 8px;
}

.lcp-card__title {
	font-size: 14px;
	font-weight: 600;
	color: #2b2b2b;
	text-decoration: none;
	line-height: 1.5;
}

.lcp-box__grid--multi .lcp-card__title {
	font-size: 13px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

.lcp-card__title:hover {
	color: #d1467a;
}

.lcp-card__price {
	font-size: 13px;
	color: #444;
	font-weight: 600;
}

.lcp-card__price del {
	color: #999;
	font-weight: 400;
	margin-inline-start: 6px;
}

.lcp-card__price ins {
	text-decoration: none;
	color: #c9256f;
	font-weight: 700;
}

.lcp-card__button {
	display: inline-block;
	margin-top: 4px;
	padding: 8px 16px;
	background: #d1467a;
	color: #fff !important;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	text-align: center;
	transition: background 0.15s ease;
	width: fit-content;
}

.lcp-box__grid--multi .lcp-card__button {
	width: 100%;
	margin-top: auto;
}

.lcp-card__button:hover {
	background: #a8306f;
	color: #fff !important;
}

/* --- Responsive breakpoints for mobile phones --- */

/* Predictable 2-per-row instead of an uneven auto-fit split once screens get narrow. */
@media (max-width: 480px) {
	.lcp-box {
		padding: 14px;
	}
	.lcp-box__grid--multi {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.lcp-box__grid--multi .lcp-card {
		padding: 8px;
	}
}

/* On very small/old phones, stack everything in a single column. */
@media (max-width: 340px) {
	.lcp-box__grid--multi {
		grid-template-columns: 1fr;
	}
}

/* The single-product box (no heading grid, just one wide card) also stacks
   image-on-top/text-below on narrow phones instead of squeezing side by side. */
@media (max-width: 380px) {
	.lcp-box__grid--single .lcp-card {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.lcp-box__grid--single .lcp-card__image-link {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}
	.lcp-box__grid--single .lcp-card__button {
		width: 100%;
	}
}
