/* ═══════════════════════════════════════════════
   موبایل سلامت — استایل اصلی قالب
   طراحی روشن و مدرن، راست‌چین، فونت وزیرمتن
   ═══════════════════════════════════════════════ */

:root {
	--brand-50: #ecfdf7;
	--brand-100: #d1faec;
	--brand-200: #a7f3da;
	--brand-300: #6ee7c4;
	--brand-500: #10b98b;
	--brand-600: #059672;
	--brand-700: #04785e;
	--brand-800: #065f4c;
	--brand-900: #064e3f;
	--brand-950: #022c24;
	--ink: #0f172a;
	--muted: #64748b;
	--faint: #94a3b8;
	--line: #eef2f7;
	--amber: #d97706;
	--rose: #e11d48;
	--radius: 16px;
	--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
	--shadow-hover: 0 20px 40px -16px rgba(5, 150, 105, 0.25);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Vazirmatn", Tahoma, sans-serif;
	background: #f8fafc;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

h1, h2, h3, h4 {
	line-height: 1.5;
	margin: 0 0 0.5em;
	font-weight: 900;
}

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
}

::selection {
	background: var(--brand-200);
}

.ms-container {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
}

.ms-icon {
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.ms-skip {
	position: absolute;
	right: -9999px;
}
.ms-skip:focus {
	right: 10px;
	top: 10px;
	z-index: 999;
	background: #fff;
	padding: 8px 16px;
	border-radius: 10px;
}

/* ─────────────── نوار بالا ─────────────── */
.ms-topbar {
	background: var(--brand-950);
	color: #fff;
	font-size: 12px;
}
.ms-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 38px;
}
.ms-topbar__rate {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--brand-200);
}
.ms-topbar__rate b {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	padding: 1px 8px;
	color: #fff;
}
.ms-topbar__links {
	display: none;
	align-items: center;
	gap: 16px;
	color: var(--brand-200);
}
.ms-topbar__links a {
	display: flex;
	align-items: center;
	gap: 5px;
}
.ms-topbar__links a:hover {
	color: #fff;
}
@media (min-width: 640px) {
	.ms-topbar__links { display: flex; }
}

/* ─────────────── سربرگ ─────────────── */
.ms-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .ms-header { top: 32px; }
.ms-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 64px;
}
.ms-header__burger {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--muted);
	cursor: pointer;
}
@media (min-width: 1024px) {
	.ms-header__burger { display: none; }
}
.ms-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ms-logo__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
	color: #fff;
	box-shadow: 0 8px 20px -6px rgba(5, 150, 105, 0.5);
}
.ms-logo__text b {
	display: block;
	font-size: 16px;
	font-weight: 900;
}
.ms-logo__text small {
	display: none;
	font-size: 10px;
	color: var(--faint);
}
@media (min-width: 640px) {
	.ms-logo__text small { display: block; }
}
.ms-nav {
	display: none;
	margin-inline-start: 16px;
}
@media (min-width: 1024px) {
	.ms-nav { display: block; }
}
.ms-nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ms-nav__list a {
	display: block;
	padding: 9px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 800;
	color: #334155;
}
.ms-nav__list a:hover,
.ms-nav__list .current-menu-item > a {
	background: var(--brand-50);
	color: var(--brand-700);
}
.ms-nav__list .menu-item-has-children { position: relative; }
.ms-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-card);
	padding: 6px;
	list-style: none;
	margin: 0;
	z-index: 60;
}
.ms-nav__list .menu-item-has-children:hover > .sub-menu { display: block; }

.ms-search {
	display: none;
	position: relative;
	width: 280px;
	margin-inline-start: auto;
}
@media (min-width: 768px) {
	.ms-search { display: block; }
}
.ms-search input {
	width: 100%;
	padding: 10px 40px 10px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #f1f5f9;
	font-size: 13px;
	outline: none;
	transition: 0.2s;
}
.ms-search input:focus {
	background: #fff;
	border-color: var(--brand-300);
	box-shadow: 0 0 0 4px var(--brand-100);
}
.ms-search__icon {
	position: absolute;
	top: 50%;
	right: 12px;
	translate: 0 -50%;
	color: var(--faint);
	pointer-events: none;
	line-height: 0;
}
.ms-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}
@media (min-width: 768px) {
	.ms-header__actions { margin-inline-start: 0; }
}
.ms-header__cart {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--muted);
}
.ms-header__cart:hover {
	border-color: var(--brand-300);
	color: var(--brand-700);
}
.ms-header__cart-count {
	position: absolute;
	top: -7px;
	inset-inline-start: -7px;
	min-width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 99px;
	background: var(--brand-600);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	padding: 0 5px;
}
.ms-header__account {
	display: flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 9px 12px;
	color: var(--muted);
}
.ms-wholesale-mini {
	background: #fef3c7;
	color: var(--amber);
	font-size: 10px;
	font-weight: 900;
	border-radius: 6px;
	padding: 1px 6px;
}
.ms-header__login {
	display: none;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 800;
	color: #334155;
}
.ms-header__login:hover {
	border-color: var(--brand-300);
	color: var(--brand-700);
}
@media (min-width: 640px) {
	.ms-header__login { display: flex; }
}

