/*
 * ERMART storefront system
 * Values are aliases of the homepage UI, which remains the source of truth.
 */
:root {
  --store-container: var(--layout-max, 1480px);
  --store-gutter: var(--layout-gutter, clamp(16px, 2.5vw, 32px));
  --store-readable: 880px;

  --store-space-1: 4px;
  --store-space-2: 8px;
  --store-space-3: 12px;
  --store-space-4: 16px;
  --store-space-5: 20px;
  --store-space-6: 24px;
  --store-space-8: 32px;
  --store-space-10: 40px;
  --store-space-12: 48px;
  --store-space-16: 64px;
  --store-space-20: 80px;

  --store-radius-sm: 8px;
  --store-radius-md: 12px;
  --store-radius-lg: 16px;
  --store-radius-xl: 24px;

  --store-blue: var(--colors-100, #2f2fbb);
  --store-yellow: var(--colors-300, #ffe900);
  --store-orange: var(--colors-500, #ff8200);
  --store-text: var(--neutral-200, #1a1a1a);
  --store-muted: rgba(26, 26, 26, 0.62);
  --store-border: var(--neutralgray, #efefef);
  --store-surface: var(--neutral-100, #fff);
  --store-field: #f7f8ff;
  --store-field-border: #e3e3f3;
  --store-danger: #b42318;

  --store-control-height: 48px;
  --store-transition: 180ms ease;
  --store-font: "Onest", "Manrope", Helvetica, system-ui, sans-serif;
  --store-display: "Bebas Neue", sans-serif;
}

.site-container,
.catalog-page__content,
.product-page,
.account-page-screen,
.checkout-page-screen,
.info-page {
  width: 100%;
  max-width: var(--store-container);
  margin-inline: auto;
  box-sizing: border-box;
}

.page :where(button, input, select, textarea) {
  font-family: var(--store-font);
}

.page :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--store-blue);
  outline-offset: 2px;
}

.page :where(button, a, input, select, textarea) {
  transition-duration: 180ms;
}

/* One page-header language for every public route. */
:where(.catalog-page__heading, .info-page__heading, .account-page__heading, .checkout-page__title) {
  margin: 0;
  font-family: var(--store-display);
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--store-text);
}

/* Bebas lacks Kazakh glyphs; keep words typographically consistent in kk. */
html[lang="kk"] :where(.catalog-page__heading, .info-page__heading, .account-page__heading, .checkout-page__title),
html[lang="kk"] .section-header__title {
  font-family: var(--store-font);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-bc,
.product-page__breadcrumb-track {
  gap: var(--store-space-2);
  margin-bottom: var(--store-space-4);
  font-family: var(--store-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--store-muted);
}

.info-bc__link,
.product-page__crumb {
  color: var(--store-muted);
  opacity: 1;
  text-decoration: none;
}

.info-bc__link:hover,
.product-page__crumb:hover {
  color: var(--store-blue);
  text-decoration: none;
}

/* Shared homepage-shaped controls. */
.info-btn,
.checkout-primary,
.account-primary-btn,
.account-secondary-btn,
.catalog-apply-btn,
.catalog-reset-btn {
  min-height: var(--store-control-height);
  padding: 8px 24px;
  border-radius: var(--store-radius-sm);
  box-shadow: none;
  font-family: var(--store-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--store-transition), border-color var(--store-transition),
    color var(--store-transition), transform var(--store-transition);
}

.info-btn,
.checkout-primary,
.account-primary-btn,
.catalog-apply-btn {
  border: 1px solid var(--store-orange);
  background: var(--store-orange);
  color: #fff !important;
}

.info-btn:hover,
.checkout-primary:hover,
.account-primary-btn:hover,
.catalog-apply-btn:hover {
  border-color: #e67500;
  background: #e67500;
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
}

.account-secondary-btn,
.catalog-reset-btn {
  border: 1px solid rgba(47, 47, 187, 0.2);
  background: transparent;
  color: var(--store-blue);
}

/* ── Form controls ─────────────────────────────────────────────────────────
 * One field language for every public form: filters, auth, checkout,
 * account, product quick order and reviews. Selection = orange, focus = blue.
 */
:root {
  --store-field-hover: #cfd0ec;
  --store-field-focus-ring: 0 0 0 4px rgba(47, 47, 187, 0.12);
  --store-field-error: #d92d20;
  --store-field-error-ring: 0 0 0 4px rgba(217, 45, 32, 0.12);
  --store-placeholder: rgba(26, 26, 26, 0.42);
  --store-check-border: rgba(26, 26, 26, 0.26);
  --store-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --store-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --store-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9L12.6 5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.page :is(
    .checkout-input,
    .auth-form__input,
    .catalog-filter__brand-search-input,
    .catalog-filter__brand-sort-select,
    .product-page__quick-field :where(input),
    .product-review-form__textarea,
    .brands-search__input
  ) {
  width: 100%;
  height: var(--store-control-height);
  min-height: var(--store-control-height);
  padding: 0 16px;
  border: 1px solid var(--store-field-border);
  border-radius: var(--store-radius-md);
  background-color: var(--store-field);
  color: var(--store-text);
  font-family: var(--store-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s var(--store-ease), background-color 0.2s var(--store-ease),
    box-shadow 0.2s var(--store-ease);
}

.page :is(textarea.checkout-input, textarea.product-review-form__textarea) {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.page .brands-search__input {
  padding-left: 46px;
}

.page :is(
    .checkout-input,
    .auth-form__input,
    .catalog-filter__brand-search-input,
    .product-page__quick-field :where(input),
    .product-review-form__textarea,
    .brands-search__input
  )::placeholder {
  color: var(--store-placeholder);
  opacity: 1;
}

@media (hover: hover) {
  .page :is(
      .checkout-input,
      .auth-form__input,
      .catalog-filter__brand-search-input,
      .catalog-filter__brand-sort-select,
      .product-page__quick-field :where(input),
      .product-review-form__textarea,
      .brands-search__input
    ):hover:not(:focus):not(:disabled) {
    border-color: var(--store-field-hover);
  }
}

.page :is(
    .checkout-input,
    .auth-form__input,
    .catalog-filter__brand-search-input,
    .catalog-filter__brand-sort-select,
    .product-page__quick-field :where(input),
    .product-review-form__textarea,
    .brands-search__input
  ):focus {
  border-color: var(--store-blue);
  background-color: var(--store-surface);
  box-shadow: var(--store-field-focus-ring);
  outline: none;
}

.page :is(.checkout-input, .auth-form__input, .product-page__quick-field :where(input)):user-invalid {
  border-color: var(--store-field-error);
  box-shadow: var(--store-field-error-ring);
}

.page :is(.checkout-input, .auth-form__input, .product-page__quick-field :where(input)):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.page .checkout-input:invalid:not(:placeholder-shown):not(:user-invalid) {
  border-color: var(--store-field-border);
}

/* Native select with a drawn chevron instead of the OS arrow. */
.page .catalog-filter__brand-sort-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: var(--store-chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* Compact fields inside the filter sidebar. */
.page .catalog-filter :is(.catalog-filter__brand-search-input, .catalog-filter__brand-sort-select) {
  height: 44px;
  min-height: 44px;
  font-size: 14px;
}

.page .catalog-filter__brand-tools {
  display: grid;
  gap: 8px;
}

/* Checkboxes and radios share one drawn control. */
.page :is(
    .auth-form__checkbox,
    .checkout-consent input,
    .account-company-check input,
    .auth-form__type-option input,
    .payment-methods__input
  ) {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--store-check-border);
  border-radius: 6px;
  background: var(--store-surface) center / 16px 16px no-repeat;
  box-shadow: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s var(--store-ease), border-color 0.2s var(--store-ease),
    box-shadow 0.2s var(--store-ease);
}

.page :is(.auth-form__type-option input, .payment-methods__input) {
  border-radius: 50%;
}

@media (hover: hover) {
  .page :is(
      .auth-form__checkbox,
      .checkout-consent input,
      .account-company-check input,
      .auth-form__type-option input,
      .payment-methods__input
    ):hover:not(:checked):not(:disabled) {
    border-color: var(--store-orange);
  }
}

.page :is(.auth-form__checkbox, .checkout-consent input, .account-company-check input):checked {
  border-color: var(--store-orange);
  background-color: var(--store-orange);
  background-image: var(--store-check);
}

.page :is(.auth-form__type-option input, .payment-methods__input):checked {
  border-color: var(--store-orange);
  background-color: var(--store-surface);
  box-shadow: inset 0 0 0 4px var(--store-surface), inset 0 0 0 10px var(--store-orange);
}

.page :is(
    .auth-form__checkbox,
    .checkout-consent input,
    .account-company-check input,
    .auth-form__type-option input,
    .payment-methods__input
  ):focus-visible {
  outline: none;
  box-shadow: var(--store-field-focus-ring);
}

.page :is(.auth-form__type-option input, .payment-methods__input):checked:focus-visible {
  box-shadow: inset 0 0 0 4px var(--store-surface), inset 0 0 0 10px var(--store-orange),
    var(--store-field-focus-ring);
}

.page :is(.auth-form__checkbox, .checkout-consent input, .account-company-check input):user-invalid {
  border-color: var(--store-field-error);
}

.page :is(.auth-form__checkbox, .payment-methods__input, .auth-form__type-option input):disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page .auth-form__type-option {
  min-height: var(--store-control-height);
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--store-field-border);
  border-radius: var(--store-radius-md);
  background: var(--store-field);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s var(--store-ease), background-color 0.2s var(--store-ease);
}

.page .auth-form__type-option:has(input:checked) {
  border-color: var(--store-orange);
  background: #fff7ee;
}

/* Custom filter ticks rendered by catalog-page.js. */
.page .catalog-filter__tick {
  width: 20px;
  height: 20px;
  margin-top: 0;
  border-radius: 6px;
  transition: background-color 0.2s var(--store-ease), border-color 0.2s var(--store-ease);
}

.page .catalog-filter__tick--unchecked {
  border: 1.5px solid var(--store-check-border);
  background: var(--store-surface);
}

.page .catalog-filter__tick--checked {
  border: 1.5px solid var(--store-orange);
  background: var(--store-orange) var(--store-check) center / 16px 16px no-repeat;
}

@media (hover: hover) {
  .page .catalog-filter__row:hover .catalog-filter__tick--unchecked {
    border-color: var(--store-orange);
  }
}

.page .catalog-filter__row :is(.catalog-filter__option-label, .catalog-filter__option-count) {
  margin-top: 0;
  line-height: 20px;
}

.page .catalog-mega__cat-filter-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border-color: var(--store-check-border);
  transition: background-color 0.2s var(--store-ease), border-color 0.2s var(--store-ease);
}

.page .catalog-mega__cat-filter-box::after {
  left: 5.5px;
  top: 2px;
}

/* Price filter: dual range slider + "от / до" fields. */
.page .catalog-range-slider {
  --thumb: 22px;
  height: var(--thumb);
  margin: 6px 0 16px;
  padding: 0;
  border: 0;
  background: none;
}

.page .catalog-range-slider__track,
.page .catalog-range-slider__fill {
  height: 4px;
  border-radius: 999px;
}

.page .catalog-range-slider__track {
  left: calc(var(--thumb) / 2);
  right: calc(var(--thumb) / 2);
  background: #e7e7ef;
}

.page .catalog-range-slider__fill {
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--range-from, 0));
  width: calc((100% - var(--thumb)) * (var(--range-to, 1) - var(--range-from, 0)));
  background: var(--store-orange);
}

.page .catalog-range-slider__input {
  height: var(--thumb);
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  outline: none;
}

.page .catalog-range-slider__input::-webkit-slider-runnable-track {
  height: var(--thumb);
  background: transparent;
}

.page .catalog-range-slider__input::-moz-range-track {
  height: var(--thumb);
  background: transparent;
}

.page .catalog-range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: 0;
  border: 2px solid var(--store-orange);
  border-radius: 50%;
  background: var(--store-surface);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.12), 0 4px 10px -2px rgba(255, 130, 0, 0.35);
  cursor: grab;
  pointer-events: auto;
  transition: transform 0.2s var(--store-ease), box-shadow 0.2s var(--store-ease);
}

.page .catalog-range-slider__input::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 2px solid var(--store-orange);
  border-radius: 50%;
  background: var(--store-surface);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.12), 0 4px 10px -2px rgba(255, 130, 0, 0.35);
  cursor: grab;
  pointer-events: auto;
  box-sizing: border-box;
  transition: transform 0.2s var(--store-ease), box-shadow 0.2s var(--store-ease);
}

