/**
 * VNP Theme — فروشگاه (ووکامرس). استایل پیش‌فرض ووکامرس بارگذاری نمی‌شود.
 *
 * فهرست: ۱. اجزای مشترک  ۲. فهرست و فیلتر  ۳. کارت محصول  ۴. صفحه محصول
 *        ۵. سبد  ۶. تسویه  ۷. ثبت سفارش  ۸. حساب کاربری و فرم‌ها  ۹. پیام‌ها  ۱۰. واکنش‌گرا
 */

/* ۱. اجزای مشترک ------------------------------------------------------ */
.vnp-badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 2px 10px; border-radius: var(--vnp-r-pill);
	font-size: var(--vnp-fs-xs); font-weight: 800; line-height: 1.8; white-space: nowrap;
	background: var(--vnp-primary-soft); color: var(--vnp-primary-strong);
}
.vnp-badge-sale { background: var(--vnp-sale); color: var(--vnp-on-sale); }
.vnp-badge-success { background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-badge-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--vnp-primary); color: var(--vnp-on-primary); font-size: 11px; font-weight: 800; }
.vnp-muted { color: var(--vnp-muted); font-weight: 400; }
.vnp-free { color: var(--vnp-success); font-weight: 800; }
.vnp-btn--block { display: flex; width: 100%; }

.vnp-chip {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 36px; padding: 0 14px; border-radius: var(--vnp-r-pill);
	color: var(--vnp-muted); font-weight: 600; font-size: var(--vnp-fs-sm); white-space: nowrap;
	border: 1px solid transparent;
}
.vnp-chip:hover { color: var(--vnp-primary); background: var(--vnp-surface-2); }
.vnp-chip.is-active { background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); font-weight: 800; }
.vnp-chip--removable { background: var(--vnp-surface); border-color: var(--vnp-line); color: var(--vnp-text); }
.vnp-chip--removable:hover { border-color: var(--vnp-sale); color: var(--vnp-sale); background: var(--vnp-surface); }

/* قیمت */
.vnp-price { display: flex; flex-direction: column; gap: 0; line-height: 1.5; }
.vnp-price-old { color: var(--vnp-muted); font-size: var(--vnp-fs-sm); text-decoration-thickness: 1px; }
.vnp-price-now { color: var(--vnp-ink); white-space: nowrap; }
.vnp-price-now strong { font-size: var(--vnp-fs-lg); font-weight: 800; }
.vnp-price-unit, .vnp-price-from { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); font-weight: 400; }
.vnp-price--single .vnp-price-now strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.vnp-price--single .vnp-price-old { font-size: var(--vnp-fs-md); }
.vnp-price--small .vnp-price-now strong { font-size: var(--vnp-fs-md); }
.vnp-price-call { color: var(--vnp-primary); font-weight: 700; }

/* ستاره‌ها (ساختار .star-rating ووکامرس) */
.star-rating {
	position: relative; display: inline-block; vertical-align: middle;
	width: 5.4em; height: 1.1em; overflow: hidden; font-size: 14px; line-height: 1.1;
	font-family: Tahoma, sans-serif; letter-spacing: .08em;
}
.star-rating::before { content: '★★★★★'; color: var(--vnp-line); position: absolute; inset-inline-start: 0; top: 0; }
.star-rating > span { position: absolute; inset-inline-start: 0; top: 0; height: 100%; overflow: hidden; font-size: 0; }
.star-rating > span::before { content: '★★★★★'; color: var(--vnp-star); font-size: 14px; position: absolute; inset-inline-start: 0; top: 0; }

/* پیام کوتاه */
.vnp-toast {
	position: fixed; z-index: 120; inset-inline: 16px; bottom: 84px; margin-inline: auto; max-width: 420px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-radius: var(--vnp-r-control);
	background: var(--vnp-navy); color: var(--vnp-on-navy); box-shadow: var(--vnp-shadow-float);
	font-weight: 600; opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.vnp-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.vnp-toast a { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
@media (min-width: 900px) { .vnp-toast { bottom: 24px; } }

/* مراحل خرید */
.vnp-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; font-size: var(--vnp-fs-sm); }
.vnp-step { display: flex; align-items: center; gap: 8px; color: var(--vnp-muted); font-weight: 600; }
.vnp-step a { display: flex; align-items: center; gap: 8px; color: inherit; }
.vnp-step:not(:last-child)::after { content: ''; width: clamp(16px, 5vw, 48px); height: 2px; border-radius: 2px; background: var(--vnp-line); margin-inline-start: 4px; }
.vnp-step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--vnp-line); background: var(--vnp-surface); font-weight: 800; flex: none; }
.vnp-step.is-current { color: var(--vnp-primary); font-weight: 800; }
.vnp-step.is-current .vnp-step-num { background: var(--vnp-primary); border-color: var(--vnp-primary); color: var(--vnp-on-primary); }
.vnp-step.is-done { color: var(--vnp-success); }
.vnp-step.is-done .vnp-step-num { background: var(--vnp-success); border-color: var(--vnp-success); color: #fff; }
.vnp-step.is-done::after { background: var(--vnp-success); }

/* ۲. فهرست و فیلتر ---------------------------------------------------- */
.vnp-shop { padding-block: 16px 40px; }
.vnp-shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vnp-shop-head .vnp-page-title { margin: 0; }
.vnp-shop-count { margin: 0; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-shop-desc { margin-bottom: 16px; color: var(--vnp-muted); max-width: 72ch; }
.vnp-shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.vnp-shop-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.vnp-filters-panel {
	position: sticky; top: 16px;
	background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-section);
	padding: 18px; display: flex; flex-direction: column;
}
.admin-bar .vnp-filters-panel { top: 48px; }
.vnp-filters-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--vnp-line); }
.vnp-filters-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--vnp-fs-md); flex: 1; }
.vnp-filters-clear { color: var(--vnp-sale); font-weight: 700; font-size: var(--vnp-fs-sm); }
.vnp-filters-close { display: none; }
.vnp-filter-group { padding: 14px 0; border-bottom: 1px solid var(--vnp-line); }
.vnp-filter-form .vnp-filter-group:last-of-type { border-bottom: 0; }
.vnp-filter-title { margin: 0 0 8px; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
.vnp-filter-all { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: var(--vnp-fs-sm); font-weight: 600; }
.vnp-filter-cats { margin: 0; padding: 0; list-style: none; }
.vnp-filter-cats.is-sub { margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 2px solid var(--vnp-line); }
.vnp-filter-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; color: var(--vnp-text); font-size: var(--vnp-fs-sm); }
.vnp-filter-cats a:hover { background: var(--vnp-surface-2); color: var(--vnp-primary); }
.vnp-filter-cats .is-current > a { background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); font-weight: 800; }
.vnp-filter-count { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vnp-price-range label { display: flex; flex-direction: column; gap: 2px; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-price-range input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--vnp-line); border-radius: 10px; background: var(--vnp-tile); color: var(--vnp-text); text-align: left; }
.vnp-price-range input:focus { border-color: var(--vnp-primary); outline: none; box-shadow: 0 0 0 3px var(--vnp-primary-soft); }
.vnp-filter-switches { display: flex; flex-direction: column; gap: 10px; }
.vnp-switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); min-height: 32px; }
.vnp-switch-row input { position: absolute; opacity: 0; inset-inline-end: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.vnp-switch-ui { position: relative; width: 44px; height: 26px; flex: none; border-radius: 13px; background: var(--vnp-line); transition: background .15s; }
.vnp-switch-ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.vnp-switch-row input:checked + .vnp-switch-ui { background: var(--vnp-primary); }
.vnp-switch-row input:checked + .vnp-switch-ui::after { inset-inline-start: 21px; }
.vnp-switch-row input:focus-visible + .vnp-switch-ui { box-shadow: 0 0 0 3px var(--vnp-primary-soft), 0 0 0 5px var(--vnp-primary); }
.vnp-filter-apply { margin-top: 6px; width: 100%; }

.vnp-shop-toolbar {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 8px 12px; background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card);
}
.vnp-filters-open { display: none; }
.vnp-sort { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.vnp-sort-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--vnp-ink); font-size: var(--vnp-fs-sm); white-space: nowrap; }
.vnp-sort ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.vnp-sort-select { display: none; }
.vnp-sort-select select { min-height: var(--vnp-tap); padding: 0 12px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-surface); color: var(--vnp-text); }
.vnp-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* شبکه کارت‌ها */
.vnp-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.vnp-pgrid--rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 232px); grid-template-columns: none;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.vnp-pgrid--rail > li { scroll-snap-align: start; }
.vnp-rail-controls { display: flex; align-items: center; gap: 6px; }
.vnp-rail-controls .vnp-icon-btn { width: 36px; height: 36px; }
.vnp-home-products.is-sale .vnp-section-title::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--vnp-sale); margin-inline-end: 8px; vertical-align: middle; }

