/* مناسبت‌های شرمیلا — استایل نمایش سایت */

/* ============================== بج ============================== */
.so-has-badge,
.so-badge-host { position: relative; }

.so-badge {
	--so-bg: #e11d74;
	--so-fg: #fff;
	--so-scale: 1;
	position: absolute;
	z-index: 9;
	display: inline-flex;
	align-items: center;
	gap: calc(5px * var(--so-scale));
	background: var(--so-bg);
	color: var(--so-fg);
	font-size: calc(12px * var(--so-scale));
	font-weight: 700;
	line-height: 1.2;
	padding: calc(5px * var(--so-scale)) calc(11px * var(--so-scale));
	box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
	pointer-events: none;
	white-space: nowrap;
}
.so-badge .so-ico { width: calc(15px * var(--so-scale)); height: calc(15px * var(--so-scale)); display: block; }
.so-badge__icon { display: inline-flex; }

/* موقعیت */
.so-pos-top-right    { top: 10px;    right: 10px; }
.so-pos-top-left     { top: 10px;    left: 10px; }
.so-pos-bottom-right { bottom: 10px; right: 10px; }
.so-pos-bottom-left  { bottom: 10px; left: 10px; }

/* سبک‌ها */
.so-badge--pill { border-radius: 999px; }

.so-badge--ribbon {
	border-radius: 0;
	padding-inline: calc(14px * var(--so-scale)) calc(18px * var(--so-scale));
	clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}
.so-pos-top-left.so-badge--ribbon,
.so-pos-bottom-left.so-badge--ribbon {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
	padding-inline: calc(18px * var(--so-scale)) calc(14px * var(--so-scale));
}
.so-pos-top-right.so-badge--ribbon { right: 0; top: 12px; }
.so-pos-top-left.so-badge--ribbon  { left: 0;  top: 12px; }

.so-badge--seal {
	flex-direction: column;
	justify-content: center;
	width: calc(62px * var(--so-scale));
	height: calc(62px * var(--so-scale));
	padding: 4px;
	gap: 2px;
	text-align: center;
	font-size: calc(10px * var(--so-scale));
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--so-bg), 0 0 0 5px rgba(255, 255, 255, .85), 0 6px 16px rgba(0, 0, 0, .2);
	white-space: normal;
}
.so-badge--seal .so-ico { width: calc(18px * var(--so-scale)); height: calc(18px * var(--so-scale)); }

.so-badge--image {
	background: transparent;
	box-shadow: none;
	padding: 0;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}
.so-badge--image .so-badge__img {
	display: block;
	width: calc(72px * var(--so-scale));
	height: auto;
	max-width: 40vw;
}

/* صفحه تک‌محصول */
.so-ctx-single { position: absolute; top: 14px; right: 14px; z-index: 20; }
.so-ctx-single.so-pos-top-left { right: auto; left: 14px; }
.so-ctx-single.so-pos-bottom-right, .so-ctx-single.so-pos-bottom-left { top: 14px; bottom: auto; }
.single-product div.product { position: relative; }
.so-unavailable-note {
	margin: 12px 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 14px;
}

/* ============================ اسلایدر ============================ */
.so-slider {
	--so-bg: #fdf2f8;
	--so-bg2: #fce7f3;
	--so-text: #831843;
	--so-accent: #e11d74;
	--so-radius: 18px;
	--so-cols-d: 4;
	--so-cols-t: 3;
	--so-cols-m: 2;
	--so-gap: 16px;
	position: relative;
	margin: 28px 0;
	padding: 22px 22px 26px;
	border-radius: var(--so-radius);
	background: linear-gradient(135deg, var(--so-bg), var(--so-bg2));
	color: var(--so-text);
	overflow: hidden;
	box-sizing: border-box;
}
.so-slider *, .so-slider *::before, .so-slider *::after { box-sizing: border-box; }

.so-slider__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 18px;
}
.so-slider__titles { display: flex; align-items: center; gap: 12px; }
.so-slider__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px; height: 54px;
	border-radius: 50%;
	background: var(--so-accent);
	color: #fff;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--so-accent) 45%, transparent);
	animation: so-pulse 2.4s ease-in-out infinite;
}
@keyframes so-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.so-slider__title { margin: 0; font-size: 22px; line-height: 1.4; color: var(--so-text); font-weight: 800; }
.so-slider__sub { margin: 2px 0 0; font-size: 14px; opacity: .8; }

