/* developed by web-premium.ir */

.hmyt-el-products {
	direction: rtl;
	font-family: inherit;
}


.hmyt-el-head {
	display: flex;
	align-items: center;
	margin-bottom: 18px;
	direction: rtl;
}

.hmyt-el-head-title {
	font-size: 18px;
	font-weight: 700;
	color: #1c1c25;
	line-height: 1.4;
	white-space: nowrap;
	flex-shrink: 0;
}


.hmyt-el-head-line {
	flex: 1 1 auto;
	height: 1px;
	min-width: 12px;
	margin: 0 14px;
	background: #e8ebef;
}

body.dark .hmyt-el-head-line {
	background: #3a3a47;
}

.hmyt-el-head-more {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: #424750;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.hmyt-el-head-more:hover {
	color: var(--hmyt-pc-primary, #ee1844);
}

.hmyt-el-head-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	color: #fff;
	padding: 7px 14px 7px 8px;
	border-radius: 20px 8px 8px 20px;
	background: var(--hmyt-pc-primary, #ee1844);
	transition: transform 0.3s ease, background-color 0.2s ease;
}

.hmyt-el-head-more:hover .hmyt-el-head-arrow {
	transform: translateX(-3px);
}

.hmyt-el-head-arrow svg {
	width: 12px;
	height: 12px;
}

body.dark .hmyt-el-head-title {
	color: #f3f4f6;
}


.hmyt-el-grid {
	display: grid;
	grid-template-columns: repeat(var(--hmyt-el-cols, 4), minmax(0, 1fr));
	column-gap: 16px;
	row-gap: 16px;
}


.hmyt-el-grid.is-list {
	grid-template-columns: 1fr;
}


.hmyt-el-card {
	background: #fff;
	border: 1px solid #f0f0f1;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hmyt-el-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hmyt-el-grid.is-list .hmyt-el-card {
	flex-direction: row;
	align-items: center;
}

.hmyt-el-grid.is-list .hmyt-el-thumb-wrap {
	width: 140px;
	flex-shrink: 0;
}

.hmyt-el-grid.is-list .hmyt-el-body {
	flex: 1;
	min-width: 0;
}


.hmyt-el-card.is-linked {
	cursor: pointer;
}



.hmyt-el-thumb-wrap {
	position: relative;
	display: grid;
	grid-template-columns: 100%;
	width: 100%;
}

.hmyt-el-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding-bottom: 100%;
	overflow: hidden;
	background: #f7f8fa;
}

.hmyt-el-thumb img,
.hmyt-el-thumb .hmyt-el-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hmyt-el-imgzoom-yes .hmyt-el-card:hover .hmyt-el-thumb img {
	transform: scale(1.06);
}


.hmyt-el-discount-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: var(--hmyt-pc-primary, #ee1844);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 8px;
	z-index: 2;
}

.hmyt-el-discount-badge svg {
	width: 11px;
	height: 11px;
}


.hmyt-el-countdown {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: calc(100% - 16px);
	padding: 4px 10px;
	border-radius: 9px;
	background-color: #ee1844;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(238, 24, 68, 0.28);
}

.hmyt-el-countdown svg {
	flex-shrink: 0;
	opacity: 0.95;
}

.hmyt-el-cd-days {
	font-size: 11px;
	font-weight: 600;
	opacity: 0.9;
}

.hmyt-el-cd-days:empty {
	display: none;
}

.hmyt-el-cd-time {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.5px;
}

.hmyt-el-countdown.is-expired {
	display: none;
}


.hmyt-el-wishlist {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
}

.hmyt-el-wishlist .hmyt-bookmark-button {
	background: #fff;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease;
}

.hmyt-el-wishlist .hmyt-bookmark-button:hover {
	transform: scale(1.08);
}

.hmyt-el-wishlist .hmyt-bookmark-button svg {
	width: 18px;
	height: 18px;
}


.hmyt-el-toprow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 34px;
	margin-bottom: 10px;
	padding: 10px;
}

.hmyt-el-toprow-start,
.hmyt-el-toprow-end {
	display: inline-flex;
	align-items: center;
}


.hmyt-el-toprow .hmyt-el-wishlist {
	position: static;
	top: auto;
	left: auto;
}

