/* ===== شگفتانه حرفه‌ای - استایل عمومی ===== */
.shegofteh-wrap {
	direction: rtl;
	font-family: var(--sh-font, inherit);
	color: var(--sh-text, #20232a);
	margin: 30px 0;
	--sh-cols: 4;
	--sh-cols-tablet: 2;
	--sh-cols-mobile: 1;
	--sh-gap: 22px;
	--sh-radius: 18px;
	--sh-primary-rgb: 108, 60, 233;
}
.shegofteh-wrap *, .shegofteh-wrap *::before, .shegofteh-wrap *::after { box-sizing: border-box; }
.shegofteh-wrap [hidden] { display: none !important; }

.shegofteh-title-main {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 18px;
	padding: 0;
	color: var(--sh-text, #20232a);
}
.shegofteh-title-main::before {
	content: "";
	width: 5px;
	height: 28px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--sh-primary), var(--sh-secondary));
	box-shadow: 0 5px 15px color-mix(in srgb, var(--sh-primary) 35%, transparent);
}
.shegofteh-empty {
	padding: 28px;
	text-align: center;
	border: 1px dashed #d8d8df;
	border-radius: 14px;
	background: #fff;
	opacity: .8;
}

/* ---------- گرید ---------- */
.shegofteh-grid-items {
	display: grid;
	grid-template-columns: repeat(var(--sh-cols), minmax(0, 1fr));
	gap: var(--sh-gap);
}
.shegofteh-item { min-width: 0; height: auto; }

@media (max-width: 1024px) {
	.shegofteh-grid-items { grid-template-columns: repeat(var(--sh-cols-tablet), minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.shegofteh-grid-items { grid-template-columns: repeat(var(--sh-cols-mobile), minmax(0, 1fr)); }
}

/* ---------- کارت پایه ---------- */
.shegofteh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--sh-bg, #fff);
	border: 1px solid var(--sh-border, #eee);
	border-radius: var(--sh-radius);
	overflow: hidden;
	text-decoration: none !important;
	color: inherit !important;
	height: 100%;
	isolation: isolate;
	transform-style: preserve-3d;
	transition: transform .36s cubic-bezier(.2,.8,.2,1), box-shadow .36s ease, border-color .3s ease, background .3s ease;
	will-change: transform;
}
.shegofteh-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	z-index: 5;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.shegofteh-card-glare {
	position: absolute;
	inset: 0;
	z-index: 8;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle at var(--sh-mouse-x, 50%) var(--sh-mouse-y, 30%), rgba(255,255,255,.35), transparent 35%);
	transition: opacity .25s ease;
}

.shegofteh-img-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--sh-bg) 75%, #f2f3f8));
}
.shegofteh-img-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .45s ease, filter .45s ease;
}
.shegofteh-img-secondary { opacity: 0; }

.shegofteh-content {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 15px;
	z-index: 3;
}
.shegofteh-name {
	font-size: var(--sh-title-size, 16px);
	font-weight: 750;
	margin: 0 0 9px;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--sh-text, #20232a);
}
.shegofteh-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	margin-bottom: 7px;
	min-height: 18px;
	color: #6f7280;
}
.shegofteh-rating span { color: #ffb300; font-size: 15px; line-height: 1; }
.shegofteh-rating b { color: var(--sh-text); font-weight: 800; }
.shegofteh-rating small { opacity: .7; }

.shegofteh-price {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 9px;
	align-items: baseline;
	font-size: var(--sh-price-size, 15px);
	margin: auto 0 11px;
	line-height: 1.5;
}
.shegofteh-price-old {
	text-decoration: line-through;
	opacity: .52;
	font-size: .78em;
	white-space: nowrap;
}
.shegofteh-price-new {
	color: var(--sh-primary);
	font-weight: 850;
	white-space: nowrap;
}
.shegofteh-price .woocommerce-Price-currencySymbol { font-size: .76em; }

.shegofteh-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--sh-badge, #e91e63);
	color: #fff;
	font-size: var(--sh-badge-size, 12px);
	font-style: normal;
	font-weight: 750;
	padding: 6px 10px;
	border-radius: 999px;
	z-index: 12;
	box-shadow: 0 7px 18px color-mix(in srgb, var(--sh-badge) 32%, transparent);
	transition: transform .3s ease;
}
.shegofteh-badge b, .shegofteh-badge em { font: inherit; font-style: normal; }
.shegofteh-badge em { font-weight: 900; }
.shegofteh-card:hover .shegofteh-badge { transform: translateY(-2px) scale(1.03); }