/* ۳. کارت محصول ------------------------------------------------------- */
.vnp-pcard {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card);
	padding: 10px; transition: border-color .15s, box-shadow .15s;
}
.vnp-pcard:hover { border-color: var(--vnp-primary); box-shadow: var(--vnp-shadow-float); }
.vnp-pcard-media { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--vnp-tile); }
.vnp-pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vnp-pcard:hover .vnp-pcard-media img { transform: scale(1.03); }
.vnp-pcard-media .vnp-badge-sale { position: absolute; top: 8px; inset-inline-start: 8px; }
.vnp-pcard-out { position: absolute; inset: auto 8px 8px; padding: 2px 10px; border-radius: var(--vnp-r-pill); background: rgba(15, 37, 64, .78); color: #fff; font-size: var(--vnp-fs-xs); font-weight: 700; text-align: center; }
.vnp-pcard.is-stock-out .vnp-pcard-media img { filter: grayscale(.7); opacity: .7; }
.vnp-pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 4px 2px; flex: 1; }
.vnp-pcard-code { align-self: flex-end; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-pcard-title { margin: 0; font-size: var(--vnp-fs-sm); font-weight: 700; line-height: 1.7; min-height: 3.4em; }
.vnp-pcard-title a { color: var(--vnp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vnp-pcard-title a:hover { color: var(--vnp-primary); }
.vnp-pcard-rating { display: flex; align-items: center; gap: 4px; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-pcard-rating .star-rating { font-size: 12px; }
.vnp-pcard-rating .star-rating > span::before { font-size: 12px; }
.vnp-pcard-stock { font-size: var(--vnp-fs-xs); font-weight: 700; color: var(--vnp-warn); }
.vnp-pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.vnp-pcard-unavailable { color: var(--vnp-muted); font-size: var(--vnp-fs-sm); font-weight: 600; }
.vnp-pcard-add {
	display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
	border-radius: 12px; background: var(--vnp-primary-soft); color: var(--vnp-primary-strong);
	transition: background .15s, color .15s;
}
.vnp-pcard-add .vnp-icon { width: 20px; height: 20px; max-width: none; }
.vnp-pcard-add:hover, .vnp-pcard-add:focus-visible { background: var(--vnp-primary); color: var(--vnp-on-primary); }
.vnp-pcard-add.loading { opacity: .6; pointer-events: none; }
.vnp-pcard-add.loading svg { animation: vnp-spin .8s linear infinite; }
.vnp-pcard-add.is-added { background: var(--vnp-success); color: #fff; }
.added_to_cart { display: none !important; }
@keyframes vnp-spin { to { transform: rotate(360deg); } }

/* ۴. صفحه محصول ------------------------------------------------------- */
.vnp-product { display: flex; flex-direction: column; gap: 16px; }
.vnp-product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 320px; gap: 24px; align-items: start; }

.vnp-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vnp-gallery-main { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--vnp-tile); }
.vnp-gallery-main .woocommerce-product-gallery__image, .vnp-gallery-main a, .vnp-gallery-main img { display: block; width: 100%; height: 100%; }
.vnp-gallery-main img { object-fit: contain; }
.vnp-gallery-badge { position: absolute; top: 12px; inset-inline-end: 12px; font-size: var(--vnp-fs-sm); }
.vnp-gallery-thumbs { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.vnp-gallery-thumb { display: block; width: 72px; height: 72px; padding: 0; border: 2px solid var(--vnp-line); border-radius: 12px; background: var(--vnp-tile); overflow: hidden; cursor: pointer; }
.vnp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vnp-gallery-thumb.is-active { border-color: var(--vnp-primary); }

.vnp-product-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vnp-product-title { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.vnp-product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.vnp-code-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 6px; padding-inline-start: 12px; border-radius: var(--vnp-r-control); background: var(--vnp-surface-2); border: 1px solid var(--vnp-line); }
.vnp-code-chip-label { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-code-chip strong { color: var(--vnp-ink); font-size: var(--vnp-fs-md); }
.vnp-copy-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--vnp-surface); color: var(--vnp-muted); cursor: pointer; }
.vnp-copy-btn:hover { color: var(--vnp-primary); }
.vnp-copy-btn.is-copied { color: var(--vnp-success); }
.vnp-product-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-product-rating svg { color: var(--vnp-star); fill: var(--vnp-star); }
.vnp-product-rating strong { color: var(--vnp-ink); }
.vnp-key-specs { display: grid; gap: 6px; margin: 0; }
.vnp-key-specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: var(--vnp-fs-sm); }
.vnp-key-specs dt { color: var(--vnp-muted); }
.vnp-key-specs dd { margin: 0; font-weight: 700; color: var(--vnp-ink); }
.vnp-product-short { color: var(--vnp-text); font-size: var(--vnp-fs-sm); }
.vnp-product-short p { margin: 0 0 .5em; }
.vnp-alt-codes, .vnp-product-cats { margin: 0; font-size: var(--vnp-fs-sm); color: var(--vnp-muted); }

.vnp-buybox {
	display: flex; flex-direction: column; gap: 10px;
	padding: 18px; border-radius: 20px; background: var(--vnp-surface-2); border: 1px solid var(--vnp-line);
}
.vnp-buybox-price { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vnp-buybox-saving { margin: 0; color: var(--vnp-sale); font-weight: 700; font-size: var(--vnp-fs-sm); }
.vnp-buybox-until { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-buybox-stock { margin: 0; font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-success); }
.vnp-buybox-stock.is-low, .vnp-buybox-stock.is-backorder { color: var(--vnp-warn); }
.vnp-buybox-stock.is-out { color: var(--vnp-sale); }
.vnp-buybox-out { margin: 0; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-buybox .stock { display: none; }
.vnp-buybox form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.vnp-buybox form.cart:not(.variations_form) .quantity { flex: none; }
.vnp-buybox .single_add_to_cart_button {
	flex: 1; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--vnp-r-control);
	background: var(--vnp-primary); color: var(--vnp-on-primary); font-weight: 800; font-size: var(--vnp-fs-md); cursor: pointer;
}
.vnp-buybox .single_add_to_cart_button:hover { background: var(--vnp-primary-strong); }
.vnp-buybox .single_add_to_cart_button.disabled, .vnp-buybox .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.vnp-buybox .single_add_to_cart_button.loading { opacity: .7; }
.vnp-buybox table.variations { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.vnp-buybox table.variations th, .vnp-buybox table.variations td { display: block; padding: 0; text-align: start; }
.vnp-buybox table.variations th label { font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
.vnp-buybox table.variations td { padding-bottom: 8px; }
.vnp-buybox table.variations select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-surface); color: var(--vnp-text); }
.vnp-buybox .reset_variations { font-size: var(--vnp-fs-xs); }
.vnp-buybox .single_variation_wrap { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.vnp-buybox .woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.vnp-buybox .woocommerce-variation-price .price { font-size: var(--vnp-fs-lg); font-weight: 800; color: var(--vnp-ink); }
.vnp-buybox .woocommerce-variation-price del { color: var(--vnp-muted); font-size: var(--vnp-fs-sm); font-weight: 400; margin-inline-end: 6px; }
.vnp-buybox .woocommerce-variation-price ins { text-decoration: none; }
.vnp-buybox .woocommerce-variation-availability p { margin: 0; font-size: var(--vnp-fs-sm); font-weight: 700; color: var(--vnp-success); }
.vnp-buybox .woocommerce-variation-availability .out-of-stock { color: var(--vnp-sale); }
.vnp-buybox-delivery { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--vnp-line); }
.vnp-buybox-delivery li { display: flex; gap: 10px; align-items: flex-start; }
.vnp-buybox-delivery svg { color: var(--vnp-primary); margin-top: 3px; }
.vnp-buybox-delivery strong { display: block; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
.vnp-buybox-delivery span { display: block; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }

/* تعداد */
.vnp-qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-surface); overflow: hidden; }
.vnp-qty input.qty { width: 44px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 800; color: var(--vnp-ink); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.vnp-qty input.qty::-webkit-outer-spin-button, .vnp-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vnp-qty input.qty:focus { outline: none; }
.vnp-qty:focus-within { border-color: var(--vnp-primary); }
.vnp-qty-btn { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: transparent; color: var(--vnp-primary); cursor: pointer; }
.vnp-qty-btn:hover { background: var(--vnp-surface-2); }

.vnp-product-nav { position: sticky; top: 0; z-index: 20; background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); padding: 6px; }
.admin-bar .vnp-product-nav { top: 32px; }
.vnp-product-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.vnp-product-nav a { display: block; padding: 8px 16px; border-radius: 10px; color: var(--vnp-muted); font-weight: 700; white-space: nowrap; }
.vnp-product-nav a:hover { color: var(--vnp-primary); }
.vnp-product-nav a.is-active { background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); }

.vnp-product-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vnp-product-body.has-aside { grid-template-columns: minmax(0, 1fr) 280px; }
.vnp-product-sections { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vnp-product-section { scroll-margin-top: 80px; }
.vnp-product-section-title { margin: 0 0 14px; font-size: var(--vnp-fs-xl); }
.vnp-spec-group { margin: 14px 0 6px; font-size: var(--vnp-fs-md); color: var(--vnp-primary); }
.vnp-spec-table { width: 100%; border-collapse: collapse; }
.vnp-spec-table th, .vnp-spec-table td { padding: 10px 8px; border-bottom: 1px solid var(--vnp-line); text-align: start; vertical-align: top; font-size: var(--vnp-fs-sm); }
.vnp-spec-table th { width: 38%; color: var(--vnp-muted); font-weight: 400; }
.vnp-spec-table td { color: var(--vnp-ink); font-weight: 700; }
.vnp-spec-table tr:last-child th, .vnp-spec-table tr:last-child td { border-bottom: 0; }

.vnp-product-aside { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 10px; }
.vnp-aside-title { margin: 0; font-size: var(--vnp-fs-md); }
.vnp-mini-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vnp-mini-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--vnp-r-card); background: var(--vnp-surface); border: 1px solid var(--vnp-line); color: var(--vnp-text); }
.vnp-mini-item:hover { border-color: var(--vnp-primary); color: var(--vnp-text); }
.vnp-mini-item img { width: 64px; height: 64px; flex: none; border-radius: 10px; background: var(--vnp-tile); object-fit: cover; }
.vnp-mini-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vnp-mini-name { font-size: var(--vnp-fs-sm); font-weight: 700; color: var(--vnp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vnp-mini-body .vnp-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; }

/* نظرها */
.vnp-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vnp-reviews-head .vnp-product-section-title { margin: 0; }
.vnp-reviews-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 12px 0 16px; border-bottom: 1px solid var(--vnp-line); }
.vnp-reviews-avg { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vnp-reviews-avg strong { font-size: 2.5rem; line-height: 1.2; color: var(--vnp-ink); }
.vnp-reviews-avg span:last-child { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-reviews-bars { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; max-width: 420px; }
.vnp-reviews-bars li { display: grid; grid-template-columns: 56px 1fr 28px; gap: 8px; align-items: center; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-bar { height: 8px; border-radius: 4px; background: var(--vnp-surface-2); overflow: hidden; }
.vnp-bar > span { display: block; height: 100%; background: var(--vnp-star); border-radius: 4px; }
.vnp-reviews-note { margin: 10px 0; }
.vnp-reviews-empty { color: var(--vnp-muted); }
.vnp-review-list { margin: 0; padding: 0; list-style: none; }
.vnp-review-list > li { padding: 14px 0; border-bottom: 1px solid var(--vnp-line); }
.vnp-review-list .comment_container { display: flex; gap: 12px; }
.vnp-review-list .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.vnp-review-list .comment-text { flex: 1; min-width: 0; }
.vnp-review-list .comment-text .star-rating { float: inline-end; }
.vnp-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: var(--vnp-fs-sm); }
.vnp-review-meta time { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-review-list .description p { margin: 0; }
#review_form_wrapper { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--vnp-line); }
#review_form .comment-reply-title { display: block; margin-bottom: 10px; font-size: var(--vnp-fs-lg); font-weight: 800; color: var(--vnp-ink); }
#review_form .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#review_form .comment-form > * { grid-column: 1 / -1; margin: 0; }
#review_form .comment-form-author { grid-column: 1; }
#review_form .comment-form-email { grid-column: 2; }
#review_form label { display: block; margin-bottom: 4px; font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
#review_form input[type=text], #review_form input[type=email], #review_form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-tile); color: var(--vnp-text);
}
#review_form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: var(--vnp-fs-sm); }
#review_form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
#review_form .form-submit .submit { min-height: var(--vnp-tap); padding: 0 24px; border: 0; cursor: pointer; }
.comment-form-rating select { display: none; }
p.stars { margin: 0; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a { position: relative; display: inline-block; width: 32px; height: 32px; font-size: 0; text-decoration: none; }
p.stars a::before { content: '★'; position: absolute; inset: 0; font-size: 30px; line-height: 32px; color: var(--vnp-line); font-family: Tahoma, sans-serif; }
p.stars:hover a::before, p.stars.selected a::before { color: var(--vnp-star); }
p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before { color: var(--vnp-line); }
p.stars.selected:hover a::before { color: var(--vnp-star); }
p.stars.selected:hover a:hover ~ a::before { color: var(--vnp-line); }

/* نوار خرید پایین (موبایل) */
.vnp-buybar { display: none; }

/* ۵. سبد --------------------------------------------------------------- */
.vnp-wc-page { padding-block: 16px 40px; }
.vnp-cart, .vnp-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.vnp-checkout { grid-template-columns: minmax(0, 1fr) 400px; }
.vnp-checkout > .woocommerce-NoticeGroup, .vnp-cart > .woocommerce-notices-wrapper, .vnp-checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.vnp-checkout > .woocommerce-NoticeGroup .woocommerce-error { margin: 0; }
.vnp-cart-main, .vnp-checkout-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vnp-cart-aside { position: sticky; top: 16px; }
.admin-bar .vnp-cart-aside { top: 48px; }
/* ستون کناری تسویه حساب: خلاصه سفارش، روش پرداخت و دکمه ثبت؛ چسبان نیست چون ممکن است از ارتفاع صفحه بلندتر شود. */
.vnp-checkout-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vnp-cart-title { margin: 0 0 8px; font-size: var(--vnp-fs-xl); }
.vnp-cart-title span { color: var(--vnp-muted); font-size: var(--vnp-fs-sm); font-weight: 400; }
.vnp-cart-list { margin: 0; padding: 0; list-style: none; }
.vnp-cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 140px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--vnp-line); }
.vnp-cart-thumb img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--vnp-tile); display: block; }
.vnp-cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vnp-cart-info > a { font-weight: 800; color: var(--vnp-ink); }
.vnp-cart-info > a:hover { color: var(--vnp-primary); }
.vnp-cart-code, .vnp-cart-unit { font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-cart-saving { font-size: var(--vnp-fs-xs); color: var(--vnp-sale); font-weight: 700; }
.vnp-cart-backorder { font-size: var(--vnp-fs-xs); color: var(--vnp-warn); }
.vnp-cart-info dl.variation { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-cart-info dl.variation dd, .vnp-cart-info dl.variation p { margin: 0; }
.vnp-cart-qty { display: flex; align-items: center; gap: 8px; }
.vnp-cart-qty .vnp-qty { height: 42px; }
.vnp-cart-remove { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--vnp-sale); }
.vnp-cart-remove:hover { background: var(--vnp-sale-soft); color: var(--vnp-sale); }
.vnp-cart-line { text-align: end; font-weight: 800; color: var(--vnp-ink); font-size: var(--vnp-fs-md); white-space: nowrap; }
.vnp-cart-line small { color: var(--vnp-muted); font-weight: 400; font-size: var(--vnp-fs-xs); }
.vnp-cart-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--vnp-line); }
.vnp-cart-update { display: none; }
.no-js .vnp-cart-update { display: inline-flex; }
.vnp-cart-empty { margin-block: 24px; }
.vnp-empty-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--vnp-primary-soft); color: var(--vnp-primary); }