.hmyt-el-special-sell {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.hmyt-el-special-sell img {
	height: 15px;
	width: auto;
	display: block;
	margin: 0 !important;
}


.hmyt-el-body {
	display: flex;
	flex-direction: column;
	padding: 12px;
	gap: 8px;
	flex: 1;
}


.hmyt-el-cat {
	font-size: 11px;
	font-weight: 500;
	color: #81858b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hmyt-el-cat:hover {
	color: var(--hmyt-pc-primary, #ee1844);
}


.hmyt-el-rating {
	display: flex;
	align-items: center;
	gap: 4px;
}

.hmyt-el-star {
	width: 18px;
	height: 18px;
	color: #ffb900;
	flex-shrink: 0;
	vertical-align: middle;
	margin-bottom: 2px;
}

.hmyt-el-rating-val {
	font-size: 14px;
	font-weight: 700;
	color: #1c1c25;
}

.hmyt-el-rating-count {
	font-size: 11px;
	color: #a1a3a8;
}

body.dark .hmyt-el-rating-val { color: #f3f4f6; }


.hmyt-el-excerpt {
	font-size: 12px;
	line-height: 1.7;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


.hmyt-el-badges {
	margin: 0;
}


.hmyt-el-trust {
	margin: 2px 0;
}


.hmyt-el-trust-rating-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 2px 0;
}

.hmyt-el-trust-rating-row .hmyt-el-trust {
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.hmyt-el-trust-rating-row .hmyt-el-rating {
	flex-shrink: 0;
}


.hmyt-el-trust.is-compact .hmyt-pc-vertical-slider,
.hmyt-el-trust.is-compact .hmyt-pc-slider-item {
	height: 20px;
}

.hmyt-el-trust.is-compact .hmyt-pc-slider-item img {
	width: 14px;
	height: 14px !important;
}

.hmyt-el-trust.is-compact .hmyt-pc-slider-item p {
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
}

.hmyt-el-trust.is-compact .hmyt-pc-slider-item p .hmyt-ts-num {
	font-size: 12px;
}


@media (max-width: 767px) {
	.hmyt-el-trust .hmyt-pc-vertical-slider,
	.hmyt-el-trust .hmyt-pc-slider-item,
	.hmyt-el-trust.is-compact .hmyt-pc-vertical-slider,
	.hmyt-el-trust.is-compact .hmyt-pc-slider-item {
		height: 16px;
	}

	.hmyt-el-trust .hmyt-pc-slider-item {
		gap: 5px;
	}

	.hmyt-el-trust .hmyt-pc-slider-item img,
	.hmyt-el-trust.is-compact .hmyt-pc-slider-item img {
		width: 11px;
		height: 11px !important;
	}

	.hmyt-el-trust .hmyt-pc-slider-item p,
	.hmyt-el-trust.is-compact .hmyt-pc-slider-item p {
		font-size: 9.5px;
		line-height: 16px;
	}

	.hmyt-el-trust .hmyt-pc-slider-item p .hmyt-ts-num,
	.hmyt-el-trust.is-compact .hmyt-pc-slider-item p .hmyt-ts-num {
		font-size: 10px;
	}
}


.hmyt-el-loadmore-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 24px;
}

.hmyt-el-loadmore-wrap .hmyt-el-loadmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 180px;
	padding: 12px 28px;
	border: 1px solid var(--hmyt-pc-primary, #ee1844);
	border-radius: 12px;
	background: transparent;
	color: var(--hmyt-pc-primary, #ee1844);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hmyt-el-loadmore:hover {
	background: var(--hmyt-pc-primary, #ee1844);
	color: #fff;
}

.hmyt-el-loadmore.is-loading {
	cursor: wait;
	opacity: 0.8;
}

.hmyt-el-loadmore.is-loading .hmyt-el-loadmore-text {
	opacity: 0.6;
}

.hmyt-el-loadmore-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: hmyt-el-spin 0.7s linear infinite;
}

.hmyt-el-loadmore.is-loading .hmyt-el-loadmore-spinner {
	display: inline-block;
}

@keyframes hmyt-el-spin {
	to { transform: rotate(360deg); }
}

.hmyt-el-loadmore-done {
	font-size: 13px;
	color: #81858b;
	padding: 8px 0;
}

body.dark .hmyt-el-cat { color: #9ca3af; }
body.dark .hmyt-el-excerpt { color: #9ca3af; }
body.dark .hmyt-el-wishlist .hmyt-bookmark-button { background: #353542; }

.hmyt-el-body .hmyt-el-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	color: #1c1c25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hmyt-el-title > a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}


.hmyt-el-cart {
	margin-top: auto;
}


.hmyt-el-pr-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
}

.hmyt-el-pr-row .hmyt-el-cart {
	margin-top: 0;
	width: auto;
}

/* در حالتِ «فقط قیمت» قیمت به‌اندازه‌ی محتوا جمع شود تا امتیاز مقابلش (سرِ دیگرِ ردیف) بنشیند. */
.hmyt-el-pr-row .hmyt-el-cart .hmyt-pc-compact-item {
	width: auto;
}

.hmyt-el-pr-row .hmyt-el-rating {
	margin: 0;
	flex-shrink: 0;
}


.hmyt-el-cart .hmyt-pc-compact-item {
	margin: 0;
	width: 100%;
	align-items: stretch;
	gap: 10px;
}

.hmyt-el-cart .hmyt-pc-compact-item > .hmyt-pc-price-box {
	flex-shrink: 0;
	max-width: none;
	justify-content: center;
}

.hmyt-el-cart .hmyt-pc-compact-item > .hmyt-pc-action-box {
	flex: 1 1 auto;
	max-width: none;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}


.hmyt-el-wishlist .hmyt-bookmark-label-text {
	display: none !important;
}


.hmyt-el-carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 4px 4px 8px;
}


.hmyt-el-carousel .swiper-slide {
	height: auto;
	display: flex;
}

.hmyt-el-carousel .hmyt-el-slide > .hmyt-el-card,
.hmyt-el-carousel .swiper-slide .hmyt-el-card {
	width: 100%;
	height: 100%;
}


.hmyt-el-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #1c1c25;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.hmyt-el-arrow:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hmyt-el-arrow svg {
	width: 22px;
	height: 22px;
	display: block;
}


.hmyt-el-arrow-prev {
	right: 8px;
}

.hmyt-el-arrow-next {
	left: 8px;
}


.hmyt-el-arrow.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}


.hmyt-el-carousel .swiper-pagination.hmyt-el-pagination {
	position: relative;
	bottom: auto;
	left: auto;
	top: auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 22px;
}

.hmyt-el-pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0 !important;
	background-color: #d3d9e2;
	opacity: 1;
	border-radius: 99px;
	transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, transform 0.25s ease;
}

.hmyt-el-pagination .swiper-pagination-bullet:hover {
	transform: scale(1.25);
}

.hmyt-el-pagination .swiper-pagination-bullet-active {
	width: 26px;
	background-color: var(--hmyt-pc-primary, #ee1844);
}

body.dark .hmyt-el-arrow {
	background: #353542;
	color: #f3f4f6;
}


.hmyt-el-atc {
	direction: rtl;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.hmyt-el-atc .hmyt-pc-compact-item {
	margin: 0;
	width: 100%;
	align-items: center;
	gap: 8px;
}


.hmyt-el-atc .hmyt-pc-compact-item > .hmyt-pc-price-box {
	max-width: none;
}

.hmyt-el-atc .hmyt-pc-compact-item > .hmyt-pc-action-box {
	max-width: none;
	min-width: 0;
}

.hmyt-el-atc-preview-note {
	font-size: 10px;
	color: #a1a3a8;
	margin-bottom: 4px;
}


.hmyt-el-empty {
	direction: rtl;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
	padding: 48px 24px;
	border: 1.5px dashed #dde1e7;
	border-radius: 18px;
	background:
		radial-gradient(circle at 50% -10%, rgba(13, 89, 241, 0.05), transparent 55%),
		#fbfcfe;
	color: #6b7280;
}

.hmyt-el-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	color: var(--hmyt-pc-primary, #ee1844);
	background: color-mix(in srgb, var(--hmyt-pc-primary, #ee1844) 9%, #fff);
}

.hmyt-el-empty-icon svg {
	width: 36px;
	height: 36px;
}

.hmyt-el-empty-text {
	font-size: 14.5px;
	font-weight: 600;
	color: #4b5563;
	line-height: 1.8;
	max-width: 380px;
}

body.dark .hmyt-el-empty {
	background: #20202a;
	border-color: #3a3a47;
}

body.dark .hmyt-el-empty-text {
	color: #cbd0d8;
}


body.dark .hmyt-el-card {
	background: #262631;
	border-color: #353542;
}

body.dark .hmyt-el-title,
body.dark .hmyt-el-title a {
	color: #f3f4f6;
}

body.dark .hmyt-el-thumb {
	background: #1f1f29;
}


@media (max-width: 1024px) {
	.hmyt-el-grid:not([style*="--hmyt-el-cols"]) {
		--hmyt-el-cols: 3;
	}
}

@media (max-width: 767px) {
	.hmyt-el-grid {
		column-gap: 10px;
		row-gap: 10px;
	}
	.hmyt-el-grid.is-list .hmyt-el-thumb {
		width: 110px;
		padding-bottom: 110px;
	}
}
