  /* Прячем общую шапку и фуллвидч main */
  .site-sticky-header,
  header.site-sticky-header,
  header.sticky { display: none !important; }
  main { max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
  main > * { max-width: 100%; }
  html, body { background: #f1f5f9; overflow-x: hidden; }
  /* Прячем общее мобильное нижнее меню — у /price своя шапка */
  #mobile-bottom-nav { display: none !important; }

  /* Контейнер страницы с отступами */
  .ws-container { max-width: 1400px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

  /* Своя шапка /price — компактная, фиксированная */
  .ws-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 12px;
    box-shadow: 0 2px 6px rgba(15,23,42,.06);
  }
  /* Отступ сверху у контента — чтобы фикс. шапка и фикс. SELECT не перекрывали. */
  .ws-cat-switch { margin-top: 56px; padding-top: 4px; }
  .ws-head__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .ws-head__search { position: relative; flex: 1 1 60px; min-width: 60px; max-width: 112px; }
  .ws-head__right {
    display: inline-flex; align-items: center; gap: 8px;
    margin-left: auto; flex-wrap: nowrap; flex-shrink: 0;
  }
  @media (max-width: 640px) {
    .ws-head {padding: 8px 8px;}
    .ws-head__inner { gap: 4px; }
    .ws-head__search { flex: 0 1 113px; max-width: 113px; }
    .ws-head__search input { padding: 6px 8px 6px 26px; font-size: 13px; }
    .ws-head__search svg { left: 7px !important; width: 13px !important; height: 13px !important; }
    .ws-head__burger { width: 32px; height: 32px; border-radius: 8px; }
    .ws-head__burger svg { width: 16px; height: 16px; }
    .ws-head__social { width: 28px; height: 28px; }
    .ws-head__social svg,
    .ws-head__social img { width: 16px; height: 16px; }
    .ws-head__socials { gap: 4px; }
    .ws-head__total { font-size: 12px; font-weight: 700; }
    .ws-head__cart { padding: 5px 9px; min-height: 30px; font-size: 13px; gap: 4px; }
    .ws-head__cart svg { width: 15px; height: 15px; }
    .ws-head__cart .js-cart-label { display: none; }
    .ws-head__right { gap: 6px; }
  }
  @media (max-width: 420px) {
    .ws-head__search { flex: 0 1 111px; max-width: 111px; }
    .ws-head__search input { padding: 6px 6px 6px 22px; }
    .ws-head__search svg { left: 5px !important; }
  }
  .ws-head__search input {
    width: 100%;
    padding: 7px 12px 7px 32px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 14px;
    background: #f8fafc;
  }
  .ws-head__search input:focus { outline: none; border-color: #0ea5e9; background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
  .ws-head__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
  .ws-head__burger {
    background: #0284c7; border: 0; width: 37px; height: 33px;
    border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
  }
  .ws-head__burger:hover { background: #0369a1; }
  /* Соцсети в шапке */
  .ws-head__social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
    text-decoration: none; color: #fff;
  }

  /*
  .ws-head__social--tg { background: #229ED9; }
  .ws-head__social--tg:hover { background: #1a7bb3; }
  .ws-head__social--wa { background: #25D366; }
  .ws-head__social--wa:hover { background: #128C7E; }
  .ws-head__social--max { background: #0049E6; }
  .ws-head__social--max:hover { background: #0036b3; }
  */
  .ws-head__social svg,
  .ws-head__social img { width: 20px; height: 20px; display: block; }
  .ws-head__social img { object-fit: contain; }
  .ws-head__social--tg img, .ws-head__social--wa img, .ws-head__social--max img {
    /* Иконки с цветной заливкой из файла — просто показываем как есть */
    filter: none;
  }
  .ws-head__socials { display: inline-flex; gap: 6px; align-items: center; }
  .ws-head__total {
    color: #0f172a; font-weight: 700; font-size: 14px; white-space: nowrap;
    background: transparent; border: 0; padding: 0; cursor: pointer;
  }
  .ws-head__total:hover { color: #0284c7; }
  .ws-head__cart {
    position: relative;
    background: #0284c7; color: #fff; border: 0;
    padding: 7px 14px; min-height: 34px;
    border-radius: 999px; cursor: pointer; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 14px; white-space: nowrap;
  }
  .ws-head__cart:hover { background: #0369a1; }
  .ws-head__cart svg { width: 17px; height: 17px; }
  .ws-head__cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box;
    background: #fff; color: #0284c7; border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1; margin-left: 4px;
  }
  .ws-head__cart-badge { display: none !important; }

  /* Переключатель категорий — фикс. полоса под фикс. шапкой */
  .ws-cat-switch {
    margin: 10px auto 6px;
    padding: 13px 16px;
    max-width: 620px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  .ws-cat-switch > select {
    width: 100%; max-width: 580px; padding: 8px 36px 8px 18px;
    border: 0; border-radius: 999px;
    background: #0284c7; color: #fff;
    font-size: 15px; font-weight: 600; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.4a.75.75 0 01-1.08 0l-4.25-4.4a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-position: right 14px center; background-repeat: no-repeat; background-size: 20px;
    box-shadow: 0 2px 6px rgba(2,132,199,.2);
  }


  .ws-page-title { text-align: center; color: #0f172a; font-size: 20px; padding: 20px 16px 0; font-weight: 600; max-width: 1400px; margin: 0 auto; }

  .ws-cat-header { text-align: center; margin: 20px auto 10px; max-width: 1400px; }
  .ws-cat-header h2 { color: #0f172a; font-size: 20px; font-weight: 700; }
  .ws-cat-header span { color: #64748b; font-weight: 400; font-size: 15px; margin-left: 6px; }

  /* Сетка: 1 кол (мобильный), 2 (sm), 3 (lg) */
  .ws-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0px 0 40px;
  }
  @media (min-width: 640px) { .ws-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1280px) { .ws-grid { grid-template-columns: repeat(3, 1fr); } }

  /* Карточка товара */
  .ws-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: 14px; display: grid; grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto; gap: 8px 14px;
    transition: all .15s; align-self: stretch; min-height: 100%;
    min-width: 0;
  }
  .ws-grid { align-items: stretch; }
  .ws-card.is-in-cart { border-color: #0284c7; box-shadow: 0 0 0 2px rgba(2,132,199,.15); }
  @media (max-width: 640px) {
    .ws-card {grid-template-columns: 86px 1fr;padding: 10px;gap: 6px 10px;}
    .ws-card__img { min-height: 76px; padding: 2px; }
    .ws-card__img img { max-height: 76px; }
    .ws-card__img-empty svg { width: 32px; height: 32px; }
  }
  @media (max-width: 380px) {
    .ws-card { grid-template-columns: 72px 1fr; }
    .ws-card__img { min-height: 66px; }
    .ws-card__img img { max-height: 66px; }
  }
  .ws-card__img {
    grid-column: 1; grid-row: 1;
    display: flex; align-items: center; justify-content: center;
    background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 12px;
    padding: 6px; overflow: hidden; min-height: 120px; position: relative;
  }
  .ws-card__img img { max-width: 100%; max-height: 120px; object-fit: contain; }
  .ws-card__img.has-image { background: #fff; border: 0; }
  .ws-card__img-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; color: #94a3b8; font-size: 11px; text-align: center; padding: 4px;
  }
  .ws-card__img-empty svg { width: 36px; height: 36px; color: #cbd5e1; }
  .ws-card__content {
    grid-column: 2; grid-row: 1;
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
    padding-top: 6px;
  }
  .ws-card__hint { color: #cbd5e1; font-size: 12px; line-height: 1.3; }
  .ws-card__title {
    display: block; color: #0f172a; line-height: 1.3;
    overflow-wrap: anywhere; word-break: break-word;
  }
  a.ws-card__title:hover { color: #2563eb; }
  .ws-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .ws-price-row { display: flex; align-items: baseline; gap: 8px; }
  .ws-price-row__label { color: #0f172a; font-size: 15px; }
  .ws-price-row__value { color: #ef4444; }
  .ws-price-note { color: #94a3b8; font-size: 12px; line-height: 1.5; }
  .ws-price-note a { color: #0284c7; text-decoration: underline; }
  .js-tier-row.is-active { color: #0f9b5e; font-weight: 600; }

  /* Нижняя полоска: видео / остаток / qty */
  .ws-card__bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 6px;
    padding-right: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    flex-wrap: wrap;
  }
  .ws-card__video {
    display: inline-flex; align-items: center; gap: 6px;
    color: #0284c7; font-size: 14px; text-decoration: underline;
    background: transparent; border: 0; cursor: pointer; padding: 0;
  }
  .ws-card__video:hover { color: #0369a1; }
  .ws-card__video.is-none { color: #cbd5e1; text-decoration: none; cursor: default; }
  .ws-card__video svg { fill: #ef4444; width: 28px; height: 28px; }
  .ws-card__video.is-none svg { fill: #cbd5e1; }
  .ws-card__stock { font-size: 14px; color: #0f172a; white-space: nowrap; }
  .ws-card__stock b { color: #0f9b5e; font-weight: 700; }
  .ws-card__stock.is-low b { color: #ef4444; }

  /* Блок количества — без заливки */
  .ws-qty { display: inline-flex; align-items: stretch; }
  .ws-qty button { background: transparent; border: 0; color: #0369a1; width: 32px; cursor: pointer; font-size: 20px; font-weight: 600; }
  .ws-qty button:hover { color: #0284c7; }
  .ws-qty input { width: 44px; text-align: center; border: 0; background: transparent; color: #0f172a; font-size: 16px; -moz-appearance: textfield; }
  .ws-qty input::-webkit-outer-spin-button, .ws-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .ws-qty input:focus { outline: none; }

  /* Модалка — всегда по центру экрана, с отступами по краям на любом размере */
  .ws-modal {
    position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.6);
    display: none; align-items: center; justify-content: center; padding: 16px;
    overflow-y: auto;
  }
  .ws-modal.is-open { display: flex; }
  .ws-modal--center { align-items: center !important; justify-content: center !important; padding: 16px !important; }
  .ws-modal__box {
    background: #fff; width: 100%; max-width: 820px; max-height: calc(100vh - 32px);
    display: flex; flex-direction: column; border-radius: 20px;
  }
  @media (max-width: 480px) {
    .ws-modal { padding: 12px; }
    .ws-modal__box { max-height: calc(100vh - 24px); border-radius: 16px; }
  }
  .ws-modal__header { padding: 14px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
  .ws-modal__header h2 { font-size: 18px; font-weight: 700; color: #0f172a; }
  .ws-modal__body { padding: 10px 20px; overflow-y: auto; flex: 1; }
  .ws-modal__footer { padding: 14px 20px; border-top: 1px solid #e2e8f0; }
  /* Строка корзины — таблично-ровные колонки: Товар | Количество | Сумма | Удалить */
  .ws-cart-item {
    display: grid; grid-template-columns: minmax(0, 1fr) 128px 110px 32px;
    align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .ws-cart-item:last-child { border-bottom: 0; }
  .ws-cart-item__name { font-size: 14px; color: #0f172a; line-height: 1.3; word-break: break-word; }
  .ws-cart-item__meta { font-size: 11px; color: #64748b; margin-top: 2px; }
  .ws-cart-item__sum {color: #0f172a; text-align: right; white-space: nowrap; }
  .ws-cart-item__qty-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .ws-cart-item__unit { font-size: 11px; color: #64748b; }
  .ws-cart-item__del { background: transparent; border: 0; color: #ef4444; cursor: pointer; padding: 6px; justify-self: center; }
  .ws-cart-item__qty-wrap { justify-self: center; }
  @media (max-width: 540px) {
    .ws-cart-item {
      grid-template-columns: minmax(0, 1fr) auto 24px;
      grid-template-areas: "main qty del" "main sum del";
      gap: 2px 8px; align-items: center;
    }
    .ws-cart-item__main { grid-area: main; align-self: center; }
    .ws-cart-item__qty-wrap { grid-area: qty; align-self: end; }
    .ws-cart-item__unit { display: none; }
    .ws-cart-item__sum { grid-area: sum; text-align: center; align-self: start; white-space: nowrap; font-size: 13px; }
    .ws-cart-item__del { grid-area: del; align-self: center; }
  }
  .ws-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .ws-form input, .ws-form textarea { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 999px; font-size: 15px; }
  .ws-form textarea { border-radius: 16px; }
  .ws-form input:focus, .ws-form textarea:focus { outline: none; border-color: #0284c7; }
  .ws-form .ws-form__wide { grid-column: 1 / -1; }
  .ws-submit { grid-column: 1 / -1; background: #0284c7; color: #fff; border: 0; padding: 14px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 16px; transition: background .15s; }
  .ws-submit:hover:not(:disabled) { background: #0369a1; }
  .ws-submit:disabled { background: #cbd5e1; color: #f8fafc; cursor: not-allowed; }
  .ws-status { margin-top: 8px; font-size: 14px; }
  .ws-status.is-ok { color: #0f9b5e; }
  .ws-status.is-err { color: #ef4444; }

  .ws-empty { padding: 60px 20px; text-align: center; color: #64748b; }
  .ws-debug { max-width: 1400px; margin: 10px auto; padding: 12px 16px; background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; font-size: 12px; border-radius: 10px; white-space: pre-wrap; }

  /* Скрытые категории через класс */
  .ws-category.is-hidden { display: none; }
  /* Flat-режим "Все товары": один общий грид без разделителей категорий */
  .ws-all-wrap.is-flat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 16px 40px;
    box-sizing: border-box;
  }
  @media (min-width: 640px) { .ws-all-wrap.is-flat { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1280px) { .ws-all-wrap.is-flat { grid-template-columns: repeat(3, 1fr); } }
  .ws-all-wrap.is-flat .ws-category { display: contents; }
  .ws-all-wrap.is-flat .ws-cat-header { display: none; }
  .ws-all-wrap.is-flat .ws-container { display: contents; }
  .ws-all-wrap.is-flat .ws-grid { display: contents; }


/* ========= Добавочные классы (вынесены из inline-styles) ========= */

/* Spacer под фикс. шапкой — гарантирует что контент не прячется */
.ws-head-spacer { height: 56px; }
@media (max-width: 640px) { .ws-head-spacer { height: 48px; } }

/* Теперь margin-top .ws-cat-switch не нужен (есть spacer) */
.ws-cat-switch { margin-top: 10px !important; }

/* Поиск: иконка внутри поля */
.ws-head__search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: #94a3b8;
}
#ws-search, .js-qty, input[type="tel"], input[type="email"], input[type="text"].ws-form__wide, textarea.ws-form__wide {
  /* 16px минимум — iOS не зумит страницу при фокусе */
  font-size: 12px;
}

/* Лёгкое затемнение поля количества при фокусе — и на карточке (.js-qty),
   и в модалке корзины (.ws-qty input[data-cart-act="set"]). */
.js-qty:focus,
.ws-qty input:focus {
  background-color: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  outline: none;
}

/* Подпись «кратно N шт» на карточке */
.ws-card__batch { color: #64748b; font-size: 12px; font-weight: 400; }

/* Видео-модалка */
.ws-modal__box--video {
  max-width: 900px; background: #000; padding: 0; border-radius: 12px;
  position: relative; max-height: none; width: auto;
}
.ws-video-close {
  position: absolute; top: -14px; right: -14px;
  background: #fff; color: #0f172a; border: 0; border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; padding-bottom: 3px;
}
#ws-video-slot {
  width: min(900px, calc(100vw - 32px));
  aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden;
}
.ws-video-iframe { width: 100%; height: 100%; border: 0; }

/* Крестик закрытия у модалок (info / cart) */
.ws-modal-close-x {
  background: transparent; border: 0; cursor: pointer; color: #64748b; padding: 6px;
}
.ws-modal-close-x:hover { color: #0f172a; }

/* Заголовки h3 внутри info-модалки */
.ws-info-h3 { font-weight: 600; margin-top: 16px; color: #0f172a; }
.ws-info-h3--first { margin-top: 0; }
.ws-info-link { color: #0284c7; text-decoration: none; }
.ws-info-link:hover { text-decoration: underline; }

/* Корзина-модалка */
.ws-modal__box--cart { max-width: 960px; }
.ws-cart-empty { text-align: center; color: #64748b; padding: 30px 0; display: none; }
.ws-cart-total-row {
  display: flex; justify-content: space-between;
  font-size: 16px; margin-bottom: 10px;
}
#ws-cart-total { font-size: 20px; }

/* Чекбокс согласия */
.ws-consent-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #475569; line-height: 1.4;
  margin-top: 4px; cursor: pointer;
}
#ws-consent {
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px; cursor: pointer;
}

/* ========= Dual-SELECT: десктоп внутри шапки, мобильный — отдельной полосой ========= */

/* По умолчанию (мобильный ≤640px): показываем стандалон полосу, прячем в шапке */
.ws-head__cat-wrap { display: none; }

/* Десктоп (≥641px): прячем стандалон полосу, показываем select в шапке */
@media (min-width: 641px) {
  .ws-cat-switch { display: none !important; }

  .ws-head__cat-wrap {
    display: inline-flex; align-items: center;
    flex: 0 1 260px; min-width: 180px; max-width: 320px;
    margin: 0 auto;
  }
  .ws-head__cat-wrap select {
    width: 100%; padding: 7px 32px 7px 14px;
    border: 0; border-radius: 999px;
    background: #0284c7; color: #fff;
    font-size: 13px; font-weight: 600; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.4a.75.75 0 01-1.08 0l-4.25-4.4a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-position: right 12px center; background-repeat: no-repeat; background-size: 18px;
    text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  }
  .ws-head__cat-wrap select:hover { background-color: #0369a1; }

  /* Spacer теперь меньше — SELECT-бара на десктопе нет */
  .ws-head-spacer { height: 48px; }

  /* На десктопе убираем margin-left:auto у правой группы — иначе
     margin:0 auto у .ws-head__cat-wrap конкурирует и центровка ломается. */
  .ws-head__right { margin-left: 0; }
}



@media (min-width:640px) {

.ws-all-wrap.is-flat {
 
    padding: 25px 16px 40px!important;
  
}
  .ws-grid {
    padding: 25px 0 40px;
  }

}
/* Кнопки действий в корзине */
.ws-cart-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.ws-cart-action {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto; justify-content: center;
  padding: 11px 14px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .15s, transform .05s;
}
.ws-cart-action:active { transform: scale(0.98); }
.ws-cart-action svg { flex-shrink: 0; }
.ws-cart-action--copy { background: #f97316; color: #fff; }
.ws-cart-action--copy:hover { background: #ea580c; }
.ws-cart-action--copy.is-copied { background: #16a34a; }
.ws-cart-action--clear { background: #fef2f2; color: #dc2626; box-shadow: inset 0 0 0 1px #fecaca; }
.ws-cart-action--clear:hover { background: #fee2e2; }
@media (max-width: 560px) {
  .ws-cart-action { flex-basis: 100%; }
}

/* Лайтбокс фото товара */
.ws-card__img.has-image img { cursor: zoom-in; }
.ws-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); padding: 24px;
}
.ws-lightbox.is-open { display: flex; }
.ws-lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff;
}
.ws-lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ws-lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ===== Боковое меню (бургер) ===== */
.ws-drawer-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15,23,42,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.ws-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.ws-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1300;
  width: 300px; max-width: 82vw;
  background: #fff;
  transform: translateX(-100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  box-shadow: none;
}
.ws-drawer.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.18); }
.ws-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid #e2e8f0;
}
.ws-drawer__title { font-weight: 700; font-size: 17px; color: #0f172a; }
.ws-drawer__close {
  border: 0; background: transparent; color: #475569; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.ws-drawer__close:hover { background: #f1f5f9; color: #0f172a; }
.ws-drawer__nav { overflow-y: auto; padding: 8px 0 20px; flex: 1; }
.ws-drawer__sep {
  padding: 14px 18px 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: #94a3b8; font-weight: 700;
}
.ws-drawer__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 12px 18px; font-size: 15px; color: #1e293b; line-height: 1.3;
  transition: background .15s;
}
.ws-drawer__item:hover { background: #f1f5f9; }
.ws-drawer__item.is-active,
.ws-drawer__item.is-active:hover { background: #0284c7; color: #fff; }
.ws-drawer__item--info { font-weight: 700; color: #0284c7; border-bottom: 1px solid #f1f5f9; }
.ws-drawer__item svg { flex-shrink: 0; }

/* ===== Модалка успешной заявки ===== */
.ws-modal__box--success {
  max-width: 420px; text-align: center;
  padding: 32px 28px; align-items: center;
  animation: wsSuccessIn .3s ease;
}
@keyframes wsSuccessIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.ws-success__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.ws-success__title { font-size: 20px; color: #0f172a; margin: 0 0 8px; line-height: 1.3; }
.ws-success__text { color: #475569; margin: 0 0 22px; font-size: 15px; }
.ws-success__btn { width: 100%; max-width: 220px; }

/* Моб.: шрифт инпутов ≥16px — iOS не зумит страницу при фокусе */
@media (max-width: 768px) {
  #ws-search,
  .ws-form input,
  .ws-form textarea,
  .ws-form__wide,
  input[type="tel"],
  input[type="text"],
  input[type="email"],
  input[type="search"] { font-size: 12px !important; }
}

/* ===== Остаток «в пути» / ожидание ===== */
.ws-card__stock.is-waiting { color: #ea580c; }
.ws-card__stock.is-waiting b { color: #ea580c; }
.ws-stock-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 5px;
  border-radius: 50%; background: #f97316; color: #fff;
  font-size: 11px; font-weight: 700; cursor: help; position: relative;
  vertical-align: middle; top: -2px;
}
.ws-stock-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #0f172a; color: #fff; font-weight: 500; font-size: 12px; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 50;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); text-align: left;
}
.ws-stock-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #0f172a;
}
.ws-stock-help:hover .ws-stock-tip,
.ws-stock-help:focus .ws-stock-tip { opacity: 1; visibility: visible; }

/* Иконка видео от поставщика (YouTube) */
.ws-card__video-ytimg { width: 31px; display: inline-block; vertical-align: middle; }

/* Пометка «на ожидании» в корзине */
.ws-cart-item__wait {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa;
  border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}


/* Моб.: мгновенный отклик кнопок +/- (без задержки двойного тапа) */
.ws-qty button, .ws-card__video, .ws-cart-action, .ws-head__burger {
  touch-action: manipulation;
}
.ws-qty button { user-select: none; -webkit-user-select: none; }

/* Видимый скроллбар в корзине (чтобы было понятно, что список прокручивается) */
.ws-modal__body { scrollbar-width: thin; scrollbar-color: #94a3b8 #eef2f7; }
.ws-modal__body::-webkit-scrollbar { width: 10px; }
.ws-modal__body::-webkit-scrollbar-track { background: #eef2f7; border-radius: 8px; }
.ws-modal__body::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 8px; border: 2px solid #eef2f7; }
.ws-modal__body::-webkit-scrollbar-thumb:hover { background: #64748b; }
/* Лёгкая тень снизу списка — подсказка, что есть ещё позиции ниже */
.ws-modal__box--cart .ws-modal__body {
  -webkit-overflow-scrolling: touch;
}

/* ===== Доп. правки UI (выравнивание, фикс дёрганья, iOS-модалка) ===== */

/* 1) Кнопки +/- : центрируем содержимое и убираем «квадрат» подсветки при тапе */
.ws-qty button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; line-height: 1; text-align: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none; appearance: none;
}
.ws-qty button:focus, .ws-qty button:active { outline: none; }
.ws-qty button, .ws-card__video, .ws-cart-action, .ws-head__burger,
.ws-cart-item__del, .ws-modal-close-x, .ws-drawer__close, .ws-head__total,
.ws-head__cart, .ws-stock-help {
  -webkit-tap-highlight-color: transparent;
}

/* 2) Сумма в шапке — фикс. минимальная ширина, чтобы не дёргался селект категорий */
.ws-head__total {
  min-width: 96px; text-align: right; display: inline-flex;
  justify-content: flex-end; align-items: center;
}
@media (max-width: 560px) {
  .ws-head__total { min-width: 84px; }
}

/* 3) Иконка видео поставщика (не из файла) — SVG красного #cf2525 */
.ws-card__video svg.ws-card__video-yt { fill: #cf2525; width: 28px; height: 28px; }

/* 4-5) Корзина на iOS: включаем внутренний скролл тела (flex min-height:0),
   шапку с крестиком и футер с кнопкой закрепляем, чтобы были всегда видны */
.ws-modal__body { min-height: 0; -webkit-overflow-scrolling: touch; }
.ws-modal__header {
  position: sticky; top: 0; z-index: 3; background: #fff;
  border-top-left-radius: inherit; border-top-right-radius: inherit;
}
.ws-modal__footer {
  position: sticky; bottom: 0; z-index: 3; background: #fff;
  border-bottom-left-radius: inherit; border-bottom-right-radius: inherit;
}

/* Подсказка «есть ещё ниже» в корзине (особенно для iOS, где скроллбар скрыт) */
.ws-modal__box--cart .ws-modal__body.has-more::after {
  content: ''; position: sticky; bottom: 0; left: 0; right: 0;
  display: block; height: 26px; margin-top: -26px;
  /*background: linear-gradient(rgba(255,255,255,0), #fff);*/
  pointer-events: none;
}


/* Предупреждение в корзине: часть заказа под заказ (ожидание поступления) */
.ws-cart-item__note {
  margin-top: 4px; font-size: 12px; line-height: 1.35;
  color: #ea580c; background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 6px; padding: 4px 8px; display: inline-block;
}
.ws-cart-item__note b { color: #c2410c; }

/* Нижний блок карточки: Видео | Остаток | Счётчик — симметрично по всем карточкам.
   Средняя колонка auto всегда по центру (две боковые 1fr равны), поэтому «?»
   у остатка не сдвигает счётчик. */
.ws-card__bottom {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  flex-wrap: initial;
}
.ws-card__bottom > .ws-card__video { justify-self: start; }
.ws-card__bottom > .ws-card__stock { justify-self: center; text-align: center; }
.ws-card__bottom > .ws-qty { justify-self: end; }

/* ================= Страница товара (SEO) ================= */
.ws-head__social--vk { background: #0077FF; }
.ws-head__social--vk:hover { background: #0062d1; }
.ws-head__social--vk img { width: 20px; height: 20px; }

.ws-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #334155; font-size: 15px;
}
.ws-detail-back:hover { color: #0f172a; }

/* Логотип магазина в шапке (слева, стиль как в основном шаблоне) */
.ws-detail-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  padding-left: 13px;
}
.ws-detail-logo__name { font-size: 20px; font-weight: 400; letter-spacing: -0.025em; color: #0f172a; }
.ws-detail-logo__sub { font-size: 12px; color: #94a3b8; text-decoration: underline; }
/* Логотип — слева, соцсети — справа */
.ws-head--detail .ws-head__socials { margin-left: auto; }
@media (max-width: 640px) {
  .ws-detail-logo__name { font-size: 16px; }
  .ws-detail-logo__sub { font-size: 10px; }
}
.ws-detail-back svg { width: 18px; height: 18px; }
.ws-detail-back span { white-space: nowrap; }

.ws-detail { padding: 72px 0 56px; }
@media (max-width: 640px) { .ws-detail { padding: 64px 0 40px; } }

.ws-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}
.ws-crumbs a { color: #f1f5f9; }
.ws-crumbs a:hover { color: #f1f5f9; text-decoration: none; }
.ws-crumbs span { color: #f1f5f9; }

/* Верхний блок: галерея + инфо */
.ws-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 36px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 26px;
  margin-top: 46px;
}

.ws-detail__bottom {
  display: grid;
  /* grid-template-columns: minmax(0, 560px) 1fr; */
  /* gap: 36px; */
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 17px;
  margin-bottom: 26px;
  /* margin-top: 46px; */
}


@media (max-width: 900px) { .ws-detail__top { grid-template-columns: 1fr; gap: 20px; padding: 16px; } }

/* Галерея: колонка превью слева + большое фото справа (как в рознице) */
.ws-detail__gallery { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.ws-detail__gallery.has-thumbs { grid-template-columns: 66px 1fr; }
.ws-detail__thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.ws-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  border: 2px solid #e2e8f0;
  padding: 2px;
  background: #fff;
}
.ws-thumb.is-active { border-color: #2563eb; }
.ws-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ws-thumb--video {
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: #ef4444; border-color: #ef4444;
  border-radius: 50%;
}
.ws-thumb--video svg { width: 26px; height: 26px; }

.ws-detail__main {
  width: 100%; height: 300px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid #eef2f7;
  display: flex; align-items: center; justify-content: center;
}
.ws-detail__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ws-detail__main.is-empty { background: #f8fafc; }
@media (max-width: 900px) {
  .ws-detail__gallery, .ws-detail__gallery.has-thumbs { grid-template-columns: 1fr; }
  .ws-detail__thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .ws-detail__main { order: 1; height: 340px; }
}

/* Инфо-колонка */
.ws-detail__h1 { font-size: 24px; font-weight: 700; line-height: 1.3; color: #0f172a; margin-bottom: 12px; }
@media (max-width: 640px) { .ws-detail__h1 { font-size: 20px; } }
.ws-detail__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #64748b; margin-bottom: 14px; }
.ws-detail__meta b { color: #0f172a; font-weight: 700; }

.ws-detail__stock { font-size: 16px; color: #0f172a; margin-bottom: 8px; }
.ws-detail__stock b { color: #0f9b5e; font-weight: 800; }
.ws-detail__stock.is-low b { color: #ef4444; }
.ws-detail__stock.is-waiting, .ws-detail__stock.is-waiting b { color: #ea580c; }
.ws-detail__batch { font-size: 14px; color: #475569; margin-bottom: 4px; }
.ws-detail__fasovka { font-size: 13px; color: #64748b; margin-bottom: 4px; }

/* Главная кнопка — как «Корзина» в шапке (pill + иконка), только оранжевая */
.ws-req-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 12px 24px;
  border-radius: 999px;
  background: #f97316;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(249,115,22,.3);
  transition: background .15s, box-shadow .15s;
}
.ws-req-btn:hover { background: #ea580c; box-shadow: 0 9px 20px rgba(249,115,22,.38); }
.ws-req-btn svg { width: 20px; height: 20px; }

.ws-detail__cert {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: #2563eb; font-weight: 600; margin-left: 14px;
}
.ws-detail__cert:hover { text-decoration: underline; }

.ws-detail__desc { margin-top: 18px; }
.ws-detail__desc h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.ws-detail__desc-body { font-size: 15px; color: #334155; line-height: 1.6; }
.ws-detail__desc-body p { margin-bottom: 8px; }

/* Продающие блоки */
.ws-usp {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px;
}
@media (max-width: 860px) { .ws-usp { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ws-usp { grid-template-columns: 1fr; } }
.ws-usp__item {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px;
}
.ws-usp__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: #fff7ed; color: #ea580c; display: flex; align-items: center; justify-content: center;
}
.ws-usp__ico svg { width: 26px; height: 26px; }
.ws-usp__txt { font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.35; }
.ws-usp__txt a { color: #2563eb; text-decoration: underline; }

/* Похожие / смотрите также — единый листинг карточек как на /price */
.ws-rel { margin-bottom: 20px; }
.ws-rel__title {font-size: 22px;/* font-weight: 800; */color: #0f172a;margin-bottom: 16px;}
.ws-grid--rel { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 0 20px; }
@media (min-width: 640px) { .ws-grid--rel { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .ws-grid--rel { grid-template-columns: repeat(3, 1fr); } }

/* Карточка в листинге без +/- : низ = видео + остаток (2 колонки) */
.ws-card--rel .ws-card__bottom { grid-template-columns: 1fr auto !important; }
.ws-card--rel .ws-card__bottom > .ws-card__stock { justify-self: end; }
.ws-req-link {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: #ea580c;
  /* font-weight: 600; */
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
}
.ws-req-link:hover { color: #c2410c; }

/* Социальная модалка */
.ws-social-box { max-width: 460px; width: 100%; padding: 28px 24px 30px; position: relative; text-align: center; border-radius: 20px; }
.ws-social-box__title { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.ws-social-box__sub { font-size: 14px; color: #64748b; margin-bottom: 22px; }
.ws-social-grid { display: flex; flex-wrap: wrap; gap: 16px 10px; justify-content: center; }
.ws-social-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; }
.ws-social-circle__ico {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .15s; box-shadow: none;
}
.ws-social-circle:hover .ws-social-circle__ico { transform: translateY(-3px); }
.ws-social-circle__ico img { width: 30px; height: 30px; object-fit: contain; }
.ws-social-circle__ico svg { width: 28px; height: 28px; }
.ws-social-circle span:last-child { font-size: 13px; font-weight: 600; color: #334155; }
.ws-social-circle--wa .ws-social-circle__ico { background: #25D366; }
.ws-social-circle--tg .ws-social-circle__ico { background: #229ED9; }
.ws-social-circle--vk .ws-social-circle__ico { background: #0077FF; }
.ws-social-circle--max .ws-social-circle__ico { background: #0049E6; }
.ws-social-circle--phone .ws-social-circle__ico { background: #475569; }


/* (1) Крестик соц-модалки — в правый верхний угол */
.ws-social-box .ws-modal-close-x {
  position: absolute; top: 10px; right: 14px;
  font-size: 26px; line-height: 1; color: #94a3b8; padding: 2px 6px;
}
.ws-social-box .ws-modal-close-x:hover { color: #0f172a; }

/* (4) В листинге карточка-ссылка — обычный курсор, без лупы */
.ws-card--rel .ws-card__img.has-image img,
.ws-card--rel .ws-card__img { cursor: pointer; }


/* ================= Футер сайта на оптовых страницах ================= */
.ws-footer { margin-top: 32px; border-top: 1px solid #e2e8f0; background: #fff; }
.ws-footer__grid {
  max-width: 1400px; margin: 0 auto; display: grid; gap: 24px;
  padding: 32px 16px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ws-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ws-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.ws-footer__brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #0f172a; }
.ws-footer__about { margin-top: 8px; font-size: 12px; color: #475569; line-height: 1.5; }
.ws-footer__h { margin-bottom: 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #475569; }
.ws-footer__list { display: flex; flex-direction: column; gap: 8px; }
.ws-footer__list a { font-size: 14px; color: #334155; }
.ws-footer__list a:hover { text-decoration: underline; }
.ws-footer__socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-footer__socials a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 6px; }
.ws-footer__socials a:hover { background: #f1f5f9; }
.ws-footer__socials img { width: 20px; height: 20px; }
.ws-footer__bottom {
  max-width: 1400px; margin: 0 auto; padding: 18px 16px 24px;
  text-align: center; font-size: 12px; color: #94a3b8; line-height: 1.6;
}

/* ===== Видео ВКонтакте: два значка в карточке + превью в галерее ===== */
.ws-card__videos { display: inline-flex; align-items: center; gap: 10px; }
.ws-card__bottom > .ws-card__videos { justify-self: start; }
.ws-card__video--icon { gap: 0; }
.ws-card__video--vk img, .ws-card__video-vkimg {
  width: 30px; height: 30px; object-fit: contain; display: inline-block; vertical-align: middle;
}
.ws-thumb--vk {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-color: #0077FF; border-radius: 50%;
}
.ws-thumb--vk img { width: 38px; height: 38px; object-fit: contain; }

/* ===== Стрелка «прокрутите вниз» в корзине (видно и на iOS/Android) ===== */
.ws-cart-more {
  display: none;
  position: sticky;
  bottom: 0px;
  z-index: 4;
  width: 20px;
  height: 20px;
  margin: -34px auto 0;
  align-items: center;
  justify-content: center;
  background: rgba(215, 215, 215, 0.44);
  color: #fff;
  border-radius: 50%;
  /* box-shadow: 0 6px 16px rgba(37,99,235,.45); */
  pointer-events: none;
  animation: ws-cart-bounce 1.3s infinite ease-in-out;
  }
.ws-modal__body.has-more .ws-cart-more { display: flex; }
.ws-cart-more svg { width: 22px; height: 22px; }
@keyframes ws-cart-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}



/* ====== FAQ-аккордеон в модалке «Условия заказа и доставки» ====== */
.ws-faq { display: flex; flex-direction: column; }
.ws-faq__item { border-top: 1px solid #e8edf3; }
.ws-faq__item:first-child { border-top: 0; }
.ws-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  transition: background .15s ease;
}
.ws-faq__q:hover { background: #f7f9fc; }
.ws-faq__ico { flex: 0 0 auto; display: inline-flex; color: #334155; }
.ws-faq__ico svg { display: block; }
/* вертикальная чёрточка «+» скрывается в состоянии «открыто» → получается «−» */
.ws-faq__q[aria-expanded="true"] .ws-faq__ico-v { opacity: 0; }
.ws-faq__title { min-width: 0; }
.ws-faq__a {
  padding: 0 8px 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.ws-faq__a > *:first-child { margin-top: 0; }
.ws-faq__a > *:last-child { margin-bottom: 0; }
.ws-faq__a p { margin: 0 0 10px; }
.ws-faq__a a { color: #0284c7; text-decoration: none; word-break: break-word; }
.ws-faq__a a:hover { text-decoration: underline; }
.ws-faq__a ul, .ws-faq__a ol { margin: 0 0 10px; padding-left: 22px; }
.ws-faq__a li { margin: 2px 0; }
.ws-faq__a img { max-width: 100%; height: auto; border-radius: 8px; }
.ws-faq__contacts { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e8edf3; }
.ws-info-contact { margin: 0 0 10px; color: #334155; }
@media (max-width: 640px) {
  .ws-faq__q { font-size: 15px; padding: 15px 4px; gap: 8px; }
  .ws-faq__a { font-size: 14px; }
}

/* ===== Фиксированная высота модалки корзины ===== */
/* Окно всегда растянуто на максимальную высоту — не «прыгает» при добавлении
   и удалении позиций. Шапка и футер закреплены (sticky выше), список внутри
   .ws-modal__body скроллится (flex:1 + overflow-y:auto). */
.ws-modal__box--cart { height: calc(100vh - 32px); }
@media (max-width: 480px) {
  .ws-modal__box--cart { height: calc(100vh - 24px); }
}

/* ===== Миниатюра товара в строке корзины ===== */
.ws-cart-item__main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-cart-item__text { min-width: 0; }
.ws-cart-item__img {
  flex: 0 0 46px; width: 46px; height: 46px;
  border-radius: 8px; object-fit: cover; background: #f1f5f9;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
img.ws-cart-item__img { cursor: zoom-in; transition: transform .12s ease; }
img.ws-cart-item__img:hover { transform: scale(1.06); }
.ws-cart-item__img--empty {
  display: inline-flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}
.ws-cart-item__img--empty svg { width: 24px; height: 24px; }
@media (max-width: 540px) {
  .ws-cart-item__img { flex-basis: 40px; width: 40px; height: 40px; }
  .ws-cart-item__main { gap: 8px; }
}

/* ====== Шестерёнка в шапке меню + настройки отображения ====== */
.ws-drawer__head-left { display: flex; align-items: center; gap: 6px; }
.ws-drawer__gear {
  border: 0; background: transparent; color: #475569; cursor: pointer;
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; -webkit-tap-highlight-color: transparent;
}
.ws-drawer__gear:hover { background: #f1f5f9; color: #0f172a; }
.ws-drawer__gear svg { display: block; }

.ws-modal__box--settings { max-width: 460px; }
.ws-setting__label { font-weight: 600; color: #0f172a; margin: 4px 0 10px; }
.ws-viewmode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-viewmode__opt { cursor: pointer; display: flex; }
.ws-viewmode__opt .ws-viewmode__card { flex: 1; justify-content: flex-start; }
.ws-viewmode__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ws-viewmode__card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 12px; border: 2px solid #e2e8f0; border-radius: 14px;
  color: #334155; transition: border-color .15s, background .15s, box-shadow .15s;
}
.ws-viewmode__card svg { width: 30px; height: 30px; color: #64748b; margin-bottom: 2px; }
.ws-viewmode__card b { font-size: 15px; color: #0f172a; }
.ws-viewmode__card small { font-size: 12px; color: #64748b; line-height: 1.25; }
.ws-viewmode__opt:hover .ws-viewmode__card { border-color: #cbd5e1; }
.ws-viewmode__opt input:checked + .ws-viewmode__card {
  border-color: #0284c7; background: #f0f9ff; box-shadow: 0 0 0 1px #0284c7 inset;
}
.ws-viewmode__opt input:checked + .ws-viewmode__card svg,
.ws-viewmode__opt input:checked + .ws-viewmode__card b { color: #0369a1; }
.ws-viewmode__opt input:focus-visible + .ws-viewmode__card { outline: 2px solid #0284c7; outline-offset: 2px; }

/* ====== Вид прайса «списком» (как лист) ====== */
/* По умолчанию (режим «Карточки») доп.элементы списка скрыты */
.ws-card__artcol, .ws-card__listname { display: none; }

.ws-view-list .ws-all-wrap.is-flat { display: block; }
.ws-view-list .ws-grid { display: block; padding: 8px 0 24px; }

.ws-view-list .ws-card {
  display: grid;
  grid-template-columns: 128px minmax(120px, 160px) minmax(0, 1fr) auto;
  grid-template-areas:
    "img art name qty"
    "vid art name qty";
  grid-template-rows: auto 1fr;
  column-gap: 22px; row-gap: 4px;
  align-items: center;
  border: 0; border-radius: 0; box-shadow: none;
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf3;
}
.ws-view-list .ws-card:nth-child(even) { background: #f6f8fb; }
.ws-view-list .ws-card.is-in-cart { background: #eff6ff; box-shadow: inset 3px 0 0 #0284c7; border-color: #dbeafe; }

/* Скрываем то, что дублируется доп.элементами списка */
.ws-view-list .ws-card__title,
.ws-view-list .ws-card__bottom > .ws-card__stock,
.ws-view-list .ws-price-note,
.ws-view-list .ws-card__hint { display: none; }

/* Нижний контейнер «растворяем», чтобы «Видео» и кол-во встали в сетку */
.ws-view-list .ws-card__bottom { display: contents !important; }

/* Фото (сверху) + «Видео» (снизу) слева */
.ws-view-list .ws-card__img {
  grid-area: img; justify-self: center; align-self: center;
  width: 108px; height: 108px; min-height: 0; padding: 4px; border-radius: 12px;
}
.ws-view-list .ws-card__img img { max-height: 100px; }
.ws-view-list .ws-card__video,
.ws-view-list .ws-card__videos {
  grid-area: vid; justify-self: center; align-self: center;
}

/* Артикул + остаток — одной колонкой, по центру по вертикали */
.ws-view-list .ws-card__artcol {
  grid-area: art; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
}
.ws-view-list .ws-card__article {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 2px; line-height: 1.25; color: #334155; font-size: 15px;
}
.ws-view-list .ws-card__article-cap { color: #475569; }
.ws-view-list .ws-card__article-art { color: #0f172a; }
.ws-view-list .ws-card__article-code { color: #334155; }
.ws-view-list .ws-card__stock-list {
  display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15;
}
.ws-view-list .ws-card__stock-list-num { font-size: 15px; color: #0f9b5e; }
.ws-view-list .ws-card__stock-list-cap { font-size: 14px; color: #334155; }
.ws-view-list .ws-card__stock-list.is-low .ws-card__stock-list-num { color: #ef4444; }
.ws-view-list .ws-card__stock-list.is-waiting .ws-card__stock-list-num { color: #ea580c; }

/* Название + оптовая цена — одной колонкой, по центру по вертикали */
.ws-view-list .ws-card__content {
  grid-area: name; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px; min-width: 0; padding: 0;
}
.ws-view-list .ws-card__listname {
  display: block; text-align: center; color: #0f172a; line-height: 1.3;
  font-size: 15px; overflow-wrap: anywhere;
}
.ws-view-list .ws-card__price-block {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.ws-view-list .ws-price-row { flex-direction: column; align-items: center; gap: 0; }
.ws-view-list .ws-price-row__label { font-size: 15px; color: #0f172a; }
.ws-view-list .ws-price-row__value { font-size: 15px; }

/* Количество (справа, по центру по вертикали) */
.ws-view-list .ws-qty {
  grid-area: qty; justify-self: end; align-self: center;
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff;
}
.ws-view-list .ws-card__bottom > .ws-qty { justify-self: end; }
.ws-view-list .ws-qty button { width: 36px; height: 36px; font-size: 18px; }
.ws-view-list .ws-qty input {
  width: 46px; height: 36px; font-size: 15px;
  border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; border-radius: 0;
}

@media (max-width: 900px) {
  .ws-view-list .ws-card { column-gap: 14px; grid-template-columns: 104px minmax(96px,130px) minmax(0,1fr) auto; }
  .ws-view-list .ws-card__img { width: 92px; height: 92px; }
  .ws-view-list .ws-card__img img { max-height: 86px; }
}

@media (max-width: 640px) {
  /* Сохраняем 4 колонки (фото | артикул+остаток | название+цена | кол-во),
     просто ужимаем — как на эталонном мобильном макете. */
  .ws-view-list .ws-card {
    grid-template-columns: 60px minmax(72px, 94px) minmax(0, 1fr) auto;
    column-gap: 10px; row-gap: 2px; padding: 10px 8px;
  }
  .ws-view-list .ws-card__img { width: 58px; height: 58px; }
  .ws-view-list .ws-card__img img { max-height: 54px; }
  .ws-view-list .ws-card__video svg,
  .ws-view-list .ws-card__video--vk img { width: 22px; height: 22px; }
  .ws-view-list .ws-card__videos { gap: 6px; }
  .ws-view-list .ws-card__video { font-size: 12px; gap: 3px; }
  .ws-view-list .ws-card__article { font-size: 12px; }
  .ws-view-list .ws-card__listname { font-size: 13px; }
  .ws-view-list .ws-price-row__label { font-size: 12px; }
  .ws-view-list .ws-price-row__value { font-size: 13px; }
  .ws-view-list .ws-card__stock-list-num { font-size: 14px; }
  .ws-view-list .ws-card__stock-list-cap { font-size: 12px; }
  .ws-view-list .ws-qty { flex-direction: column-reverse; }
  .ws-view-list .ws-qty button { width: 44px; height: 34px; font-size: 20px; }
  .ws-view-list .ws-qty input { width: 44px; height: 34px; border-left: 0; border-right: 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
  .ws-viewmode { grid-template-columns: 1fr; }
}

/* ===== Тост (ошибки кратности и пр.) ===== */
.ws-toast {
  position: fixed; top: 16px; right: 16px; left: auto; bottom: auto;
  transform: translateY(-10px);
  background: #0f172a; color: #fff; padding: 11px 16px; border-radius: 10px;
  font-size: 14px; line-height: 1.3; max-width: min(360px, 92vw); text-align: left;
  box-shadow: 0 8px 24px rgba(15,23,42,.3); z-index: 10001;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.ws-toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== На мобильном: не показывать текст «Нет фото» (оставляем только иконку) ===== */
@media (max-width: 640px) {
  .ws-card__img-empty { font-size: 0; gap: 0; }
  .ws-card__img-empty svg { width: 30px; height: 30px; }
}

/* ===== Десктоп: компактные строки корзины (видно больше позиций) ===== */
@media (min-width: 768px) {
  .ws-modal__box--cart .ws-cart-item { padding: 6px 0; gap: 10px; }
  .ws-modal__box--cart .ws-cart-item__img { flex-basis: 38px; width: 38px; height: 38px; }
  .ws-modal__box--cart .ws-cart-item__main { gap: 8px; }
  .ws-modal__box--cart .ws-cart-item__qty-wrap { flex-direction: row; gap: 6px; }
  .ws-modal__box--cart .ws-cart-item__unit { display: none; }
  .ws-modal__box--cart .ws-cart-item__name { font-size: 13px; }
  .ws-modal__box--cart .ws-cart-item__meta { margin-top: 0; }
}


/* ===== Десктоп: двухколоночная корзина (список слева, оформление справа) ===== */
@media (min-width: 768px) {
  .ws-modal__box--cart {
    max-width: 1080px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "head head"
      "list side"
      "tot  side";
  }
  .ws-modal__box--cart .ws-modal__header { grid-area: head; position: static; }
  .ws-modal__box--cart .ws-modal__body { grid-area: list; min-height: 0; }
  .ws-modal__box--cart .ws-modal__footer { display: contents; }
  .ws-modal__box--cart .ws-cart-total-row {
    grid-area: tot; margin: 0; padding: 14px 20px; border-top: 1px solid #e2e8f0;
  }
  .ws-modal__box--cart .ws-cart-side {
    grid-area: side; min-height: 0; overflow-y: auto;
    border-left: 1px solid #e2e8f0; padding: 16px 20px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .ws-modal__box--cart .ws-cart-side .ws-cart-actions { flex-direction: column; gap: 10px; margin-bottom: 4px; }
  .ws-modal__box--cart .ws-cart-side .ws-cart-action { flex: 0 0 auto; width: 100%; }
}

/* ===== Быстрые теги (залпы / калибр) над листингом ===== */
.ws-quick-tags {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; overflow-y: hidden;
  max-width: 1400px; margin: 0 auto; padding: 24px 0 0 0;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  scroll-padding-left: 12px;
}
.ws-quick-tags:empty { display: none; }
.ws-quick-tags::-webkit-scrollbar { height: 6px; }
.ws-quick-tags::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.ws-quick-tags::-webkit-scrollbar-track { background: transparent; }
.ws-quick-tag {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  background: #e2e8f0; color: #334155; border: 0; border-radius: 999px;
  padding: 7px 14px; font-size: 14px; line-height: 1.1;
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ws-quick-tag:hover { background: #cbd5e1; }
.ws-quick-tag.is-active { background: #0284c7; color: #fff; }
@media (max-width: 640px) {
  .ws-quick-tags { padding: 0 18px 12px; gap: 6px; }
  .ws-quick-tag { padding: 6px 12px; font-size: 13px; }
}


/* ===== Чекбокс настроек (Отображать теги фильтрации) ===== */
.ws-setting-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f7;
  color: #0f172a; font-size: 15px;
}
.ws-setting-check input { width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; accent-color: #0284c7; }

/* ===== Описание категории перед листингом ===== */
.ws-cat-desc {
  margin: 17px 0 10px; padding: 14px 16px;
  background: #fff; border: 1px solid #e8edf3; border-radius: 14px;
  color: #334155; font-size: 15px; line-height: 1.55;
}
/* Когда описание стоит перед сеткой — убираем её верхний отступ, чтобы
   расстояние до первой карточки задавал только margin описания (14px). */
.ws-cat-desc + .ws-grid { padding-top: 0; }
.ws-cat-desc > *:first-child { margin-top: 0; }
.ws-cat-desc > *:last-child { margin-bottom: 0; }
.ws-cat-desc p { margin: 0 0 10px; }
.ws-cat-desc a { color: #0284c7; text-decoration: none; word-break: break-word; }
.ws-cat-desc a:hover { text-decoration: underline; }
.ws-cat-desc ul, .ws-cat-desc ol { margin: 0 0 10px; padding-left: 22px; }
.ws-cat-desc img { max-width: 100%; height: auto; border-radius: 8px; }
/* В режиме «Все товары» (flat) описание занимает всю ширину перед товарами категории */
.ws-all-wrap.is-flat .ws-cat-desc { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) {
  .ws-cat-desc { margin: 0px 0 14px; padding: 12px 14px; font-size: 14px; }
}

/* ===== Краткое описание категории в карточке товара (перед ws-usp) ===== */
.ws-cat-card-desc {
  /* max-width: 1200px; */
  /* margin: 18px auto 0; */
 
  color: #334155;
  font-size: 15px;
  line-height: 1.3;
}
.ws-cat-card-desc > *:first-child { margin-top: 0; }
.ws-cat-card-desc > *:last-child { margin-bottom: 0; }
.ws-cat-card-desc p { margin: 0 0 10px; }
.ws-cat-card-desc a { color: #0284c7; text-decoration: none; word-break: break-word; }
.ws-cat-card-desc a:hover { text-decoration: underline; }
.ws-cat-card-desc ul, .ws-cat-card-desc ol { margin: 0 0 10px; padding-left: 22px; }