.vnp-summary { display: flex; flex-direction: column; gap: 12px; }
.vnp-summary-title { margin: 0; font-size: var(--vnp-fs-lg); }
.vnp-summary-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.vnp-summary-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--vnp-fs-sm); }
.vnp-summary-rows dt { color: var(--vnp-muted); }
.vnp-summary-rows dd { margin: 0; color: var(--vnp-ink); font-weight: 700; text-align: end; }
.vnp-summary-rows small { color: var(--vnp-muted); font-weight: 400; }
.vnp-summary-rows .is-saving dt, .vnp-summary-rows .is-saving dd { color: var(--vnp-sale); }
.vnp-summary-rows .woocommerce-remove-coupon { margin-inline-start: 6px; font-size: var(--vnp-fs-xs); font-weight: 400; }
.vnp-coupon { display: flex; gap: 8px; }
.vnp-coupon input { flex: 1; min-width: 0; min-height: var(--vnp-tap); padding: 0 12px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-tile); color: var(--vnp-text); }
.vnp-coupon .coupon-error-notice { flex-basis: 100%; color: var(--vnp-sale); font-size: var(--vnp-fs-xs); margin: 0; }
.vnp-coupon { flex-wrap: wrap; }
.vnp-summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--vnp-line); font-weight: 800; color: var(--vnp-ink); }
.vnp-summary-total strong { font-size: var(--vnp-fs-xl); }
.vnp-summary-total small { font-size: var(--vnp-fs-xs); color: var(--vnp-muted); font-weight: 400; }
.vnp-summary .checkout-button, .vnp-summary #place_order { min-height: 52px; font-size: var(--vnp-fs-md); border: 0; cursor: pointer; }
.vnp-summary-note { margin: 0; text-align: center; color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }

/* ۶. تسویه -------------------------------------------------------------- */
.vnp-checkout-card { display: flex; flex-direction: column; gap: 14px; }
.vnp-checkout-card-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--vnp-fs-lg); }
.vnp-checkout-card-title svg { color: var(--vnp-primary); }
#customer_details, .woocommerce-billing-fields { display: flex; flex-direction: column; gap: 16px; }
.vnp-fields, .woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm, .woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px;
}
.form-row { display: flex; flex-direction: column; gap: 4px; margin: 0; grid-column: 1 / -1; min-width: 0; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
.form-row.vnp-hidden-field, .form-row#billing_country_field, .form-row#shipping_country_field { display: none !important; }
.vnp-post-only .optional { display: none; }
.form-row label, .woocommerce form label { font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
.form-row .required, .woocommerce form .required { color: var(--vnp-sale); text-decoration: none; border: 0; }
.form-row .optional { color: var(--vnp-muted); font-weight: 400; font-size: var(--vnp-fs-xs); }
.woocommerce-input-wrapper { display: block; }
.form-row input.input-text, .form-row textarea, .form-row select, .woocommerce form input.input-text, .woocommerce form .input-text {
	width: 100%; min-height: 46px; padding: 8px 12px;
	border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control);
	background: var(--vnp-tile); color: var(--vnp-text); font-size: var(--vnp-fs-md);
}
.form-row textarea { min-height: 88px; resize: vertical; }
.form-row input.input-text:focus, .form-row textarea:focus, .form-row select:focus, .woocommerce form .input-text:focus {
	outline: none; border-color: var(--vnp-primary); background: var(--vnp-surface); box-shadow: 0 0 0 3px var(--vnp-primary-soft);
}
.form-row.woocommerce-invalid input.input-text, .form-row.woocommerce-invalid select, .form-row.woocommerce-invalid .select2-selection { border-color: var(--vnp-sale) !important; }
.form-row.woocommerce-validated input.input-text { border-color: var(--vnp-success); }
.form-row.woocommerce-validated:not(.validate-required) input.input-text:placeholder-shown { border-color: var(--vnp-line); }
.form-row .checkout-inline-error-message { margin: 0; color: var(--vnp-sale); font-size: var(--vnp-fs-xs); }
.vnp-is-pickup .vnp-post-only { display: none !important; }

/* selectWoo (فهرست جستجوپذیر استان و شهر) */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
	height: 46px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-tile);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-inline: 12px 32px; color: var(--vnp-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; inset-inline-end: 8px; left: auto; }
.select2-container[dir=rtl] .select2-selection--single .select2-selection__arrow, .rtl .select2-container .select2-selection--single .select2-selection__arrow { left: 8px; right: auto; }
.select2-container--open .select2-selection--single, .select2-container--focus .select2-selection--single { border-color: var(--vnp-primary) !important; box-shadow: 0 0 0 3px var(--vnp-primary-soft); }
.select2-dropdown { border-color: var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-surface); color: var(--vnp-text); overflow: hidden; }
.select2-search--dropdown .select2-search__field { border: 1px solid var(--vnp-line) !important; border-radius: 8px; padding: 6px 10px; background: var(--vnp-tile); color: var(--vnp-text); }
.select2-results__option { padding: 6px 12px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--vnp-primary); color: var(--vnp-on-primary); }
.select2-container--default .select2-results__option[aria-selected=true], .select2-container--default .select2-results__option[data-selected=true] { background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); }