/* کشوی موبایل */
.ms-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
	visibility: hidden;
}
.ms-drawer.is-open { visibility: visible; }
.ms-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	opacity: 0;
	transition: 0.25s;
}
.ms-drawer.is-open .ms-drawer__backdrop { opacity: 1; }
.ms-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 300px;
	max-width: 85vw;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	overflow-y: auto;
}
.ms-drawer.is-open .ms-drawer__panel { transform: none; }
.ms-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--line);
}
.ms-drawer__head button {
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--muted);
}
.ms-drawer__menu {
	list-style: none;
	margin: 0;
	padding: 12px;
}
.ms-drawer__menu a {
	display: block;
	padding: 11px 14px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	color: #334155;
}
.ms-drawer__menu a:hover { background: var(--brand-50); color: var(--brand-700); }

/* ─────────────── دکمه‌ها ─────────────── */
.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 12px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
	border: 0;
	transition: 0.2s;
}
.ms-btn:active { transform: scale(0.98); }
.ms-btn--primary {
	background: var(--brand-600);
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(5, 150, 105, 0.5);
}
.ms-btn--primary:hover { background: var(--brand-700); color: #fff; }
.ms-btn--ghost {
	background: #fff;
	border: 1px solid var(--line);
	color: #334155;
}
.ms-btn--ghost:hover { border-color: var(--brand-300); color: var(--brand-700); }
.ms-btn--outline {
	background: transparent;
	border: 1px solid var(--line);
	color: #334155;
	padding: 9px 18px;
}
.ms-btn--outline:hover { border-color: var(--brand-300); color: var(--brand-700); }
.ms-btn--light { background: #fff; color: var(--brand-800); }
.ms-btn--amber { background: var(--amber); color: #fff; }
.ms-btn--amber:hover { background: #b45309; color: #fff; }

.ms-grad-text {
	background: linear-gradient(to left, var(--brand-600), #0d9488);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ─────────────── هیرو ─────────────── */
.ms-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--brand-50), #fff 60%);
}
.ms-hero::before {
	content: "";
	position: absolute;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: rgba(167, 243, 208, 0.45);
	filter: blur(90px);
	top: 40px;
	inset-inline-start: -140px;
}
.ms-hero__inner {
	position: relative;
	display: grid;
	gap: 40px;
	align-items: center;
	padding-block: 56px;
}
@media (min-width: 1024px) {
	.ms-hero__inner { grid-template-columns: 1fr 1fr; padding-block: 80px; }
}
.ms-hero__text { text-align: center; }
@media (min-width: 1024px) {
	.ms-hero__text { text-align: right; }
}
.ms-hero__eyebrow,
.ms-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--brand-200);
	color: var(--brand-700);
	font-size: 12px;
	font-weight: 900;
	border-radius: 99px;
	padding: 6px 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.ms-eyebrow { background: var(--brand-100); border-color: transparent; margin-bottom: 8px; }
.ms-eyebrow--amber { background: #fef3c7; color: #92400e; }
.ms-hero h1 {
	font-size: clamp(1.7rem, 4.2vw, 2.9rem);
	font-weight: 900;
	margin-top: 18px;
}
.ms-hero__text p {
	color: var(--muted);
	font-size: 14px;
	max-width: 520px;
	margin-inline: auto;
}
@media (min-width: 1024px) {
	.ms-hero__text p { margin-inline: 0; }
}
.ms-hero__rate {
	color: var(--brand-700);
	margin-inline: 4px;
}
.ms-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}
@media (min-width: 1024px) {
	.ms-hero__ctas { justify-content: flex-start; }
}
.ms-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 34px;
	max-width: 420px;
	margin-inline: auto;
}
@media (min-width: 1024px) {
	.ms-hero__stats { margin-inline: 0; }
}
.ms-hero__stats div {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--brand-100);
	border-radius: 14px;
	padding: 12px 8px;
	text-align: center;
	backdrop-filter: blur(6px);
}
.ms-hero__stats b {
	display: block;
	font-size: 20px;
	font-weight: 900;
	color: var(--brand-700);
}
.ms-hero__stats span {
	font-size: 11px;
	color: var(--muted);
}
.ms-hero__visual {
	position: relative;
	max-width: 520px;
	margin-inline: auto;
	width: 100%;
}
.ms-hero__img {
	border-radius: 34px;
	box-shadow: 0 30px 60px -20px rgba(6, 78, 59, 0.25);
	animation: ms-float 6s ease-in-out infinite;
}
@keyframes ms-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
.ms-hero__chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-card);
	padding: 12px 16px;
	font-size: 11px;
}
.ms-hero__chip b { display: block; font-size: 13px; }
.ms-hero__chip .ms-icon { color: var(--brand-600); }
.ms-hero__chip--rate { top: 36px; inset-inline-start: -14px; }
.ms-hero__chip--wholesale { bottom: 44px; inset-inline-end: -14px; }
.ms-hero__chip--wholesale .ms-icon { color: var(--amber); }
@media (max-width: 640px) {
	.ms-hero__chip { display: none; }
}

