/* Kitchenu — کارت محصول داخل مقاله */
.ku-inline-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0.55rem 0 0.7rem;
}

.ku-inline-product {
	display: flex;
	align-items: stretch;
	gap: 0;
	overflow: hidden;
	border: 1px solid #fed7aa;
	border-radius: 16px;
	background: linear-gradient(135deg, #fffaf0 0%, #ffffff 55%, #fff7ed 100%);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 10px 28px rgba(249, 115, 22, 0.1);
	direction: rtl;
}

.ku-inline-product.is-oos {
	opacity: 0.78;
	filter: grayscale(0.15);
}

.ku-inline-product__main {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	text-decoration: none !important;
	color: inherit;
}

.ku-inline-product__main:hover .ku-inline-product__name {
	color: #c2410c;
}

.ku-inline-product__media {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ffedd5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ku-inline-product__media img,
.ku-inline-product__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}

.ku-inline-product__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(-45deg, #fff7ed, #fff7ed 8px, #ffedd5 8px, #ffedd5 16px);
}

.ku-inline-product__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
	text-align: right;
}

.ku-inline-product__name {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.45;
	color: #0f172a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ku-inline-product__price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	color: #c2410c;
	font-weight: 800;
}

.ku-inline-product__from {
	font-size: 0.72rem;
	color: #9a3412;
	font-weight: 700;
}

.ku-inline-product__amount {
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
}

.ku-inline-product__currency {
	font-size: 0.82rem;
}

.ku-inline-product__call {
	font-size: 0.9rem;
	color: #c2410c;
}

.ku-inline-product__atc {
	flex: 0 0 56px;
	width: 56px;
	min-width: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	border-right: 1px solid #fed7aa;
	border-radius: 0;
	background: linear-gradient(160deg, #16a34a 0%, #22c55e 100%);
	color: #fff;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.18s ease, transform 0.18s ease;
}

.ku-inline-product__atc:hover {
	background: linear-gradient(160deg, #15803d 0%, #16a34a 100%);
	color: #fff;
}

.ku-inline-product__atc.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.ku-inline-product__atc.is-added {
	background: linear-gradient(160deg, #0f766e 0%, #14b8a6 100%);
}

.ku-inline-product__atc svg {
	display: block;
}

@media (max-width: 600px) {
	.ku-inline-product__media {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}

	.ku-inline-product__name {
		font-size: 0.86rem;
	}

	.ku-inline-product__atc {
		flex-basis: 52px;
		width: 52px;
		min-width: 52px;
	}
}