@media (hover: hover) {
  .page .catalog-range-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.08);
  }

  .page .catalog-range-slider__input::-moz-range-thumb:hover {
    transform: scale(1.08);
  }
}

.page .catalog-range-slider__input:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(255, 130, 0, 0.16), 0 4px 10px -2px rgba(255, 130, 0, 0.35);
}

.page .catalog-range-slider__input:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(255, 130, 0, 0.16), 0 4px 10px -2px rgba(255, 130, 0, 0.35);
}

.page .catalog-range-slider__input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(47, 47, 187, 0.22);
}

.page .catalog-range-slider__input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(47, 47, 187, 0.22);
}

.page .catalog-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.page .catalog-price-field {
  height: 44px;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--store-field-border);
  border-radius: var(--store-radius-md);
  background: var(--store-field);
  cursor: text;
  transition: border-color 0.2s var(--store-ease), background-color 0.2s var(--store-ease),
    box-shadow 0.2s var(--store-ease);
}

@media (hover: hover) {
  .page .catalog-price-field:hover:not(:focus-within) {
    border-color: var(--store-field-hover);
  }
}

.page .catalog-price-field:focus-within {
  border-color: var(--store-blue);
  background: var(--store-surface);
  box-shadow: var(--store-field-focus-ring);
}

.page .catalog-price-field__label,
.page .catalog-price-field__unit {
  flex: 0 0 auto;
  font-family: var(--store-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--store-muted);
  opacity: 1;
}

.page .catalog-price-input {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--store-font);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--store-text);
  opacity: 1;
}