/* مارکی برندها */
.ms-marquee {
	border-block: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.7);
	padding-block: 14px;
	overflow: hidden;
}
.ms-marquee__track {
	display: flex;
	width: max-content;
	gap: 44px;
	padding-inline-start: 44px;
	animation: ms-marquee 30s linear infinite;
}
.ms-marquee__track span {
	font-weight: 900;
	color: #cbd5e1;
	font-size: 15px;
}
@keyframes ms-marquee {
	to { transform: translateX(-50%); }
}

/* ─────────────── بخش‌ها ─────────────── */
.ms-section { padding-block: 44px; }
.ms-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}
.ms-section__head h2 {
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	margin: 0;
}

/* کاشی دسته‌بندی */
.ms-cats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
@media (min-width: 640px) { .ms-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ms-cats { grid-template-columns: repeat(6, 1fr); } }
.ms-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	padding: 22px 12px;
	text-align: center;
	transition: 0.25s;
}
.ms-cat:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
	border-color: var(--brand-200);
}
.ms-cat__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
	color: var(--brand-600);
	transition: 0.25s;
}
.ms-cat:hover .ms-cat__icon {
	background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
	color: #fff;
	scale: 1.08;
}
.ms-cat b { font-size: 14px; font-weight: 900; }
.ms-cat:hover b { color: var(--brand-700); }

/* بنر جشنواره */
.ms-festival {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(to left, var(--brand-950), var(--brand-800), #115e59);
	padding: 34px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	margin-block: 24px;
}
@media (min-width: 1024px) {
	.ms-festival { flex-direction: row; justify-content: space-between; padding: 44px; }
}
.ms-festival__text { color: #fff; text-align: center; }
@media (min-width: 1024px) { .ms-festival__text { text-align: right; } }
.ms-festival__text h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.ms-festival__text p { color: var(--brand-100); font-size: 13px; max-width: 460px; opacity: 0.85; }
.ms-festival__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--brand-200);
	border-radius: 99px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 800;
}
.ms-countdown { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ms-countdown__title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 800;
}
.ms-countdown__cells { display: flex; gap: 8px; }
.ms-countdown__cell { text-align: center; }
.ms-countdown__cell b {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 24px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}
.ms-countdown__cell span {
	display: block;
	margin-top: 5px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.65);
}

