.sobhan-product-card {
	--sobhan-accent: #16a34a;
	--sobhan-accent-dark: #15803d;
	position: relative;
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 24px;
	margin: 32px 0;
	padding: 20px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	background: linear-gradient(135deg, #fff 0%, #fff 60%, #f8fafc 100%);
	box-shadow: 0 12px 35px rgba(15, 23, 42, .07), 0 2px 5px rgba(15, 23, 42, .04);
	color: #111827;
	font-family: "Vazirmatn", "Vazir", inherit;
	font-feature-settings: "ss01";
	isolation: isolate;
}

.sobhan-product-card::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--sobhan-accent), transparent);
	opacity: .8;
}

.sobhan-product-card__glow {
	position: absolute;
	z-index: -1;
	top: -100px;
	right: -80px;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--sobhan-accent) 10%, transparent);
	filter: blur(8px);
}

.sobhan-product-card__media {
	display: grid;
	place-items: center;
	min-height: 168px;
	padding: 10px;
	position: relative;
	border-radius: 16px;
	background: #fff;
	text-decoration: none;
}

.sobhan-product-card__image {
	display: block;
	width: 100%;
	height: 148px;
	object-fit: contain;
	transition: transform .35s ease;
}

.sobhan-product-card__media:hover .sobhan-product-card__image { transform: scale(1.05); }

.sobhan-product-card__sale {
	position: absolute;
	top: 6px;
	right: 6px;
	padding: 5px 9px;
	border-radius: 9px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: 0 4px 10px rgba(239, 68, 68, .25);
}

.sobhan-product-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 2px 0;
}

.sobhan-product-card__eyebrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.sobhan-product-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sobhan-accent) 11%, white);
	color: var(--sobhan-accent-dark);
	font-size: 11px;
	font-weight: 800;
}

.sobhan-product-card__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
}

.sobhan-product-card__stock i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
	box-shadow: 0 0 0 3px #f1f5f9;
}
.sobhan-product-card__stock.is-in-stock i { background: var(--sobhan-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sobhan-accent) 14%, white); }
.sobhan-product-card__stock.is-out-of-stock { color: #ef4444; }
.sobhan-product-card__stock.is-out-of-stock i { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }

.sobhan-product-card__title {
	margin: 0 0 20px !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: clamp(15px, 1.5vw, 19px) !important;
	font-weight: 800 !important;
	line-height: 1.8 !important;
}

.sobhan-product-card__title a {
	color: #111827 !important;
	text-decoration: none !important;
	transition: color .2s ease;
}
.sobhan-product-card__title a:hover { color: var(--sobhan-accent-dark) !important; }

.sobhan-product-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.sobhan-product-card__price {
	color: #111827;
	font-size: 16px;
	font-weight: 900;
	white-space: nowrap;
}
.sobhan-product-card__price del { color: #94a3b8; font-size: 12px; font-weight: 500; opacity: 1; }
.sobhan-product-card__price ins { color: #111827; background: none; text-decoration: none; }
.sobhan-product-card__unpriced { color: #64748b; font-size: 12px; }

.sobhan-product-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--sobhan-accent);
	box-shadow: 0 7px 16px color-mix(in srgb, var(--sobhan-accent) 24%, transparent);
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.sobhan-product-card__button:hover {
	background: var(--sobhan-accent-dark);
	box-shadow: 0 9px 20px color-mix(in srgb, var(--sobhan-accent) 30%, transparent);
	color: #fff !important;
	transform: translateY(-2px);
}
.sobhan-product-card__button svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sobhan-product-picker,
.sobhan-editor-card { font-family: "Vazirmatn", "Vazir", inherit; font-feature-settings: "ss01"; }
.sobhan-product-picker { width: 100%; }
.sobhan-product-picker__results { display: grid; gap: 6px; max-height: 310px; overflow: auto; }
.sobhan-product-picker__item {
	display: grid !important;
	grid-template-columns: 45px 1fr;
	gap: 10px;
	width: 100%;
	height: auto !important;
	padding: 8px !important;
	text-align: right;
}
.sobhan-product-picker__item img { width: 45px; height: 45px; object-fit: contain; border-radius: 6px; }
.sobhan-product-picker__item span { display: flex; flex-direction: column; align-items: flex-start; }
.sobhan-product-picker__item small { color: #64748b; }
.sobhan-editor-card {
	display: grid;
	grid-template-columns: 130px 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #fff;
}
.sobhan-editor-card > img { width: 130px; height: 130px; object-fit: contain; }
.sobhan-editor-card h3 { margin: 8px 0 12px; font-size: 16px; }
.sobhan-editor-card__badge { color: #15803d; font-size: 11px; font-weight: 700; }
.sobhan-editor-card__price { font-weight: 800; }
.sobhan-editor-card__button { display: inline-block; margin-top: 10px; padding: 9px 14px; border-radius: 9px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; }

@media (max-width: 640px) {
	.sobhan-product-card {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 14px;
		margin: 24px 0;
		padding: 14px;
		border-radius: 16px;
	}
	.sobhan-product-card__media { min-height: 112px; padding: 4px; }
	.sobhan-product-card__image { height: 104px; }
	.sobhan-product-card__sale { top: 2px; right: 2px; padding: 4px 6px; font-size: 9px; }
	.sobhan-product-card__eyebrow { margin-bottom: 5px; }
	.sobhan-product-card__badge { padding: 4px 7px; font-size: 9px; }
	.sobhan-product-card__stock { font-size: 9px; }
	.sobhan-product-card__title { margin-bottom: 10px !important; font-size: 13px !important; line-height: 1.65 !important; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.sobhan-product-card__footer { align-items: center; gap: 8px; }
	.sobhan-product-card__price { font-size: 12px; }
	.sobhan-product-card__price del { display: none; }
	.sobhan-product-card__button { min-height: 38px; padding: 0 11px; border-radius: 10px; font-size: 11px; }
	.sobhan-product-card__button svg { display: none; }
}

@media (max-width: 400px) {
	.sobhan-product-card { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 11px; }
	.sobhan-product-card__media { min-height: 96px; }
	.sobhan-product-card__image { height: 88px; }
	.sobhan-product-card__stock { display: none; }
	.sobhan-product-card__button { padding: 0 9px; }
	.sobhan-product-card__button span { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	.sobhan-product-card *, .sobhan-product-card *::before, .sobhan-product-card *::after { transition: none !important; }
}