/* روش‌های تحویل و پرداخت */
.vnp-shipping-methods { display: flex; flex-direction: column; gap: 10px; }
.vnp-ship-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: var(--vnp-r-control); background: var(--vnp-surface-2); color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-ship-hint.is-error { background: var(--vnp-sale-soft); color: var(--vnp-sale); }
.vnp-ship-option, .vnp-pay-option {
	position: relative; display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center;
	padding: 14px 16px; border: 2px solid var(--vnp-line); border-radius: var(--vnp-r-card);
	background: var(--vnp-surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.vnp-ship-option:hover { border-color: var(--vnp-primary); }
.vnp-ship-option.is-selected, .vnp-ship-option:has(input:checked) { border-color: var(--vnp-primary); background: var(--vnp-primary-soft); }
.vnp-ship-option input, .vnp-pay-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--vnp-primary); }
.vnp-ship-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--vnp-surface-2); color: var(--vnp-primary); }
.vnp-ship-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vnp-ship-title { color: var(--vnp-ink); }
.vnp-ship-note { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-ship-cost { white-space: nowrap; font-weight: 800; color: var(--vnp-ink); }
.vnp-ship-cost small { color: var(--vnp-muted); font-weight: 400; }
.vnp-pay-methods { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vnp-pay-card-title { display: flex; align-items: center; gap: 8px; }
.vnp-pay-card-title svg { color: var(--vnp-primary); }
.vnp-pay-option { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 10px 14px; border-width: 1.5px; }
.vnp-pay-option:hover { border-color: color-mix(in srgb, var(--vnp-primary) 55%, var(--vnp-line)); }
.vnp-pay-option.is-chosen, .vnp-pay-option:has(> input:checked) { border-color: var(--vnp-primary); background: var(--vnp-primary-soft); }
.vnp-pay-option label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; margin: 0; cursor: pointer; color: var(--vnp-ink); font-size: var(--vnp-fs-sm); font-weight: 700; line-height: 1.6; }
.vnp-pay-title { min-width: 0; }
.vnp-pay-logo { flex: 0 0 auto; display: grid; place-items: center; width: 58px; height: 46px; padding: 5px; border: 1px solid var(--vnp-line); border-radius: 12px; background: #fff; color: var(--vnp-primary); }
.vnp-pay-logo img { display: block; max-width: 48px; max-height: 36px; width: auto; height: auto; object-fit: contain; margin: 0; }
.vnp-pay-logo .vnp-pay-icon { display: grid; place-items: center; }
.vnp-pay-option .payment_box { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--vnp-primary) 30%, var(--vnp-line)); color: var(--vnp-muted); font-size: var(--vnp-fs-xs); line-height: 1.9; }
.vnp-pay-option .payment_box p { margin: 0; }
.vnp-pay-card .vnp-card-fields { grid-template-columns: minmax(0, 1fr); }
.vnp-pay-card .vnp-card-list { grid-template-columns: minmax(0, 1fr); }
.vnp-pay-card .vnp-place-order { padding-top: 4px; }
.vnp-order-notes .form-row { margin-top: 4px; }

.vnp-review-items { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; padding: 0 0 12px; list-style: none; border-bottom: 1px solid var(--vnp-line); max-height: 320px; overflow-y: auto; }
.vnp-review-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: var(--vnp-fs-sm); }
.vnp-review-thumb { position: relative; }
.vnp-review-thumb img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--vnp-tile); display: block; }
.vnp-review-qty { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--vnp-navy); color: #fff; font-size: 11px; font-weight: 800; }
.vnp-review-name { color: var(--vnp-ink); font-weight: 600; line-height: 1.6; }
.vnp-review-name dl { margin: 0; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); font-weight: 400; }
.vnp-review-name dl dd, .vnp-review-name dl p { margin: 0; display: inline; }
.vnp-review-price { white-space: nowrap; font-weight: 700; }
.vnp-review-price small { color: var(--vnp-muted); font-weight: 400; }
.vnp-review .vnp-summary-total { margin-top: 12px; }
.vnp-place-order { display: flex; flex-direction: column; gap: 10px; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--vnp-fs-sm); }
.woocommerce-terms-and-conditions-wrapper .form-row { flex-direction: column; }
.woocommerce-terms-and-conditions-wrapper label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400 !important; cursor: pointer; }
.woocommerce-terms-and-conditions-wrapper input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--vnp-primary); flex: none; }
.woocommerce-terms-and-conditions { max-height: 200px; overflow: auto; padding: 10px; border: 1px solid var(--vnp-line); border-radius: 10px; margin-bottom: 8px; }
.woocommerce-privacy-policy-text:empty { display: none; }

/* ۷. ثبت سفارش ---------------------------------------------------------- */
.vnp-thankyou { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin-inline: auto; }
.vnp-ty-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.vnp-ty-hero h1 { margin: 0; font-size: var(--vnp-fs-2xl); }
.vnp-ty-hero > p { margin: 0; color: var(--vnp-muted); max-width: 60ch; }
.vnp-ty-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-ty-hero.is-failed .vnp-ty-icon { background: var(--vnp-sale-soft); color: var(--vnp-sale); }
.vnp-ty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vnp-ty-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; width: 100%; margin: 8px 0 0; padding: 0; list-style: none; }
.vnp-ty-overview li { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--vnp-r-control); background: var(--vnp-surface-2); }
.vnp-ty-overview span { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-ty-overview strong { color: var(--vnp-ink); }
.vnp-ty-overview small { color: var(--vnp-muted); font-weight: 400; }
.vnp-paid-ref { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--vnp-r-pill); background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-paid-ref strong { font-size: var(--vnp-fs-lg); letter-spacing: .04em; }
.vnp-ty-address { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--vnp-text); font-size: var(--vnp-fs-sm); }
.vnp-ty-details .woocommerce-order-details, .vnp-ty-details .woocommerce-customer-details { background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-section); padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; }
.woocommerce-order-details__title, .woocommerce-column__title { margin: 0 0 12px; font-size: var(--vnp-fs-lg); }