/* ─────────────── کارت محصول ─────────────── */
ul.products.ms-products,
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) {
	ul.products.ms-products, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
	ul.products.ms-products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
}
ul.products li.product.ms-product-card,
.woocommerce ul.products li.ms-product-card {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	position: relative;
	display: flex;
	flex-direction: column;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: 0.3s;
}
.ms-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}
.ms-product-card__badges {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ms-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-radius: 8px;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 900;
	color: #fff;
	width: fit-content;
}
.ms-badge--sale { background: var(--rose); box-shadow: 0 6px 16px -6px rgba(225, 29, 72, 0.6); }
.ms-badge--new { background: #0ea5e9; }
.ms-badge--hot { background: #f59e0b; }
.ms-product-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f1f5f9;
}
.ms-product-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}
.ms-product-card:hover .ms-product-card__thumb img { scale: 1.06; }
.ms-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px;
}
.ms-product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.ms-product-card__brand {
	font-size: 11px;
	font-weight: 800;
	color: var(--brand-600);
}
.ms-stars { display: inline-flex; align-items: center; gap: 1px; }
.ms-star { color: #e2e8f0; line-height: 0; }
.ms-star.is-full { color: #fbbf24; }
.ms-stars-count { font-size: 10px; color: var(--faint); margin-inline-start: 4px; }
.ms-product-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 42px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.65;
	margin-bottom: 10px;
}
.ms-product-card:hover .ms-product-card__title { color: var(--brand-700); }
.ms-product-card__price { margin-top: auto; }
.ms-product-card__price .price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 17px;
	font-weight: 900;
	color: var(--ink);
}
.ms-product-card__price .price del {
	order: -1;
	font-size: 12px;
	font-weight: 400;
	color: var(--faint);
}
.ms-product-card__price .price ins {
	background: none;
	text-decoration: none;
}
.ms-product-card__wholesale {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--muted);
}
.ms-product-card__wholesale .ms-icon { color: #f59e0b; }
.ms-product-card__wholesale .woocommerce-Price-amount { font-weight: 800; }

/* قیمت همکاری کاربر عمده */
.ms-wholesale-price-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ms-wholesale-tag {
	background: #fef3c7;
	color: #92400e;
	font-size: 10px;
	font-weight: 900;
	border-radius: 6px;
	padding: 2px 8px;
	width: fit-content;
}
.ms-wholesale-price {
	text-decoration: none !important;
}
.ms-wholesale-retail {
	font-size: 12px;
	color: var(--faint);
}

/* دکمه افزودن به سبد */
.ms-product-card .add_to_cart_button,
.ms-product-card .product_type_simple {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
	width: 100%;
	border-radius: 12px;
	padding: 11px;
	background: var(--brand-50);
	color: var(--brand-700) !important;
	font-size: 13px;
	font-weight: 800;
	border: 0;
	transition: 0.2s;
}
.ms-product-card .add_to_cart_button:hover {
	background: var(--brand-600);
	color: #fff !important;
}
.ms-product-card .add_to_cart_button.loading,
.ms-product-card .add_to_cart_button.added {
	background: var(--brand-600);
	color: #fff !important;
	opacity: 0.85;
}
.ms-product-card .added_to_cart { display: none; }

/* ─────────────── بنر خرید عمده ─────────────── */
.ms-wholesale-cta {
	display: grid;
	gap: 30px;
	border: 1px solid #fde68a;
	border-radius: 24px;
	background: linear-gradient(to left, #fffbeb, #fff7ed);
	padding: 34px 26px;
	margin-block: 24px;
}
@media (min-width: 1024px) {
	.ms-wholesale-cta { grid-template-columns: 1fr 1fr; align-items: center; padding: 44px; }
}
.ms-wholesale-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.ms-wholesale-cta__text p { color: #57534e; font-size: 14px; }
.ms-wholesale-cta__text ul {
	list-style: none;
	margin: 14px 0 20px;
	padding: 0;
	display: grid;
	gap: 8px;
}
.ms-wholesale-cta__text li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #44403c;
}
.ms-wholesale-cta__text li .ms-icon { color: #f59e0b; }
.ms-wholesale-cta__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.ms-mini-card {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #fef3c7;
	border-radius: 18px;
	padding: 18px;
	backdrop-filter: blur(4px);
}
.ms-mini-card .ms-icon { color: #f59e0b; }
.ms-mini-card b { display: block; margin-top: 10px; font-size: 14px; font-weight: 900; }
.ms-mini-card span { font-size: 12px; color: var(--muted); }

/* ─────────────── کارت مطلب ─────────────── */
.ms-posts-grid {
	display: grid;
	gap: 18px;
}
@media (min-width: 640px) { .ms-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ms-posts-grid { grid-template-columns: repeat(3, 1fr); } }
.ms-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: 0.25s;
}
.ms-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18);
}
.ms-post-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1f5f9;
}
.ms-post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}
.ms-post-card:hover .ms-post-card__thumb img { scale: 1.05; }
.ms-post-card__cat {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	color: var(--brand-700);
	font-size: 11px;
	font-weight: 900;
	border-radius: 8px;
	padding: 4px 10px;
}
.ms-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}
.ms-post-card__body h3 {
	font-size: 15px;
	font-weight: 900;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 52px;
}
.ms-post-card:hover h3 { color: var(--brand-700); }
.ms-post-card__body p {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.9;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ms-post-card__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f8fafc;
	font-size: 11px;
	color: var(--faint);
}
.ms-post-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ms-post-card__meta > .ms-icon { margin-inline-start: auto; color: var(--brand-500); }

/* ─────────────── فرمول شفاف ─────────────── */
.ms-formula {
	border-top: 1px solid var(--line);
	background: #fff;
	padding-block: 20px;
	margin-top: 48px;
	text-align: center;
	font-size: 12px;
	color: var(--faint);
}

/* ─────────────── پاصفحه ─────────────── */
.ms-footer {
	border-top: 1px solid var(--line);
	background: #fff;
	margin-top: 56px;
}
.ms-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	padding-block: 28px;
	border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .ms-features { grid-template-columns: repeat(4, 1fr); } }
.ms-feature { display: flex; align-items: center; gap: 12px; }
.ms-feature__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 16px;
	background: var(--brand-50);
	color: var(--brand-600);
}
.ms-feature b { display: block; font-size: 13px; font-weight: 900; }
.ms-feature small { font-size: 11px; color: var(--faint); }
.ms-footer__cols {
	display: grid;
	gap: 28px;
	padding-block: 36px;
}
@media (min-width: 768px) { .ms-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.ms-footer__col h4 { font-size: 14px; font-weight: 900; margin-bottom: 14px; }
.ms-footer__col--about p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.ms-footer__rate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--brand-50);
	color: var(--brand-700);
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 800;
}
.ms-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}
.ms-footer__menu a { font-size: 13px; color: var(--muted); }
.ms-footer__menu a:hover { color: var(--brand-700); }
.ms-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
	font-size: 13px;
	color: var(--muted);
}
.ms-footer__contact li { display: flex; align-items: center; gap: 8px; }
.ms-footer__contact .ms-icon { color: var(--brand-500); }
.ms-footer__bottom {
	border-top: 1px solid var(--line);
	padding-block: 14px;
	text-align: center;
	font-size: 11px;
	color: var(--faint);
}

