*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { direction: rtl; }
body {
	font-family: var(--v-font);
	background: var(--v-bg);
	color: var(--v-dark);
	-webkit-font-smoothing: antialiased;
	overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* پیش‌فرض امن برای همه آیکون‌های SVG درون‌خطی - جلوی بزرگ‌نمایی ناخواسته رو میگیره
   وقتی یه آیکون داخل کلاسی نیست که اندازه مشخص کرده باشه (باگی که قبلاً توی دراور/دکمه‌ها بود) */
svg { width: 20px; height: 20px; flex-shrink: 0; }

/* کلاس استاندارد خود وردپرس/ووکامرس - چون هیچ‌وقت استایل قالب اصلی سایت رو لود نمی‌کنیم،
   این کلاس (که خیلی جاها مثل لیبل تعداد در سبد خرید ازش استفاده میشه) بدون این تعریف اصلاً
   مخفی نمی‌مونه و به‌شکل متن معمولی زیر/کنار فیلد مربوطه نمایش داده میشه */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}

.v-app {
	max-width: 480px;
	margin: 0 auto;
	min-height: 100vh;
	background: var(--v-bg);
	position: relative;
	padding-bottom: 76px;
}

/* ---------- Header ---------- */
.v-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--v-bg);
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.v-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	gap: 10px;
}
.v-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none;
	background: transparent;
	border-radius: 50%;
	position: relative;
	color: var(--v-dark);
}
.v-icon-btn:active { background: rgba(0,0,0,.05); }
.v-icon-btn svg { width: 22px; height: 22px; }
.v-logo { height: 30px; max-width: 130px; object-fit: contain; }
.v-badge-count {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--v-primary);
	color: #fff;
	font-size: 10px;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
	font-weight: 700;
}
.v-search-bar {
	margin: 0 14px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #F1F1F4;
	border-radius: 12px;
	padding: 10px 14px;
	color: var(--v-muted);
	font-size: 13px;
}
.v-search-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Drawer ---------- */
.v-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17,17,17,.45);
	z-index: 60;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}
.v-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 82%;
	max-width: 340px;
	height: 100%;
	background: #fff;
	z-index: 61;
	transform: translateX(100%);
	transition: transform .28s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
body.v-drawer-open .v-drawer-overlay { opacity: 1; pointer-events: auto; }
body.v-drawer-open .v-drawer { transform: translateX(0); }
.v-drawer-head {
	padding: 20px 16px;
	background: var(--v-dark);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
}
.v-drawer-head img { width: 42px; height: 42px; border-radius: 50%; background: #fff; object-fit: contain; }
.v-drawer-cats { padding: 8px 0; }
.v-drawer-cat > a, .v-drawer-cat-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	font-size: 14px;
	border-bottom: 1px solid #F1F1F4;
}
.v-drawer-cat-toggle svg { width: 16px; height: 16px; transition: transform .2s; color: var(--v-muted); }
.v-drawer-cat.v-open > .v-drawer-cat-toggle svg { transform: rotate(90deg); }
.v-drawer-subcats { max-height: 0; overflow: hidden; background: #FAFAFB; }
.v-drawer-cat.v-open .v-drawer-subcats { max-height: 1000px; }
.v-drawer-subcats a { display: block; padding: 11px 32px; font-size: 13px; color: var(--v-muted); }

/* ---------- Sections ---------- */
.v-section { padding: 18px 0 4px; }
.v-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px 12px;
}
.v-section-title { font-size: 15px; font-weight: 800; color: var(--v-dark); display: flex; align-items: center; gap: 6px; }
.v-view-all { font-size: 12px; color: var(--v-primary); font-weight: 600; display: flex; align-items: center; gap: 2px; }