/* جدول‌های عمومی ووکامرس (جزئیات سفارش، سفارش‌های حساب) */
.woocommerce table.shop_table, .woocommerce-table, table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--vnp-fs-sm); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td, table.shop_table th, table.shop_table td { padding: 10px 8px; border-bottom: 1px solid var(--vnp-line); text-align: start; vertical-align: middle; }
.woocommerce table.shop_table thead th { color: var(--vnp-muted); font-weight: 700; background: var(--vnp-surface-2); }
.woocommerce table.shop_table tfoot th { color: var(--vnp-muted); font-weight: 400; }
.woocommerce table.shop_table tfoot tr:last-child td, .woocommerce table.shop_table tfoot tr:last-child th { color: var(--vnp-ink); font-weight: 800; border-bottom: 0; }
.woocommerce-customer-details address { font-style: normal; line-height: 2; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 0 16px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control);
	background: var(--vnp-surface); color: var(--vnp-primary); font-weight: 700; cursor: pointer; text-decoration: none;
}
.woocommerce .button:hover { border-color: var(--vnp-primary); }
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce-Button--primary, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-Button[name=save_account_details], .woocommerce-Button[name=save_address] { background: var(--vnp-primary); border-color: var(--vnp-primary); color: var(--vnp-on-primary); }
.woocommerce .button.alt:hover { background: var(--vnp-primary-strong); }
.vnp-summary #place_order, .vnp-buybox .single_add_to_cart_button, .vnp-pcard-add { border: 0; }
.woocommerce .vnp-pcard a.vnp-pcard-add, .vnp-pcard a.vnp-pcard-add { min-height: 0; padding: 0; border: 0; background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); }
.woocommerce .vnp-pcard a.vnp-pcard-add:hover, .vnp-pcard a.vnp-pcard-add:hover { background: var(--vnp-primary); color: var(--vnp-on-primary); }
.woocommerce .vnp-pcard a.vnp-pcard-add.is-added { background: var(--vnp-success); color: #fff; }

/* ۸. حساب کاربری و فرم‌ها ------------------------------------------------ */
.vnp-account-title { margin-bottom: 16px; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-MyAccount-navigation { background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-section); padding: 10px; position: sticky; top: 16px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--vnp-text); font-weight: 600; }
.woocommerce-MyAccount-navigation a:hover { background: var(--vnp-surface-2); color: var(--vnp-primary); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); font-weight: 800; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--vnp-sale); }
.woocommerce-MyAccount-content { background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-section); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.woocommerce-Address-title h2 { margin: 0; font-size: var(--vnp-fs-lg); }
.woocommerce-form-login, .woocommerce-ResetPassword, .woocommerce-form-register { max-width: 520px; background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-section); padding: clamp(18px, 3vw, 28px); }
.woocommerce-form-login > *, .woocommerce-ResetPassword > *, .woocommerce-form-register > *, .woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
.woocommerce-EditAccountForm .form-row-first { grid-column: 1; }
.woocommerce-EditAccountForm .form-row-last { grid-column: 2; }
.woocommerce-EditAccountForm fieldset { border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); padding: 14px; display: grid; gap: 12px; }
.woocommerce form .password-input { position: relative; display: block; }
.woocommerce form .show-password-input { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; color: var(--vnp-muted); }
.woocommerce form .show-password-input::before { content: '👁'; font-size: 16px; }
.woocommerce form .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.woocommerce-orders-table__cell-order-actions .button { min-height: 34px; padding: 0 12px; font-size: var(--vnp-fs-xs); }
mark.order-status, mark.order-number, mark.order-date { background: transparent; color: var(--vnp-ink); font-weight: 800; }

/* ۹. پیام‌ها --------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty, wc-order-attribution-inputs { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-notice:not(h1) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin: 0 0 16px; padding: 12px 16px; list-style: none;
	border-radius: var(--vnp-r-control); border: 1px solid var(--vnp-line); border-inline-start: 4px solid var(--vnp-primary);
	background: var(--vnp-surface); color: var(--vnp-text); font-weight: 600;
}
.woocommerce-message { border-inline-start-color: var(--vnp-success); }
.woocommerce-error { border-inline-start-color: var(--vnp-sale); background: var(--vnp-sale-soft); flex-direction: column; align-items: stretch; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 34px; order: 2; }
.woocommerce-notice--success:not(h1) { border-inline-start-color: var(--vnp-success); }
.woocommerce-store-notice { display: none !important; }
.blockUI.blockOverlay { background: var(--vnp-surface) !important; border-radius: inherit; }

/* ۱۰. واکنش‌گرا ------------------------------------------------------------ */
@media (max-width: 1180px) {
	.vnp-product-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.vnp-buybox { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 20px; }
	.vnp-buybox > :not(.vnp-buybox-delivery) { grid-column: 1; }
	.vnp-buybox-delivery { grid-column: 2; grid-row: 1 / span 6; border-top: 0; padding-top: 0; margin: 0; }
	.vnp-cart { grid-template-columns: minmax(0, 1fr) 320px; }
	.vnp-checkout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 960px) {
	.vnp-shop-layout { grid-template-columns: minmax(0, 1fr); }
	.vnp-filters-open { display: inline-flex; }
	.vnp-filters {
		position: fixed; z-index: 110; inset: auto 0 0 0; max-height: 86vh;
		transform: translateY(100%); transition: transform .25s ease; visibility: hidden;
	}
	.vnp-filters.is-open { transform: none; visibility: visible; }
	.vnp-filters-panel { position: static; max-height: 86vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
	.vnp-filters-close { display: inline-flex; width: 40px; height: 40px; }
	.vnp-sheet-backdrop { position: fixed; inset: 0; z-index: 105; background: rgba(10, 21, 34, .5); }
	.vnp-sheet-backdrop[hidden] { display: none; }
	.vnp-no-scroll { overflow: hidden; }
	.vnp-sort { display: none; }
	.vnp-sort-select { display: block; margin-inline-start: auto; }
	.vnp-cart, .vnp-checkout { grid-template-columns: minmax(0, 1fr); }
	.vnp-cart-aside { position: static; }
	.vnp-product-body.has-aside { grid-template-columns: minmax(0, 1fr); }
	.vnp-product-aside { position: static; }
	.vnp-mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-MyAccount-navigation { position: static; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; }
}

@media (max-width: 720px) {
	.vnp-product-top { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.vnp-buybox { display: flex; }
	.vnp-buybox-delivery { border-top: 1px solid var(--vnp-line); padding-top: 12px; }
	.vnp-key-specs > div { grid-template-columns: 110px 1fr; }
	.vnp-reviews-summary { grid-template-columns: minmax(0, 1fr); }
	.vnp-reviews-bars { max-width: none; }
	#review_form .comment-form-author, #review_form .comment-form-email { grid-column: 1 / -1; }
	.vnp-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.vnp-pcard { padding: 8px; }
	.vnp-pcard-add { width: 36px; height: 36px; border-radius: 10px; }
	.vnp-price-now strong { font-size: var(--vnp-fs-md); }
	.vnp-cart-item { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: 'thumb info' 'qty line'; row-gap: 10px; }
	.vnp-cart-thumb { grid-area: thumb; }
	.vnp-cart-thumb img { width: 72px; height: 72px; }
	.vnp-cart-info { grid-area: info; }
	.vnp-cart-qty { grid-area: qty; }
	.vnp-cart-line { grid-area: line; align-self: center; }
	.vnp-fields, .woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }
	.form-row-first, .form-row-last, .woocommerce-EditAccountForm .form-row-first, .woocommerce-EditAccountForm .form-row-last { grid-column: 1 / -1; }
	.vnp-ship-option { grid-template-columns: auto 1fr auto; }
	.vnp-ship-icon { display: none; }
	.vnp-step-label { display: none; }
	.vnp-step.is-current .vnp-step-label { display: inline; }
	.vnp-checkout-aside .vnp-summary { padding: 16px; }

	.vnp-buybar {
		position: fixed; z-index: 90; inset-inline: 0; bottom: 64px;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 16px; background: var(--vnp-surface); border-top: 1px solid var(--vnp-line);
		box-shadow: 0 -6px 20px rgba(14, 42, 74, .08);
		transform: translateY(150%); visibility: hidden; transition: transform .2s, visibility .2s;
	}
	.vnp-buybar[hidden] { display: none; }
	.vnp-buybar.is-visible { transform: none; visibility: visible; }
	.vnp-buybar .vnp-btn { flex: none; }
}

/* ۱۱. فاز ۴: خودروی من، سازگاری، فیلترهای مشخصات، ویدیوها ---------------- */
.vnp-garage {
	position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	padding: 8px 14px; border-radius: var(--vnp-r-control); background: var(--vnp-primary-soft); color: var(--vnp-primary-strong);
	font-size: var(--vnp-fs-sm); font-weight: 600;
}
.vnp-garage.has-car { background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-garage-label strong { font-weight: 800; }
.vnp-garage-clear { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-garage-pick summary, .vnp-compat-pick summary { cursor: pointer; list-style: none; color: var(--vnp-primary); font-weight: 800; }
.vnp-garage-pick summary::-webkit-details-marker, .vnp-compat-pick summary::-webkit-details-marker { display: none; }
.vnp-garage-pick[open] .vnp-garage-form { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 6px); width: min(320px, 90vw); }
.vnp-garage-form {
	display: flex; flex-direction: column; gap: 10px; padding: 14px;
	background: var(--vnp-surface); color: var(--vnp-text); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); box-shadow: var(--vnp-shadow-float);
}
.vnp-garage-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-garage-form select { min-height: 42px; padding: 0 10px; border: 1px solid var(--vnp-line); border-radius: 10px; background: var(--vnp-tile); color: var(--vnp-text); }

.vnp-fit-badge {
	position: absolute; inset: auto 8px 8px; display: flex; align-items: center; justify-content: center; gap: 4px;
	padding: 2px 8px; border-radius: var(--vnp-r-pill); background: var(--vnp-surface); color: var(--vnp-success);
	font-size: var(--vnp-fs-xs); font-weight: 800; box-shadow: 0 1px 4px rgba(14,42,74,.12);
}
.vnp-fit-badge::before { content: '✓'; }
.vnp-fit-badge[hidden] { display: none; }

.vnp-compat { border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); font-size: var(--vnp-fs-sm); }
.vnp-compat-status { border-radius: var(--vnp-r-card) var(--vnp-r-card) 0 0; }
.vnp-compat-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--vnp-surface-2); font-weight: 700; position: relative; }
.vnp-compat.is-fit .vnp-compat-status { background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-compat.is-fit .vnp-compat-text::before { content: '✓ '; }
.vnp-compat.is-nofit .vnp-compat-status { background: var(--vnp-warn-soft); color: var(--vnp-warn); }
.vnp-compat-pick { position: relative; }
.vnp-compat-pick[open] { flex-basis: 100%; }
.vnp-compat .vnp-garage-pick[open] .vnp-garage-form { position: static; width: auto; margin-top: 10px; box-shadow: none; font-weight: 400; }
.vnp-compat-list { padding: 10px 14px; }
.vnp-compat-title { display: block; margin-bottom: 4px; color: var(--vnp-ink); }
.vnp-compat-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.vnp-compat-list li a, .vnp-compat-list li strong { font-weight: 800; margin-inline-end: 6px; }
.vnp-compat-list li span { color: var(--vnp-text); }
.vnp-compat-note, .vnp-compat-none { margin: 6px 0 0; color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-compat.is-unknown { padding: 10px 14px; }
.vnp-compat.is-unknown .vnp-compat-none { margin: 0; }

.vnp-filter-brand { margin: 8px 0 2px; font-weight: 800; color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-filter-year { margin-top: 10px; }
.vnp-filter-year label { display: flex; flex-direction: column; gap: 4px; font-size: var(--vnp-fs-xs); color: var(--vnp-muted); }
.vnp-filter-year select { min-height: 40px; padding: 0 10px; border: 1px solid var(--vnp-line); border-radius: 10px; background: var(--vnp-tile); color: var(--vnp-text); }
.vnp-filter-checks { display: flex; flex-direction: column; gap: 6px; }
.vnp-filter-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--vnp-fs-sm); }
.vnp-filter-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--vnp-primary); }