/* ─────────────── وبلاگ / مقاله ─────────────── */
.ms-blog { padding-block: 36px; }
.ms-blog__head { text-align: center; margin-bottom: 32px; }
.ms-blog__head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.ms-narrow { max-width: 820px; }
.ms-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--faint);
	margin-block: 24px 18px;
}
.ms-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.ms-breadcrumb a:hover { color: var(--brand-700); }
.ms-breadcrumb .category { display: inline-flex; }
.ms-article__cat {
	display: inline-block;
	background: var(--brand-100);
	color: var(--brand-700);
	border-radius: 8px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 900;
}
.ms-article__title { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.6; }
.ms-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 12px;
	color: var(--faint);
	margin-bottom: 22px;
}
.ms-article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ms-article__thumb {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	margin: 0 0 26px;
}
.ms-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow-card);
}
.ms-article__content { padding: 26px; }
@media (min-width: 640px) { .ms-article__content { padding: 36px; } }
.entry-content { font-size: 15px; line-height: 2; color: #334155; }
.entry-content h2 { font-size: 21px; margin-top: 34px; }
.entry-content h3 { font-size: 18px; margin-top: 26px; }
.entry-content p { margin-block: 12px; }
.entry-content img { border-radius: 14px; margin-block: 18px; }
.entry-content ul { padding-inline-start: 22px; }
.entry-content a { color: var(--brand-700); border-bottom: 1px dashed var(--brand-300); }

/* دیدگاه‌ها */
.ms-comments { margin-block: 34px; }
.ms-comments__title { font-size: 17px; font-weight: 900; }
.ms-comments .comment-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.ms-comments .comment-body {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px;
}
.comment-respond .comment-form-comment textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 14px;
	background: #fff;
	outline: none;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
	border-color: var(--brand-300);
	box-shadow: 0 0 0 4px var(--brand-100);
}
.comment-respond .submit {
	background: var(--brand-600);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 12px 26px;
	font-weight: 900;
	cursor: pointer;
}
.comment-respond .submit:hover { background: var(--brand-700); }

/* صفحه‌بندی */
.pagination,
.woocommerce-pagination .page-numbers {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 34px;
}
.pagination .page-numbers,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--line) !important;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
	color: var(--muted);
}
.pagination .current,
.woocommerce-pagination .page-numbers li .current {
	background: var(--brand-600) !important;
	border-color: var(--brand-600) !important;
	color: #fff;
}

/* ─────────────── صفحات ووکامرس ─────────────── */
.ms-wc { padding-block: 30px; }
.ms-wc__head { margin-bottom: 22px; }
.ms-wc__head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.ms-wc__head p { color: var(--muted); font-size: 13px; }

.woocommerce .woocommerce-ordering select {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 12px;
	font-family: inherit;
	background: #fff;
}
.woocommerce .woocommerce-result-count { font-size: 12px; color: var(--faint); }

/* اطلاعیه‌ها */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 14px !important;
	border-top-color: var(--brand-300) !important;
	background: #fff !important;
	box-shadow: var(--shadow-card);
}

/* جداول سبد/تسویه */
.woocommerce table.shop_table {
	border-radius: 14px !important;
	overflow: hidden;
	border-color: var(--line) !important;
}
.woocommerce table.shop_table th {
	background: #f8fafc;
	font-weight: 900;
}
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	border-radius: 12px !important;
	font-weight: 800 !important;
	font-family: inherit !important;
}
.woocommerce button.button.alt,
.woocommerce a.button.alt {
	background: var(--brand-600) !important;
	color: #fff !important;
}
.woocommerce button.button.alt:hover { background: var(--brand-700) !important; }

/* فرم‌های ووکامرس */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid var(--line) !important;
	border-radius: 12px !important;
	padding: 11px 14px !important;
	font-family: inherit !important;
}
.woocommerce form .form-row input.input-text:focus {
	border-color: var(--brand-300) !important;
	box-shadow: 0 0 0 4px var(--brand-100);
}

/* برچسب قیمت عمده در سبد */
.ms-wholesale-badge {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	border-radius: 6px;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 900;
	vertical-align: middle;
}

/* باکس عمده در صفحه تکی محصول */
.ms-wholesale-box {
	border: 1.5px dashed #fcd34d;
	background: rgba(255, 251, 235, 0.55);
	border-radius: 16px;
	padding: 16px;
	margin-top: 16px;
}
.ms-wholesale-box__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 8px;
	font-size: 13px;
}
.ms-wholesale-box__row span { color: var(--muted); font-weight: 700; }
.ms-wholesale-box__row b { color: var(--ink); }
.ms-wholesale-box__row.is-wholesale {
	border-top: 1px dashed #fcd34d;
}
.ms-wholesale-box__row.is-wholesale span,
.ms-wholesale-box__row.is-wholesale b { color: #92400e; }
.ms-wholesale-box__hint {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.8;
	color: #a16207;
	background: #fef9c3;
	border-radius: 10px;
	padding: 8px 12px;
}

/* صفحه تکی محصول: آرایش قیمت */
.single-product .product .price {
	font-size: 24px;
	font-weight: 900;
	color: var(--ink);
}
.single-product .product .price del {
	font-size: 14px;
	color: var(--faint);
	font-weight: 400;
}
.single-product .product .price ins {
	background: none;
	text-decoration: none;
}
.single-product div.product .summary .cart .quantity .qty {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 9px;
	width: 74px;
	font-family: inherit;
}
.single-product div.product .single_add_to_cart_button {
	background: var(--brand-600) !important;
	border-radius: 12px !important;
	padding: 14px 28px !important;
	font-weight: 900 !important;
}
.single-product div.product .single_add_to_cart_button:hover {
	background: var(--brand-700) !important;
}
.single-product div.product .woocommerce-tabs .panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
}
.single-product div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.single-product div.product .woocommerce-tabs ul.tabs li a { font-weight: 800; }