.page .catalog-price-input:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .page :is(input, select, textarea, .catalog-price-field, .catalog-filter__tick) {
    transition: none;
  }

  .page .catalog-range-slider__input::-webkit-slider-thumb {
    transition: none;
  }

  .page .catalog-range-slider__input::-moz-range-thumb {
    transition: none;
  }
}

/* Shared surface language: the same border and radius as homepage products. */
:where(
    .catalog-filter,
    .checkout-card,
    .checkout-summary,
    .account-panel__inner,
    .account-settings-card,
    .info-card,
    .info-seller,
    .product-page__figure,
    .product-page__panel
  ) {
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface);
  box-shadow: none;
}

/* Catalog family */
.catalog-page-screen {
  padding: var(--store-space-6) var(--store-gutter) var(--store-space-16);
}

.catalog-page__content {
  gap: var(--store-space-8);
}

.catalog-layout {
  gap: var(--store-space-8);
}

.catalog-layout__sidebar {
  flex-basis: 280px;
  width: 280px;
}

.catalog-filter,
.catalog-page-screen .catalog-filter {
  padding: var(--store-space-5);
}

.catalog-filter__heading {
  font-family: var(--store-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* Product family */
.product-page {
  padding: var(--store-space-6) var(--store-gutter) var(--store-space-16);
}

.product-page__breadcrumb {
  margin-bottom: var(--store-space-6);
}

.product-page__hero-main {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: clamp(32px, 4vw, 56px);
}

.product-page__hero-media {
  width: 100%;
  max-width: none;
}

.product-page__panel-title {
  font-family: var(--store-font);
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-page__figure {
  border-radius: var(--store-radius-lg);
}

.product-page__cart {
  min-height: 52px;
}

/* Fullscreen media must sit above mobile navigation and contact controls. */
.product-lightbox {
  z-index: 10070;
}

/* Account, cart, checkout and payment */
.page .main-area.account-layout,
.page .main-area.checkout-layout-outer,
.page .main-area.info-layout {
  width: 100%;
  max-width: none;
  padding-inline: var(--store-gutter);
  box-sizing: border-box;
}

.account-page-screen,
.checkout-page-screen {
  padding: var(--store-space-8) 0 var(--store-space-16);
}

.account-shell {
  gap: var(--store-space-8);
}

.account-panel__inner,
.checkout-card {
  padding: var(--store-space-6);
}

.checkout-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--store-space-8);
}

.checkout-grid__main {
  gap: var(--store-space-5);
}

.checkout-input--area {
  min-height: 120px;
}

/* Information, policy, FAQ, articles and vacancies */
.info-page {
  padding: var(--store-space-8) 0 var(--store-space-16);
}

.info-page--article {
  max-width: var(--store-readable);
}

.info-hero {
  margin: 0 0 var(--store-space-8);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info-hero::after {
  display: none;
}

.info-page__heading {
  margin-bottom: var(--store-space-3);
  color: var(--store-text);
}

.info-page__lead {
  max-width: 760px;
  margin: 0;
  font-family: var(--store-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--store-muted);
  opacity: 1;
}

.info-page__lead:empty {
  display: none;
}

.info-page--article .info-page__body {
  padding: var(--store-space-8);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface);
  box-shadow: none;
}

.info-prose {
  font-family: var(--store-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.info-prose h2 {
  margin: var(--store-space-8) 0 var(--store-space-3);
  padding: 0;
  border: 0;
  font-family: var(--store-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.info-prose h2 + h2 {
  margin-top: var(--store-space-4);
}

.info-prose .info-seller h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.info-prose h3 {
  margin: var(--store-space-6) 0 var(--store-space-3);
  font-size: 20px;
  line-height: 1.3;
}

.info-prose p {
  margin: 0 0 var(--store-space-4);
}

.info-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: var(--store-space-8);
  margin-bottom: var(--store-space-10);
  padding: var(--store-space-8);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface);
}

.info-intro-card > div > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.info-intro-facts {
  display: grid;
  gap: var(--store-space-3);
  margin: 0;
}

.info-intro-facts > div {
  padding-bottom: var(--store-space-3);
  border-bottom: 1px solid var(--store-border);
}

.info-intro-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-intro-facts dt {
  margin-bottom: var(--store-space-1);
  font-size: 13px;
  color: var(--store-muted);
}

.info-intro-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.info-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--store-space-4);
  margin: var(--store-space-6) 0 var(--store-space-8);
}

.info-summary-grid:has(.info-summary-card:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-summary-card {
  min-height: 140px;
  padding: var(--store-space-5);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface);
}

.info-summary-card h2 {
  margin: 0 0 var(--store-space-2);
  font-size: 18px;
  line-height: 1.3;
}

.info-summary-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--store-muted);
}

.info-prose li::before {
  background: var(--store-orange);
}

.info-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--store-space-5);
}

.info-card {
  gap: var(--store-space-3);
  padding: var(--store-space-5);
  border-color: var(--store-border);
  border-radius: var(--store-radius-lg);
  box-shadow: none;
  transition: transform var(--store-transition), border-color var(--store-transition);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 47, 187, 0.28);
  box-shadow: none;
}

.info-card__meta {
  font-family: var(--store-font);
  font-size: 13px;
  color: var(--store-muted);
  opacity: 1;
}

.info-card__title {
  font-family: var(--store-font);
  font-size: 20px;
  font-weight: 700;
}

.info-card__excerpt {
  font-family: var(--store-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--store-muted);
  opacity: 1;
}

.info-card__more {
  margin-top: auto;
  padding: 0;
  background: transparent;
  color: var(--store-blue);
  font-family: var(--store-font);
  font-size: 14px;
  font-weight: 600;
}

.info-faq-list {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-faq {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--store-border);
  border-radius: 0;
  background: transparent;
}

.info-faq[open] {
  border-color: var(--store-border);
  background: transparent;
  box-shadow: none;
}

.info-faq__q {
  padding: var(--store-space-5) 0;
  font-family: var(--store-font);
  font-size: 17px;
  font-weight: 600;
}

.info-faq__q::after {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--store-blue);
  font-size: 22px;
}

.info-faq__a {
  padding: 0 40px var(--store-space-5) 0;
  font-family: var(--store-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--store-muted);
  opacity: 1;
}

.info-contacts {
  gap: var(--store-space-4);
}

.info-contacts li {
  min-height: 112px;
  padding: var(--store-space-5);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface);
  font-family: var(--store-font);
}

.info-seller {
  padding: var(--store-space-6);
  background: var(--store-surface);
}

.info-seller__list {
  gap: 0;
}

.info-seller__list > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--store-border);
}

.info-seller__list > div:last-child {
  border-bottom: 0;
}

@media (max-width: 1023px) {
  .catalog-page-screen {
    padding-inline: 20px;
  }

  .product-page,
  .page .main-area.account-layout,
  .page .main-area.checkout-layout-outer,
  .page .main-area.info-layout {
    padding-inline: 20px;
  }

  .catalog-layout__sidebar {
    width: auto;
  }

  .product-page__hero-main {
    gap: var(--store-space-8);
  }

  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--store-space-6);
  }
}

