/* ============================================================
   VNBot Market — استایل اصلی قالب (راست‌چین / فارسی)
   ============================================================ */

:root {
	--vnbot-primary: #6d28d9;
	--vnbot-primary-dark: #5b21b6;
	--vnbot-primary-light: #ede9fe;
	--vnbot-text: #1f2937;
	--vnbot-muted: #6b7280;
	--vnbot-border: #e5e7eb;
	--vnbot-bg: #f8f9fc;
	--vnbot-card: #ffffff;
	--vnbot-success: #059669;
	--vnbot-danger: #dc2626;
	--vnbot-warning: #d97706;
	--vnbot-radius: 14px;
	--vnbot-shadow: 0 4px 16px rgba(17, 24, 39, 0.07);
	--vnbot-shadow-hover: 0 10px 28px rgba(109, 40, 217, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Vazirmatn", Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.9;
	color: var(--vnbot-text);
	background: var(--vnbot-bg);
	direction: rtl;
	text-align: right;
}

a { color: var(--vnbot-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vnbot-primary-dark); }

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

.vnbot-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.vnbot-main { min-height: 60vh; }

/* ---------- دکمه‌ها ---------- */
.vnbot-btn {
	display: inline-block;
	padding: 9px 22px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: all .2s ease;
	text-align: center;
}
.vnbot-btn-primary {
	background: var(--vnbot-primary);
	color: #fff !important;
}
.vnbot-btn-primary:hover {
	background: var(--vnbot-primary-dark);
	transform: translateY(-1px);
}
.vnbot-btn-outline {
	background: transparent;
	color: var(--vnbot-primary);
	border-color: var(--vnbot-primary);
}
.vnbot-btn-outline:hover {
	background: var(--vnbot-primary-light);
}
.vnbot-btn-block { display: block; width: 100%; }
.vnbot-btn-lg { padding: 13px 26px; font-size: 16px; }
.vnbot-btn-disabled {
	background: #e5e7eb;
	color: #9ca3af;
	cursor: not-allowed;
}

/* ---------- هدر ---------- */
.vnbot-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--vnbot-border);
}
.vnbot-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 68px;
}
.vnbot-brand { flex-shrink: 0; }
.vnbot-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
	color: var(--vnbot-text) !important;
}
.vnbot-logo svg { color: var(--vnbot-primary); }

.vnbot-quick-links { flex: 1; }
.vnbot-menu {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.vnbot-menu a {
	color: var(--vnbot-text);
	font-weight: 500;
	font-size: 14.5px;
}
.vnbot-menu a:hover { color: var(--vnbot-primary); }

.vnbot-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}
.vnbot-header-phone {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--vnbot-text) !important;
	background: var(--vnbot-primary-light);
	padding: 7px 14px;
	border-radius: 10px;
}
.vnbot-header-phone svg { color: var(--vnbot-primary); }
.vnbot-header-phone:hover { background: #ddd6fe; }

.vnbot-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid var(--vnbot-border);
	background: #fff;
	color: var(--vnbot-text);
	cursor: pointer;
	transition: all .2s;
}
.vnbot-search-toggle:hover {
	border-color: var(--vnbot-primary);
	color: var(--vnbot-primary);
}

/* ---------- اورلی جستجو ---------- */
.vnbot-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 15vh;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.vnbot-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
.vnbot-search-form {
	display: flex;
	gap: 10px;
	width: min(620px, 90vw);
	background: #fff;
	padding: 14px;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.vnbot-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-family: inherit;
	font-size: 17px;
	padding: 8px 12px;
	background: transparent;
	color: var(--vnbot-text);
}
.vnbot-search-close {
	position: absolute;
	top: 24px;
	left: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
}
.vnbot-search-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- هیرو ---------- */
.vnbot-hero {
	background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #8b5cf6 100%);
	color: #fff;
	padding: 56px 0 60px;
	text-align: center;
}
.vnbot-hero-sm { padding: 34px 0 38px; }
.vnbot-hero-title {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 800;
}
.vnbot-hero-sub {
	margin: 0;
	opacity: 0.85;
	font-size: 16px;
}

/* ---------- گرید فروشگاه: ۴ ستونه ---------- */
.vnbot-shop-wrap { padding: 36px 0 56px; }