.shegofteh-countdown {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin: 0 0 11px;
}
.shegofteh-countdown > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 5px 2px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--sh-primary) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--sh-primary) 16%, transparent);
}
.shegofteh-countdown b { font-size: 11px; line-height: 1.2; color: var(--sh-primary); }
.shegofteh-countdown small { font-size: 8px; opacity: .7; margin-top: 2px; }
.shegofteh-countdown.is-ended { display: none; }

.shegofteh-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	text-align: center;
	background: var(--sh-primary);
	color: #fff !important;
	font-size: var(--sh-btn-size, 14px);
	padding: 10px 12px;
	border-radius: max(8px, calc(var(--sh-radius) - 7px));
	font-weight: 750;
	overflow: hidden;
	border: 1px solid transparent;
	transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s ease;
}
.shegofteh-btn span, .shegofteh-btn i { position: relative; z-index: 2; font-style: normal; }
.shegofteh-btn i { transition: transform .3s ease; }
.shegofteh-card:hover .shegofteh-btn i { transform: translateX(-4px); }

/* ---------- سایه‌ها ---------- */
.shegofteh-shadow-none .shegofteh-card { box-shadow: none; }
.shegofteh-shadow-soft .shegofteh-card { box-shadow: 0 7px 22px rgba(25, 28, 45, .07); }
.shegofteh-shadow-medium .shegofteh-card { box-shadow: 0 12px 32px rgba(25, 28, 45, .11); }
.shegofteh-shadow-deep .shegofteh-card { box-shadow: 0 20px 48px rgba(25, 28, 45, .17); }

/* ---------- افکت کارت ---------- */
.shegofteh-effect-lift .shegofteh-card:hover { transform: translateY(-8px); }
.shegofteh-effect-lift-glow .shegofteh-card:hover {
	transform: translateY(-9px) scale(1.012);
	box-shadow: 0 22px 46px color-mix(in srgb, var(--sh-primary) 20%, rgba(20,25,40,.14));
	border-color: color-mix(in srgb, var(--sh-primary) 35%, var(--sh-border));
}
.shegofteh-effect-tilt-3d .shegofteh-card {
	transform: perspective(900px) rotateX(var(--sh-rotate-x, 0deg)) rotateY(var(--sh-rotate-y, 0deg)) translateY(var(--sh-tilt-y, 0));
}
.shegofteh-effect-tilt-3d .shegofteh-card:hover { --sh-tilt-y: -5px; }
.shegofteh-effect-tilt-3d .shegofteh-card:hover .shegofteh-card-glare { opacity: 1; }
.shegofteh-effect-shine .shegofteh-card::before {
	content: "";
	position: absolute;
	top: -80%;
	left: -80%;
	width: 55%;
	height: 260%;
	z-index: 9;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.56), transparent);
	transform: rotate(20deg) translateX(-180%);
	transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.shegofteh-effect-shine .shegofteh-card:hover::before { transform: rotate(20deg) translateX(560%); }