@media (max-width: 900px) {
  .catalog-page-screen,
  .product-page,
  .page .main-area.account-layout,
  .page .main-area.checkout-layout-outer,
  .page .main-area.info-layout {
    padding-inline: 16px;
  }

  .info-page,
  .account-page-screen,
  .checkout-page-screen {
    padding-top: var(--store-space-6);
    padding-bottom: var(--store-space-10);
  }

  .product-page__hero-main,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .product-page__hero-media {
    max-width: none;
  }

  .info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--store-space-4);
  }

  .info-summary-grid,
  .info-summary-grid:has(.info-summary-card:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :where(.catalog-page__heading, .info-page__heading, .account-page__heading, .checkout-page__title) {
    font-size: 36px;
  }

  .catalog-page-screen,
  .product-page {
    padding-top: var(--store-space-5);
    padding-bottom: var(--store-space-10);
  }

  .info-hero {
    margin-bottom: var(--store-space-6);
  }

  .info-page--article .info-page__body,
  .account-panel__inner,
  .checkout-card {
    padding: var(--store-space-5);
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .info-intro-card,
  .info-summary-grid,
  .info-summary-grid:has(.info-summary-card:nth-child(4)) {
    grid-template-columns: 1fr;
  }

  .info-intro-card {
    padding: var(--store-space-5);
  }

  .info-summary-card {
    min-height: 0;
  }

  .info-prose h2 {
    font-size: 22px;
  }

  .info-seller__list > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page *,
  .page *::before,
  .page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.info-card__copy {
  display: flex;
  flex-direction: column;
  gap: var(--store-space-3);
  flex: 1 1 auto;
  min-width: 0;
}

.info-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--store-canvas, #f4f4f6);
}

.info-card:has(.info-card__media) {
  padding: 0 0 var(--store-space-5);
  overflow: hidden;
}

.info-card:has(.info-card__media) .info-card__copy {
  padding: 0 var(--store-space-5);
}

.info-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* One content column: header, info pages and footer share the same left and right edges. */
.page .main-area.info-layout {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(24px, 2.65vw, 56px);
  box-sizing: border-box;
}

.page .info-page,
.page .info-page--article,
.page .info-page--promos {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

.info-page__lead,
.info-page__heading,
.info-hero,
.info-page__body,
.info-prose,
.info-seller,
.info-contacts,
.info-summary-grid,
.info-intro-card,
.info-faq-list {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.info-page--article .info-page__body {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info-prose ul,
.info-prose ol,
.info-prose p,
.info-prose h2,
.info-prose h3 {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

.info-prose .info-contacts li::before,
.info-prose .info-seller li::before {
  content: none;
}

.page .site-footer > .site-footer__columns,
.page .site-footer > .footer-rule,
.page .site-footer > .site-footer__bottom {
  width: 100%;
  max-width: none;
}

@media (min-width: 901px) {
  .page .site-footer {
    padding-inline: clamp(24px, 2.65vw, 56px);
  }
}

@media (max-width: 900px) {
  .page .main-area.info-layout,
  .page .site-footer {
    padding-inline: 16px;
  }
}

@media (max-width: 480px) {
  .page .main-area.info-layout,
  .page .site-footer {
    padding-inline: 12px;
  }
}

/* Same page title as «О компании»: Onest, one size, wraps inside the column. */
body .page :is(
  .catalog-page__heading,
  .info-page__heading,
  .account-page__heading,
  .checkout-page__title,
  .section-header__title
) {
  font-family: "Onest", "Manrope", Helvetica, system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  font-synthesis: none;
}

body .page .catalog-page__heading,
body .page .section-header__title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: block;
  max-width: 100%;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

body .page .catalog-page__heading {
  width: 100%;
}

/* ---------- Mobile pass: one gutter, no leaking layers ---------- */
@media (max-width: 1023px) {
  .page .mobile-nav-drawer:not(.mobile-nav-drawer--visible) .mobile-nav-drawer__panel {
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .page {
    --m-gutter: 16px;
  }

  .page .main-area,
  .page .main-area.catalog-main-wrapper,
  .page .main-area.product-main {
    width: calc(100% - var(--m-gutter) * 2);
    margin-inline: auto;
    padding-inline: 0;
  }

  .page .catalog-page-screen,
  .page .product-page {
    padding-inline: 0;
  }

  .page .main-area.account-layout,
  .page .main-area.checkout-layout-outer,
  .page .main-area.info-layout {
    width: 100%;
    padding-inline: var(--m-gutter);
  }

  .page .header-inner,
  .page .site-footer {
    padding-inline: var(--m-gutter);
  }
}

@media (max-width: 480px) {
  .page {
    --m-gutter: 12px;
  }
}

/* Product shelves on phones: two compact cards per view, same density as the catalog grid. */
@media (max-width: 900px) {
  .page .home-shelf__track,
  .page .product-page__similar-track .product-page__similar-grid.catalog-products {
    gap: 10px;
  }

  .page .home-shelf__track .catalog-product-card,
  .page .product-page__similar-track .product-page__similar-grid.catalog-products > .catalog-product-card {
    flex: 0 0 calc((100cqw - 10px) / 2);
    width: calc((100cqw - 10px) / 2);
    max-width: calc((100cqw - 10px) / 2);
    scroll-snap-stop: normal;
  }
}

/* Footer on phones: columns start on one line, legal links read left to right, the call button never covers them. */
@media (max-width: 900px) {
  .page .site-footer__menus {
    align-items: start;
  }

  .page .footer-menu__list {
    gap: 2px;
  }

  .page .footer-menu__list > a {
    display: block;
    padding-block: 6px;
  }

  .page .footer-legal__links {
    justify-content: flex-start;
    gap: 0 18px;
  }

  .page .footer-legal__links > a {
    padding-block: 6px;
  }

  .page .site-footer {
    padding-bottom: calc(24px + 64px);
  }
}

/* Price labels share one quiet size so the numbers carry the card. */
@media (max-width: 900px) {
  .page .catalog-product-card :is(.catalog-product-card__retail, .catalog-product-card__wholesale-line, .catalog-product-card__moq-line) .catalog-product-card__label {
    font-size: 11px;
    line-height: 1.3;
    color: #5f6070;
  }
}

/* iOS Safari zooms into any field under 16px on focus. */
@media (max-width: 900px) {
  body :is(input:not([type="radio"], [type="checkbox"], [type="range"], [type="hidden"]), textarea, select) {
    font-size: 16px !important;
  }
}

/* Checkout carries the editable cart, so the order column is wider. */
.checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 560px);
}

@media (max-width: 1200px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid__aside {
    order: 1;
  }

  .checkout-summary .checkout-lines {
    max-height: none;
  }
}

/* Order column matches the form height; the line list takes the spare space. */
@media (min-width: 901px) {
  .checkout-grid {
    align-items: stretch;
  }

  .checkout-grid__aside {
    display: flex;
    flex-direction: column;
  }

  .checkout-summary {
    position: static;
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .checkout-summary .checkout-lines {
    flex: 1 1 0;
    min-height: 160px;
    max-height: none;
  }
}

/* Legal documents in a modal (checkout consent, registration). */
html.legal-modal-open {
  overflow: hidden;
}

.legal-modal {
  width: min(760px, calc(100vw - 48px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 64px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--store-text);
  font-family: var(--store-font);
  overflow: visible;
}

.legal-modal::backdrop {
  background: rgba(17, 17, 40, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal-modal[open] {
  animation: legal-modal-in 420ms cubic-bezier(0.32, 0.72, 0, 1);
}

.legal-modal[open]::backdrop {
  animation: legal-modal-fade 320ms ease-out;
}

@keyframes legal-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes legal-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-modal__sheet {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border-radius: inherit;
  background: var(--store-surface);
  box-shadow:
    0 0 0 1px rgba(47, 47, 187, 0.06),
    0 30px 80px -24px rgba(23, 23, 80, 0.35);
  overflow: hidden;
}

.legal-modal__head {
  position: relative;
  padding: 26px 76px 18px 32px;
  border-bottom: 1px solid rgba(47, 47, 187, 0.08);
}

.legal-modal__eyebrow {
  margin: 0 0 6px;
  color: var(--store-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-modal__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.legal-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f3fb;
  color: var(--store-text);
  cursor: pointer;
  transition: background var(--store-transition), transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.legal-modal__close:hover {
  background: #e8e8f7;
  transform: rotate(90deg);
}

.legal-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 32px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.82);
  outline: none;
}

.legal-modal__body h2,
.legal-modal__body h3 {
  margin: 26px 0 8px;
  color: var(--store-text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.legal-modal__body > :first-child,
.legal-modal__body .info-prose > :first-child {
  margin-top: 0;
}

.legal-modal__body p {
  margin: 0 0 12px;
}

.legal-modal__body ul,
.legal-modal__body ol {
  margin: 0 0 14px;
  padding-left: 20px;
  list-style: disc outside;
}

.legal-modal__body ol {
  list-style-type: decimal;
}

.legal-modal__body li {
  display: list-item;
  padding-left: 2px;
}

.legal-modal__body li::marker {
  color: var(--store-blue);
}

.legal-modal__body li + li {
  margin-top: 6px;
}

.legal-modal__body a {
  color: var(--store-blue);
  text-decoration: underline;
  text-decoration-color: rgba(47, 47, 187, 0.3);
  text-underline-offset: 3px;
}

.legal-modal__body .info-doc-meta {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3f3fb;
  color: var(--store-muted);
  font-size: 12px;
}

.legal-modal__body .info-seller {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f7f8ff;
}

.legal-modal__body .info-seller h2 {
  margin-top: 0;
}

.legal-modal__body .info-seller__list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.legal-modal__body .info-seller__list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) 1fr;
  gap: 12px;
}

.legal-modal__body .info-seller__list dt {
  color: var(--store-muted);
}

.legal-modal__body .info-seller__list dd {
  margin: 0;
  color: var(--store-text);
}

.legal-modal__skeleton {
  display: grid;
  gap: 12px;
}

.legal-modal__skeleton span {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1f1f8 0%, #e6e6f3 50%, #f1f1f8 100%);
  background-size: 200% 100%;
  animation: legal-modal-shimmer 1.2s ease-in-out infinite;
}

.legal-modal__skeleton span:nth-child(2n) { width: 82%; }
.legal-modal__skeleton span:nth-child(3n) { width: 64%; }

@keyframes legal-modal-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.legal-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px 20px;
  border-top: 1px solid rgba(47, 47, 187, 0.08);
}

.legal-modal__full {
  color: var(--store-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-modal__full:hover {
  color: var(--store-blue);
}

.legal-modal__ok {
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--store-blue);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1), background var(--store-transition);
}

.legal-modal__ok:hover {
  background: #2525a0;
}

.legal-modal__ok:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .legal-modal {
    width: 100vw;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .legal-modal[open] {
    animation-name: legal-modal-sheet-in;
  }

  @keyframes legal-modal-sheet-in {
    from { transform: translateY(100%); }
    to { transform: none; }
  }

  .legal-modal__head {
    padding: 22px 64px 14px 20px;
  }

  .legal-modal__close {
    top: 16px;
    right: 14px;
  }

  .legal-modal__body {
    padding: 18px 20px 22px;
    font-size: 14.5px;
  }

  .legal-modal__foot {
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  }

  .legal-modal__ok {
    flex: 0 0 auto;
  }

  .legal-modal__body .info-seller__list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal[open],
  .legal-modal[open]::backdrop,
  .legal-modal__skeleton span {
    animation: none;
  }
}

/* Checkout: required fields left empty after "Перейти к оплате". */
.page .checkout-field {
  gap: 10px;
  margin-top: 16px;
}

.page .checkout-field-grid {
  gap: 16px;
  margin-top: 16px;
}

.page .checkout-field-grid > .checkout-field {
  margin-top: 0;
}

.page .checkout-field__label {
  line-height: 1.3;
}

.page .checkout-field--invalid {
  margin-bottom: 6px;
}

.page .checkout-field--invalid .checkout-field__label {
  color: var(--store-field-error);
}

.page .checkout-field--invalid .checkout-input {
  border-color: var(--store-field-error);
  background-color: #fff6f5;
  box-shadow: var(--store-field-error-ring);
  animation: checkout-field-nudge 380ms var(--store-ease);
}

.page .checkout-field--invalid .checkout-input:focus {
  background-color: var(--store-surface);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.18);
}

.page .checkout-field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 2px 0 0;
  color: var(--store-field-error);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  animation: checkout-error-in 260ms var(--store-ease);
}

.page .checkout-field__error::before,
.page .checkout-error::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 10.6a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2ZM8 3.2c-.6 0-1 .5-1 1.1l.3 4.6a.7.7 0 0 0 1.4 0L9 4.3c0-.6-.4-1.1-1-1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 10.6a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2ZM8 3.2c-.6 0-1 .5-1 1.1l.3 4.6a.7.7 0 0 0 1.4 0L9 4.3c0-.6-.4-1.1-1-1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.page .checkout-consent {
  margin-inline: -10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s var(--store-ease), background-color 0.2s var(--store-ease);
}

.page .checkout-consent--invalid {
  border-color: rgba(217, 45, 32, 0.45);
  background-color: #fff6f5;
  color: var(--store-text);
  animation: checkout-field-nudge 380ms var(--store-ease);
}

.page .checkout-consent--invalid input {
  border-color: var(--store-field-error);
  box-shadow: var(--store-field-error-ring);
}

.page .checkout-error:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--store-font);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--store-field-error);
  animation: checkout-error-in 260ms var(--store-ease);
}

@keyframes checkout-field-nudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  55% { transform: translateX(3px); }
  80% { transform: translateX(-1px); }
}

@keyframes checkout-error-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page .checkout-field--invalid .checkout-input,
  .page .checkout-consent--invalid,
  .page .checkout-field__error,
  .page .checkout-error:not([hidden]) {
    animation: none;
  }
}

