/* ==========================================================================
   VStore Ecosystem — Base layer
   ریست + فونت Estedad محلی + کامپوننت‌های مشترک سایت و داشبورد
   ========================================================================== */

/* ---------- فونت Estedad (بارگذاری محلی، woff2 — بخش 6 سند) ---------- */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/estedad-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/estedad-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/estedad-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/estedad-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/estedad-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/estedad-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122;
}

/* ---------- ریست ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  text-align: right;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: color-mix(in oklab, var(--brand) 32%, transparent);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-tint);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--brand) 45%, var(--line-strong));
  border-radius: var(--r-pill);
  border: 2px solid var(--bg-tint);
}

/* ---------- تایپوگرافی ---------- */
.vp-h1 {
  font-size: var(--fs-38);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.vp-h2 {
  font-size: var(--fs-30);
  font-weight: 700;
  line-height: var(--lh-tight);
}
.vp-h3 {
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: var(--lh-tight);
}
.vp-h4 {
  font-size: var(--fs-16);
  font-weight: 700;
}
.vp-lead {
  font-size: var(--fs-16);
  color: var(--ink-2);
  line-height: 1.95;
}
.vp-muted {
  color: var(--ink-2);
}
.vp-tiny {
  font-size: var(--fs-12);
  color: var(--ink-3);
}
.vp-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.vp-gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- چیدمان ---------- */
.vp-container {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.vp-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.vp-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.vp-row--between {
  justify-content: space-between;
}
.vp-row--tight {
  gap: var(--sp-2);
}
.vp-row--end {
  justify-content: flex-end;
}
.vp-grid {
  display: grid;
  gap: var(--sp-5);
}
.vp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vp-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.vp-grow {
  flex: 1;
}
.vp-center {
  text-align: center;
}
@media (max-width: 900px) {
  .vp-grid--3,
  .vp-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .vp-grid--2,
  .vp-grid--3,
  .vp-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- دکمه‌ها ---------- */
.vp-btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
  --btn-line: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.62rem 1.15rem;
  min-height: 42px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: var(--fs-14);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.vp-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.vp-btn:active {
  transform: translateY(0);
}
.vp-btn[disabled],
.vp-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.vp-btn--primary {
  --btn-bg: var(--grad-brand);
  --btn-fg: var(--brand-ink);
  --btn-line: transparent;
  box-shadow: var(--shadow-glow);
}
.vp-btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-line: transparent;
}
.vp-btn--outline {
  --btn-bg: transparent;
  --btn-line: var(--brand-line);
  --btn-fg: var(--brand);
}
.vp-btn--ghost {
  --btn-bg: transparent;
  --btn-line: transparent;
  --btn-fg: var(--ink-2);
}
.vp-btn--ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
}
.vp-btn--danger {
  --btn-bg: transparent;
  --btn-fg: var(--danger);
  --btn-line: color-mix(in oklab, var(--danger) 40%, var(--line));
}
.vp-btn--danger:hover {
  --btn-bg: var(--danger-soft);
}
.vp-btn--danger-solid {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-line: transparent;
}
.vp-btn--sm {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: var(--fs-13);
  border-radius: var(--r-sm);
}
.vp-btn--lg {
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-size: var(--fs-16);
  border-radius: var(--r-lg);
}
.vp-btn--icon {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--r-sm);
}
.vp-btn--block {
  width: 100%;
}
.vp-btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- بج و چیپ ---------- */
.vp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  font-weight: 500;
  background: var(--surface-3);
  color: var(--ink-2);
  border: 1px solid transparent;
  white-space: nowrap;
}
.vp-badge--brand {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-line);
}
.vp-badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.vp-badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.vp-badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.vp-badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.vp-badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vp-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-12);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.vp-chip:hover {
  border-color: var(--brand-line);
  color: var(--brand);
  transform: translateY(-1px);
}
.vp-chip.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand);
}
.vp-chip--c1 {
  --chip-c: var(--c1);
}
.vp-chip--c2 {
  --chip-c: var(--c2);
}
.vp-chip--c3 {
  --chip-c: var(--c3);
}
.vp-chip--c4 {
  --chip-c: var(--c4);
}
.vp-chip--c5 {
  --chip-c: var(--c5);
}
.vp-chip--c6 {
  --chip-c: var(--c6);
}
.vp-chip--tinted {
  background: color-mix(in oklab, var(--chip-c) 14%, var(--surface));
  border-color: color-mix(in oklab, var(--chip-c) 34%, var(--line));
  color: color-mix(in oklab, var(--chip-c) 82%, var(--ink));
}

