@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Golos+Text:wght@400;500;600&display=swap");

/*
 * Витафарм — компоненты дизайн-системы (VITA-14).
 *
 * Правила файла:
 * - цвет, отступ, радиус, тень, высота — только через токены var(--…);
 * - адаптив — container queries по контейнеру vf: его задаёт .vf-page.
 *   Один и тот же CSS работает на странице сайта и в превью, где
 *   мобильный вариант нарисован в блоке .vf-page шириной 375 px;
 * - .vf-page — containing block для position: fixed, поэтому нижняя
 *   панель sticky, а модальные окна живут вне .vf-page;
 * - классы is-hover, is-active, is-focus — только для макетов и превью.
 */

/* ── Основа ─────────────────────────────────────────────────────────── */

.vf-page {
  container: vf / inline-size;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

:where(.vf-page, [class^="vf-"], [class*=" vf-"]),
:where(.vf-page, [class^="vf-"], [class*=" vf-"]) *,
:where([class^="vf-"], [class*=" vf-"])::before,
:where([class^="vf-"], [class*=" vf-"])::after {
  box-sizing: border-box;
}

.vf-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter-desktop);
}

:where(.vf-display, .vf-h1, .vf-h2, .vf-h3) {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.vf-price,
.vf-price-lg {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vf-link {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 2px;
}

.vf-link:hover {
  text-decoration-thickness: 2px;
}

.vf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:where(.vf-btn, .vf-field__input, .vf-select, .vf-stepper__btn, .vf-link, .vf-cart-pill, .vf-msg__action):focus-visible,
:where(.vf-btn, .vf-field__input, .vf-select, .vf-cart-pill).is-focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ── Иконки: маска на currentColor, сетка 24, штрих 1,75 ─────────────── */

.vf-icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--vf-icon) center / contain no-repeat;
  mask: var(--vf-icon) center / contain no-repeat;
}