/* ─────────────── متفرقه ─────────────── */
.ms-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	padding: 56px 20px;
	color: var(--muted);
}
.ms-empty .ms-icon { color: #cbd5e1; }
.ms-404 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding-block: 70px;
}
.ms-404__code { font-size: 72px; font-weight: 900; color: var(--brand-200); line-height: 1; }
.ms-404__actions { display: flex; gap: 10px; margin-block: 14px; }
.ms-widget { margin-bottom: 22px; }
.ms-widget-title { font-size: 15px; font-weight: 900; margin-bottom: 12px; }

.ms-searchform { position: relative; max-width: 420px; }
.ms-searchform__input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px 46px 12px 14px;
	outline: none;
}
.ms-searchform__btn {
	position: absolute;
	top: 50%;
	right: 8px;
	translate: 0 -50%;
	border: 0;
	background: var(--brand-600);
	color: #fff;
	border-radius: 9px;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* گالری/مینی-کارت ذخیره ابعاد روی موبایل */
@media (max-width: 640px) {
	.ms-product-card__title { font-size: 12px; min-height: 40px; }
	.ms-product-card__price .price { font-size: 15px; }
	.ms-hero__stats b { font-size: 16px; }
}

/* ═══════════════════════════════════════════════
   نسخه ۱٫۱ — اسلایدر، استوری، جستجوی زنده، سبد آجاکس
   ═══════════════════════════════════════════════ */

/* ─────────── اسلایدر هیرو ─────────── */
.ms-slider {
	position: relative;
	overflow: hidden;
	background: #0f172a;
}
.ms-slider__stage { position: relative; }
.ms-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ms-slide.is-active { opacity: 1; pointer-events: auto; }
.ms-slider__stage { height: 520px; }
@media (min-width: 1024px) { .ms-slider__stage { height: 470px; } }
.ms-slide__first { position: relative; }
.ms-slide__bg {
	position: absolute;
	inset: -24px;
	background-size: cover;
	background-position: center;
	filter: blur(28px) brightness(0.38);
	transform: scale(1.08);
}
.ms-slide__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.15) 55%, rgba(15, 23, 42, 0.8));
}
.ms-slide__inner {
	position: relative;
	display: grid;
	align-items: center;
	gap: 28px;
	height: 100%;
	padding-block: 30px;
}
@media (min-width: 1024px) {
	.ms-slide__inner { grid-template-columns: 1.1fr 0.9fr; }
}
.ms-slide__text { text-align: center; color: #fff; }
@media (min-width: 1024px) { .ms-slide__text { text-align: right; } }
.ms-slide__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	border-radius: 99px;
	padding: 5px 14px;
	font-size: 11px;
	font-weight: 800;
	color: var(--brand-200);
}
.ms-slide__sale {
	display: inline-block;
	margin-inline-start: 6px;
	background: var(--rose);
	color: #fff;
	border-radius: 99px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 900;
}
.ms-slide__text h2 {
	font-size: clamp(1.45rem, 3.4vw, 2.3rem);
	font-weight: 900;
	line-height: 1.5;
	margin-top: 14px;
}
.ms-slide__text h2 a { color: #fff; }
.ms-slide__text p {
	color: #cbd5e1;
	font-size: 13px;
	max-width: 480px;
	margin: 10px auto 0;
}
@media (min-width: 1024px) { .ms-slide__text p { margin-inline: 0; } }
.ms-slide__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 12px;
	margin-top: 14px;
	font-size: 26px;
	font-weight: 900;
	color: var(--brand-300);
}
@media (min-width: 1024px) { .ms-slide__price { justify-content: flex-start; } }
.ms-slide__price del { font-size: 13px; color: #94a3b8; font-weight: 400; }
.ms-slide__wholesale {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 12px;
	color: #fbbf24;
}
@media (min-width: 1024px) { .ms-slide__wholesale { justify-content: flex-start; } }
.ms-btn--slider {
	margin-top: 18px;
	background: var(--brand-500);
	color: #fff;
	box-shadow: 0 12px 28px -8px rgba(16, 185, 139, 0.55);
}
.ms-btn--slider:hover { background: var(--brand-400); color: #fff; }
.ms-slide__visual { display: none; justify-content: center; }
@media (min-width: 640px) { .ms-slide__visual { display: flex; } }
.ms-slide__img {
	width: min(360px, 80%);
	border-radius: 26px;
	border: 2px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.6);
	rotate: 3deg;
	animation: ms-float 6s ease-in-out infinite;
	aspect-ratio: 1;
	object-fit: cover;
}

/* نشانگر عمودی سمت چپ */
.ms-slider__dots {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 6;
}
@media (min-width: 640px) { .ms-slider__dots { left: 26px; } }
.ms-slider__dot {
	width: 8px;
	height: 8px;
	border: 0;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	padding: 0;
	transition: all 0.35s;
}
.ms-slider__dot:hover { background: rgba(255, 255, 255, 0.65); }
.ms-slider__dot.is-active {
	height: 30px;
	background: var(--brand-300);
	box-shadow: 0 0 12px rgba(110, 231, 196, 0.7);
}

/* پیش‌نمایش اسلایدهای بعدی */
.ms-slider__peek {
	position: absolute;
	bottom: 18px;
	left: 16px;
	z-index: 6;
	display: none;
	flex-direction: column;
	gap: 8px;
}
@media (min-width: 900px) { .ms-slider__peek { display: flex; left: 26px; } }
.ms-slider__peek-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 210px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	border-radius: 12px;
	padding: 7px;
	cursor: pointer;
	text-align: right;
	transition: 0.2s;
	font-family: inherit;
}
.ms-slider__peek-item:hover { background: rgba(255, 255, 255, 0.2); }
.ms-slider__peek-item img {
	width: 38px;
	height: 38px;
	border-radius: 9px;
	object-fit: cover;
	flex-shrink: 0;
}
.ms-slider__peek-item b {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ms-slider__peek-item i {
	font-style: normal;
	font-size: 10px;
	color: var(--brand-300);
	font-weight: 700;
}

/* خط پیشرفت */
.ms-slider__progress {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.1);
	z-index: 6;
}
.ms-slider__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(to left, var(--brand-300), var(--brand-600));
}
@keyframes ms-progress { to { width: 100%; } }

