.amin-shop-products,
.amin-shop-products * {
	box-sizing: border-box;
}

.elementor-element:has(.amin-shop-products),
.elementor-widget:has(.amin-shop-products),
.elementor-widget-container:has(.amin-shop-products) {
	overflow: visible !important;
}

.amin-shop-products {
	--amin-shop-orange: #f74506;
	--amin-shop-cyan: #71c7e2;
	width: 100%;
	max-width: 100%;
	direction: rtl;
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

.amin-shop-products.is-loading .amin-shop-products__stage {
	opacity: 0.55;
	pointer-events: none;
}

.amin-shop-products__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	padding: 10px 18px;
	border: 1px solid #e8edf3;
	border-radius: 18px;
	background: #fafafa;
}

.amin-shop-products__sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	min-width: 0;
}

.amin-shop-products__sort-label {
	color: #94a3b8;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.amin-shop-products__sort-btn,
.elementor-element .amin-shop-products__sort-btn {
	margin: 0 !important;
	padding: 4px 0 !important;
	border: 0 !important;
	background: none !important;
	color: #94a3b8 !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	box-shadow: none !important;
	cursor: pointer;
}

.amin-shop-products__sort-btn.is-active,
.elementor-element .amin-shop-products__sort-btn.is-active {
	color: var(--amin-shop-orange) !important;
}

.amin-shop-products__tools {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
}

.amin-shop-products__count {
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.amin-shop-products__compare-btns {
	display: flex;
	align-items: center;
	gap: 8px;
}

.amin-shop-products__btn,
.elementor-element .amin-shop-products__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin: 0 !important;
	padding: 8px 16px !important;
	border: 0 !important;
	border-radius: 10px !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
}

.amin-shop-products__btn[hidden],
.elementor-element .amin-shop-products__btn[hidden],
.amin-shop-products__btn.is-hidden,
.elementor-element .amin-shop-products__btn.is-hidden {
	display: none !important;
}

.amin-shop-products__btn--start,
.elementor-element .amin-shop-products__btn--start {
	background: var(--amin-shop-cyan) !important;
	color: #fff !important;
}

.amin-shop-products__btn--run,
.elementor-element .amin-shop-products__btn--run {
	background: var(--amin-shop-orange) !important;
	color: #fff !important;
}

.amin-shop-products__btn--cancel,
.elementor-element .amin-shop-products__btn--cancel {
	background: #fff !important;
	border: 1px solid #e2e8f0 !important;
	color: #64748b !important;
}

.amin-shop-products__stage {
	min-height: 120px;
	transition: opacity 0.18s ease;
}

.amin-shop-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.amin-shop-products__empty {
	margin: 0;
	padding: 48px 16px;
	color: #94a3b8;
	font-size: 15px;
	text-align: center;
}

.amin-shop-products .amin-home-deals-card,
.amin-shop-products .amin-shop-products__card {
	position: relative;
	flex: none;
	width: 100%;
	max-width: none;
	min-width: 0;
	height: 100%;
}

.amin-shop-products .amin-home-deals-card__name a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.amin-shop-products .amin-home-deals-card__cat {
	display: inline-flex;
	align-items: center;
	max-width: 70%;
	padding: 3px 10px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--amin-shop-cyan);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.amin-shop-products .amin-home-deals-card__sale {
	padding: 3px 10px;
	border-radius: 999px;
	background: #3d4654;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.amin-shop-products .amin-home-deals-card__foot {
	min-height: 22px;
}

.amin-shop-products .amin-home-deals-card__foot.is-empty {
	visibility: hidden;
}

.amin-shop-products__check {
	position: absolute;
	top: 42px;
	left: 10px;
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
	cursor: pointer;
}

.amin-shop-products.is-compare .amin-shop-products__check {
	display: inline-flex;
}

.amin-shop-products.is-compare .amin-home-deals-card__qty,
.amin-shop-products.is-compare .amin-home-deals-card__plus,
.amin-shop-products.is-compare .amin-home-deals-card__minus {
	pointer-events: none;
	opacity: 0.35;
}

.amin-shop-products__check span {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: transparent;
}

.amin-shop-products__card.is-selected {
	border-color: var(--amin-shop-orange);
	box-shadow: 0 0 0 1px var(--amin-shop-orange);
}

.amin-shop-products__card.is-selected .amin-shop-products__check {
	border-color: var(--amin-shop-orange);
	background: var(--amin-shop-orange);
}

.amin-shop-products__card.is-selected .amin-shop-products__check span {
	background: #fff;
	border-radius: 3px;
	width: 8px;
	height: 8px;
}

.amin-shop-products__card.is-locked {
	opacity: 0.42;
}

.amin-shop-products__card.is-locked .amin-shop-products__check {
	cursor: not-allowed;
	background: #f1f5f9;
}

.amin-shop-products__pages {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.amin-shop-products__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.amin-shop-products__page,
.elementor-element .amin-shop-products__page {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	margin: 0 !important;
	padding: 0 10px !important;
	border: 1px solid #e8edf3 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #64748b !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	box-shadow: none !important;
	cursor: pointer;
}

.amin-shop-products__page.is-current,
.elementor-element .amin-shop-products__page.is-current {
	border-color: var(--amin-shop-orange) !important;
	background: var(--amin-shop-orange) !important;
	color: #fff !important;
}

.amin-shop-products__page:disabled {
	opacity: 0.4;
	cursor: default;
}

.amin-shop-products__dots {
	color: #94a3b8;
	padding: 0 4px;
}

.amin-shop-compare {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.45);
}

.amin-shop-compare[hidden] {
	display: none !important;
}

.amin-shop-compare__box {
	position: relative;
	width: min(1120px, 100%);
	max-height: min(88vh, 860px);
	overflow: auto;
	padding: 28px 24px 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.amin-shop-compare__close,
.elementor-element .amin-shop-compare__close {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f1f5f9 !important;
	color: #475569 !important;
	font-size: 22px;
	line-height: 1;
	box-shadow: none !important;
	cursor: pointer;
}

.amin-shop-compare__title {
	margin: 0 0 18px !important;
	color: #1a2332;
	font-size: 20px;
	font-weight: 800;
	text-align: center;
}

.amin-shop-compare__table-wrap {
	overflow-x: auto;
}

.amin-shop-compare__table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
}

.amin-shop-compare__table th,
.amin-shop-compare__table td {
	padding: 12px 14px;
	border: 1px solid #eef2f6;
	color: #334155;
	font-size: 13px;
	text-align: center;
	vertical-align: middle;
}

.amin-shop-compare__table thead th {
	background: #f8fafc;
	font-weight: 800;
}

.amin-shop-compare__table tbody th {
	width: 160px;
	background: #fbfcfe;
	color: #64748b;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.amin-shop-compare__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #1a2332 !important;
	text-decoration: none !important;
}

.amin-shop-compare__head img {
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: 12px;
	background: #fff;
}

.amin-shop-compare__save {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

@media (max-width: 1199px) {
	.amin-shop-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.amin-shop-products__bar {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 14px;
	}

	.amin-shop-products__tools {
		justify-content: space-between;
	}

	.amin-shop-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.amin-shop-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.amin-shop-products .amin-home-deals-card,
	.amin-shop-products .amin-shop-products__card {
		padding: 8px 8px 10px;
		border-radius: 14px;
	}

	.amin-shop-products .amin-home-deals-card__name,
	.amin-shop-products h3.amin-home-deals-card__name {
		font-size: 12px !important;
		min-height: calc(12px * 1.4 * 2);
	}

	.amin-shop-products .amin-home-deals-card__prices strong {
		font-size: 13px;
	}

	.amin-shop-products .amin-home-deals-card__plus,
	.amin-shop-products .amin-home-deals-card__minus {
		width: 26px;
		height: 26px;
		font-size: 15px;
	}

	.amin-shop-products .amin-home-deals-card__cat,
	.amin-shop-products .amin-home-deals-card__sale {
		font-size: 10px;
		padding: 2px 7px;
	}

	.amin-shop-products__check {
		top: 36px;
		left: 8px;
		width: 22px;
		height: 22px;
	}
}

@media (max-width: 559px) {
	.amin-shop-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.amin-shop-products__sort-label {
		width: 100%;
	}

	.amin-shop-products__check {
		top: 34px;
		left: 8px;
	}
}