.vf-icon--cart { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.1 10.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L20.6 8H6.1'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.3'/%3E%3Ccircle cx='17' cy='19.5' r='1.3'/%3E%3C/svg%3E"); }
.vf-icon--search { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E"); }
.vf-icon--pin { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }
.vf-icon--user { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M4.5 20.5c1.2-3.6 4.1-5.5 7.5-5.5s6.3 1.9 7.5 5.5'/%3E%3C/svg%3E"); }
.vf-icon--phone { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.2'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E"); }
.vf-icon--check { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.vf-icon--x { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.vf-icon--plus { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.vf-icon--minus { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.vf-icon--clock { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.vf-icon--loader { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M20 4.5v4h-4'/%3E%3C/svg%3E"); }
.vf-icon--package { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5L12 3l8.5 4.5v9L12 21l-8.5-4.5z'/%3E%3Cpath d='M3.5 7.5L12 12l8.5-4.5M12 12v9'/%3E%3C/svg%3E"); }
.vf-icon--circle-check { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.5 12.3l2.4 2.4 4.6-4.9'/%3E%3C/svg%3E"); }
.vf-icon--circle-x { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9.2 9.2l5.6 5.6M14.8 9.2l-5.6 5.6'/%3E%3C/svg%3E"); }
.vf-icon--circle-dot { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.vf-icon--alert { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.8v5M12 16.2h.01'/%3E%3C/svg%3E"); }
.vf-icon--info { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 7.8h.01'/%3E%3C/svg%3E"); }
.vf-icon--rx { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a1.5 1.5 0 0 0-1.5 1.5v15A1.5 1.5 0 0 0 7 21h10a1.5 1.5 0 0 0 1.5-1.5V7.5z'/%3E%3Cpath d='M14 3v4.5h4.5M9 12.5h6M9 16h4'/%3E%3C/svg%3E"); }
.vf-icon--chevron-down { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.vf-icon--store { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5V20h16V9.5'/%3E%3Cpath d='M2.8 9.5L5 4h14l2.2 5.5z'/%3E%3Cpath d='M9.5 20v-5.5h5V20'/%3E%3C/svg%3E"); }

.vf-icon--menu { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.vf-icon--chevron-right { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.vf-icon--arrow-left { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.vf-icon--trash { --vf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4.5h6V7M6.5 7l1 13h9l1-13M10 11v6M14 11v6'/%3E%3C/svg%3E"); }

.vf-select-wrap {
  --vf-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ── Кнопка ─────────────────────────────────────────────────────────── */

.vf-btn {
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: 600 16px/24px var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}

.vf-btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.vf-btn--primary:hover,
.vf-btn--primary.is-hover {
  background: var(--accent-hover);
}

.vf-btn--primary:active,
.vf-btn--primary.is-active {
  background: var(--accent-pressed);
}

.vf-btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-control);
}

.vf-btn--secondary:hover,
.vf-btn--secondary.is-hover {
  background: var(--surface-muted);
}

.vf-btn--secondary:active,
.vf-btn--secondary.is-active {
  background: var(--neutral-bg);
}

.vf-btn--ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: var(--space-3);
}

.vf-btn--ghost:hover,
.vf-btn--ghost.is-hover {
  background: var(--surface-muted);
}

.vf-btn--lg {
  min-height: var(--control-h-lg);
  padding-inline: var(--space-6);
}

.vf-btn--block {
  display: flex;
  width: 100%;
  white-space: normal;
  text-align: center;
}

.vf-btn:disabled,
.vf-btn[aria-disabled="true"] {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  border-color: transparent;
  cursor: not-allowed;
}

.vf-btn.is-loading {
  pointer-events: none;
}

.vf-btn.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: vf-spin .8s linear infinite;
}

/* ── Поле ввода ─────────────────────────────────────────────────────── */

.vf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vf-field__label {
  font: 500 14px/20px var(--font-text);
  color: var(--ink);
}

.vf-field__input {
  min-height: var(--control-h);
  width: 100%;
  padding: 0 var(--space-3);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.vf-field__input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.vf-field__input:hover {
  border-color: var(--ink-2);
}

.vf-field__input:disabled {
  background: var(--disabled-bg);
  border-color: var(--disabled-bg);
  color: var(--disabled-ink);
  cursor: not-allowed;
}

.vf-field__hint,
.vf-field__resend {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.vf-field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--danger);
}

.vf-field__error .vf-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.vf-field.is-invalid .vf-field__input,
.vf-field.is-invalid .vf-select {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

.vf-field--code .vf-field__input {
  font-size: 20px;
  letter-spacing: .32em;
  font-variant-numeric: tabular-nums;
}

/* ── Выпадающий список: нативный select, стрелка — маска ───────────── */

.vf-select-wrap {
  position: relative;
  display: block;
}

.vf-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-3);
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: var(--ink-2);
  -webkit-mask: var(--vf-chevron) center / contain no-repeat;
  mask: var(--vf-chevron) center / contain no-repeat;
  pointer-events: none;
}

.vf-select {
  min-height: var(--control-h);
  width: 100%;
  padding: 0 var(--space-8) 0 var(--space-3);
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s ease-out;
}

.vf-select:hover {
  border-color: var(--ink-2);
}

.vf-select:disabled {
  background: var(--disabled-bg);
  border-color: var(--disabled-bg);
  color: var(--disabled-ink);
  cursor: not-allowed;
}

/* ── Счётчик количества ─────────────────────────────────────────────── */

.vf-stepper {
  display: inline-flex;
  align-items: stretch;
  min-height: var(--control-h);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border-control);
}

.vf-stepper__btn {
  width: var(--touch-min);
  min-height: var(--control-h);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease-out;
}

.vf-stepper__btn:hover {
  background: var(--surface-muted);
}

.vf-stepper__btn:focus-visible {
  outline-offset: -3px;
}

.vf-stepper__btn:disabled {
  background: transparent;
  color: var(--disabled-ink);
  cursor: not-allowed;
}

.vf-stepper__value {
  min-width: 4ch;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vf-stepper__note {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
}

/* ── Бейдж наличия ──────────────────────────────────────────────────── */

.vf-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 24px;
  padding: 0 var(--space-2) 0 6px;
  border-radius: var(--radius-pill);
  font: 500 12px/16px var(--font-text);
  white-space: nowrap;
}

.vf-badge .vf-icon {
  width: 14px;
  height: 14px;
}

.vf-badge--in-stock {
  background: var(--success-bg);
  color: var(--success-ink);
}

.vf-badge--out {
  background: var(--neutral-bg);
  color: var(--ink-2);
}

.vf-badge--ask {
  background: var(--neutral-bg);
  color: var(--neutral-ink);
}

.vf-badge--rx {
  background: var(--info-bg);
  color: var(--info-ink);
}

/* ── Статус заказа (ФТ-5.3) ─────────────────────────────────────────── */

.vf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border-radius: var(--radius-pill);
  font: 500 14px/20px var(--font-text);
  white-space: nowrap;
}

.vf-status .vf-icon {
  width: 16px;
  height: 16px;
}

.vf-status--created {
  background: var(--neutral-bg);
  color: var(--neutral-ink);
}

.vf-status--pending {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.vf-status--processing {
  background: var(--info-bg);
  color: var(--info-ink);
}

.vf-status--ready {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.vf-status--issued {
  background: var(--success-bg);
  color: var(--success-ink);
}

.vf-status--cancelled {
  background: var(--danger-bg);
  color: var(--danger);
}

.vf-status__reason {
  display: block;
  margin-top: var(--space-1);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

/* ── Скелетон (НФТ-6.2) ─────────────────────────────────────────────── */

.vf-skeleton {
  display: block;
  border-radius: var(--radius-sm);
  background-color: var(--surface-muted);
  background-image: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: vf-shimmer 1.4s ease-in-out infinite;
}

.vf-skeleton--text {
  height: 16px;
}

.vf-skeleton--text-sm {
  height: 12px;
}

.vf-skeleton--price {
  height: 24px;
  width: 72px;
}

.vf-skeleton--image {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}

.vf-skeleton--pill {
  height: 24px;
  width: 88px;
  border-radius: var(--radius-pill);
}

.vf-skeleton--control {
  height: var(--control-h);
  border-radius: var(--radius-md);
}

/* ── Сообщение (НФТ-6.3) ────────────────────────────────────────────── */

.vf-msg {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}

.vf-msg > .vf-icon {
  margin-top: 0;
}

.vf-msg__title {
  display: block;
  font-weight: 600;
}

.vf-msg__action {
  align-self: center;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-1);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--brand);
  font: 600 14px/20px var(--font-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.vf-msg--error {
  background: var(--danger-bg);
}

.vf-msg--error > .vf-icon {
  color: var(--danger);
}

.vf-msg--warning {
  background: var(--warning-bg);
}

.vf-msg--warning > .vf-icon {
  color: var(--warning-ink);
}

.vf-msg--info {
  background: var(--info-bg);
}

.vf-msg--info > .vf-icon {
  color: var(--info-ink);
}

.vf-msg--success {
  background: var(--success-bg);
}

.vf-msg--success > .vf-icon {
  color: var(--success-ink);
}

/* ── Карточка товара (ФТ-1) ─────────────────────────────────────────── */

.vf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.vf-product {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow .15s ease-out;
}

.vf-product:hover,
.vf-product.is-hover {
  box-shadow: var(--shadow-raised);
}

.vf-product__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--media-bg);
  border-radius: var(--radius-md);
}

.vf-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: var(--space-2);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.vf-product__media--tagged img {
  padding-top: 32px;
}

.vf-product__tags {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.vf-product__title {
  margin: 0;
  min-height: 66px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font: 600 16px/22px var(--font-display);
  color: var(--ink);
}

.vf-product__title a {
  color: inherit;
  text-decoration: none;
}

.vf-product__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vf-product__meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-product__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.vf-product__price {
  min-height: 24px;
  font: 600 20px/24px var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

/* Цены нет: вместо суммы короткая подсказка — обычным шрифтом и с переносом,
   иначе «Цена уточняется» шире узкой карточки. */
.vf-product__price--na {
  font: 400 14px/20px var(--font-text);
  white-space: normal;
  color: var(--ink-2);
}

.vf-product__stock {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  min-height: 40px;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-product__stock-text {
  min-width: 0;
}

.vf-product__reason-note {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-product__stock::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--border-control);
}

.vf-product[data-availability="available"] .vf-product__stock::before {
  background: var(--accent);
}

.vf-product[data-availability="unavailable"] .vf-product__stock::before {
  background: var(--danger);
}

.vf-product__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
  container: vf-card-actions / inline-size;
}

/* «Заказать» занимает всё, что осталось рядом с квадратной кнопкой наличия; текст не переносится и не обрезается */
.vf-product__actions .vf-btn:first-child {
  flex: 1;
  min-width: 0;
}

.vf-product .vf-btn {
  padding-inline: var(--space-3);
  white-space: nowrap;
}

/* Кнопка наличия: только иконка магазина, квадрат 44 × 44 на любой ширине. Имя — в aria-label и title. */
.vf-product__store {
  flex: none;
  width: var(--control-h);
  height: var(--control-h);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease-out;
}

.vf-product__store:hover {
  border-color: var(--accent);
}

/* Значок корзины у «Заказать» (20 px + зазор 8) показываем, пока он помещается: «Заказать» 16px/600 ≈ 72 px,
   поля не меньше 8 px, рядом кнопка наличия 44 + зазор 8 → ряду нужно ≈ 169 px. Уже — остаётся одно слово.
   Порог измерен для страницы от 768 px; для телефона (14 px) свой — в блоке «max-width: 767px» ниже. */
@container vf (min-width: 768px) {
  @container vf-card-actions (max-width: 169px) {
    .vf-product__actions .vf-btn:first-child .vf-icon {
      display: none;
    }
  }
}

.vf-product__reason {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-product__reason strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.vf-product__ask {
  min-height: var(--control-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  background: var(--neutral-bg);
  color: var(--neutral-ink);
  font: 600 14px/20px var(--font-text);
  text-align: center;
}

.vf-product.is-out .vf-product__title,
.vf-product.is-out .vf-product__price {
  color: var(--ink-3);
}

.vf-product.is-out .vf-product__media img {
  filter: grayscale(1);
  opacity: .6;
}

.vf-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--space-4)) / 4);
  gap: var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.vf-rail::-webkit-scrollbar {
  display: none;
}

.vf-rail > * {
  scroll-snap-align: start;
}

/* ── Корзина в шапке (ФТ-2.1) ───────────────────────────────────────── */

.vf-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch-min);
  padding: 0 var(--space-4) 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease-out;
}

.vf-cart-pill:hover,
.vf-cart-pill.is-hover {
  border-color: var(--border-control);
}

.vf-cart-pill__icon {
  position: relative;
  display: inline-grid;
}

.vf-cart-pill__icon .vf-icon {
  width: 24px;
  height: 24px;
}

.vf-cart-pill__count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 12px/16px var(--font-text);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.vf-cart-pill__count:empty {
  display: none;
}

.vf-cart-pill__text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
}

.vf-cart-pill__sum {
  font: 600 14px/20px var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.vf-cart-pill__sum-m {
  display: none;
  font: 600 12px/16px var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Нижняя панель действия ─────────────────────────────────────────── */

.vf-actionbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.vf-actionbar__summary {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vf-actionbar__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-actionbar__total {
  font: 600 20px/24px var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vf-actionbar__cta {
  flex: 0 0 auto;
  min-width: 260px;
}

/* ── Шапка сайта (ФТ-2.1) — VITA-15 ─────────────────────────────────── */

.vf-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.vf-header__top {
  background: var(--surface-muted);
  font-size: 14px;
  line-height: 20px;
}

.vf-header__top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.vf-header__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.vf-header__link {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  text-decoration: none;
}

.vf-header__link .vf-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.vf-header__link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.vf-header__phones {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vf-header__phones .vf-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.vf-header__phones a {
  color: var(--ink);
  text-decoration: none;
}

.vf-header__main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.vf-header__logo {
  display: inline-flex;
}

.vf-header__logo img {
  display: block;
  width: 220px;
  height: auto;
}

.vf-header__actions .vf-header__menu {
  display: none;
}

.vf-header__search {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  margin: 0;
}

.vf-header__search-row {
  position: relative;
}

.vf-header__search-row .vf-icon {
  position: absolute;
  top: 50%;
  left: var(--space-3);
  margin-top: -10px;
  color: var(--ink-2);
  pointer-events: none;
}

.vf-header__search .vf-field__input {
  padding-left: 40px;
}

.vf-header__hint {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-2);
}

.vf-header__hint a {
  color: var(--brand);
}

.vf-header__icon-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
}

/* ── Подвал сайта — VITA-15 ─────────────────────────────────────────── */

.vf-footer {
  background: var(--brand);
  color: var(--on-brand-2);
  font-size: 14px;
  line-height: 20px;
}

.vf-footer__in {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: var(--space-8);
  padding-block: var(--space-12) var(--space-8);
}

.vf-footer__title {
  margin: 0 0 var(--space-3);
  font: 600 16px/24px var(--font-display);
  color: var(--on-brand);
}

.vf-footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vf-footer a {
  color: var(--on-brand-2);
  text-decoration: none;
}

.vf-footer a:hover {
  color: var(--on-brand);
  text-decoration: underline;
}

.vf-footer__phone {
  display: block;
  font: 600 18px/26px var(--font-text);
  font-variant-numeric: tabular-nums;
}

.vf-footer a.vf-footer__phone {
  color: var(--on-brand);
}

.vf-footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-4);
}

.vf-footer__social a {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.vf-footer__social img {
  display: block;
  width: 28px;
  height: 28px;
}

.vf-footer__bottom {
  border-top: 1px solid var(--brand-line);
}

.vf-footer__bottom-in {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
  font-size: 12px;
  line-height: 16px;
}

/* ── Шаги оформления (ФТ-2.8, ФТ-3) — VITA-15 ───────────────────────── */

.vf-steps {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-steps__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vf-steps__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vf-steps__num .vf-icon {
  width: 16px;
  height: 16px;
}

.vf-steps__item.is-done .vf-steps__num {
  border-color: var(--success-bg);
  background: var(--success-bg);
  color: var(--success-ink);
}

.vf-steps__item.is-current {
  color: var(--ink);
  font-weight: 600;
}

.vf-steps__item.is-current .vf-steps__num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.vf-steps__sep {
  flex: 0 0 32px;
  height: 1px;
  background: var(--border-control);
}

/* ── Аптека с процентом наличия (ФТ-3.2, 3.3) — VITA-15 ─────────────── */

.vf-pharmacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s ease-out;
}

.vf-pharmacy:hover {
  border-color: var(--border-control);
}

.vf-pharmacy.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.vf-pharmacy__radio {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.vf-pharmacy__name {
  display: block;
  font: 600 16px/22px var(--font-display);
  color: var(--ink);
}

.vf-pharmacy__meta {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-pharmacy__avail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}

.vf-pharmacy__pct {
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  font: 600 14px/20px var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vf-pharmacy__pct.is-full {
  background: var(--success-bg);
  color: var(--success-ink);
}

.vf-pharmacy__pct.is-partial {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.vf-pharmacy__bar {
  width: 140px;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
}

.vf-pharmacy__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.vf-pharmacy__bar.is-partial span {
  background: var(--warning-ink);
}

/* ── Поштучная доступность (ФТ-4.3) — VITA-15 ───────────────────────── */

.vf-avail {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.vf-avail__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
}

.vf-avail__item:first-child {
  border-top: 0;
}

.vf-avail__img {
  display: block;
  width: 56px;
  height: 56px;
  padding: 4px;
  object-fit: contain;
  background: var(--media-bg);
  border-radius: var(--radius-md);
  mix-blend-mode: multiply;
}

.vf-avail__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.vf-avail__meta {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-avail__state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  font-variant-numeric: tabular-nums;
}

.vf-avail__item.is-missing .vf-avail__name {
  color: var(--ink-3);
}

.vf-avail__item.is-missing .vf-avail__img {
  filter: grayscale(1);
  opacity: .6;
}

/* ── Строка заказа (ФТ-5.2–5.4) — VITA-15 ───────────────────────────── */

.vf-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow .15s ease-out, border-color .15s ease-out;
}

a.vf-order:hover {
  border-color: var(--border-control);
  box-shadow: var(--shadow-raised);
}

.vf-order__num {
  display: block;
  font: 600 16px/24px var(--font-display);
}

.vf-order__meta {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}

.vf-order__sum {
  font: 600 18px/24px var(--font-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vf-order__status {
  justify-self: end;
  text-align: right;
}

/* ── Пустое состояние (НФТ-6.3, ТК-101) — VITA-15 ───────────────────── */

.vf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.vf-empty__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--accent);
}

.vf-empty__icon .vf-icon {
  width: 32px;
  height: 32px;
}

.vf-empty__title {
  margin: 0;
  font: 700 22px/30px var(--font-display);
  color: var(--ink);
}

.vf-empty__text {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-2);
}

/* ── Планшет и телефон: container queries по .vf-page ───────────────── */

@container vf (max-width: 1279px) {
  .vf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vf-rail {
    grid-auto-columns: calc((100% - 2 * var(--space-4)) / 3);
  }
}

@container vf (max-width: 767px) {
  .vf-container {
    padding-inline: var(--gutter-mobile);
  }

  .vf-header__top {
    display: none;
  }

  .vf-header__main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-3);
    padding-block: var(--space-2) var(--space-3);
  }

  .vf-header__logo img {
    width: 132px;
  }

  .vf-header__catalog {
    display: none;
  }

  .vf-header__actions .vf-header__menu {
    display: inline-grid;
  }

  .vf-header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: var(--space-1);
  }

  .vf-header__search {
    grid-column: 1 / -1;
    order: 3;
  }

  .vf-header__hint {
    display: none;
  }

  .vf-footer__in {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding-block: var(--space-8) var(--space-6);
  }

  .vf-footer__bottom-in {
    flex-direction: column;
    gap: var(--space-2);
  }

  .vf-steps__item:not(.is-current) .vf-steps__label {
    display: none;
  }

  .vf-steps__sep {
    flex-basis: 16px;
  }

  .vf-pharmacy {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vf-pharmacy__avail {
    grid-column: 2;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    min-width: 0;
  }

  .vf-pharmacy__bar {
    width: 100%;
    flex: 1 1 auto;
  }

  .vf-avail__item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .vf-avail__img {
    width: 48px;
    height: 48px;
  }

  .vf-avail__state {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .vf-order {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--space-3) var(--space-4);
  }

  .vf-order__status {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .vf-display {
    font-size: 26px;
    line-height: 32px;
  }

  .vf-h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .vf-h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .vf-h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .vf-price {
    font-size: 18px;
  }

  .vf-price-lg {
    font-size: 24px;
    line-height: 28px;
  }

  .vf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .vf-product {
    gap: 6px;
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }

  .vf-product__title {
    min-height: 60px;
    font-size: 14px;
    line-height: 20px;
  }

  .vf-product__meta {
    font-size: 12px;
    line-height: 16px;
  }

  .vf-product__price {
    font-size: 18px;
  }

  .vf-product__price--na {
    font-size: 14px;
    line-height: 20px;
  }

  .vf-product__stock {
    min-height: 32px;
    font-size: 12px;
    line-height: 16px;
  }

  .vf-product__stock::before {
    margin-top: 4px;
  }

  .vf-product__reason {
    padding: 6px var(--space-2);
    font-size: 12px;
    line-height: 16px;
  }

  .vf-product .vf-btn {
    padding-inline: var(--space-2);
    font-size: 14px;
  }

  /* «Заказать» 14px/600 ≈ 63 px, поля 8: значок и кнопка наличия помещаются от ряда ≈ 162 px (две колонки от ≈ 404 px) */
  @container vf-card-actions (max-width: 161px) {
    .vf-product__actions .vf-btn:first-child .vf-icon {
      display: none;
    }
  }

  .vf-product__ask {
    font-size: 13px;
    line-height: 16px;
  }

  .vf-rail {
    grid-auto-columns: 160px;
    gap: var(--space-3);
    margin-inline: calc(-1 * var(--gutter-mobile));
    padding-inline: var(--gutter-mobile);
    scroll-padding-inline: var(--gutter-mobile);
  }

  .vf-msg {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .vf-msg__action {
    grid-column: 2;
    justify-self: start;
    margin-top: calc(-1 * var(--space-2));
  }

  .vf-cart-pill {
    gap: var(--space-2);
    padding: 0 var(--space-1);
    border-color: transparent;
    background: transparent;
  }

  .vf-cart-pill__text {
    display: none;
  }

  .vf-cart-pill__sum-m {
    display: inline;
  }

  .vf-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin-inline: calc(-1 * var(--gutter-mobile));
    padding: var(--space-3) var(--gutter-mobile) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: var(--shadow-raised);
  }

  .vf-actionbar__summary {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-1) var(--space-2);
  }

  .vf-actionbar__cta {
    min-width: 0;
    width: 100%;
  }
}

/* ── Движение ───────────────────────────────────────────────────────── */

@keyframes vf-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vf-shimmer {
  from {
    background-position: -100% 0;
  }

  to {
    background-position: 200% 0;
  }
}

/* Самый узкий телефон (320): пятизначная цена «от 12 345,67 ₽» при 18px шире карточки на 9px. */
@container vf (max-width: 359px) {
  .vf-product__price {
    font-size: 16px;
  }

  .vf-product__price--na {
    font-size: 14px;
  }

  /* «Заказать» делит ряд с иконкой-кнопкой: чуть уже поля и кегль, чтобы слово не упиралось в края кнопки */
  .vf-product .vf-btn {
    padding-inline: var(--space-1);
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vf-skeleton {
    animation: none;
  }

  .vf-btn.is-loading::before {
    animation-duration: 2.4s;
  }

  .vf-btn,
  .vf-product,
  .vf-field__input,
  .vf-select,
  .vf-cart-pill {
    transition: none;
  }
}