.vnbot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
@media (max-width: 1100px) { .vnbot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .vnbot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .vnbot-grid { grid-template-columns: 1fr; } }

/* ---------- چیپ دسته‌بندی ---------- */
.vnbot-cat-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 26px;
}
.vnbot-cat-chips-label { font-weight: 700; font-size: 14px; color: var(--vnbot-muted); }
.vnbot-chip {
	display: inline-block;
	padding: 5px 14px;
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--vnbot-text) !important;
	transition: all .2s;
}
.vnbot-chip:hover {
	border-color: var(--vnbot-primary);
	background: var(--vnbot-primary-light);
}

/* ---------- کارت محصول (سبک کارت‌های اشتراک هاست) ---------- */
.vnbot-card {
	background: var(--vnbot-card);
	border: 1px solid var(--vnbot-border);
	border-radius: var(--vnbot-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--vnbot-shadow);
	transition: transform .25s, box-shadow .25s;
}
.vnbot-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--vnbot-shadow-hover);
}

.vnbot-card-media {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: var(--vnbot-primary-light);
}
.vnbot-card-thumb img {
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.vnbot-card-buytop { margin-top: 12px; }

.vnbot-card-title {
	margin: 12px 0 8px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.7;
	min-height: 3.2em;
}
.vnbot-card-title a { color: var(--vnbot-text) !important; }
.vnbot-card-title a:hover { color: var(--vnbot-primary) !important; }

.vnbot-card-features {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	flex: 1;
}
.vnbot-card-features li {
	position: relative;
	padding-right: 16px;
	font-size: 12.8px;
	color: var(--vnbot-muted);
	line-height: 1.9;
}
.vnbot-card-features li::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0.85em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--vnbot-primary);
	opacity: 0.5;
}

.vnbot-card-price {
	border-top: 1px dashed var(--vnbot-border);
	padding-top: 12px;
	margin-bottom: 12px;
	text-align: center;
}
.vnbot-price-value {
	font-size: 18px;
	font-weight: 800;
	color: var(--vnbot-primary);
}

.vnbot-card-actions {
	display: flex;
	gap: 8px;
}
.vnbot-card-actions .vnbot-btn {
	flex: 1;
	padding: 8px 10px;
	font-size: 13.5px;
}

/* ---------- بج‌ها ---------- */
.vnbot-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.vnbot-badge-in {
	background: #d1fae5;
	color: var(--vnbot-success);
}
.vnbot-badge-out {
	background: #fee2e2;
	color: var(--vnbot-danger);
}
.vnbot-card-media .vnbot-badge-out {
	position: absolute;
	top: 8px;
	right: 8px;
}

/* ---------- صفحه‌بندی ---------- */
.vnbot-pagination { margin-top: 36px; }
.vnbot-pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.vnbot-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--vnbot-border);
	color: var(--vnbot-text) !important;
	font-weight: 600;
	font-size: 14px;
	transition: all .2s;
}
.vnbot-pagination .page-numbers:hover {
	border-color: var(--vnbot-primary);
	color: var(--vnbot-primary) !important;
}
.vnbot-pagination .page-numbers.current {
	background: var(--vnbot-primary);
	border-color: var(--vnbot-primary);
	color: #fff !important;
}

/* ---------- تک‌صفحه محصول ---------- */
.vnbot-single-wrap { padding: 30px 0 60px; }

.vnbot-breadcrumb {
	font-size: 13.5px;
	color: var(--vnbot-muted);
	margin-bottom: 24px;
}
.vnbot-sep { margin: 0 8px; color: var(--vnbot-border); }

.vnbot-single-grid {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 36px;
	margin-bottom: 40px;
}
@media (max-width: 900px) { .vnbot-single-grid { grid-template-columns: 1fr; } }

.vnbot-single-mainimg {
	border-radius: var(--vnbot-radius);
	overflow: hidden;
	background: var(--vnbot-primary-light);
	box-shadow: var(--vnbot-shadow);
}
.vnbot-single-mainimg img { width: 100%; }

.vnbot-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.vnbot-gal-thumb {
	border: 2px solid var(--vnbot-border);
	border-radius: 10px;
	overflow: hidden;
	padding: 0;
	background: none;
	cursor: pointer;
	transition: border-color .2s;
}
.vnbot-gal-thumb:hover,
.vnbot-gal-thumb.is-active { border-color: var(--vnbot-primary); }
.vnbot-gal-thumb img { width: 74px; height: 74px; object-fit: cover; }