.shegofteh-effect-border-flow .shegofteh-card { border-color: transparent; overflow: visible; }
.shegofteh-effect-border-flow .shegofteh-card::before {
	content: "";
	position: absolute;
	inset: -2px;
	z-index: -2;
	border-radius: calc(var(--sh-radius) + 2px);
	background: conic-gradient(from var(--sh-angle), var(--sh-primary), var(--sh-secondary), var(--sh-badge), var(--sh-primary));
	animation: shegofteh-border-spin 4s linear infinite;
}
.shegofteh-effect-border-flow .shegofteh-card::after {
	inset: 1px;
	z-index: -1;
	background: var(--sh-bg);
	box-shadow: none;
}
@property --sh-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes shegofteh-border-spin { to { --sh-angle: 360deg; } }
.shegofteh-effect-soft-float .shegofteh-item:nth-child(odd) .shegofteh-card { animation: shegofteh-float 4.4s ease-in-out infinite; }
.shegofteh-effect-soft-float .shegofteh-item:nth-child(even) .shegofteh-card { animation: shegofteh-float 4.4s ease-in-out -2.2s infinite; }
@keyframes shegofteh-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- افکت تصویر ---------- */
.shegofteh-img-effect-zoom .shegofteh-card:hover .shegofteh-img-primary,
.shegofteh-img-effect-zoom-swap .shegofteh-card:hover .shegofteh-img-primary { transform: scale(1.09); }
.shegofteh-img-effect-zoom-swap .shegofteh-card:hover .shegofteh-img-primary:has(+ .shegofteh-img-secondary) { opacity: 0; transform: scale(1.05); }
.shegofteh-img-effect-zoom-swap .shegofteh-card:hover .shegofteh-img-secondary { opacity: 1; transform: scale(1.08); }
.shegofteh-img-effect-pan .shegofteh-img-primary { transform: scale(1.12) translateX(3%); }
.shegofteh-img-effect-pan .shegofteh-card:hover .shegofteh-img-primary { transform: scale(1.12) translateX(-3%); }
.shegofteh-img-effect-grayscale .shegofteh-img-primary { filter: grayscale(1); }
.shegofteh-img-effect-grayscale .shegofteh-card:hover .shegofteh-img-primary { filter: grayscale(0); transform: scale(1.05); }
.shegofteh-img-effect-blur-clear .shegofteh-img-primary { filter: blur(2px); transform: scale(1.04); }
.shegofteh-img-effect-blur-clear .shegofteh-card:hover .shegofteh-img-primary { filter: blur(0); transform: scale(1); }
.shegofteh-img-effect-rotate-soft .shegofteh-card:hover .shegofteh-img-primary { transform: scale(1.08) rotate(2.2deg); }

/* ---------- سبک بج ---------- */
.shegofteh-badge-style-gradient .shegofteh-badge {
	background: linear-gradient(135deg, var(--sh-badge), var(--sh-primary));
	box-shadow: 0 8px 20px color-mix(in srgb, var(--sh-badge) 35%, transparent), inset 0 1px rgba(255,255,255,.35);
}
.shegofteh-badge-style-glass .shegofteh-badge {
	background: color-mix(in srgb, var(--sh-badge) 68%, transparent);
	backdrop-filter: blur(10px) saturate(1.3);
	-webkit-backdrop-filter: blur(10px) saturate(1.3);
	border: 1px solid rgba(255,255,255,.45);
}
.shegofteh-badge-style-burst .shegofteh-badge {
	width: 68px;
	height: 68px;
	padding: 7px;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
	border-radius: 22% 78% 28% 72% / 68% 30% 70% 32%;
	transform: rotate(-7deg);
	text-align: center;
	line-height: 1.05;
}
.shegofteh-badge-style-burst .shegofteh-card:hover .shegofteh-badge { transform: rotate(0) scale(1.05); }
.shegofteh-badge-style-outline .shegofteh-badge {
	background: var(--sh-bg);
	color: var(--sh-badge);
	border: 2px solid currentColor;
	box-shadow: none;
}

