/* ═══════════════════════════════════════════════
   موبایل سلامت — استایل کلی نسخه ۱٫۵٫۰
   طراحی روشن/مدرن، راست‌چین، فونت وزیرمتن
   لایه‌بندی یکدست ریسپانسیو برای تمام صفحات
   ═══════════════════════════════════════════════ */

:root {
	--brand-50: #ecfdf7;
	--brand-100: #d1faec;
	--brand-200: #a7f3da;
	--brand-300: #6ee7c4;
	--brand-400: #34d3a6;
	--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;
	--rose: #e11d48;
	--amber: #d97706;
	--radius: 16px;
	--radius-lg: 22px;
	--shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12);
	--shadow-hover: 0 20px 40px -16px rgba(5,150,105,.25);
}

/* ─────────────── سیستم پایه ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }

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, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .5em; font-weight: 900; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--brand-200); }

/* جلوگیری از زوم خودکار iOS در ورودی‌ها */
@media (max-width: 767px) {
	input, select, textarea { font-size: 16px !important; }
}

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

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

/* ─────────────── نوار بالا ─────────────── */
.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,.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,.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,.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: .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);
	background: #fff;
}
.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__searchbtn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--muted);
	cursor: pointer;
}
@media (min-width: 768px) { .ms-header__searchbtn { display: none; } }