/* پخش‌کننده و کارت ویدیو */
.vnp-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--vnp-navy); cursor: pointer; }
.vnp-player-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vnp-player-cover.is-empty { background: radial-gradient(circle at 50% 40%, var(--vnp-navy-2), var(--vnp-navy)); }
.vnp-player-play {
	position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 76px; height: 76px;
	border: 0; border-radius: 50%; background: #fff; color: var(--vnp-navy); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s;
}
.vnp-player:hover .vnp-player-play { transform: scale(1.06); }
.vnp-player-time { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: var(--vnp-fs-xs); font-weight: 700; }
.vnp-player-media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vnp-player.is-missing { cursor: default; display: grid; place-items: center; }
.vnp-player-msg { position: relative; color: var(--vnp-on-navy); font-size: var(--vnp-fs-sm); }
.vnp-video-excerpt { margin: 10px 0 0; color: var(--vnp-muted); }

.vnp-videos { padding-block: 16px 40px; display: flex; flex-direction: column; gap: 20px; }
.vnp-videos .vnp-page-head { margin: 0; }
.vnp-video-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.vnp-video-topics .vnp-chip { background: var(--vnp-surface); border-color: var(--vnp-line); }
.vnp-video-topics .vnp-chip.is-active { background: var(--vnp-navy); color: var(--vnp-on-navy); border-color: var(--vnp-navy); }
.vnp-video-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.vnp-video-feature.has-parts { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); }
.vnp-video-title { margin: 14px 0 0; font-size: var(--vnp-fs-xl); }
.vnp-video-title a { color: var(--vnp-ink); }
.vnp-video-meta { margin: 6px 0 10px; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-video-parts { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 16px; }
.vnp-video-parts .vnp-aside-title { margin: 0; }
.vnp-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vnp-vgrid--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 16px; }
.vnp-vcard { display: flex; flex-direction: column; gap: 6px; }
.vnp-vcard-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--vnp-navy-2); }
.vnp-vcard-media .vnp-player-cover { opacity: .9; transition: transform .3s; }
.vnp-vcard:hover .vnp-player-cover { transform: scale(1.04); }
.vnp-vcard-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--vnp-navy); }
.vnp-vcard-title { margin: 4px 0 0; font-size: var(--vnp-fs-md); }
.vnp-vcard-title a { color: var(--vnp-ink); }
.vnp-vcard-topic { color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
@media (max-width: 900px) {
	.vnp-video-feature.has-parts { grid-template-columns: minmax(0, 1fr); }
	.vnp-video-parts { position: static; }
	.vnp-garage-pick[open] .vnp-garage-form { inset-inline-start: 0; inset-inline-end: auto; }
}

/* ۱۲. ورود پیامکی، پیشخوان حساب و پیگیری سفارش (فاز ۵) ------------------- */
.vnp-auth-page { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 320px); justify-content: center; gap: 24px; align-items: start; padding-block: 8px 32px; }
.vnp-auth {
	display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 4vw, 32px);
	background: var(--vnp-surface); border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-section);
	box-shadow: 0 10px 30px rgba(14, 42, 74, .06);
}
.vnp-auth-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); }
.vnp-auth-step { display: flex; flex-direction: column; gap: 10px; }
.vnp-auth-step[hidden] { display: none; }
.vnp-auth-title { margin: 0; font-size: var(--vnp-fs-xl); color: var(--vnp-ink); line-height: var(--vnp-lh-heading); }
.vnp-auth-lead { margin: 0 0 6px; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); line-height: 1.9; }
.vnp-auth-label { font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
.vnp-auth-input {
	width: 100%; min-height: 54px; padding: 8px 14px; text-align: left;
	border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-tile); color: var(--vnp-text);
	font-family: var(--vnp-font); font-size: 1.25rem; letter-spacing: .04em;
}
.vnp-auth-input::placeholder { color: var(--vnp-muted); opacity: .7; letter-spacing: 0; font-size: var(--vnp-fs-md); }
.vnp-auth-input:focus { outline: none; border-color: var(--vnp-primary); background: var(--vnp-surface); box-shadow: 0 0 0 3px var(--vnp-primary-soft); }
.vnp-auth-input[aria-invalid="true"] { border-color: var(--vnp-sale); }
.vnp-auth-code { text-align: center; font-size: 1.6rem; letter-spacing: .5em; padding-inline-start: calc(14px + .5em); font-family: var(--vnp-font-latin); }
.vnp-auth-code::placeholder { letter-spacing: .5em; font-size: 1.2rem; }
.vnp-auth-submit { min-height: 52px; width: 100%; font-size: var(--vnp-fs-md); border: 0; cursor: pointer; }
.vnp-auth-submit[disabled] { opacity: .75; cursor: progress; }
.vnp-auth-error { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--vnp-sale-soft); color: var(--vnp-sale); font-size: var(--vnp-fs-sm); font-weight: 600; }
.vnp-auth-error[hidden], .vnp-auth-test[hidden] { display: none; }
.vnp-auth-test { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--vnp-warn-soft); color: var(--vnp-warn); font-size: var(--vnp-fs-sm); font-weight: 700; }
.vnp-auth-phone { font-weight: 800; color: var(--vnp-ink); white-space: nowrap; }
.vnp-auth-link { padding: 0; border: 0; background: none; color: var(--vnp-primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vnp-auth-link[hidden] { display: none; }
.vnp-auth-resend { margin: 0; text-align: center; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); min-height: 1.8em; }
.vnp-auth-resend [hidden] { display: none; }
.vnp-auth-terms { margin: 0; text-align: center; color: var(--vnp-muted); font-size: var(--vnp-fs-xs); }
.vnp-auth-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vnp-auth-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--vnp-r-card); background: var(--vnp-surface-2); color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-auth-perks li svg { flex: none; color: var(--vnp-primary); margin-top: 2px; }
.vnp-auth-perks strong { display: block; color: var(--vnp-ink); font-size: var(--vnp-fs-md); }
.vnp-checkout-auth { max-width: 460px; margin: 0 auto 24px; }
.vnp-checkout-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--vnp-r-card); background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); font-size: var(--vnp-fs-sm); font-weight: 600; }
.vnp-checkout-login .vnp-btn { background: var(--vnp-surface); }