/* ---------- کارت ---------- */
.vp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.vp-card--pad {
  padding: var(--sp-5);
}
.vp-card--lift {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.vp-card--lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-line);
}
.vp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface), var(--surface-2));
}
.vp-card__body {
  padding: var(--sp-5);
}
.vp-card__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.vp-card--paper {
  position: relative;
  border-radius: var(--r-leaf);
}
.vp-card--glow {
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ---------- فرم ---------- */
.vp-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.vp-field > label,
.vp-label {
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--ink-2);
}
.vp-input,
.vp-select,
.vp-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.vp-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.9;
}
.vp-input:hover,
.vp-select:hover,
.vp-textarea:hover {
  border-color: var(--brand-line);
}
.vp-input:focus,
.vp-select:focus,
.vp-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent);
}
.vp-input.is-error,
.vp-textarea.is-error {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.vp-hint {
  font-size: var(--fs-12);
  color: var(--ink-3);
}
.vp-error {
  font-size: var(--fs-12);
  color: var(--danger);
}
.vp-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(1rem) calc(50% + 2px), calc(1rem + 5px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-start: 2.4rem;
}
.vp-check {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-14);
}
.vp-check input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: all var(--dur) var(--ease);
}
.vp-check input:checked {
  background: var(--grad-brand);
  border-color: transparent;
}
.vp-check input:checked::after {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vp-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
}
.vp-switch input {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.vp-switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out-back);
}
.vp-switch input:checked {
  background: var(--grad-brand);
  border-color: transparent;
}
.vp-switch input:checked::after {
  transform: translateX(-20px);
}

/* ---------- جدول ---------- */
.vp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.vp-table {
  min-width: 720px;
  font-size: var(--fs-14);
}
.vp-table th,
.vp-table td {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.vp-table thead th {
  background: var(--surface-2);
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--ink-2);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
.vp-table tbody tr:nth-child(even) {
  background: color-mix(in oklab, var(--bg-tint) 55%, transparent);
}
.vp-table tbody tr:hover {
  background: var(--brand-soft);
}
.vp-table tbody tr:last-child td {
  border-bottom: 0;
}
.vp-table .vp-col-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vp-table__actions {
  display: flex;
  gap: var(--sp-1);
  justify-content: flex-end;
}

/* ---------- صفحه‌بندی ---------- */
.vp-pagination {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: center;
  padding: var(--sp-4);
  flex-wrap: wrap;
}
.vp-pagination button {
  min-width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-num);
}
.vp-pagination button.is-active {
  background: var(--grad-brand);
  color: var(--brand-ink);
  border-color: transparent;
  font-weight: 700;
}
.vp-pagination button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- تب ---------- */
.vp-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.vp-tab {
  padding: 0.75rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: var(--fs-14);
  position: relative;
  white-space: nowrap;
}
.vp-tab.is-active {
  color: var(--brand);
  font-weight: 700;
}
.vp-tab.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 0.6rem;
  bottom: -1px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
}

/* ---------- مودال / دراور ---------- */
.vp-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(3px);
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  animation: vp-fade var(--dur) var(--ease);
}
.vp-modal {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: vp-pop var(--dur) var(--ease-out-back);
}
.vp-modal--wide {
  width: min(1040px, 100%);
}
.vp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--grad-band);
  position: sticky;
  top: 0;
  z-index: 2;
}
.vp-modal__body {
  padding: var(--sp-5);
}
.vp-modal__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-start;
  background: var(--surface-2);
}
.vp-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(420px, 92vw);
  background: var(--surface);
  border-inline-end: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  animation: vp-slide-in var(--dur) var(--ease);
}
.vp-drawer__head {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--grad-band);
}
.vp-drawer__body {
  padding: var(--sp-5);
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.vp-drawer__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
@keyframes vp-fade {
  from {
    opacity: 0;
  }
}
@keyframes vp-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
@keyframes vp-slide-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}

/* ---------- نوتیفیکیشن ---------- */
.vp-toasts {
  position: fixed;
  inset-block-end: var(--sp-5);
  inset-inline-start: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  z-index: var(--z-toast);
}
.vp-toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 260px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-14);
  animation: vp-pop var(--dur) var(--ease-out-back);
  border-inline-start: 4px solid var(--brand);
}
.vp-toast--ok {
  border-inline-start-color: var(--ok);
}
.vp-toast--warn {
  border-inline-start-color: var(--warn);
}
.vp-toast--danger {
  border-inline-start-color: var(--danger);
}

