:root {
	--arash-card-radius: 12px;
	--arash-card-border: #e5e5e5;
	--arash-card-bg: #fff;
	--arash-card-title-color: #35355a;
	--arash-card-price-color: #333;
	--arash-card-muted-color: #999;
	--arash-card-discount-color: #ef394e;
	--arash-card-rating-color: #f5b900;
	--arash-image-height: 240px;
	--arash-image-hover-scale: 1.03;
	--arash-image-transition: .2s;
	--arash-card-transition: .2s;
	--arash-tag-default-color: #fff;
	--arash-tag-default-bg: #2196f3;
}

.arash-product-card,
.arash-product-card * {
	box-sizing: border-box;
}

.arash-product-card {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--arash-card-bg);
	border: 1px solid var(--arash-card-border);
	border-radius: var(--arash-card-radius);
	box-shadow: none;
	direction: rtl;
	font-family: inherit;
	transition: background-color var(--arash-card-transition), border-color var(--arash-card-transition), box-shadow var(--arash-card-transition);
}

.arash-product-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: inherit;
	text-decoration: none;
}

.arash-product-card__link:hover,
.arash-product-card__link:focus,
.arash-product-card__link:active {
	color: inherit;
	text-decoration: none;
}

.arash-product-card__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	height: var(--arash-image-height);
	min-height: 0;
	max-height: none;
	margin: 0;
	padding: 12px 14px 16px;
	background: transparent;
	overflow: hidden;
}

.arash-product-card__image-wrap .arash-product-card__image,
.arash-product-card__image-wrap img.arash-product-card__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	object-fit: contain;
	object-position: center;
	border-radius: inherit;
	overflow: hidden;
	transform: scale(1);
	transition: transform var(--arash-image-transition) ease;
}

.arash-product-card__image-wrap:hover .arash-product-card__image {
	transform: scale(var(--arash-image-hover-scale));
}

.arash-product-card__image--placeholder {
	width: 150px !important;
	max-width: 65% !important;
	height: auto !important;
	opacity: .7;
}

.arash-product-card__body {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 9px 12px 12px;
	background: transparent;
}

.arash-product-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 5px;
	width: 100%;
	margin: 0 0 7px;
	padding: 0;
	z-index: 4;
}

.arash-product-card__tags--top_image,
.arash-product-card__tags--bottom_image {
	position: absolute;
	inset-inline-start: 10px;
	width: auto;
	margin: 0;
}

.arash-product-card__tags--top_image { top: 10px; }
.arash-product-card__tags--bottom_image { bottom: 10px; }

.arash-product-card__tags--after_title { margin-top: 0; }
.arash-product-card__tags--after_price { margin-top: 7px; margin-bottom: 0; }

.arash-product-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 25px;
	padding: 3px 8px;
	border-radius: 999px;
	background-color: var(--arash-tag-item-bg, var(--arash-tag-default-bg));
	color: var(--arash-tag-item-color, var(--arash-tag-default-color));
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: background-color var(--arash-card-transition), color var(--arash-card-transition);
}

.arash-product-card__tag-icon {
	display: block;
	width: var(--arash-tag-icon-size, 18px);
	height: var(--arash-tag-icon-size, 18px);
	max-width: var(--arash-tag-icon-size, 18px);
	object-fit: contain;
	flex: 0 0 auto;
}

.arash-product-card__tag-text { color: inherit; }

.arash-product-card__title {
	display: -webkit-box;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: hidden;
	margin: 0 0 7px;
	padding: 0;
	border: 0;
	color: var(--arash-card-title-color);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.8;
	text-align: right;
	text-overflow: ellipsis;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--arash-title-lines, 2);
	transition: color var(--arash-card-transition);
}

.arash-product-card__title:hover { color: inherit; }

.arash-product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 22px;
	margin: 0 0 7px;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
}

.arash-product-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: #777;
	white-space: nowrap;
}

.arash-product-card__star {
	color: var(--arash-card-rating-color);
	font-size: 14px;
	line-height: 1;
}

.arash-product-card__price-row {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	direction: ltr;
}

.arash-product-card__price-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	direction: ltr;
	text-align: left;
}

.arash-product-card__discount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-width: 34px;
	height: 25px;
	padding: 0 8px;
	margin: 0 0 2px;
	border: 0;
	border-radius: 999px;
	background: var(--arash-card-discount-color);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.arash-product-card__regular-price {
	display: block;
	width: auto;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 2px;
	padding: 0;
	color: var(--arash-card-muted-color);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: line-through;
	text-align: left;
	direction: ltr;
	white-space: nowrap;
}

.arash-product-card__regular-number {
	display: block;
	max-width: 100%;
	overflow: hidden;
	margin: 0;
	padding: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.arash-product-card__current-price {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	align-self: flex-start;
	gap: 4px;
	width: auto;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--arash-card-price-color);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	direction: ltr;
	text-align: left;
	white-space: nowrap;
}

.arash-product-card__price-number {
	display: inline-block;
	order: 2;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	direction: ltr;
	white-space: nowrap;
}

.arash-product-card__toman-icon {
	display: block;
	order: 1;
	flex: 0 0 auto;
	width: var(--arash-toman-size, 16px);
	height: var(--arash-toman-size, 16px);
	max-width: var(--arash-toman-size, 16px);
	object-fit: contain;
}

.arash-product-card .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.arash-product-card__link:focus-visible,
.arash-product-card__add-to-cart:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.arash-product-card__price-row--unavailable {
	display: flex;
	align-items: center;
}

.arash-product-card__current-price--unavailable {
	display: flex;
	align-items: center;
}

.arash-product-card__unavailable { font-weight: 600; }

.arash-product-card__view-and-buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 24px);
	margin: 0 12px 12px;
	padding: 9px 12px;
	border: 0;
	border-radius: 8px;
	background: #222;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color var(--arash-card-transition), color var(--arash-card-transition);
}

.arash-product-card__view-and-buy:hover {
	background: #000;
	color: #fff;
}

.arash-product-card__view-and-buy:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.arash-product-card__add-to-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 24px);
	margin: 0 12px 12px;
	padding: 9px 12px;
	border: 0;
	border-radius: 8px;
	background: #222;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color var(--arash-card-transition), color var(--arash-card-transition);
}

.arash-product-card__add-to-cart:hover {
	background: #000;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.arash-product-card,
	.arash-product-card *,
	.arash-product-card::before,
	.arash-product-card::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

.arash-product-card__variable-cart {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: calc(100% - 24px);
	margin: 0 12px 12px;
	padding: 10px;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 8px;
	background: transparent;
}

.arash-product-card__variation-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	margin: 0;
}

.arash-product-card__variation-label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.arash-product-card__variation-select {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
}

.arash-product-card__variable-add-to-cart:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.arash-product-card__variable-add-to-cart.is-loading {
	cursor: wait;
	pointer-events: none;
	opacity: .7;
}

.arash-product-card__variable-message {
	min-height: 1.4em;
	font-size: 11px;
	line-height: 1.5;
}

.arash-product-card__variable-message.is-error {
	color: #c62828;
}

.arash-product-card__variable-message.is-success {
	color: #2e7d32;
}