/* Checkout: four numbered sections, payment step inline. */
.page .checkout-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--store-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page .checkout-step {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(47, 47, 187, 0.08);
  color: var(--store-blue);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.page .checkout-payment .payment-methods__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page .checkout-payment .payment-methods__item {
  display: flex;
  min-width: 0;
  color: var(--store-muted);
  font-size: 14px;
}

.page .checkout-payment .payment-methods__item--loading {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 14px;
  background: var(--neutralgray, #efefef);
}

.page .checkout-payment .payment-methods__option {
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid #2f2fbb1f;
  border-radius: 14px;
  background: var(--neutralgray, #efefef);
  box-shadow: none;
  transition: border-color 200ms var(--store-ease), background-color 200ms var(--store-ease),
    transform 200ms var(--store-ease);
}

.page .checkout-payment .payment-methods__option:hover {
  border-color: #2f2fbb3d;
  background: #f5f5f5;
  box-shadow: none;
}

.page .checkout-payment .payment-methods__option:active {
  transform: scale(0.99);
}

.page .checkout-payment .payment-methods__option:has(.payment-methods__input:checked) {
  border-color: var(--store-orange);
  background: var(--store-surface);
}

.page .checkout-payment .payment-methods__control {
  min-height: 0;
  align-self: center;
}

.page .checkout-payment .payment-methods__body {
  align-items: center;
}

.page .checkout-payment .payment-methods__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--store-surface);
  color: var(--store-text);
  font-size: 18px;
}

.page .checkout-payment .payment-methods__option:has(.payment-methods__input:checked) .payment-methods__icon:not(.payment-methods__icon--kaspi) {
  background: #fff4e8;
}

.page .checkout-payment .payment-methods__label {
  color: var(--store-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page .checkout-payment .payment-methods__hint {
  color: var(--store-muted);
  font-size: 12.5px;
}

.page .checkout-payment--invalid .payment-methods__option {
  border-color: rgba(217, 45, 32, 0.45);
  animation: checkout-field-nudge 380ms var(--store-ease);
}

.page .checkout-payment__error {
  margin-top: 10px;
}

.page .checkout-poa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--store-field);
  border: 1px solid var(--store-field-border);
}

.page .checkout-poa[hidden] {
  display: none;
}

.page .checkout-poa__text {
  flex: 1 1 260px;
  min-width: 0;
}

.page .checkout-poa__title {
  display: block;
  margin-bottom: 4px;
  color: var(--store-text);
  font-size: 15px;
  font-weight: 600;
}

.page .checkout-poa__hint,
.page .checkout-poa .account-poa__current {
  margin: 0;
  color: var(--store-muted);
  font-size: 13px;
  line-height: 1.45;
}

.page .checkout-poa .account-poa__current {
  margin-top: 6px;
}

.page .checkout-poa .account-poa__file-label {
  font-family: var(--store-font);
  font-weight: 600;
  border-radius: 999px;
}

.page .checkout-poa .checkout-error {
  flex-basis: 100%;
  margin: 0;
}

.page .payment-receipt,
.page .payment-receipt-backdrop {
  font-family: var(--store-font);
}

.page .payment-receipt {
  border-radius: 20px;
}

@media (max-width: 640px) {
  .page .checkout-payment .payment-methods__list {
    grid-template-columns: 1fr;
  }
}

/* Auth modal: single phone sign-in. */
.page .auth-modal__intro {
  margin: 12px 0 18px;
  text-align: center;
}

.page .auth-modal__intro[hidden] {
  display: none;
}

.page .auth-modal__heading {
  margin: 0 0 6px;
  color: var(--store-text);
  font-family: var(--store-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.page .auth-modal__lead {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.45;
}

.page .auth-form__legal-note {
  margin: 12px 0 0;
  color: var(--store-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.page .auth-form__legal-note .auth-form__legal-link {
  color: var(--store-blue);
}

/* Product buy actions: cart, quick order and WhatsApp share one button size. */
.page .product-page__actions,
.page .product-page__quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page .product-page__actions .catalog-product-card__qty {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  justify-content: space-between;
}

.page .product-page__cart.catalog-product-card__cart,
.page .product-page__quick-btn {
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Quantity, cart and WhatsApp share one row; on narrow screens WhatsApp collapses to an icon. */
.page .product-page__actions {
  grid-template-columns: 136px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.page .product-page__actions .catalog-product-card__qty {
  display: inline-flex !important;
}

.page .product-page__actions .product-page__quick-btn--wa[hidden] {
  display: none;
}

.page .product-page__actions:has(> .product-page__quick-btn--wa[hidden]) {
  grid-template-columns: 136px minmax(0, 1fr);
}

@media (max-width: 560px) {
  .page .product-page__actions {
    grid-template-columns: 116px minmax(0, 1fr) 52px;
    gap: 10px;
  }

  .page .product-page__actions .product-page__quick-btn--wa {
    padding: 0;
  }

  .page .product-page__actions .product-page__wa-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .page .product-page__actions .product-page__quick-btn--wa svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 400px) {
  .page .product-page__actions {
    grid-template-columns: 100px minmax(0, 1fr) 52px;
    gap: 8px;
  }

  .page .product-page__actions .catalog-product-card__cart {
    container-type: normal;
    padding: 0 10px;
  }

  .page .product-page__actions .catalog-product-card__cart-icon {
    display: none;
  }

  .page .product-page__actions .catalog-product-card__cart-text {
    display: inline !important;
  }
}

/* Header: one radius for every control, input and dropdown. */
.page {
  --header-radius: var(--store-radius-md);
}

.page .catalog-trigger,
.page .catalog-mega__search-input,
.page .search-field,
.page .search-field__icon-btn,
.page .header-search-icon-btn,
.page .header-search-suggest,
.page .header-tool,
.page .lang-switch__toggle,
.page .lang-switch__menu,
.page .account-entry {
  border-radius: var(--header-radius);
}

.page .search-field {
  padding-right: 0;
}

.page .search-field__icon-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-right: 3px;
}

.page .lang-switch__current,
.page .lang-switch__code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page .lang-switch__menu {
  min-width: 100%;
  padding: 4px;
}

.page .lang-switch__option {
  justify-content: center;
  padding: 9px 10px;
  border-radius: calc(var(--header-radius) - 4px);
}

.page .lang-switch__option--active {
  color: var(--colors-100);
}

.page .header-cart-badge,
.page .header-tool--cart .header-cart-badge {
  background-color: var(--store-field-error);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
}

.page .site-nav__link,
.page a.site-nav__link {
  opacity: 1;
  color: var(--neutral-200);
  transition: color 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.page a.site-nav__link:hover {
  opacity: 1;
  color: var(--colors-100);
}

/* Catalog title row: crumbs on top, heading left, sort pinned right. */
@media (min-width: 901px) {
  .page .catalog-page-screen .catalog-page__title-row {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .page .catalog-page-screen .catalog-page__title-row > .catalog-breadcrumbs {
    flex: 0 0 100%;
  }

  body .page .catalog-page-screen .catalog-page__heading {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .page .catalog-page-screen .catalog-page__title-row > .catalog-sort-wrap {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* Blog / news cards: 3 per row on desktop, never fewer than 2 on phones. */
.page .info-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .page .info-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page .info-card {
    gap: 6px;
    padding: 14px;
  }

  .page .info-card:has(.info-card__media) {
    padding: 0 0 14px;
  }

  .page .info-card:has(.info-card__media) .info-card__copy {
    padding: 0 12px;
  }

  .page .info-card__title {
    font-size: 15px;
    line-height: 1.3;
  }

  .page .info-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
  }

  .page .info-card__meta,
  .page .info-card__more {
    font-size: 12px;
  }
}

.page .info-card__media {
  background: #fff;
}

.page .info-card__media img {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

/* Screen-reader-only text (page h1 over image banners, icon-only labels). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page h2.section-header__title {
  margin: 0;
}

/* Breadcrumb links: taller hit area on touch screens, same visual rhythm. */
@media (max-width: 900px) {
  .page :is(.catalog-breadcrumbs a, .product-page__crumb, .info-bc__link) {
    display: inline-block;
    padding-block: 8px;
    margin-block: -8px;
  }
}

/* 404 / 500: one calm block with a way back into the catalog. */
.page .error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--store-space-4);
  max-width: 640px;
  padding-block: clamp(48px, 10vw, 120px);
}

.page .error-page__code {
  margin: 0;
  font-family: var(--store-font);
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--store-blue);
}

.page .error-page__title {
  margin: 0;
  font-family: var(--store-font);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--store-text);
}

.page .error-page__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--store-muted);
}

.page .error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--store-space-3) var(--store-space-6);
  margin-top: var(--store-space-4);
}

.page .error-page__cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--store-radius-md);
  background: var(--store-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--store-transition), filter var(--store-transition);
}