.vnbot-single-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.6;
}
.vnbot-single-cat {
	font-size: 13.5px;
	color: var(--vnbot-muted);
	margin-bottom: 18px;
}

.vnbot-price-box {
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: var(--vnbot-radius);
	padding: 18px 22px;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	box-shadow: var(--vnbot-shadow);
}
.vnbot-price-label { font-size: 13px; color: var(--vnbot-muted); width: 100%; }
.vnbot-price-main {
	font-size: 26px;
	font-weight: 800;
	color: var(--vnbot-primary);
}
.vnbot-stock-count {
	font-size: 13px;
	color: var(--vnbot-muted);
}

/* ---------- فرم خرید ---------- */
.vnbot-buy-form {
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: var(--vnbot-radius);
	padding: 22px;
	box-shadow: var(--vnbot-shadow);
}
.vnbot-field { margin-bottom: 14px; }
.vnbot-field label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 5px;
}
.vnbot-field .req { color: var(--vnbot-danger); }
.vnbot-field small { color: var(--vnbot-muted); font-size: 12px; }
.vnbot-field input,
.vnbot-field textarea,
.vnbot-field select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--vnbot-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14.5px;
	color: var(--vnbot-text);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.vnbot-field input:focus,
.vnbot-field textarea:focus {
	outline: none;
	border-color: var(--vnbot-primary);
	box-shadow: 0 0 0 3px var(--vnbot-primary-light);
}

.vnbot-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--vnbot-primary-light);
	border-radius: 10px;
	padding: 12px 16px;
	margin: 18px 0 14px;
	font-size: 15px;
}
.vnbot-total-row strong {
	font-size: 19px;
	color: var(--vnbot-primary-dark);
}

.vnbot-buy-note {
	font-size: 12.5px;
	color: var(--vnbot-muted);
	text-align: center;
	margin: 10px 0 0;
}

/* ---------- محتوا ---------- */
.vnbot-section-title {
	font-size: 19px;
	font-weight: 800;
	margin: 0 0 16px;
	padding-right: 14px;
	border-right: 4px solid var(--vnbot-primary);
	line-height: 1.5;
}
.vnbot-content-box {
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: var(--vnbot-radius);
	padding: 24px;
	margin-bottom: 22px;
	line-height: 2.1;
	font-size: 14.5px;
	white-space: pre-line;
}
.vnbot-content-box p { margin: 0 0 12px; }

/* ---------- تماس با ما ---------- */
.vnbot-contact-wrap { padding: 40px 0 60px; }
.vnbot-contact-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 30px;
}
@media (max-width: 800px) { .vnbot-contact-grid { grid-template-columns: 1fr; } }

.vnbot-contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 12px;
	font-weight: 600;
}
.vnbot-contact-item svg { color: var(--vnbot-primary); flex-shrink: 0; }

.vnbot-contact-form-box {
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: var(--vnbot-radius);
	padding: 26px;
	box-shadow: var(--vnbot-shadow);
}

/* ---------- هشدارها ---------- */
.vnbot-alert {
	border-radius: 10px;
	padding: 13px 18px;
	margin-bottom: 18px;
	font-size: 14px;
}
.vnbot-alert-success { background: #d1fae5; color: #065f46; }
.vnbot-alert-error   { background: #fee2e2; color: #991b1b; }

/* ---------- صفحه عمومی ---------- */
.vnbot-page-wrap { padding: 40px 0 60px; }
.vnbot-page-title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 22px;
}
.vnbot-404 { text-align: center; padding: 80px 0; }

.vnbot-empty {
	background: #fff;
	border: 1px dashed var(--vnbot-border);
	border-radius: var(--vnbot-radius);
	padding: 44px 24px;
	text-align: center;
	color: var(--vnbot-muted);
}

/* ---------- صفحه تحویل سفارش ---------- */
.vnbot-delivery-wrap { padding: 44px 0 70px; }
.vnbot-delivery-box {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--vnbot-border);
	border-radius: 18px;
	padding: 36px;
	box-shadow: var(--vnbot-shadow);
	text-align: center;
}
.vnbot-delivery-icon { margin-bottom: 14px; }
.vnbot-icon-success { color: var(--vnbot-success); }
.vnbot-icon-wait    { color: var(--vnbot-warning); }
.vnbot-icon-error   { color: var(--vnbot-danger); }
.vnbot-delivery-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 24px;
}