/* شمارنده */
.so-cd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.so-cd__label { font-size: 13px; font-weight: 700; }
.so-cd__boxes { display: flex; align-items: center; gap: 6px; direction: ltr; }
.so-cd__box {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 58px; padding: 7px 6px 6px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.so-cd__num { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--so-accent); font-variant-numeric: tabular-nums; }
.so-cd__lbl { margin-top: 3px; font-size: 11px; color: var(--so-text); opacity: .75; }
.so-cd__sep { font-size: 20px; font-weight: 800; color: var(--so-accent); animation: so-blink 1s steps(2, start) infinite; }
@keyframes so-blink { to { opacity: .25; } }
.so-cd.is-ended .so-cd__boxes { display: none; }
.so-cd__ended { font-weight: 700; color: var(--so-accent); }
.so-countdown-wrap { display: inline-block; }

/* مسیر اسلاید */
.so-slider__viewport { position: relative; }
.so-slider__track {
	display: flex;
	gap: var(--so-gap);
	margin: 0; padding: 4px 2px 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.so-slider__track::-webkit-scrollbar { display: none; }

.so-card {
	flex: 0 0 calc((100% - var(--so-gap) * (var(--so-cols-d) - 1)) / var(--so-cols-d));
	scroll-snap-align: start;
	display: flex; flex-direction: column;
	margin: 0; padding: 0;
	border-radius: calc(var(--so-radius) - 4px);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
	transition: transform .25s ease, box-shadow .25s ease;
}
.so-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .12); }
@media (max-width: 1024px) { .so-card { flex-basis: calc((100% - var(--so-gap) * (var(--so-cols-t) - 1)) / var(--so-cols-t)); } }
@media (max-width: 600px)  { .so-card { flex-basis: calc((100% - var(--so-gap) * (var(--so-cols-m) - 1)) / var(--so-cols-m)); } .so-slider { padding: 16px 14px 20px; } .so-slider__title { font-size: 18px; } .so-cd__box { min-width: 50px; } .so-cd__num { font-size: 18px; } }

.so-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f5f5; }
.so-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.so-card:hover .so-card__media img { transform: scale(1.06); }
.so-card__pct {
	position: absolute; bottom: 10px; left: 10px; z-index: 9;
	padding: 3px 10px; border-radius: 999px;
	background: #111827; color: #fff;
	font-size: 12px; font-weight: 800;
}
.so-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; flex: 1; }
.so-card__title { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 700; }
.so-card__title a { color: #1f2937; text-decoration: none; }
.so-card__title a:hover { color: var(--so-accent); }
.so-card__price { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--so-accent); }
.so-card__price del { opacity: .55; font-weight: 400; margin-inline-end: 6px; }
.so-card__price ins { text-decoration: none; }
.so-card__btn {
	display: block; text-align: center;
	padding: 9px 12px; border-radius: 999px;
	background: var(--so-accent); color: #fff !important;
	font-size: 13px; font-weight: 700; text-decoration: none;
	border: 0; cursor: pointer;
	transition: filter .2s;
}
.so-card__btn:hover { filter: brightness(1.08); }
.so-card__btn--cart { padding: 0; background: none; }
.so-card__btn--cart .button, .so-card__btn--cart a {
	display: block; width: 100%; text-align: center;
	padding: 9px 12px; border-radius: 999px; margin: 0;
	background: var(--so-accent) !important; color: #fff !important;
	font-size: 13px; font-weight: 700;
}

/* دکمه‌ها و نقطه‌ها */
.so-nav {
	position: absolute; top: 40%; z-index: 10;
	transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 50%;
	background: #fff; color: var(--so-accent);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: transform .2s, opacity .2s;
}
.so-nav:hover { transform: translateY(-50%) scale(1.08); }
.so-nav[disabled] { opacity: .35; cursor: default; }
.so-nav--prev { inset-inline-start: -6px; }
.so-nav--next { inset-inline-end: -6px; }
.so-slider[dir="rtl"] .so-nav svg { transform: scaleX(-1); }
@media (max-width: 600px) { .so-nav { width: 34px; height: 34px; } .so-nav--prev { inset-inline-start: -4px; } .so-nav--next { inset-inline-end: -4px; } }

.so-slider__dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.so-dot {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px;
	background: color-mix(in srgb, var(--so-accent) 28%, transparent);
	cursor: pointer; transition: width .25s, background .25s;
}
.so-dot.is-active { width: 26px; background: var(--so-accent); }
.so-slider__more { text-align: center; margin-top: 14px; }
.so-slider__more a {
	display: inline-block; padding: 9px 26px; border-radius: 999px;
	border: 2px solid var(--so-accent); color: var(--so-accent);
	font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.so-slider__more a:hover { background: var(--so-accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.so-slider__icon, .so-cd__sep { animation: none; }
	.so-slider__track { scroll-behavior: auto; }
}