.page .error-page__cta:hover {
  filter: brightness(1.08);
}

.page .error-page__cta:active {
  transform: scale(0.98);
}

.page .error-page__link {
  color: var(--store-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Auth: OTP step */
.page .auth-form__otp {
  display: grid;
  gap: 10px;
}

.page .auth-form__otp[hidden] {
  display: none;
}

.page .auth-form__otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page .auth-form__otp .auth-form__link-btn {
  font-family: var(--font-sans, 'Onest Variable', 'Onest', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--store-blue);
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
}

.page .auth-form__otp .auth-form__link-btn:disabled {
  color: var(--neutral-200);
  opacity: 0.55;
  text-decoration: none;
  cursor: default;
}

.page .auth-form__input[readonly] {
  background: var(--store-surface-muted, #f4f5f7);
  color: var(--neutral-200);
}

/* Product page: brand logo above SKU */
.page .product-page__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 96px;
  height: 58px;
  margin-bottom: -6px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.page a.product-page__brand:hover {
  border-color: var(--colors-100);
}

.page a.product-page__brand:active {
  transform: scale(0.98);
}

.page a.product-page__brand:focus-visible {
  outline: 2px solid var(--colors-100);
  outline-offset: 2px;
}

.page .product-page__brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .page .product-page__brand {
    width: 84px;
    height: 50px;
    margin-bottom: -4px;
  }
}

/* Category filter is single-choice: no checkbox, the chosen row is highlighted instead. */
.page .catalog-filter__row[role='radio'] .catalog-filter__tick {
  display: none !important;
}

.page .catalog-filter__row[role='radio'] {
  border-radius: 10px;
  transition: background-color 0.2s var(--store-ease, ease), color 0.2s var(--store-ease, ease);
}

.page .catalog-filter__row[role='radio'][aria-checked='true'] {
  background: rgba(255, 130, 0, 0.16);
}

.page .catalog-filter__row[role='radio'][aria-checked='true'] .catalog-filter__option-label {
  font-weight: 600;
  color: var(--neutral-200, #1a1a1a);
}

/* Search submit matches neighbouring header tools: full field height, square, flush right over the 1px border. */
html body .page .header-search-form.search-field {
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  align-items: stretch;
}

html body .page .header-search-form .search-field__input {
  align-self: center;
}

html body .page .header-search-form .search-field__icon-btn {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: -1px -1px -1px 0;
  align-self: stretch;
  border-radius: var(--header-radius);
}

@media (max-width: 900px) {
  html body .page .header-search-form.search-field,
  html body.home-page .page .header-search-form.search-field {
    height: 48px;
    padding: 0 0 0 5px;
    align-items: stretch;
  }

  html body.home-page .page .header-search-form .search-field__icon-btn {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: -1px -1px -1px 0;
    align-self: stretch;
    border-radius: var(--header-radius);
  }
}

/* Retail + wholesale share one price box; guests get a sign-in prompt instead of the wholesale number. */
.page .catalog-product-card__retail.catalog-product-card__prices {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.page .catalog-product-card__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 0;
  min-width: 0;
}

.page .catalog-product-card__price-line--wholesale {
  padding-top: 4px;
  border-top: 1px dashed rgba(26, 26, 26, 0.12);
}

.page .catalog-product-card__price--wholesale {
  font-size: 15px;
}

.page .catalog-product-card__price-moq {
  flex-basis: 100%;
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.3;
  color: #5f6070;
}

.page .price-login-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--colors-100, #2f2fbb);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(47, 47, 187, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s var(--store-ease, ease), text-decoration-color 0.2s var(--store-ease, ease);
}

.page .price-login-link:hover {
  color: #25259f;
  text-decoration-color: currentColor;
}

.page .price-login-link:focus-visible {
  outline: 2px solid rgba(47, 47, 187, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.page .product-page__price-val .price-login-link {
  font-size: 15px;
}

@media (max-width: 900px) {
  .page .catalog-product-card__retail.catalog-product-card__prices {
    gap: 3px;
  }

  .page .catalog-product-card__price-line {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .page .catalog-product-card__price--wholesale {
    font-size: 13px;
  }

  .page .price-login-link {
    font-size: 11px;
  }
}

/* Mobile header: language moves into the drawer, its slot becomes a search toggle that expands the field below. */
@media (max-width: 900px) {
  .page .header-toolbar__tools > .lang-switch {
    display: none;
  }

  html body .page .header-toolbar__tools .header-search-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: var(--header-radius);
    background: var(--store-surface-muted, #efeff4);
    color: var(--neutral-200, #1a1a1a);
    cursor: pointer;
    transition: background-color 0.2s var(--store-ease, ease), color 0.2s var(--store-ease, ease);
  }

  html body .page .header-toolbar__tools .header-search-icon-btn[aria-expanded='true'] {
    background: var(--colors-100, #2f2fbb);
    color: #fff;
  }

  .page .header-search-icon-btn__icon {
    width: 22px;
    height: 22px;
  }

  html body.home-page .page .site-header:not(.site-header--search-open) .header-search-form {
    display: none;
  }
}

/* Drawer: compact language pills in the head, Menu / Catalog tabs, one row per item. */
.page .mobile-nav-drawer__head .mobile-nav-drawer__lang {
  margin-left: auto;
}

.page .mobile-nav-drawer__lang .lang-switch {
  position: static;
}

.page .mobile-nav-drawer__lang .lang-switch__toggle {
  display: none;
}

.page .mobile-nav-drawer__lang .lang-switch__menu,
.page .mobile-nav-drawer__lang .lang-switch__menu[hidden] {
  position: static;
  display: inline-flex !important;
  gap: 2px;
  width: auto;
  min-width: 0;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: #f1f1f7;
  box-shadow: none;
  transform: none;
  opacity: 1;
  visibility: visible;
}

.page .mobile-nav-drawer__lang .lang-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  color: #5f6070;
  text-decoration: none;
  transition: background-color 0.2s var(--store-ease, ease), color 0.2s var(--store-ease, ease);
}

.page .mobile-nav-drawer__lang .lang-switch__code {
  font-size: 12px;
}

.page .mobile-nav-drawer__lang .lang-switch__option--active {
  background: #fff;
  color: var(--colors-100, #2f2fbb);
  box-shadow: 0 1px 2px rgba(23, 23, 58, 0.08);
}

.page .mobile-nav-drawer__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f1f7;
}

.page .mobile-nav-drawer__tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6070;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--store-ease, ease), color 0.2s var(--store-ease, ease);
}

.page .mobile-nav-drawer__tab[aria-selected='true'] {
  background: #fff;
  color: var(--colors-100, #2f2fbb);
  box-shadow: 0 1px 3px rgba(23, 23, 58, 0.1);
}

.page .mobile-nav-drawer__tab:focus-visible {
  outline: 2px solid rgba(47, 47, 187, 0.35);
  outline-offset: 2px;
}

.page .mobile-nav-drawer__tab-panel[hidden] {
  display: none;
}

.page .mobile-nav-drawer__tab-panel .mobile-nav-drawer__all-link {
  display: block;
  margin: 0 0 10px auto;
  width: max-content;
}

.page .mobile-nav-drawer__nav--site {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 18px;
  border-top: 0;
}

.page .mobile-nav-drawer__nav--site .mobile-nav-drawer__page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(47, 47, 187, 0.08);
  color: var(--neutral-200, #1a1a1a);
  font-size: 15px;
  line-height: 1.3;
  opacity: 1;
  text-decoration: none;
  transition: background-color 0.2s var(--store-ease, ease), color 0.2s var(--store-ease, ease);
}

.page .mobile-nav-drawer__nav--site .mobile-nav-drawer__page-link::after {
  content: '›';
  color: var(--colors-100, #2f2fbb);
  font-size: 18px;
  line-height: 1;
}

.page .mobile-nav-drawer__nav--site .mobile-nav-drawer__page-link:active {
  background: rgba(47, 47, 187, 0.08);
  color: var(--colors-100, #2f2fbb);
}

/* Mobile header: account lives in the bottom navigation, not in the top bar. */
@media (max-width: 900px) {
  html body .page .header-toolbar__tools > .account-entry {
    display: none;
  }
}

/* Bottom nav account item reads "Войти" for guests and "Профиль" once signed in. */
.page .mobile-bottom-nav__item[data-account-kind=''] .mobile-bottom-nav__label--member,
.page .mobile-bottom-nav__item:not([data-account-kind='']) .mobile-bottom-nav__label--guest {
  display: none;
}

/* Mobile cards: once the item is in the cart, the cart button turns into a − qty + stepper. */
@media (max-width: 900px) {
  html body .page .catalog-product-card--in-cart .catalog-product-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  html body .page .catalog-product-card--in-cart .catalog-product-card__purchase-actions {
    display: contents;
  }

  html body .page .catalog-product-card--in-cart .catalog-product-card__cart {
    display: none;
  }

  html body .page .catalog-product-card--in-cart .catalog-product-card__qty {
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    background: var(--store-yellow);
    animation: card-stepper-in 260ms var(--store-ease);
  }

  html body .page .catalog-product-card--in-cart .catalog-product-card__qty button {
    flex: 0 0 44px;
    width: 44px;
    height: 100%;
    background: transparent;
    color: var(--store-text);
    font-family: var(--store-font);
    font-size: 22px;
    font-weight: 600;
    transition: background var(--store-transition), transform 160ms var(--store-ease);
  }

  html body .page .catalog-product-card--in-cart .catalog-product-card__qty button:active:not(:disabled) {
    background: rgba(26, 26, 26, 0.08);
    transform: scale(0.94);
  }

  html body .page .catalog-product-card--in-cart .catalog-product-card__qty-val {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: var(--store-font);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--store-text);
  }
}

@keyframes card-stepper-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html body .page .catalog-product-card--in-cart .catalog-product-card__qty {
    animation: none;
  }
}

/* Favourite toggle sits on the product photo, top-right; badges keep the top-left corner. */
html body .page .catalog-product-card__media .catalog-product-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px -8px rgba(26, 26, 26, 0.28), inset 0 0 0 1px rgba(26, 26, 26, 0.06);
  color: var(--store-text);
  transition: transform 220ms var(--store-ease), background var(--store-transition), color var(--store-transition);
}

html body .page .catalog-product-card__media .catalog-product-card__favorite:hover {
  background: #fff;
  transform: scale(1.06);
}

html body .page .catalog-product-card__media .catalog-product-card__favorite:active {
  transform: scale(0.94);
}

html body .page .catalog-product-card__media .catalog-product-card__favorite--active {
  color: #d92d20;
}

html body .page .catalog-product-card__media .catalog-product-card__favorite-icon {
  font-size: 18px;
}

@media (max-width: 900px) {
  html body .page .catalog-product-card__media .catalog-product-card__favorite {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  html body .page .catalog-product-card__media .catalog-product-card__favorite-icon {
    font-size: 16px;
  }
}

@media (min-width: 901px) {
  html body .page .catalog-product-card__media .catalog-product-card__favorite,
  html body .page .catalog-product-card__media .catalog-product-card__favorite:hover {
    background: transparent;
    box-shadow: none;
  }

  html body .page .catalog-product-card__media .catalog-product-card__favorite-icon {
    font-size: 28px;
    text-shadow: 0 0 2px #fff, 0 0 8px rgba(255, 255, 255, 0.9);
  }
}

/* Current page: tinted pill behind the bottom-nav icon and a tinted row in the drawer menu. */
@media (max-width: 900px) {
  html body .page .mobile-bottom-nav__item--active {
    color: var(--store-blue) !important;
  }

  html body .page .mobile-bottom-nav__item .mobile-bottom-nav__icon::before {
    content: '';
    position: absolute;
    inset: -4px -14px;
    z-index: -1;
    border-radius: 999px;
    background: rgba(47, 47, 187, 0.1);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 220ms var(--store-ease), transform 260ms var(--store-ease);
  }

  html body .page .mobile-bottom-nav__item--active .mobile-bottom-nav__icon {
    z-index: 0;
    transform: none;
  }

  html body .page .mobile-bottom-nav__item--active .mobile-bottom-nav__icon::before {
    opacity: 1;
    transform: scaleX(1);
  }

  html body .page .mobile-bottom-nav__item--active .mobile-bottom-nav__label {
    font-weight: 700 !important;
  }
}

.page .mobile-nav-drawer__nav--site .mobile-nav-drawer__page-link--active {
  background: rgba(47, 47, 187, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(47, 47, 187, 0.32);
  color: var(--store-blue);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html body .page .mobile-bottom-nav__item .mobile-bottom-nav__icon::before {
    transition: none;
  }
}