@media (max-width: 900px) { .ms-slider__peek { display: none; } }

/* ─────────── استوری‌ها ─────────── */
.ms-stories-wrap { padding-top: 22px; }
.ms-stories {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 6px 2px 12px;
	scrollbar-width: none;
}
.ms-stories::-webkit-scrollbar { display: none; }
.ms-story {
	display: block;
	text-align: center;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	flex-shrink: 0;
}
.ms-story__ring {
	display: block;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(45deg, #fbbf24, var(--brand-500), #2dd4bf);
	transition: 0.25s;
}
.ms-story:hover .ms-story__ring { scale: 1.04; }
.ms-story.is-seen .ms-story__ring { background: #e2e8f0; }
.ms-story__img {
	display: block;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	border: 3px solid #fff;
	overflow: hidden;
	background: #fff;
}
@media (min-width: 640px) { .ms-story__img { width: 76px; height: 76px; } }
.ms-story__img img { width: 100%; height: 100%; object-fit: cover; }
.ms-story__title {
	display: block;
	width: 82px;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 800;
	color: #334155;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ms-story.is-seen .ms-story__title { color: var(--faint); }

/* ویوور */
.ms-story-viewer {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(2, 6, 23, 0.96);
}
.ms-story-viewer.is-open { display: flex; }
.ms-story-viewer__card {
	position: relative;
	width: 100%;
	max-width: 430px;
	height: 100%;
	overflow: hidden;
	background: #0f172a;
}
@media (min-width: 640px) {
	.ms-story-viewer__card { height: 85vh; border-radius: 22px; }
}
.ms-story-viewer__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ms-story-viewer__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.1) 45%, rgba(2, 6, 23, 0.45));
}
.ms-story-viewer__bars {
	position: absolute;
	top: 12px;
	inset-inline: 12px;
	display: flex;
	gap: 5px;
	z-index: 3;
}
.ms-story-viewer__bar {
	flex: 1;
	height: 3px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.28);
	overflow: hidden;
}
.ms-story-viewer__bar span { display: block; height: 100%; background: #fff; width: 0; }
.ms-story-viewer__head {
	position: absolute;
	top: 24px;
	inset-inline: 14px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.ms-story-viewer__close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	font-size: 15px;
}
.ms-story-viewer__zone {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 34%;
	border: 0;
	background: none;
	cursor: pointer;
	z-index: 2;
}
.ms-story-viewer__zone--prev { right: 0; }
.ms-story-viewer__zone--next { left: 0; }
.ms-story-viewer__foot {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	z-index: 3;
	padding: 18px;
	text-align: center;
}
.ms-story-viewer__go {
	width: 100%;
	background: #fff;
	color: #0f172a;
	margin-top: 0;
	box-shadow: none;
}

/* ─────────── جستجوی زنده ─────────── */
.ms-searchwrap { position: relative; }
.ms-ls-results {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline: 0;
	z-index: 70;
	max-height: 420px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 24px 50px -18px rgba(15, 23, 42, 0.3);
	padding: 8px;
}
.ms-ls-group {
	margin: 6px 8px 2px;
	font-size: 10px;
	font-weight: 900;
	color: var(--faint);
}
.ms-ls-item {
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 12px;
	padding: 8px;
	transition: 0.15s;
}
.ms-ls-item:hover { background: var(--brand-50); }
.ms-ls-item img {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}
.ms-ls-item__txt { min-width: 0; flex: 1; }
.ms-ls-item__txt b {
	display: block;
	font-size: 12px;
	font-weight: 800;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ms-ls-item__txt small { font-size: 10px; color: var(--faint); }
.ms-ls-item__price {
	flex-shrink: 0;
	text-align: left;
	font-size: 12px;
	font-weight: 900;
	color: var(--brand-700);
}
.ms-ls-item__price i {
	display: block;
	font-style: normal;
	font-size: 9px;
	font-weight: 800;
	color: var(--amber);
}
.ms-ls-empty {
	padding: 26px 10px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--faint);
}
.ms-ls-all {
	width: 100%;
	margin-top: 6px;
	border: 0;
	border-radius: 12px;
	background: var(--brand-600);
	color: #fff;
	padding: 11px;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	font-family: inherit;
}
.ms-ls-all:hover { background: var(--brand-700); }

/* ─────────── کشوی سبد خرید آجاکس ─────────── */
.ms-cartdrawer {
	position: fixed;
	inset: 0;
	z-index: 95;
	visibility: hidden;
}
.ms-cartdrawer.is-open { visibility: visible; }
.ms-cartdrawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	transition: 0.3s;
}
.ms-cartdrawer.is-open .ms-cartdrawer__backdrop { opacity: 1; }
.ms-cartdrawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(430px, 92vw);
	background: #fff;
	box-shadow: 24px 0 60px -20px rgba(15, 23, 42, 0.4);
	display: flex;
	flex-direction: column;
	transform: translateX(-105%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ms-cartdrawer.is-open .ms-cartdrawer__panel { transform: none; }
.ms-cartdrawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.ms-cartdrawer__head b { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.ms-cartdrawer__head .ms-icon { color: var(--brand-600); }
.ms-cartdrawer__head #ms-cd-count { color: var(--brand-600); font-size: 12px; }
.ms-cartdrawer__head button {
	border: 0;
	background: none;
	font-size: 17px;
	color: var(--faint);
	cursor: pointer;
}
.ms-cartdrawer__body { flex: 1; overflow-y: auto; padding: 14px; }
.ms-cartdrawer__empty,
.ms-cartdrawer__loading {
	padding: 40px 10px;
	text-align: center;
	font-size: 13px;
	color: var(--faint);
	font-weight: 700;
}
.ms-cartdrawer__item {
	display: flex;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 10px;
	margin-bottom: 10px;
}
.ms-cartdrawer__item img {
	width: 58px;
	height: 58px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}
.ms-cartdrawer__info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ms-cartdrawer__name {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ms-cartdrawer__name:hover { color: var(--brand-700); }
.ms-cartdrawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 8px;
}
.ms-cartdrawer__qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 9px;
}
.ms-cartdrawer__qty button {
	width: 26px;
	height: 26px;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	font-size: 15px;
}
.ms-cartdrawer__qty button:hover { color: var(--brand-600); }
.ms-cartdrawer__qty b { width: 26px; text-align: center; font-size: 12px; font-weight: 900; }
.ms-cartdrawer__sub { font-size: 13px; font-weight: 900; color: var(--ink); }
.ms-cartdrawer__sub .woocommerce-Price-amount { font-weight: 900; }
.ms-cartdrawer__foot {
	border-top: 1px solid var(--line);
	padding: 14px 16px;
}
.ms-cartdrawer__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 800;
	color: var(--muted);
}
.ms-cartdrawer__total b { font-size: 17px; font-weight: 900; color: var(--brand-700); }
.ms-cartdrawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-cartdrawer__actions .ms-btn { padding: 11px; font-size: 13px; }

/* توست */
.ms-toast {
	position: fixed;
	bottom: 24px;
	right: 50%;
	transform: translate(50%, 20px);
	z-index: 110;
	background: var(--brand-600);
	color: #fff;
	border-radius: 12px;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 800;
	opacity: 0;
	pointer-events: none;
	transition: 0.3s;
	box-shadow: 0 14px 34px -10px rgba(5, 150, 105, 0.6);
}
.ms-toast.is-shown { opacity: 1; transform: translate(50%, 0); }

/* چیپ محصولات جشنواره */
.ms-festival__cat {
	background: rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	padding: 1px 8px;
	font-size: 10px;
}
.ms-festival__products {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}
@media (min-width: 1024px) { .ms-festival__products { justify-content: flex-start; } }
.ms-festival__chip {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 210px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(6px);
	border-radius: 12px;
	padding: 7px;
	transition: 0.2s;
}
.ms-festival__chip:hover { background: rgba(255, 255, 255, 0.2); }
.ms-festival__chip img {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.ms-festival__chip b {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ms-festival__chip i {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	color: var(--brand-300);
}