/* ---------- اسکلت / حالت خالی / نوار پیشرفت ---------- */
.vp-skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: vp-shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
  min-height: 14px;
}
@keyframes vp-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
.vp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  color: var(--ink-2);
  background: var(--bg-tint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.vp-empty__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: var(--r-blob);
  background: var(--brand-soft);
  color: var(--brand);
}
.vp-progress {
  height: 8px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.vp-progress__bar {
  height: 100%;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease);
  animation: vp-stripes 2.4s linear infinite;
  background-size: 28px 28px;
  background-image: linear-gradient(
    45deg,
    color-mix(in oklab, #fff 22%, transparent) 25%,
    transparent 25%,
    transparent 50%,
    color-mix(in oklab, #fff 22%, transparent) 50%,
    color-mix(in oklab, #fff 22%, transparent) 75%,
    transparent 75%
  );
}
@keyframes vp-stripes {
  to {
    background-position: 28px 0;
  }
}

/* ---------- KPI ---------- */
.vp-kpi {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  overflow: hidden;
}
.vp-kpi::after {
  content: '';
  position: absolute;
  inset-block-start: -30%;
  inset-inline-start: -10%;
  width: 120px;
  height: 120px;
  border-radius: var(--r-blob);
  background: var(--glow);
  opacity: 0.7;
  pointer-events: none;
}
.vp-kpi__label {
  font-size: var(--fs-13);
  color: var(--ink-2);
}
.vp-kpi__value {
  font-size: var(--fs-30);
  font-weight: 700;
  font-family: var(--font-num);
  line-height: 1.2;
}
.vp-kpi__delta {
  font-size: var(--fs-12);
  color: var(--ok);
}
.vp-kpi__delta.is-down {
  color: var(--danger);
}

/* ---------- قیمت و سایر ---------- */
.vp-price {
  font-family: var(--font-num);
  font-weight: 700;
}
.vp-price__old {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: var(--fs-13);
  font-weight: 400;
  margin-inline-start: var(--sp-2);
}
.vp-ratio {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.vp-ratio > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vp-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-13);
  color: var(--ink-2);
  flex-wrap: wrap;
}
.vp-breadcrumb span[aria-current] {
  color: var(--ink);
  font-weight: 500;
}
.vp-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-11);
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px dashed color-mix(in oklab, var(--accent) 40%, transparent);
}
.vp-callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-inline-start-width: 4px;
  font-size: var(--fs-14);
}
.vp-callout--accent {
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 34%, var(--line));
}
.vp-callout--warn {
  background: var(--warn-soft);
  border-color: color-mix(in oklab, var(--warn) 34%, var(--line));
}
.vp-callout--muted {
  background: var(--surface-2);
  border-color: var(--line);
}
.vp-code {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: var(--fs-12);
  line-height: 1.75;
  background: color-mix(in oklab, var(--ink) 92%, var(--brand));
  color: color-mix(in oklab, var(--brand-2) 70%, #fff);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  overflow: auto;
  max-height: 340px;
  white-space: pre;
}
.vp-prose {
  font-size: var(--fs-15);
  line-height: var(--lh-loose);
  color: var(--ink-2);
}
.vp-prose strong {
  color: var(--ink);
}
.vp-prose a {
  color: var(--brand);
  border-bottom: 1px dashed var(--brand-line);
}
.vp-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.vp-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-14);
  color: var(--ink-2);
}
.vp-list li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-block-start: 0.6rem;
  border-radius: var(--r-xs);
  background: var(--grad-brand);
  transform: rotate(45deg);
}
.vp-tag-list {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.vp-divider {
  height: 1px;
  background: var(--line);
  margin-block: var(--sp-5);
}
.vp-grain {
  position: relative;
}
.vp-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 12%, transparent) 1px, transparent 1px);
  background-size: 12px 12px;
  mix-blend-mode: multiply;
}
[data-theme='dark'] .vp-grain::after {
  mix-blend-mode: screen;
  opacity: 0.14;
}
.vp-blob {
  position: absolute;
  border-radius: var(--r-blob);
  background: var(--grad-brand);
  filter: blur(44px);
  opacity: 0.35;
  pointer-events: none;
}
.vp-check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.vp-check-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-14);
}
.vp-check-list li.is-done {
  border-color: color-mix(in oklab, var(--ok) 32%, var(--line));
  background: var(--ok-soft);
}
.vp-tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--ok);
  font-size: var(--fs-12);
}
.vp-tick.is-on {
  background: var(--ok);
  color: #fff;
}
.vp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