/* ---------- سبک دکمه ---------- */
.shegofteh-btn-style-gradient-sweep .shegofteh-btn { background: linear-gradient(135deg, var(--sh-primary), var(--sh-secondary)); }
.shegofteh-btn-style-gradient-sweep .shegofteh-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.38) 50%, transparent 75%);
	transform: translateX(120%);
	transition: transform .65s ease;
}
.shegofteh-btn-style-gradient-sweep .shegofteh-card:hover .shegofteh-btn::before { transform: translateX(-120%); }
.shegofteh-btn-style-outline .shegofteh-btn { background: transparent; color: var(--sh-primary) !important; border-color: var(--sh-primary); }
.shegofteh-btn-style-outline .shegofteh-card:hover .shegofteh-btn { background: var(--sh-primary); color: #fff !important; }
.shegofteh-btn-style-glass .shegofteh-btn {
	background: color-mix(in srgb, var(--sh-primary) 16%, transparent);
	color: var(--sh-primary) !important;
	border-color: color-mix(in srgb, var(--sh-primary) 30%, transparent);
	backdrop-filter: blur(8px);
}
.shegofteh-btn-style-arrow-slide .shegofteh-btn { justify-content: space-between; padding-inline: 15px; }
.shegofteh-btn-style-arrow-slide .shegofteh-btn i {
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: rgba(255,255,255,.2);
}

/* ---------- مدل‌های نمایش ---------- */
.shegofteh-tpl-grid-modern .shegofteh-card { background: #fff; }
.shegofteh-tpl-grid-modern .shegofteh-img-wrap { margin: 9px 9px 0; border-radius: max(9px, calc(var(--sh-radius) - 7px)); }
.shegofteh-tpl-grid-modern .shegofteh-badge { top: 18px; right: 18px; }
.shegofteh-tpl-grid-modern .shegofteh-content { padding-top: 13px; }

.shegofteh-tpl-grid-minimal .shegofteh-card { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.shegofteh-tpl-grid-minimal .shegofteh-img-wrap { border-radius: var(--sh-radius); }
.shegofteh-tpl-grid-minimal .shegofteh-content { padding: 12px 3px 3px; }
.shegofteh-tpl-grid-minimal .shegofteh-btn { background: transparent; color: var(--sh-primary) !important; border: 0; justify-content: flex-start; padding-inline: 0; }

.shegofteh-tpl-glass-card {
	padding: clamp(14px, 2vw, 28px);
	border-radius: calc(var(--sh-radius) + 10px);
	background:
		radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--sh-primary) 28%, transparent), transparent 38%),
		radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--sh-secondary) 25%, transparent), transparent 40%),
		linear-gradient(145deg, #f7f6ff, #eef7ff);
}
.shegofteh-tpl-glass-card .shegofteh-card {
	background: rgba(255,255,255,.48);
	border-color: rgba(255,255,255,.72);
	backdrop-filter: blur(16px) saturate(1.25);
	-webkit-backdrop-filter: blur(16px) saturate(1.25);
}
.shegofteh-tpl-glass-card .shegofteh-img-wrap { background: rgba(255,255,255,.44); }