/* پیشخوان حساب */
.vnp-dash { display: flex; flex-direction: column; gap: 18px; }
.vnp-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vnp-dash-title { margin: 0; font-size: var(--vnp-fs-xl); color: var(--vnp-ink); }
.vnp-dash-sub { margin: 2px 0 0; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-dash-card { padding: 16px 18px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); background: var(--vnp-surface); }
.vnp-dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.vnp-dash-card-title { margin: 0; font-size: var(--vnp-fs-lg); color: var(--vnp-ink); }
.vnp-dash-card-desc { margin: 2px 0 12px; color: var(--vnp-muted); font-size: var(--vnp-fs-sm); }
.vnp-dash-profile { border-color: var(--vnp-primary); background: var(--vnp-primary-soft); }
.vnp-dash-profile-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.vnp-dash-profile-fields .form-row { grid-column: auto; }
.vnp-dash-profile-fields .vnp-btn { min-height: 46px; }
.vnp-dash-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vnp-dash-links a { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); color: var(--vnp-muted); font-size: var(--vnp-fs-xs); background: var(--vnp-surface); transition: border-color .2s; }
.vnp-dash-links a:hover { border-color: var(--vnp-primary); }
.vnp-dash-links svg { flex: none; color: var(--vnp-primary); }
.vnp-dash-links strong { display: block; color: var(--vnp-ink); font-size: var(--vnp-fs-md); }
.vnp-dash-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vnp-dash-orders li + li { border-top: 1px solid var(--vnp-line); }
.vnp-dash-orders a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 2px; color: var(--vnp-text); font-size: var(--vnp-fs-sm); }
.vnp-dash-order-no { font-weight: 800; color: var(--vnp-ink); }
.vnp-dash-order-date { color: var(--vnp-muted); }
.vnp-dash-order-total { font-weight: 800; }
.vnp-dash-empty { margin: 0; color: var(--vnp-muted); }
.vnp-order-chip { display: inline-block; padding: 2px 10px; border-radius: var(--vnp-r-pill); background: var(--vnp-surface-2); color: var(--vnp-muted); font-size: var(--vnp-fs-xs); font-weight: 700; white-space: nowrap; }
.vnp-order-chip.status-processing, .vnp-order-chip.status-vnp-shipped { background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); }
.vnp-order-chip.status-completed, .vnp-order-chip.status-vnp-ready { background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-order-chip.status-pending, .vnp-order-chip.status-on-hold { background: var(--vnp-warn-soft); color: var(--vnp-warn); }
.vnp-order-chip.status-cancelled, .vnp-order-chip.status-failed { background: var(--vnp-sale-soft); color: var(--vnp-sale); }

/* جزئیات حساب: شماره موبایل */
.vnp-mobile-box { padding: 14px 16px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-card); background: var(--vnp-surface-2); display: flex; flex-direction: column; gap: 10px; }
.vnp-mobile-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vnp-mobile-box-label { display: block; font-weight: 700; font-size: var(--vnp-fs-sm); color: var(--vnp-ink); }
.vnp-mobile-box-value { font-size: var(--vnp-fs-lg); font-weight: 800; color: var(--vnp-ink); }
.vnp-mobile-box-panel { display: flex; flex-direction: column; gap: 8px; }
.vnp-mobile-box-panel[hidden], .vnp-mobile-box-row[hidden], .vnp-mobile-box-done[hidden] { display: none; }
.vnp-mobile-box-panel .vnp-help, .vnp-mobile-box-panel p { margin: 0; }
.vnp-mobile-box-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.vnp-mobile-box-row .input-text { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--vnp-line); border-radius: var(--vnp-r-control); background: var(--vnp-surface); color: var(--vnp-text); font-size: var(--vnp-fs-md); }
.vnp-mobile-box-row .vnp-btn { min-height: 46px; }
.vnp-mobile-box .vnp-btn[disabled] { opacity: .55; cursor: not-allowed; }
.vnp-mobile-box-done { margin: 0; color: var(--vnp-success); font-weight: 700; }
.vnp-edit-account-actions { margin: 0; }

/* پیگیری سفارش */
.vnp-order-track { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--vnp-r-card); background: var(--vnp-primary-soft); color: var(--vnp-primary-strong); }
.vnp-order-track.is-ready { background: var(--vnp-success-soft); color: var(--vnp-success); }
.vnp-order-track span { color: var(--vnp-text); font-size: var(--vnp-fs-sm); }
.vnp-order-track bdi { font-family: var(--vnp-font-latin); font-weight: 800; letter-spacing: .03em; }

@media (max-width: 860px) {
	.vnp-auth-page { grid-template-columns: minmax(0, 1fr); }
	.vnp-auth-perks { display: none; }
}
@media (max-width: 600px) {
	.vnp-auth { border-radius: var(--vnp-r-card); }
	.vnp-dash-profile-fields { grid-template-columns: minmax(0, 1fr); }
	.vnp-dash-orders a { grid-template-columns: 1fr auto; row-gap: 4px; }
	.vnp-dash-order-date { grid-column: 1; grid-row: 2; }
	.vnp-dash-order-total { grid-row: 2; }
}