.vnbot-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 22px;
	font-size: 14px;
}
.vnbot-order-table th,
.vnbot-order-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--vnbot-border);
	text-align: right;
}
.vnbot-order-table th {
	width: 38%;
	color: var(--vnbot-muted);
	font-weight: 600;
}

.vnbot-accounts-box {
	text-align: left;
	direction: ltr;
	margin-bottom: 14px;
}
.vnbot-accounts-box pre {
	background: #111827;
	color: #a7f3d0;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 13.5px;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	margin: 0 0 8px;
}

/* ---------- فوتر ---------- */
.vnbot-footer {
	background: #1e1b2e;
	color: #d1d5db;
	margin-top: 40px;
}
.vnbot-footer-grid {
	display: grid;
	grid-template-columns: 4fr 3fr 3fr;
	gap: 36px;
	padding: 46px 20px 36px;
}
@media (max-width: 800px) { .vnbot-footer-grid { grid-template-columns: 1fr; } }

.vnbot-footer-brand {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 8px;
}
.vnbot-footer-desc {
	font-size: 13.5px;
	opacity: 0.75;
	margin: 0 0 14px;
}
.vnbot-footer-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.1);
	padding: 8px 16px;
	border-radius: 10px;
}
.vnbot-footer-phone:hover { background: rgba(255, 255, 255, 0.2); }

.vnbot-footer-title {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
}
.vnbot-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.vnbot-footer-menu li { margin-bottom: 9px; }
.vnbot-footer-menu a {
	color: #d1d5db !important;
	font-size: 13.5px;
}
.vnbot-footer-menu a:hover { color: #fff !important; }

.vnbot-enamad-box {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 130px;
	min-height: 110px;
}
.vnbot-enamad-box img { max-height: 100px; width: auto; }
.vnbot-enamad-placeholder {
	color: var(--vnbot-muted);
	font-size: 12px;
	text-align: center;
}

.vnbot-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 16px 0;
	text-align: center;
	font-size: 13px;
	opacity: 0.8;
}
.vnbot-footer-bottom a { color: #fff !important; font-weight: 700; }

/* ---------- واکنش‌گرایی هدر ---------- */
@media (max-width: 760px) {
	.vnbot-header-inner { gap: 12px; height: 60px; }
	.vnbot-quick-links { display: none; }
	.vnbot-header-phone span { display: none; }
	.vnbot-header-phone { padding: 9px; }
	.vnbot-hero-title { font-size: 23px; }
	.vnbot-search-form { flex-direction: column; }
}

/* ---------- چاپ ---------- */
.ltr { direction: ltr !important; }

/* ---------- توضیحات دو جهته (فارسی راست‌چین / انگلیسی وسط‌چین) ---------- */
.vnbot-content-box { white-space: normal; }
.vnbot-desc { margin-bottom: 14px; }
.vnbot-desc-fa { direction: rtl; text-align: right; }
.vnbot-desc-en { direction: ltr; text-align: center; }

/* ---------- تایید پیامکی موبایل ---------- */
.vnbot-otp-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.vnbot-otp-row input { flex: 1; }
.vnbot-otp-row .vnbot-btn { flex-shrink: 0; white-space: nowrap; padding: 8px 16px; font-size: 13.5px; }
.vnbot-otp-code-box {
	margin-top: 10px;
	background: var(--vnbot-primary-light);
	border-radius: 10px;
	padding: 12px;
}
.vnbot-otp-code-box small { color: var(--vnbot-muted); font-size: 12px; }
.vnbot-otp-status { margin-top: 8px; font-size: 13.5px; font-weight: 600; min-height: 1.4em; }
.vnbot-otp-status.is-ok { color: var(--vnbot-success); }
.vnbot-otp-status.is-err { color: var(--vnbot-danger); }
#vnbot-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- متن اصلی انگلیسی در صفحه محصول ---------- */
.vnbot-section-title-sm { font-size: 15.5px; border-right-width: 3px; margin-top: 26px; }
.vnbot-content-box-en { background: #fbfbfe; border-style: dashed; }