.v-carousel {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 0 14px 6px;
	scroll-snap-type: x proximity;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.v-carousel::-webkit-scrollbar { display: none; }
.v-carousel > * { scroll-snap-align: start; flex-shrink: 0; }

/* ---------- Product card ---------- */
.v-product-card {
	width: 140px;
	background: #fff;
	border: 1px solid #F1F1F4;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
}
.v-product-card.is-wide { width: 100%; }
.v-product-img-wrap { position: relative; aspect-ratio: 1/1; background: #F7F7F9; }
.v-product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.v-discount-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--v-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: 6px;
}
.v-product-body { padding: 8px 10px 12px; }
.v-product-title {
	font-size: 12px;
	line-height: 1.6;
	height: 38px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--v-dark);
	margin-bottom: 6px;
}
.v-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.v-price { font-size: 13px; font-weight: 800; color: var(--v-dark); }
.v-price-old { font-size: 11px; color: var(--v-muted); text-decoration: line-through; }
.v-out-of-stock { font-size: 11px; color: var(--v-muted); background: #F1F1F4; padding: 3px 8px; border-radius: 6px; display: inline-block; }

/* واترمارک ناموجود روی عکس محصول - پس‌زمینه خاکستری با opacity ۶۸٪ طبق درخواست */
.v-product-card.is-out-of-stock .v-product-img-wrap img { filter: grayscale(1); opacity: .55; }
.v-oos-watermark {
	position: absolute; inset: 0; background: rgba(90,90,90,.68);
	display: flex; align-items: center; justify-content: center;
}
.v-oos-watermark span {
	color: #fff; font-size: 12px; font-weight: 800; border: 1.5px solid #fff;
	padding: 4px 14px; border-radius: 20px; transform: rotate(-12deg);
}

/* ---------- Buttons ---------- */
.v-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 13px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	border: none;
	width: 100%;
}
.v-btn-primary { background: var(--v-primary); color: #fff; }
.v-btn-outline { background: transparent; color: var(--v-primary); border: 1.5px solid var(--v-primary); }
.v-btn:disabled { opacity: .5; }

/* ---------- Banners ---------- */
.v-banner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.v-banner-row a { border-radius: 14px; overflow: hidden; }
.v-banner-row img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

/* ---------- Bottom floating nav ---------- */
.v-bottom-nav {
	position: fixed;
	bottom: 0;
	right: 50%;
	transform: translateX(50%);
	width: 100%;
	max-width: 480px;
	background: #fff;
	box-shadow: 0 -2px 12px rgba(0,0,0,.08);
	display: flex;
	z-index: 50;
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.v-bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 2px;
	font-size: 10px;
	color: var(--v-muted);
	position: relative;
}
.v-bottom-nav-item.is-active { color: var(--v-primary); }
.v-bottom-nav-item svg { width: 22px; height: 22px; }

/* حالت شناور «بالا اومده» - به‌جای چسبیدن به لبه پایین صفحه، با فاصله و گوشه‌ی گرد شناوره.
   فقط روی قالب‌هایی که کلاس v-bottom-nav-float به nav اضافه شده اعمال میشه. */
.v-bottom-nav.v-bottom-nav-float {
	bottom: 14px;
	width: calc(100% - 28px);
	max-width: 452px;
	border-radius: 26px;
	box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
@media (min-width: 481px) {
	.v-bottom-nav.v-bottom-nav-float { max-width: 452px; }
}

/* ---------- Skeleton / empty ---------- */
.v-empty { text-align: center; padding: 60px 20px; color: var(--v-muted); font-size: 13px; }
.v-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: .5; }
.v-btn svg { width: 18px; height: 18px; }

/* ---------- Product page ---------- */
.v-pd-gallery-main { position: relative; aspect-ratio: 1/1; background: #F7F7F9; }
.v-pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.v-pd-thumbs { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.v-pd-thumb {
	width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; border: 1.5px solid #F1F1F4;
	background: #F7F7F9; padding: 4px; overflow: hidden;
}
.v-pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.v-pd-thumb.is-active { border-color: var(--v-primary); }
.v-pd-gallery { position: relative; aspect-ratio: 1/1; background: #F7F7F9; }
.v-pd-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.v-pd-body { padding: 16px 14px 100px; }
.v-pd-title { font-size: 16px; font-weight: 800; line-height: 1.7; margin: 0 0 8px; }
.v-pd-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--v-muted); margin-bottom: 10px; }
.v-pd-rating svg { width: 14px; height: 14px; color: #FFB800; }
.v-pd-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.v-pd-price { font-size: 20px; font-weight: 800; color: var(--v-dark); }
.v-pd-price-old { font-size: 13px; color: var(--v-muted); text-decoration: line-through; }
.v-attr-group { margin-bottom: 16px; }
.v-attr-label { font-size: 12px; color: var(--v-muted); margin-bottom: 8px; }
.v-attr-options { display: flex; flex-wrap: wrap; gap: 8px; }
.v-attr-option {
	padding: 8px 16px;
	border: 1.5px solid #E4E4E8;
	border-radius: 10px;
	font-size: 12px;
	background: #fff;
}
.v-attr-option.is-selected { border-color: var(--v-primary); color: var(--v-primary); background: rgba(217,4,41,.06); }
.v-attr-option.is-oos-selected {
	position: relative; border-color: #D8D8DC !important; color: #ADADB4 !important;
	background: repeating-linear-gradient(-45deg, #F5F5F7, #F5F5F7 4px, #EDEDF0 4px, #EDEDF0 8px) !important;
}
.v-oos-tooltip {
	position: absolute; bottom: 100%; right: 50%; transform: translateX(50%); margin-bottom: 6px;
	background: var(--v-dark); color: #fff; font-size: 10.5px; font-weight: 600; padding: 5px 10px;
	border-radius: 8px; white-space: nowrap; z-index: 5; animation: vOosFade 1.8s ease forwards;
}
@keyframes vOosFade {
	0% { opacity: 0; transform: translateX(50%) translateY(4px); }
	15%, 80% { opacity: 1; transform: translateX(50%) translateY(0); }
	100% { opacity: 0; }
}
.v-pd-specs { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.v-pd-specs tr { border-bottom: 1px solid #F1F1F4; }
.v-pd-specs td { padding: 10px 4px; }
.v-pd-specs td:first-child { color: var(--v-muted); width: 40%; }
.v-pd-specs td:last-child { font-weight: 600; }
.v-pd-sticky-bar {
	position: fixed;
	bottom: 0;
	right: 50%;
	transform: translateX(50%);
	width: 100%;
	max-width: 480px;
	background: #fff;
	box-shadow: 0 -2px 12px rgba(0,0,0,.08);
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	display: flex;
	gap: 10px;
	z-index: 55;
}
.v-qty-box { display: flex; align-items: center; border: 1.5px solid #E4E4E8; border-radius: 12px; overflow: hidden; }
.v-qty-box button { width: 38px; height: 44px; background: #fff; border: none; font-size: 16px; }
.v-qty-box input { width: 36px; text-align: center; border: none; font-size: 14px; }
.v-pd-desc { font-size: 13px; line-height: 2; color: var(--v-dark); margin-top: 20px; }
.v-pd-desc h2 { font-size: 14px; }

.v-reviews-summary { display: flex; align-items: center; gap: 14px; padding: 14px; background: #FAFAFB; border-radius: 14px; margin: 16px 0; }
.v-reviews-score { font-size: 26px; font-weight: 800; }
.v-reviews-stars { color: #FFB800; display: flex; gap: 2px; }
.v-reviews-stars svg { width: 14px; height: 14px; }
.v-reviews-count { font-size: 11px; color: var(--v-muted); }
.v-review-item { padding: 12px 0; border-bottom: 1px solid #F1F1F4; }
.v-review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.v-review-author { font-size: 12.5px; font-weight: 700; }
.v-review-date { font-size: 11px; color: var(--v-muted); }
.v-review-text { font-size: 12.5px; line-height: 1.9; color: var(--v-dark); }

/* ---------- Category grid page ---------- */
.v-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.v-pagination { display: flex; justify-content: center; gap: 8px; padding: 20px; }
.v-pagination a, .v-pagination span { padding: 8px 13px; border-radius: 8px; background: #F1F1F4; font-size: 12px; }
.v-pagination .is-current { background: var(--v-primary); color: #fff; }

/* ---------- Cart / Checkout (restyle WooCommerce default markup) ---------- */
.v-wc-wrap { padding: 14px; }
.v-wc-wrap table.shop_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.v-wc-wrap table.shop_table thead { display: none; }
.v-wc-wrap table.shop_table tbody { display: block; }
.v-wc-wrap table.shop_table td { border: none; padding: 0; }

/* هر ردیف محصول: گرید دقیق به‌جای flex آزاد. عمداً فقط روی tr.cart_item اعمال میشه -
   ردیف آخر جدول (کوپن + دکمه بروزرسانی، کلاس .actions) ردیف محصول نیست و نباید این گرید رو بگیره،
   وگرنه دقیقاً همون بهم‌ریختگی‌ای پیش میاد که قبلاً پیش اومده بود. */
.v-wc-wrap table.shop_table tr.cart_item,
.v-wc-wrap table.shop_table tr.woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: 22px 62px 1fr;
	grid-template-areas: "remove thumb name" "remove thumb qty";
	column-gap: 10px;
	row-gap: 8px;
	padding: 14px 0;
	border-bottom: 1px solid #F1F1F4;
	align-items: center;
}
.v-wc-wrap td.product-remove { grid-area: remove; }
.v-wc-wrap td.product-remove a {
	width: 24px; height: 24px; border-radius: 50%; background: #F1F1F4;
	display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--v-muted);
}
.v-wc-wrap td.product-thumbnail { grid-area: thumb; align-self: start; }
.v-wc-wrap td.product-thumbnail img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; background: #F7F7F9; }
.v-wc-wrap td.product-name { grid-area: name; font-size: 12.5px; line-height: 1.6; align-self: start; padding-top: 2px; }
.v-wc-wrap td.product-name a { font-weight: 700; color: var(--v-dark); display: block; margin-bottom: 2px; }
.v-wc-wrap td.product-name dl.variation { font-size: 11px; color: var(--v-muted); margin: 2px 0 0; }
.v-wc-wrap td.product-name dl.variation dt, .v-wc-wrap td.product-name dl.variation dd { display: inline; margin: 0; padding: 0; }
.v-wc-wrap td.product-name dl.variation dd p { display: inline; margin: 0; }
.v-wc-wrap td.product-name dl.variation dt::after { content: ':'; margin-inline-end: 3px; }
.v-wc-wrap td.product-price { display: none; }
.v-wc-wrap td.product-quantity { grid-area: qty; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v-wc-wrap td.product-quantity .quantity { display: inline-flex; align-items: center; border: 1.5px solid #E4E4E8; border-radius: 10px; overflow: hidden; }

/* دکمه‌های +/- که app.js به اینپوت تعداد خام ووکامرس (سبد خرید) اضافه میکنه */
.v-native-qty-wrap { position: relative; }
.v-native-qty-btn {
	width: 30px; height: 100%; min-height: 38px; border: none; background: #F7F7F9;
	color: var(--v-dark); font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.v-native-qty-btn:active { background: #EFEFF2; }
.v-wc-wrap td.product-quantity input.qty {
	width: 42px; text-align: center; border: none; padding: 8px 0; font-size: 13px; font-family: var(--v-font);
	-moz-appearance: textfield;
}
.v-wc-wrap td.product-quantity input.qty::-webkit-inner-spin-button,
.v-wc-wrap td.product-quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.v-wc-wrap td.product-subtotal { grid-area: qty; justify-self: end; font-size: 13.5px; font-weight: 800; color: var(--v-dark); }

/* ---------- ردیف پایانی جدول: کوپن + بروزرسانی سبد (td.actions) ---------- */
.v-wc-wrap table.shop_table tr:has(td.actions) { border-bottom: none; }
.v-wc-wrap td.actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0 4px !important;
}
.v-wc-wrap td.actions > .coupon { order: 1; }
.v-wc-wrap td.actions > button[name="update_cart"] { order: 2; }

.v-wc-wrap .cart-collaterals { margin-top: 16px; }
.v-wc-wrap .cart_totals table { width: 100%; font-size: 13px; }
.v-wc-wrap .cart_totals tr { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F1F1F4; }
.v-wc-wrap .cart_totals .order-total { font-weight: 800; font-size: 15px; }
.v-wc-wrap .wc-proceed-to-checkout a,
.v-wc-wrap input.checkout-button,
.v-wc-wrap #place_order {
	display: flex; align-items: center; justify-content: center;
	background: var(--v-primary); color: #fff !important; border: none;
	padding: 14px; border-radius: 12px; font-weight: 700; font-size: 14px; margin-top: 14px; width: 100%;
}

/* دکمه‌های عمومی ووکامرس (کلاس .button خام - مثل «بروزرسانی سبد») که تا الان اصلاً استایلی نداشتن */
.v-wc-wrap .button:not(.checkout-button):not(.vitrana-styled),
.v-wc-wrap input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: #fff; color: var(--v-dark) !important; border: 1.5px solid #E4E4E8;
	border-radius: 10px; padding: 11px 18px; font-size: 13px; font-weight: 700;
	font-family: var(--v-font); cursor: pointer; width: 100%; text-decoration: none;
}
.v-wc-wrap .button:disabled { opacity: .5; }

/* فرم اعمال کوپن - کلاس واقعی ووکامرس روی صفحه سبد خرید .coupon هست، نه .woocommerce-form-coupon
   (اون یکی مخصوص فرم لاگین توی چک‌اوته) - همین سلکتور اشتباه بود که باعث می‌شد کوپن هیچ استایلی نگیره.
   چیدمان عمداً زیرهمه (نه کنار هم): اول اینپوت تمام‌عرض، بعد دکمه زیرش - نه دو تا کنار هم فشرده. */
.v-wc-wrap .cart .coupon,
.v-wc-wrap .woocommerce-form-coupon {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 0;
}
.v-wc-wrap .coupon label { display: none; }
.v-wc-wrap .coupon input#coupon_code,
.v-wc-wrap .woocommerce-form-coupon input[type=text] {
	width: 100%;
	border: 1.5px solid #E4E4E8;
	border-radius: 10px;
	padding: 12px;
	font-size: 13px;
	font-family: var(--v-font);
	box-sizing: border-box;
}
.v-wc-wrap .coupon button,
.v-wc-wrap .woocommerce-form-coupon button {
	border: 1.5px solid var(--v-dark);
	border-radius: 10px;
	padding: 11px 16px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	width: 100%;
}

.v-wc-wrap #payment { background: #FAFAFB; border-radius: 14px; padding: 14px; margin-top: 14px; }
.v-wc-wrap .wc_payment_methods { list-style: none; padding: 0; margin: 0; }
.v-wc-wrap .wc_payment_method { padding: 10px 0; border-bottom: 1px solid #F1F1F4; font-size: 13px; }
.v-wc-wrap .wc_payment_method:last-child { border-bottom: none; }
.v-wc-wrap .wc_payment_method label { font-size: 13px; font-weight: 600; }
/* عمداً هیچ رنگ/سایز فونتی رو به payment_box تحمیل نمی‌کنیم - این ناحیه رو خود درگاه پرداخت
   (مثلاً افزونه‌های کارت‌به‌کارت مثل کارتابین) با HTML/CSS اختصاصی خودش پر می‌کنه، و اگه
   استایل ما زوری روش اعمال بشه، ظاهرشون که توی سایت اصلی درسته، توی اپ خراب می‌شد.
   فقط یه فاصله‌ی ساده می‌ذاریم و اجازه می‌دیم عکس/دکمه/متن داخلش با اندازه طبیعی خودش دیده بشه. */
.v-wc-wrap .payment_box { padding: 10px 4px 4px 24px; font-size: revert; color: revert; }
.v-wc-wrap .payment_box p { margin: 0 0 10px; }
.v-wc-wrap .payment_box img { max-width: revert; width: auto; display: revert; }
.v-wc-wrap .payment_box svg { width: revert; height: revert; }
.v-wc-wrap .payment_box a { color: revert; text-decoration: revert; }
.v-wc-wrap .payment_box table { width: 100%; }

.v-wc-wrap .woocommerce-billing-fields,
.v-wc-wrap .woocommerce-shipping-fields,
.v-wc-wrap .woocommerce-additional-fields { margin-bottom: 16px; }
.v-wc-wrap .woocommerce-billing-fields h3,
.v-wc-wrap .woocommerce-shipping-fields h3,
.v-wc-wrap .woocommerce-additional-fields h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.v-wc-wrap .woocommerce-billing-fields .form-row,
.v-wc-wrap .woocommerce-shipping-fields .form-row,
.v-wc-wrap .woocommerce-additional-fields .form-row { margin-bottom: 12px; }
.v-wc-wrap .woocommerce-billing-fields label,
.v-wc-wrap .woocommerce-shipping-fields label,
.v-wc-wrap .woocommerce-additional-fields label { display: block; font-size: 12px; color: var(--v-muted); margin-bottom: 6px; }
.v-wc-wrap .woocommerce-billing-fields input,
.v-wc-wrap .woocommerce-billing-fields select,
.v-wc-wrap .woocommerce-shipping-fields input,
.v-wc-wrap .woocommerce-shipping-fields select,
.v-wc-wrap .woocommerce-additional-fields textarea {
	width: 100%; border: 1.5px solid #E4E4E8; border-radius: 10px; padding: 11px; font-size: 13px; font-family: var(--v-font);
}
.v-wc-wrap .select2-container { width: 100% !important; }
.v-wc-wrap .select2-selection { border: 1.5px solid #E4E4E8 !important; border-radius: 10px !important; height: 44px !important; padding: 6px 11px !important; }

/* «ارسال به آدرس دیگری؟» - قبلاً هیچ CSS نداشت و کاملاً بی‌قواره نمایش داده می‌شد */
.v-wc-wrap #ship-to-different-address { margin: 14px 0; }
.v-wc-wrap #ship-to-different-address label {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.v-wc-wrap #ship-to-different-address-checkbox { width: 17px; height: 17px; accent-color: var(--v-primary); flex-shrink: 0; }
.v-wc-wrap .woocommerce-shipping-fields .shipping_address { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E4E4E8; }

.v-wc-wrap .woocommerce-additional-fields textarea { min-height: 90px; resize: vertical; }

.v-wc-wrap #order_review { background: #FAFAFB; border-radius: 14px; padding: 14px; margin-top: 8px; }
.v-wc-wrap .woocommerce-checkout-review-order-table { width: 100%; font-size: 13px; }
.v-wc-wrap .woocommerce-checkout-review-order-table thead { display: none; }
.v-wc-wrap .woocommerce-checkout-review-order-table tr { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #F1F1F4; }
.v-wc-wrap .woocommerce-checkout-review-order-table .product-name { flex: 1; }
.v-wc-wrap .woocommerce-checkout-review-order-table .order-total { font-weight: 800; font-size: 15px; }
.v-wc-wrap .woocommerce-checkout-review-order-table .order-total td { border: none; }

.v-wc-wrap .woocommerce-error, .v-wc-wrap .woocommerce-message, .v-wc-wrap .woocommerce-info {
	background: #FFF3F3; color: var(--v-primary); border-radius: 10px; padding: 12px 14px; font-size: 12px; list-style: none; margin-bottom: 14px;
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.v-wc-wrap .woocommerce-message a.button { display: inline-block; margin-inline-start: 8px; }
.v-wc-wrap a.showcoupon { color: var(--v-primary); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* فرم کوپن توی چک‌اوت (کلاس checkout_coupon - جدا از .coupon سبد خرید) پیش‌فرض بسته‌ست،
   دقیقاً مثل رفتار استاندارد ووکامرس، و با کلیک روی «کد تخفیف دارید؟» باز میشه */
.v-wc-wrap .checkout_coupon { display: none; margin: 0 0 16px; }

/* ---------- Countdown ---------- */
.v-countdown { display: flex; gap: 4px; direction: ltr; }
.v-countdown span { background: var(--v-dark); color: #fff; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 3px 5px; min-width: 20px; text-align: center; }

/* ---------- In-app search ---------- */
.v-search-live-results {
	position: absolute;
	top: 100%;
	right: 14px;
	left: 14px;
	background: #fff;
	border: 1px solid #F1F1F4;
	border-radius: 14px;
	box-shadow: 0 12px 24px rgba(43,45,66,.12);
	z-index: 45;
	max-height: 60vh;
	overflow-y: auto;
	display: none;
}
.v-search-live-results.is-open { display: block; }
.v-search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #F7F7F9; }
.v-search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.v-search-result-item .v-sr-name { font-size: 12px; flex: 1; line-height: 1.5; }
.v-search-result-item .v-sr-price { font-size: 12px; font-weight: 700; white-space: nowrap; }
.v-search-see-all { display: block; text-align: center; padding: 11px; font-size: 12.5px; font-weight: 700; color: var(--v-primary); }
.v-search-empty { padding: 20px; text-align: center; font-size: 12px; color: var(--v-muted); }

/* ---------- Brand strip layouts ---------- */
.v-brand-tile {
	border: 1px solid #F1F1F4; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	padding: 8px; width: 100%; height: 100%; background: #fff;
}
.v-brand-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v-brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.v-brand-grid .v-brand-tile { aspect-ratio: 3/2; }
.v-brand-rows { display: flex; flex-direction: column; gap: 10px; }
.v-brand-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-brand-row-pair .v-brand-tile { aspect-ratio: 5/2; }

/* ---------- Ranked bestsellers list (دو ستونه با نشان عدد) ---------- */
.v-ranked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.v-ranked-item {
	display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #F1F1F4;
	border-radius: 12px; padding: 8px;
}
.v-ranked-badge {
	width: 20px; height: 20px; border-radius: 50%; background: var(--v-primary); color: #fff;
	font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.v-ranked-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #F7F7F9; flex-shrink: 0; }
.v-ranked-info { min-width: 0; }
.v-ranked-name {
	font-size: 11px; line-height: 1.5; color: var(--v-dark);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 3px;
}
.v-ranked-price { font-size: 11.5px; font-weight: 800; color: var(--v-dark); }

/* ---------- Promo grid 2x2 ---------- */
.v-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.v-promo-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; display: block; }
.v-promo-card img { width: 100%; height: 100%; object-fit: cover; }
.v-promo-card-text { position: absolute; inset: 0; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 60%); }
.v-promo-card-text strong { color: #fff; font-size: 12px; }
.v-promo-card-text span { color: rgba(255,255,255,.85); font-size: 10px; }

/* ---------- Dual hero (دو بنر بزرگ + ردیف کوچک) ---------- */
.v-dual-hero-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; align-items: start; }
.v-dual-hero-main a { position: relative; border-radius: 14px; overflow: hidden; display: block; line-height: 0; }
.v-dual-hero-main img { width: 100%; height: auto; display: block; }
.v-dual-hero-main .v-promo-card-text strong { font-size: 13px; }
.v-dual-hero-sub { display: flex; gap: 10px; padding: 10px 14px 0; }
.v-dual-hero-sub a { flex: 1; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; }
.v-dual-hero-sub img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Story-style category ring ---------- */
.v-story-item { text-align: center; width: 68px; flex-shrink: 0; }
.v-story-ring {
	display: block; width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 6px;
	padding: 2.5px; overflow: hidden;
}
.v-story-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; border: 2px solid #fff; }
.v-story-label { font-size: 10.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Floating social widget ---------- */
.v-social-widget {
	position: fixed; bottom: 92px; left: 14px; z-index: 60;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.v-social-toggle {
	width: 48px; height: 48px; border-radius: 50%; border: none; background: #fff;
	color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: transform .25s ease; padding: 6px; position: relative;
}
.v-social-toggle-icon-idle { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.v-social-toggle-icon-open {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: var(--v-dark); border-radius: 50%; color: #fff; opacity: 0; transform: scale(.6); transition: all .2s ease;
}
.v-social-widget.is-open .v-social-toggle-icon-idle { opacity: 0; }
.v-social-widget.is-open .v-social-toggle-icon-open { opacity: 1; transform: scale(1); }
.v-social-widget.is-open .v-social-toggle { transform: rotate(90deg); }
.v-social-items {
	display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
	max-height: 0; overflow: hidden; opacity: 0; transition: opacity .2s ease;
}
.v-social-widget.is-open .v-social-items { max-height: 400px; opacity: 1; }
.v-social-item {
	width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); overflow: hidden;
	transform: scale(0); transition: transform .2s ease;
}
.v-social-widget.is-open .v-social-item { transform: scale(1); }
.v-social-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Loop carousel (سوایپر دوم - چرخش بی‌وقفه) ---------- */
.v-loop-carousel { overflow: hidden; }
.v-loop-track {
	display: flex; gap: 10px; width: max-content;
	animation-name: vLoopScroll; animation-timing-function: linear; animation-iteration-count: infinite;
}
.v-loop-item { flex-shrink: 0; width: 130px; border-radius: 12px; overflow: hidden; line-height: 0; display: block; }
.v-loop-item img { width: 100%; height: 87px; object-fit: cover; }
@keyframes vLoopScroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.v-loop-track { animation: none; }
}

/* ---------- Testimonials ---------- */
.v-testi-card {
	flex: 0 0 240px; background: #fff; border: 1px solid #F1F1F4; border-radius: 14px;
	padding: 14px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start;
}
.v-testi-stars { position: relative; display: inline-flex; gap: 2px; }
.v-testi-stars svg { width: 14px; height: 14px; fill: #E4E4E8; stroke: none; }
.v-testi-stars-fill {
	position: absolute; inset: 0; overflow: hidden; display: inline-flex; gap: 2px; white-space: nowrap;
}
.v-testi-stars-fill svg { fill: #F2A900; stroke: none; }
.v-testi-text {
	margin: 0; font-size: 12px; line-height: 1.9; color: var(--v-dark); flex: 1;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.v-testi-footer { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid #F7F7F9; }
.v-testi-product-img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #F7F7F9; }
.v-testi-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v-testi-author { font-size: 10.5px; color: var(--v-muted); }
.v-testi-product-name {
	font-size: 11px; font-weight: 700; color: var(--v-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-testi-view-btn {
	flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--v-primary); border: 1.5px solid var(--v-primary);
	border-radius: 8px; padding: 5px 10px;
}

/* ---------- Reels ---------- */
.v-reels-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px; -ms-overflow-style: none; scrollbar-width: none; }
.v-reels-row::-webkit-scrollbar { display: none; }
.v-reel-card {
	position: relative; flex: 0 0 108px; width: 108px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden;
	border: none; padding: 0; background: #000; scroll-snap-align: start;
}
.v-reel-card video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.v-reel-play-badge {
	position: absolute; bottom: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255,255,255,.9); color: var(--v-primary); display: flex; align-items: center; justify-content: center;
}
.v-reel-play-badge svg { width: 12px; height: 12px; }

.v-reel-overlay {
	position: fixed; inset: 0; background: #000; z-index: 9999; display: none;
	align-items: center; justify-content: center;
}
.v-reel-overlay.is-open { display: flex; }
.v-reel-fullscreen-video { width: 100%; height: 100%; object-fit: contain; }
.v-reel-close {
	position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.v-reel-product-box {
	position: absolute; bottom: 22px; right: 14px; left: 14px; z-index: 2;
	background: rgba(255,255,255,.85); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 14px;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.v-reel-product-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v-reel-product-info strong { font-size: 12.5px; color: var(--v-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-reel-product-info span { font-size: 12px; font-weight: 800; color: var(--v-primary); }

/* ---------- Splash screen ---------- */
.v-splash {
	position: fixed; inset: 0; z-index: 999; background: var(--v-bg); overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	transition: opacity .4s ease, visibility .4s ease;
}
.v-splash.v-splash-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.v-splash-logo { width: 88px; height: 88px; object-fit: contain; position: relative; z-index: 1; }
.v-splash-name { font-size: 16px; font-weight: 800; color: var(--v-dark); position: relative; z-index: 1; }
.v-splash-power { position: absolute; bottom: 34px; font-size: 11px; color: var(--v-muted); display: flex; align-items: center; gap: 5px; z-index: 1; }

/* نورهای شناور کم‌رنگ پشت اسپلش‌اسکرین - رنگشون خودکار از رنگ اصلی/ثانویه همون قالب میاد،
   عمداً گوشه‌ها و لبه‌ها هستن نه وسط (چون پشت لوگو سفید/روشنه و نور اونجا بد دیده میشه) */
.v-splash-orb {
	position: absolute; border-radius: 50%; filter: blur(70px); opacity: .2; z-index: 0;
	animation: vSplashFloat 14s ease-in-out infinite;
}
.v-splash-orb-a { width: 240px; height: 240px; background: var(--v-primary); top: -70px; right: -70px; animation-delay: 0s; }
.v-splash-orb-b { width: 190px; height: 190px; background: var(--v-secondary); bottom: -50px; left: -60px; animation-delay: -5s; }
.v-splash-orb-c { width: 160px; height: 160px; background: var(--v-primary); bottom: 12%; right: 8%; opacity: .14; animation-delay: -9.5s; }

@keyframes vSplashFloat {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(18px, -22px) scale(1.12); }
	66% { transform: translate(-14px, 14px) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
	.v-splash-orb { animation: none; }
}
.v-splash-power svg { width: 14px; height: 14px; }

@media (min-width: 481px) {
	body { background: #E9E9EC; }
	.v-app { box-shadow: 0 0 40px rgba(0,0,0,.12); margin-top: 20px; margin-bottom: 20px; border-radius: 20px; overflow: hidden; }
}