.shegofteh-tpl-neon-card {
	padding: clamp(14px, 2vw, 26px);
	border-radius: calc(var(--sh-radius) + 8px);
	background: radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--sh-primary) 25%, transparent), transparent 45%), #0e1020;
	--sh-text: #f5f7ff !important;
	--sh-bg: #15182a !important;
	--sh-border: color-mix(in srgb, var(--sh-primary) 45%, #262a43) !important;
}
.shegofteh-tpl-neon-card .shegofteh-card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--sh-primary) 35%, transparent), 0 0 25px color-mix(in srgb, var(--sh-primary) 15%, transparent); }
.shegofteh-tpl-neon-card .shegofteh-img-wrap { background: #101323; }
.shegofteh-tpl-neon-card .shegofteh-price-old, .shegofteh-tpl-neon-card .shegofteh-rating { color: #c9cee1; }
.shegofteh-tpl-neon-card .shegofteh-countdown > span { background: rgba(255,255,255,.05); }

.shegofteh-tpl-split-card .shegofteh-card { display: grid; grid-template-columns: minmax(110px, 45%) 1fr; }
.shegofteh-tpl-split-card .shegofteh-img-wrap { aspect-ratio: auto; min-height: 100%; }
.shegofteh-tpl-split-card .shegofteh-content { padding: 17px; }
.shegofteh-tpl-split-card .shegofteh-badge { right: 10px; top: 10px; }

.shegofteh-tpl-hover-reveal .shegofteh-card { min-height: 330px; background: #111; }
.shegofteh-tpl-hover-reveal .shegofteh-img-wrap { position: absolute; inset: 0; aspect-ratio: auto; }
.shegofteh-tpl-hover-reveal .shegofteh-img-wrap::after { content: ""; position: absolute; inset: 20% 0 0; background: linear-gradient(transparent, rgba(8,10,18,.94)); z-index: 2; }
.shegofteh-tpl-hover-reveal .shegofteh-content { justify-content: flex-end; color: #fff; transform: translateY(56px); transition: transform .4s ease; padding: 20px; }
.shegofteh-tpl-hover-reveal .shegofteh-card:hover .shegofteh-content { transform: translateY(0); }
.shegofteh-tpl-hover-reveal .shegofteh-name { color: #fff; }
.shegofteh-tpl-hover-reveal .shegofteh-rating, .shegofteh-tpl-hover-reveal .shegofteh-price-old { color: #e1e4ef; }
.shegofteh-tpl-hover-reveal .shegofteh-countdown, .shegofteh-tpl-hover-reveal .shegofteh-btn { opacity: 0; transform: translateY(12px); transition: .35s ease .05s; }
.shegofteh-tpl-hover-reveal .shegofteh-card:hover .shegofteh-countdown, .shegofteh-tpl-hover-reveal .shegofteh-card:hover .shegofteh-btn { opacity: 1; transform: translateY(0); }

.shegofteh-tpl-gradient-border .shegofteh-card { border: 2px solid transparent; background: linear-gradient(var(--sh-bg), var(--sh-bg)) padding-box, linear-gradient(135deg, var(--sh-primary), var(--sh-secondary), var(--sh-badge)) border-box; }
.shegofteh-tpl-gradient-border .shegofteh-img-wrap { margin: 7px 7px 0; border-radius: max(8px, calc(var(--sh-radius) - 8px)); }

.shegofteh-tpl-compact-deal .shegofteh-card { display: grid; grid-template-columns: 94px 1fr; min-height: 150px; }
.shegofteh-tpl-compact-deal .shegofteh-img-wrap { aspect-ratio: auto; }
.shegofteh-tpl-compact-deal .shegofteh-content { padding: 11px; }
.shegofteh-tpl-compact-deal .shegofteh-name { -webkit-line-clamp: 1; margin-bottom: 4px; }
.shegofteh-tpl-compact-deal .shegofteh-rating { margin-bottom: 2px; }
.shegofteh-tpl-compact-deal .shegofteh-countdown { display: none; }
.shegofteh-tpl-compact-deal .shegofteh-btn { padding-block: 7px; }
.shegofteh-tpl-compact-deal .shegofteh-badge b { display: none; }

.shegofteh-tpl-spotlight .shegofteh-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: 6;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(240px circle at var(--sh-mouse-x, 50%) var(--sh-mouse-y, 20%), color-mix(in srgb, var(--sh-primary) 23%, transparent), transparent 42%);
	opacity: 0;
	transition: opacity .25s ease;
}
.shegofteh-tpl-spotlight .shegofteh-card:hover::before { opacity: 1; }

/* ---------- اسلایدر ---------- */
.shegofteh-inner.swiper { padding: 8px 5px 44px; overflow: hidden; }
.shegofteh-inner.swiper .swiper-slide { height: auto; }
.shegofteh-inner .swiper-button-next,
.shegofteh-inner .swiper-button-prev {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--sh-primary);
	box-shadow: 0 8px 20px rgba(20,25,40,.12);
}
.shegofteh-inner .swiper-button-next::after,
.shegofteh-inner .swiper-button-prev::after { font-size: 14px; font-weight: 900; }
.shegofteh-inner .swiper-pagination-bullet { transition: width .25s ease, border-radius .25s ease; }
.shegofteh-inner .swiper-pagination-bullet-active { width: 22px; border-radius: 6px; background: var(--sh-primary); }
.shegofteh-tpl-carousel-basic .swiper-slide,
.shegofteh-tpl-coverflow .swiper-slide { width: calc((100% - (var(--sh-cols) - 1) * var(--sh-gap)) / var(--sh-cols)); }
.shegofteh-tpl-carousel-fade .swiper-slide { width: 100%; }
.shegofteh-tpl-carousel-fade .shegofteh-card { display: grid; grid-template-columns: minmax(250px, 48%) 1fr; min-height: 390px; }
.shegofteh-tpl-carousel-fade .shegofteh-img-wrap { aspect-ratio: auto; }
.shegofteh-tpl-carousel-fade .shegofteh-content { justify-content: center; padding: clamp(22px, 5vw, 60px); }
.shegofteh-tpl-loop-infinite .swiper-slide { width: 230px; }
.shegofteh-tpl-coverflow .swiper { overflow: visible; }

@media (max-width: 1024px) {
	.shegofteh-tpl-carousel-basic .swiper-slide,
	.shegofteh-tpl-coverflow .swiper-slide { width: calc((100% - (var(--sh-cols-tablet) - 1) * var(--sh-gap)) / var(--sh-cols-tablet)); }
}
@media (max-width: 600px) {
	.shegofteh-tpl-carousel-basic .swiper-slide,
	.shegofteh-tpl-coverflow .swiper-slide { width: calc((100% - (var(--sh-cols-mobile) - 1) * var(--sh-gap)) / var(--sh-cols-mobile)); }
	.shegofteh-tpl-carousel-fade .shegofteh-card { grid-template-columns: 1fr; min-height: 0; }
	.shegofteh-tpl-carousel-fade .shegofteh-img-wrap { aspect-ratio: 1/1; }
	.shegofteh-tpl-carousel-fade .shegofteh-content { padding: 18px; }
}

/* ---------- مدل‌های قبلی ---------- */
.shegofteh-tpl-list-row .shegofteh-grid-items { grid-template-columns: 1fr !important; }
.shegofteh-tpl-list-row .shegofteh-card { display: grid; grid-template-columns: minmax(150px, 26%) 1fr; }
.shegofteh-tpl-list-row .shegofteh-img-wrap { aspect-ratio: 1 / 1; }
.shegofteh-tpl-list-row .shegofteh-content { padding: 20px; }
.shegofteh-tpl-card-stack .shegofteh-grid-items { display: flex; flex-wrap: wrap; justify-content: center; }
.shegofteh-tpl-card-stack .shegofteh-item { width: calc(100% / var(--sh-cols) - var(--sh-gap)); margin: calc(var(--sh-gap) / 2); }
.shegofteh-tpl-card-stack .shegofteh-item:nth-child(odd) { transform: rotate(-2deg); }
.shegofteh-tpl-card-stack .shegofteh-item:nth-child(even) { transform: rotate(2deg); }
.shegofteh-tpl-card-stack .shegofteh-item:hover { transform: rotate(0) scale(1.025); z-index: 4; }
.shegofteh-tpl-circle-badge .shegofteh-card { text-align: center; overflow: visible; margin-top: 28px; }
.shegofteh-tpl-circle-badge .shegofteh-img-wrap { border-radius: 50%; width: 76%; margin: -30px auto 0; aspect-ratio: 1 / 1; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--sh-primary), 0 10px 25px rgba(0,0,0,.12); }
.shegofteh-tpl-circle-badge .shegofteh-badge { top: 8px; right: 50%; transform: translateX(50%); }
.shegofteh-tpl-circle-badge .shegofteh-card:hover .shegofteh-badge { transform: translateX(50%) translateY(-2px) scale(1.03); }
.shegofteh-tpl-ribbon-corner .shegofteh-badge { top: 18px; right: -39px; transform: rotate(45deg); width: 145px; justify-content: center; border-radius: 0; }
.shegofteh-tpl-ribbon-corner .shegofteh-card:hover .shegofteh-badge { transform: rotate(45deg) scale(1.02); }

/* ---------- انیمیشن ورود ---------- */
.shegofteh-observe .shegofteh-item { opacity: 0; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--sh-index, 0) * 70ms); }
.shegofteh-observe.shegofteh-entrance-fade-up .shegofteh-item { transform: translateY(28px); }
.shegofteh-observe.shegofteh-entrance-zoom-in .shegofteh-item { transform: scale(.92); }
.shegofteh-observe.shegofteh-entrance-slide-right .shegofteh-item { transform: translateX(34px); }
.shegofteh-observe.shegofteh-entrance-flip-in .shegofteh-item { transform: perspective(700px) rotateY(-18deg) translateY(15px); transform-origin: right center; }
.shegofteh-observe .shegofteh-item.is-visible { opacity: 1; transform: none; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 780px) {
	.shegofteh-tpl-split-card .shegofteh-card,
	.shegofteh-tpl-compact-deal .shegofteh-card { grid-template-columns: 1fr; }
	.shegofteh-tpl-split-card .shegofteh-img-wrap,
	.shegofteh-tpl-compact-deal .shegofteh-img-wrap { aspect-ratio: 1 / 1; }
}
@media (max-width: 600px) {
	.shegofteh-wrap { margin: 22px 0; }
	.shegofteh-name { font-size: calc(var(--sh-title-size, 16px) * .96); }
	.shegofteh-title-main { font-size: 18px; }
	.shegofteh-tpl-list-row .shegofteh-card { grid-template-columns: 1fr; }
	.shegofteh-tpl-card-stack .shegofteh-item { width: calc(100% / var(--sh-cols-mobile) - var(--sh-gap)); }
}

@media (prefers-reduced-motion: reduce) {
	.shegofteh-wrap *, .shegofteh-wrap *::before, .shegofteh-wrap *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.shegofteh-observe .shegofteh-item { opacity: 1 !important; transform: none !important; }
}