.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,.4); opacity: 0; transition: .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 .3s cubic-bezier(.22,1,.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: .2s;
	font-family: inherit;
}
.ms-btn:active { transform: scale(.98); }
.ms-btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(5,150,105,.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-btn--slider { margin-top: 18px; background: var(--brand-500); color: #fff; box-shadow: 0 12px 28px -8px rgba(16,185,139,.55); }
.ms-btn--slider:hover { background: var(--brand-400); color: #fff; }

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

/* ─────────────── هیرو اسلایدر ─────────────── */
.ms-slider { position: relative; overflow: hidden; background: #0f172a; }
.ms-slider__stage { position: relative; height: 520px; }
@media (min-width: 1024px) { .ms-slider__stage { height: 470px; } }
.ms-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity .7s cubic-bezier(.22,1,.36,1);
}
.ms-slide.is-active { opacity: 1; pointer-events: auto; }
.ms-slide__bg {
	position: absolute;
	inset: -24px;
	background-size: cover;
	background-position: center;
	filter: blur(28px) brightness(.38);
	transform: scale(1.08);
}
.ms-slide__shade { position: absolute; inset: 0; background: linear-gradient(to left, rgba(15,23,42,.75), rgba(15,23,42,.15) 55%, rgba(15,23,42,.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 .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,.25); background: rgba(255,255,255,.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-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,.18);
	box-shadow: 0 30px 60px -18px rgba(0,0,0,.6);
	rotate: 3deg;
	animation: ms-float 6s ease-in-out infinite;
	aspect-ratio: 1;
	object-fit: cover;
}
@keyframes ms-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.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,.3); cursor: pointer; padding: 0; transition: all .35s; }
.ms-slider__dot:hover { background: rgba(255,255,255,.65); }
.ms-slider__dot.is-active { height: 30px; background: var(--brand-300); box-shadow: 0 0 12px rgba(110,231,196,.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,.14); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border-radius: 12px; padding: 7px; cursor: pointer; text-align: right; transition: .2s; font-family: inherit; }
.ms-slider__peek-item:hover { background: rgba(255,255,255,.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,.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%; } }

/* نوار برندها */
.ms-marquee { border-block: 1px solid var(--line); background: rgba(255,255,255,.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: .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: .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: .85; }
.ms-festival__eyebrow { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.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,.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,.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,.65); }

/* کارت محصول */
ul.products.ms-products, .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
}
@media (min-width: 768px) { ul.products.ms-products, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { ul.products.ms-products, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0,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: .3s;
	min-width: 0;
}
.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,.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: .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-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: .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: .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,.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: .25s; }
.ms-post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(15,23,42,.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: .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,.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,.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; }

/* ─────────────── بالای هر صفحه (پایین دسترسی) ─────────────── */
.ms-skip { position: absolute; right: -9999px; }
.ms-skip:focus { right: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 16px; border-radius: 10px; }

/* ─────────────── شمارش معکوس نرخ بالا (برچسب دلار) ─────────────── */

/* ═══════════════════════════════════════════════
   ورود/ثبت‌نام — طراحی حرفه‌ای ستون‌بندی شده (کامل)
   ═══════════════════════════════════════════════ */

/* کانتینی حساب */
.woocommerce-account .ms-container .woocommerce { min-width: 0; }
.woocommerce-account .ms-wc { max-width: 1080px; }

/* وقتی وارد نشده: دو کارت کنار هم یکسان */
.woocommerce-account:not(.logged-in) #customer_login { margin: 0 !important; }

.ms-auth { display: grid; gap: 20px; }
.ms-auth--single { max-width: 460px; margin-inline: auto; }

@media (min-width: 768px) {
	.ms-auth--dual {
		display: grid !important;
		grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
		gap: 22px;
		align-items: stretch;
	}
	.ms-auth--dual .ms-auth__card { display: flex; flex-direction: column; height: 100%; }
	.ms-auth--dual .ms-form { flex: 1; }
}

.ms-auth__card {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 22px 44px -18px rgba(5,150,105,.16);
	padding: 26px;
	overflow: hidden;
	min-width: 0;
}
.ms-auth__card::before {
	content: "";
	position: absolute;
	top: 0; right: 0; left: 0;
	height: 4px;
	background: linear-gradient(to left, var(--brand-500), var(--brand-600));
}
.ms-auth__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-shrink: 0; }
.ms-auth__icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: var(--brand-600); color: #fff; }
.ms-auth__icon--register { background: #0ea5e9; }
.ms-auth__title { margin: 0; font-size: 17px; font-weight: 900; }
.ms-auth__sub { margin: 3px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.5; }

.ms-form { margin: 0; display: grid; gap: 13px; }
.ms-form__field label { display: block; font-size: 12.5px; font-weight: 800; color: #334155; margin-bottom: 6px; }
.ms-form__field input {
	width: 100%;
	height: 48px;
	border: 1.5px solid #e2e8f0;
	border-radius: 13px;
	background: #f8fafc;
	padding: 11px 15px;
	font-family: inherit;
	font-size: 14.5px;
	box-sizing: border-box;
	transition: box-shadow .18s, border-color .18s, background .18s;
}
.ms-form__field input:focus { outline: none; background: #fff; border-color: var(--brand-300); box-shadow: 0 0 0 4px var(--brand-100); }
.ms-form__remember { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #64748b; }
.ms-form__remember input { width: 16px; height: 16px; accent-color: var(--brand-600); }
.ms-form__submit { width: 100%; height: 50px; font-size: 15px !important; }
.ms-form__lost { margin: 6px 0 0; text-align: center; }
.ms-form__lost a { font-size: 12.5px; font-weight: 800; color: var(--brand-700); border-bottom: 1px dashed var(--brand-300); padding-bottom: 1px; }
.ms-form__note { font-size: 12px; color: #64748b; background: var(--brand-50); border-radius: 12px; padding: 10px 14px; }

/* ─────────────── حساب کاربری: سایدبار + تب آجاکس ─────────────── */

/* کارت کاربر */
.ms-acc-user { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); border-radius: 18px 18px 0 0; padding: 18px; color: #fff; }
.ms-acc-user__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35); font-size: 20px; font-weight: 900; }
.ms-acc-user__info { min-width: 0; flex: 1; }
.ms-acc-user__info b { display: block; font-size: 15px; font-weight: 900; line-height: 1.5; }
.ms-acc-user__info small { display: block; font-size: 11px; opacity: .85; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-acc-user__role { flex-shrink: 0; background: rgba(255,255,255,.16); border-radius: 8px; padding: 3px 10px; font-size: 10.5px; font-weight: 900; }

/* منوی سایدبار یکدست */
.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0 0 18px 18px;
	border-top: 0;
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin: 0 !important; border-radius: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 12px 14px !important;
	border-radius: 12px;
	font-size: 13.5px !important;
	font-weight: 800;
	color: #475569;
	line-height: 1.6;
	transition: background .16s, color .16s;
	position: relative;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	position: static !important;
	opacity: .75;
	mask-position: center !important;
	-webkit-mask-position: center !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: var(--brand-50); color: var(--brand-700); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--brand-600); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:hover { color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before { opacity: 1; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #e11d48; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fff1f2; color: #e11d48; }

@media (max-width: 899px) {
	.woocommerce-account .woocommerce-MyAccount-navigation { border-radius: 18px; margin-bottom: 14px; }
	.woocommerce-account .woocommerce-MyAccount-content { border-radius: 16px; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; padding: 7px; scrollbar-width: none; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul li { flex-shrink: 0; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul li a { padding: 10px 13px !important; white-space: nowrap; font-size: 12.5px !important; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before { width: 15px; height: 15px; }
}

/* (٩+00px) گرید سایدبار + محتوا */
@media (min-width: 900px) {
	.woocommerce-account .ms-container .woocommerce {
		display: grid;
		grid-template-columns: 260px minmax(0,1fr);
		gap: 22px;
		align-items: start;
	}
	.woocommerce-account .ms-container .woocommerce-MyAccount-navigation { position: sticky; top: 96px; }
	.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
}

/* محتوای حساب با انیمیشن نرم */
.ms-acc-content-animated { animation: ms-acc-fade .35s ease both; }
@keyframes ms-acc-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ms-acc-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 220px; font-size: 13px; font-weight: 800; color: var(--brand-600); }
.ms-acc-loading::before { content: ""; width: 20px; height: 20px; border: 2.5px solid var(--brand-100); border-top-color: var(--brand-600); border-radius: 50%; animation: ms-spin .8s linear infinite; }
@keyframes ms-spin { to { transform: rotate(360deg); } }

/* کارت‌های آماری داشبورد */
.ms-acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 20px 0 8px; }
.ms-acc-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(to bottom, #fff, #fbfdff); border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px; text-align: center; transition: .2s; }
.ms-acc-stat:hover { border-color: var(--brand-200); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ms-acc-stat__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); }
.ms-acc-stat__num { font-size: 19px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.ms-acc-stat__label { font-size: 11px; font-weight: 800; color: var(--faint); }
@media (max-width: 640px) {
	.ms-acc-stats { grid-template-columns: 1fr; gap: 8px; }
	.ms-acc-stat { flex-direction: row; text-align: right; gap: 12px; padding: 12px 14px; justify-content: flex-start; }
	.ms-acc-stat__icon { width: 40px; height: 40px; }
	.ms-acc-stat__num { font-size: 15px; margin-inline-start: auto; order: 3; color: var(--brand-700); }
	.ms-acc-stat__label { font-size: 12px; order: 2; }
}

/* محتوای حساب: تیتر با خط چین */
.woocommerce-account .woocommerce-MyAccount-content > h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }

/* فرم‌های جزئیات حساب: دو ستون ریسک بطن */
.woocommerce-EditAccountForm fieldset { border: 1.5px dashed var(--brand-200); border-radius: 18px; padding: 18px; margin-block: 18px; background: linear-gradient(to bottom, #fff, #fbfdff); }
.woocommerce-EditAccountForm fieldset legend { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); border-radius: 10px; padding: 6px 14px; font-size: 12.5px; }
@media (min-width: 640px) {
	.woocommerce-EditAccountForm .form-row-first,
	.woocommerce-EditAccountForm .form-row-last { width: calc(50% - 7px) !important; display: inline-block; vertical-align: top; }
	.woocommerce-EditAccountForm .form-row-first { margin-inline-end: 12px; }
}
.woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-address-fields .woocommerce-Button { height: 48px; border-radius: 14px !important; padding: 0 32px !important; background: var(--brand-600) !important; color: #fff !important; font-size: 14px !important; font-weight: 900 !important; box-shadow: 0 10px 24px -10px rgba(5,150,105,.5); }

/* آدرس‌ها */
.woocommerce-MyAccount-content .woocommerce-Address { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 14px; }
.woocommerce-MyAccount-content .addresses .title { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.woocommerce-MyAccount-content address { font-size: 13px; line-height: 2; color: var(--muted); font-style: normal; }
.woocommerce-MyAccount-content header .edit { background: var(--brand-50); border-radius: 8px; padding: 5px 12px !important; font-size: 11.5px !important; font-weight: 800; color: var(--brand-700) !important; }
@media (min-width: 640px) {
	.woocommerce-MyAccount-content .woocommerce-Address { width: calc(50% - 8px) !important; float: right; margin-inline-end: 8px; }
	.woocommerce-MyAccount-content .addresses { display: flow-root; }
}

/* جدول سفارش‌ها روی دسکتاپ */
@media (min-width: 768px) {
	.woocommerce-MyAccount-content table.woocommerce-orders-table { border: 1px solid var(--line) !important; border-radius: 14px !important; overflow: hidden; }
	.woocommerce-MyAccount-content .woocommerce-orders-table td,
	.woocommerce-MyAccount-content .woocommerce-orders-table th { padding: 13px 12px; font-size: 13px; white-space: normal !important; }
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a { font-weight: 900; color: var(--brand-700); }
}
.woocommerce-MyAccount-content .woocommerce-info { display: flex; align-items: center; gap: 10px; border-radius: 14px; font-size: 13px; }
.woocommerce-MyAccount-content mark { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 1px 8px; font-size: 11px; font-weight: 800; }

/* ─────────────── تسویه حساب (Checkout) حرفه‌ای ─────────────── */
.woocommerce-checkout .ms-container form.checkout,
.woocommerce-checkout form.checkout.woocommerce-checkout { display: grid; gap: 24px; }

@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout.woocommerce-checkout {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
		align-items: start;
	}
	.woocommerce-checkout form.checkout.woocommerce-checkout .col2-set,
	.woocommerce-checkout form.checkout.woocommerce-checkout .col2-set .col-1 { width: 100%; max-width: 100%; }
	.woocommerce-checkout form.checkout.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout form.checkout.woocommerce-checkout #order_review { grid-column: 2; }
	.woocommerce-checkout form.checkout.woocommerce-checkout #order_review_heading { margin: 0; }
}

.woocommerce-checkout form.checkout .col2-set .col-1,
.woocommerce-checkout form.checkout .col2-set .col-2 {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow-card);
	padding: 22px;
	min-width: 0;
	margin-bottom: 14px;
}
.woocommerce-checkout form.checkout h3 { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.woocommerce-checkout #order_review_heading { font-size: 16px; font-weight: 900; }
.woocommerce-checkout #order_review {
	background: #fff;
	border: 2px solid var(--brand-100);
	border-radius: 20px;
	box-shadow: var(--shadow-card);
	padding: 20px;
	min-width: 0;
}
@media (min-width: 1024px) { .woocommerce-checkout #order_review { position: sticky; top: 96px; } }
.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table { border: 0 !important; box-shadow: none; }
.woocommerce-checkout #order_review .shop_table td,
.woocommerce-checkout #order_review .shop_table th { border-color: #f1f5f9 !important; font-size: 13px; padding: 10px 8px; }
.woocommerce-checkout #order_review .order-total .amount { color: var(--brand-700); font-weight: 900; font-size: 17px; }
.woocommerce-checkout #payment { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; }
.woocommerce-checkout #payment div.payment_box { border-radius: 12px; background: var(--brand-50); }
.woocommerce-checkout #payment div.payment_box::before { border-color: transparent transparent var(--brand-50); }
.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order {
	width: 100%;
	background: var(--brand-600) !important;
	border-radius: 14px !important;
	padding: 16px !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	box-shadow: 0 12px 28px -8px rgba(5,150,105,.45);
}
.woocommerce-checkout button#place_order:hover { background: var(--brand-700) !important; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { border-radius: 14px; }
.woocommerce form .form-row label { font-size: 12px; font-weight: 800; color: #334155; }
.woocommerce form .form-row { padding: 0 0 12px; margin: 0; float: none !important; width: 100% !important; }
@media (min-width: 640px) {
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last { width: calc(50% - 7px) !important; display: inline-block; vertical-align: top; }
	.woocommerce form .form-row-first { margin-inline-end: 12px; }
}
.woocommerce .select2-container .select2-selection--single { min-height: 46px; font-size: 16px !important; }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-inline-start: 14px; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }

/* کانتینی خلاصه جداول تسویه روی موبایل به کارت تبدیل شود (در بخش mobile rules پوشش داده می‌شود) */

/* ─────────────── سبد خرید ─────────────── */
.woocommerce-cart .woocommerce { display: grid; gap: 20px; }
@media (min-width: 900px) {
	.woocommerce-cart .woocommerce { grid-template-columns: minmax(0,1fr) 380px; align-items: start; }
	.woocommerce-cart .cart-collaterals { margin: 0; }
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	width: 100% !important;
	float: none !important;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-card);
	padding: 18px;
}
.woocommerce .cart_totals h2 { font-size: 16px; font-weight: 900; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { border-radius: 14px !important; padding: 15px !important; font-size: 15px !important; font-weight: 900 !important; }

/* برچسب‌های قیمتی حالت عمودی درکادر سبد روی دسکتاپ */
.woocommerce table.shop_table td { white-space: normal !important; }

/* ─────────────── جداول موبایل: تبدیل به کارت ─────────────── */
@media (max-width: 767px) {
	.woocommerce table.shop_table,
	.woocommerce table.shop_table tbody,
	.woocommerce table.shop_table tr,
	.woocommerce table.shop_table td { display: block; width: 100% !important; }
	.woocommerce table.shop_table thead { display: none; }
	.woocommerce table.shop_table tr { background: #fff; border: 1px solid var(--line) !important; border-radius: 14px; margin-bottom: 10px; padding: 6px 4px; }
	.woocommerce table.shop_table td {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		border: 0 !important;
		border-bottom: 1px solid #f8fafc !important;
		padding: 9px 12px !important;
		text-align: left !important;
		font-size: 13px;
	}
	.woocommerce table.shop_table td:last-child { border-bottom: 0 !important; }
	.woocommerce table.shop_table td::before { content: attr(data-title); font-weight: 800; color: var(--muted); font-size: 12px; flex-shrink: 0; }
	.woocommerce table.shop_table td.product-remove { justify-content: flex-end; }
	.woocommerce table.shop_table td.product-remove::before { content: ""; }
	.woocommerce table.shop_table td.product-thumbnail { justify-content: center; }
	.woocommerce table.shop_table td.product-thumbnail::before { content: ""; }
	.woocommerce table.shop_table td.product-thumbnail img { width: 84px; border-radius: 12px; }
	.woocommerce table.shop_table td.actions { display: block !important; }
	.woocommerce table.shop_table td.actions::before { content: ""; }
	.woocommerce #content table.cart td.actions .input-text,
	.woocommerce table.cart td.actions .input-text { width: 100% !important; margin-bottom: 8px; }
	.woocommerce table.cart td.actions .button,
	.woocommerce table.cart td.actions .coupon .button { width: 100%; margin-bottom: 8px; }
	.woocommerce .quantity .qty { width: 72px; }

	.woocommerce .col2-set .col-1,
	.woocommerce .col2-set .col-2 { width: 100% !important; float: none !important; margin-bottom: 14px; }

	.woocommerce-checkout form.checkout .col2-set .col-1,
	.woocommerce-checkout form.checkout .col2-set .col-2 { padding: 16px; }
	.woocommerce-checkout #order_review { position: static; }

	.woocommerce-account .woocommerce-MyAccount-content { padding: 16px; }
}

/* فروشگاه: نوار مرتب‌سازی و گرید موبایل */
@media (max-width: 767px) {
	.woocommerce .woocommerce-ordering,
	.woocommerce .woocommerce-result-count { float: none !important; width: 100%; margin: 0 0 10px; }
	.woocommerce .woocommerce-ordering select { width: 100%; }
	ul.products.ms-products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
	.ms-product-card__body { padding: 11px; }
	.ms-product-card__title { font-size: 12px; min-height: 40px; }
	.ms-product-card__price .price { font-size: 15px; }
	.ms-section { padding-block: 30px; }
	.ms-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.ms-festival, .ms-wholesale-cta { padding: 22px 16px; border-radius: 18px; }
	.ms-wholesale-cta__grid { grid-template-columns: 1fr; }
	.ms-countdown__cell b { width: 50px; height: 50px; font-size: 20px; }
	.ms-slider__stage { height: 480px; }
	.ms-slider__peek { display: none; }
	.ms-cartdrawer__panel { width: 100%; }
	.ms-footer__cols { gap: 22px; }
	.ms-hero__stats b { font-size: 16px; }
}
@media (max-width: 380px) {
	ul.products.ms-products, .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* اعلان‌ها روی موبایل */
@media (max-width: 767px) {
	.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px !important; font-size: 13px; }
	.woocommerce-message .button, .woocommerce-info .button { float: none !important; width: 100%; text-align: center; }
}

/* صفحه محصول روی موبایل */
@media (max-width: 767px) {
	.single-product div.product .images,
	.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 0 18px !important; }
	.single-product div.product .woocommerce-tabs ul.tabs { display: flex; overflow-x: auto; padding: 0 0 6px; margin-bottom: 12px; scrollbar-width: none; }
	.single-product div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
	.single-product div.product .woocommerce-tabs ul.tabs::before { display: none; }
	.single-product div.product .woocommerce-tabs ul.tabs li { flex-shrink: 0; border-radius: 10px !important; border: 1px solid var(--line) !important; background: #fff !important; margin: 0 0 0 6px !important; }
	.single-product div.product .woocommerce-tabs ul.tabs li::before,
	.single-product div.product .woocommerce-tabs ul.tabs li::after { display: none; }
	.single-product div.product .woocommerce-tabs .panel { padding: 16px; border-radius: 14px; }
	.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
	.single-product div.product form.cart .quantity { margin: 0; }
	.single-product div.product .single_add_to_cart_button { flex: 1; min-width: 180px; }
	.ms-wholesale-box { padding: 13px; }
	.ms-wholesale-box__row { font-size: 12px; }
}

/* ─────────────── استوری و اجزای تعاملی ─────────────── */
.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: .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,.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,.85), rgba(2,6,23,.1) 45%, rgba(2,6,23,.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,.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,.5); }
.ms-story-viewer__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(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-story-viewer__product { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border-radius: 16px; padding: 10px; margin-bottom: 10px; text-align: right; }
.ms-story-viewer__product img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ms-story-viewer__product span { min-width: 0; flex: 1; }
.ms-story-viewer__product b { display: block; font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-story-viewer__product i { font-style: normal; font-size: 12.5px; font-weight: 900; color: var(--brand-300); }

/* جستجوی زنده */
.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,.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: .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-mobile-search { position: fixed; inset: 0; z-index: 105; display: flex; flex-direction: column; background: #fff; transform: translateY(100%); transition: transform .32s cubic-bezier(.22,1,.36,1); visibility: hidden; }
.ms-mobile-search.is-open { transform: none; visibility: visible; }
.ms-mobile-search__bar { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.ms-mobile-search__back { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 16px; }
.ms-mobile-search__back:active { background: #f1f5f9; }
.ms-mobile-search__form { position: relative; flex: 1; }
.ms-mobile-search__form input { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #f1f5f9; padding: 13px 44px 13px 14px; font-family: inherit; font-size: 15px; outline: none; transition: .2s; }
.ms-mobile-search__form input:focus { background: #fff; border-color: var(--brand-300); box-shadow: 0 0 0 4px var(--brand-100); }
.ms-mobile-search__icon { position: absolute; top: 50%; right: 13px; translate: 0 -50%; color: var(--faint); line-height: 0; pointer-events: none; }
.ms-mobile-search__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 40px; }
.ms-mobile-search__label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 900; color: var(--muted); margin: 14px 0 9px; }
.ms-mobile-search__label .ms-icon { color: #f59e0b; }
.ms-mobile-search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ms-ms-chip { border: 0; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); padding: 9px 16px; font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer; transition: .15s; }
.ms-ms-chip:active { scale: .95; }
.ms-ms-chip--recent { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); padding: 0; overflow: hidden; }
.ms-ms-chip--recent button { border: 0; background: none; padding: 8px 13px; font-size: 12px; font-weight: 800; color: #475569; font-family: inherit; }
.ms-ms-chip--recent button:last-child { border-inline-start: 1px solid var(--line); color: var(--faint); padding-inline: 9px; }
.ms-mobile-search__cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.ms-mobile-search__cats a { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); padding: 13px 16px; font-size: 13.5px; font-weight: 800; color: #334155; }
.ms-mobile-search__cats a::after { content: "‹"; color: #cbd5e1; font-size: 18px; }
.ms-mobile-search__cats a:active { scale: .98; border-color: var(--brand-300); }
#ms-ms-results .ms-ls-item { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid #f8fafc; }
#ms-ms-results .ms-ls-item img { width: 54px; height: 54px; border-radius: 12px; }
#ms-ms-results .ms-ls-item b { font-size: 13px; }
#ms-ms-results .ms-ls-all { margin-top: 14px; padding: 14px; font-size: 13px; }

/* کشوی سبد خرید آجاکس */
.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,.45); opacity: 0; transition: .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,.4); display: flex; flex-direction: column; transform: translateX(-105%); transition: transaform .35s cubic-bezier(.22,1,.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: .3s; box-shadow: 0 14px 34px -10px rgba(5,150,105,.6); }
.ms-toast.is-shown { opacity: 1; transform: translate(50%,0); }

/* چیپ محصولات جشنواره */
.ms-festival__cat { background: rgba(255,255,255,.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,.15); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border-radius: 12px; padding: 7px; transition: .2s; }
.ms-festival__chip:hover { background: rgba(255,255,255,.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); }
