

/* Start:/local/templates/beautyvit-v1/assets/css/auth-modal.css?17874242555490*/
/* Модальное окно авторизации */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.auth-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-loader {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Форма авторизации */
.auth-form-container {
    padding: 30px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

/* .form-control изолирован в контексте модалки (Фаза 1A),
   чтобы глобальный селектор не ломал .input-group поиска. */
.auth-form-container .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form-container .form-control:focus {
    outline: none;
    border-color: #0073aa;
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-auth-submit:hover {
    background: #005a87;
}

.auth-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 13px;
}

.auth-remember {
    cursor: pointer;
}

.auth-remember input {
    margin-right: 5px;
}

.auth-forgot {
    color: #0073aa;
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-register {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-register a {
    color: #0073aa;
    text-decoration: none;
}

.auth-error {
    background: #f2dede;
    color: #a94442;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

.captcha-row {
    margin: 15px 0;
}

.captcha-row img {
    display: block;
    margin-bottom: 10px;
}

/* Адаптив для телефонов */
@media (max-width: 576px) {
    .auth-form-container {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 20px;
    }
}

/* Соцвход через Яндекс в модалке входа */
.auth-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 12px;
    color: #999;
    font-size: 13px;
}

.auth-social-divider::before,
.auth-social-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e5e5;
}

/* Кнопка «Войти с Яндекс ID» — эталон конструктора Яндекс ID
   Параметры: view=button, buttonSize=m, buttonView=main,
   buttonTheme=light, buttonBorderRadius=10, buttonIcon=ya.
   Слева фиксированный лого-блок: красная буква «Я» + чёрный вордмарк «яндекс»;
   справа гибкий текст. Flow не менялся: штатный Bitrix socialservices
   authorization code flow; класс .btn-auth-yandex использует auth-modal.js. */
.ya-auth-wrap {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.btn-auth-yandex {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 0 20px;
    background: #fff;
    color: #000;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    min-height: 46px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* Лого-блок: фиксированная область слева, строго по центру содержимое */
.btn-auth-yandex__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.btn-auth-yandex__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Текстовая часть: гибкая, по центру */
.btn-auth-yandex__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-auth-yandex:hover {
    background: #f2f2f2;
    color: #000;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* End */


/* Start:/local/templates/beautyvit-v1/styles.css?1787817850122768*/
/* ═══════════════════════════════════════════════════
   BeautyVit — Системные токены v2 (reference-aligned)
   ═══════════════════════════════════════════════════ */
:root {
  /* Original container (restored) */
  --container-width: 1470px;
  --container-padding: 20px;

  /* Header/footer container */
  --header-container-width: 1470px;

  /* Colors - current palette */
  --bg-main: #FFFFFF;
  --bg-soft: #F8F7F4;
  --bg-soft-2: #F2EFEA;
  --text-main: #222222;
  --text-secondary: #6B6B6B;
  --border: #E7E3DD;
  --border-strong: #D8D4CE;
  --accent-dark: #1F1F1F;
  --accent-hover: #000000;

  /* Layout */
  --header-top-height: 72px;
  --header-bottom-height: 52px;

  /* Typography — restored to original for global scope */
  --font-family: 'Open Sans', Arial, sans-serif;

  /* Legacy: keep for backward compat (ORIGINAL values) */
  --color-text: #1f2a37;
  --color-muted: #667085;
  --color-border: #e5e7eb;
  --color-divider: #eceff3;
  --color-surface: #ffffff;
  --color-accent: #188b30;
  --color-accent-hover: #146b25;
  --color-bg-soft: #f3f6f8;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-focus: 0 0 0 3px rgba(24, 139, 48, 0.12);
  --transition: 180ms ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Open Sans на все элементы (переопределяет Bootstrap) */
body, body * {
  font-family: 'Open Sans', Arial, sans-serif !important;
}

a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-accent); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ═══════════════════════ HEADER — REFERENCE STYLE ═══════════ */
.site-header {
  background: #fff;
}

.site-header__desktop {
  display: block;
}

.site-header__top {
  padding: 0;
  background: #fff;
  height: 104px;
}

.site-header__container {
  width: 100%;
  max-width: 1470px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.site-nav {
  background: #424F60;
}

.site-service--phone {
  white-space: nowrap;
}

/* ═══ Inline SVG icons in header service links ═══ */
.site-header__service-link .site-icon {
  color: #222;
  flex-shrink: 0;
  display: block;
}

/* ═══ FLEXBOX ЛЕЙАУТ ШАПКИ (reference-aligned) ═══ */
.site-header__row {
  display: flex;
  align-items: center;
  height: 104px;
  gap: 0;
}

.site-header__col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.site-header__col--logo {
  width: 210px;
  min-width: 210px;
  flex-shrink: 0;
  padding-right: 20px;
}

.site-header__col--search {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  padding-right: 20px;
}

.site-header__col--phone {
  width: 160px;
  flex-shrink: 0;
  padding: 0 8px;
  justify-content: flex-end;
}

.site-header__col--cabinet {
  width: 155px;
  flex-shrink: 0;
  padding: 0 4px;
}

.site-header__col--delayed {
  width: 140px;
  flex-shrink: 0;
  padding: 0 4px;
}

.site-header__col--basket {
  width: 130px;
  flex-shrink: 0;
  padding: 0 4px;
}

.site-header__col--cabinet .site-header__service-link,
.site-header__col--delayed .site-header__service-link,
.site-header__col--basket .site-header__service-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 40px;
}

.site-header__service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #222;
  min-height: 40px;
}

.site-header__service-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-header__service-link svg {
  display: block;
  width: 22px;
  height: 21px;
  flex-shrink: 0;
}

.site-header__service-link svg path {
  fill: #222;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-header__search {
  width: 100%;
}

.site-search {
  width: 100%;
}

.site-search__field {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.site-search__input {
  width: 100%;
  height: 40px;
  border: 1px solid #eee;
  border-radius: 3px;
  background: #f5f5f5;
  padding: 0 44px 0 17px;
  font-size: 14px;
  line-height: 40px;
  color: #444;
  outline: none;
}

.site-search__input::placeholder {
  color: #777;
  opacity: 1;
}

.site-search__submit {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 35px;
  height: 31px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: transparent;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.site-search__submit i {
  font-size: 16px;
  line-height: 1;
}

.site-search__submit:hover {
  opacity: 0.7;
}

.site-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  text-decoration: none;
  color: #222;
}

.site-service:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-service__info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-service__label {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.site-service__value {
  font-size: 13px;
  color: #222;
  font-weight: 600;
}

.site-service__count {
  margin-left: 2px;
  font-weight: 600;
}

.site-service__prices {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.site-service--phone {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav .site-header__container {
  padding-left: 30px;
  padding-right: 30px;
}

.site-nav__table {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__cell--catalog {
  width: 258px;
  flex: 0 0 258px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__cell:last-child {
  border-right: none;
}

.site-nav__catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 4px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav__catalog-link:hover {
  color: #fff;
  text-decoration: none;
}

.site-nav__catalog-text {
  font-size: 15px;
  font-weight: 700;
  margin-left: 6px;
  flex: 1 1 auto;
  text-align: left;
}

.site-nav__catalog-arrow {
  display: inline-flex;
  align-items: center;
}

/* Бургер-иконка — три полоски */
.site-nav__catalog-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 14px;
  height: 11px;
  flex-shrink: 0;
}

.site-nav__catalog-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.site-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav__item:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
}

/* ═══════════════════════ FOOTER — REFERENCE ALIGNED ═══════════ */
.site-footer {
  background: #F3F0EB;
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  padding: 48px 0 36px;
}
.site-footer__inner-container {
  width: 100%;
  max-width: var(--header-container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 32px;
}
.site-footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px;
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__links li { margin-bottom: 4px; }
.site-footer__links a {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-main);
  text-decoration: none;
}
.site-footer__links a:hover { text-decoration: underline; }

/* Подписка */
.subscribe-block { margin-bottom: 28px; }
.subscribe-block__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 16px;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.subscribe-form__input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-main);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}
.subscribe-form__input::placeholder { color: var(--text-secondary); }
.subscribe-form__btn {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 4px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.subscribe-form__btn:hover { background: #111111; }

/* Sender subscribe (штатный компонент, вписан в дизайн футера) */
.bx-subscribe .bx-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bx-subscribe .bx-form-control {
  flex: 1;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-main);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}
.bx-subscribe .bx-form-control::placeholder { color: var(--text-secondary); }
.bx-subscribe .sender-btn.btn-subscribe {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 4px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.bx-subscribe .sender-btn.btn-subscribe:hover { background: #111111; }
.bx-subscribe .bx-subscribe-desc,
.bx-subscribe .bx_subscribe_checkbox_container {
  font-size: 14px;
  color: var(--text-main);
  margin: 8px 0 0;
}
.bx-subscribe .bx-subscribe-desc + .bx_subscribe_checkbox_container,
.bx-subscribe .bx_subscribe_checkbox_container + .bx_subscribe_checkbox_container { margin-top: 4px; }

/* Один унифицированный focus-стиль для интерактивных элементов футера */
.site-footer a:focus-visible,
.site-footer .subscribe-form__input:focus-visible,
.bx-subscribe .bx-form-control:focus-visible,
.bx-subscribe .sender-btn.btn-subscribe:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* Соцсети */
.social-block { margin-bottom: 16px; }
.social-block__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px;
}
.social-list {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
}
.social-list a:hover { opacity: 0.7; }

/* Соцсети — icon-buttons (редактируемый блок social.php) */
.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.site-footer__social-link:hover {
  border-color: var(--accent-dark);
  background: var(--bg-soft-2);
  color: var(--accent-dark);
  text-decoration: none;
}
.site-footer__social-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.site-footer__social-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}
.site-footer__social-max {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
}

/* Скрытый текст для screen readers (аналог .visually-hidden, изолированный класс) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Контакты */
.contacts-block { margin-bottom: 16px; }
.contacts-block__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px;
}
.contacts-block__phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
}
.contacts-block__email,
.contacts-block__address {
  font-size: 14px;
  color: var(--text-main);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}
.contacts-block__address {
  color: var(--text-secondary);
}
.contacts-block__email:hover,
.contacts-block__phone:hover { text-decoration: underline; }

.copyright-text {
  font-size: 14px;
  color: #5A5A5A;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════ ADAPTIVE ═══════════ */

@media (max-width: 1199px) {
  .site-header__col--logo { width: 210px; min-width: 210px; flex: 0 0 210px; }
  .site-header__col--search { 
    flex: 1 1 auto; 
    min-width: 0; 
    overflow: hidden; 
    max-width: calc(100% - 390px);
  }
  .site-header__col--search .site-search__input { padding: 0 28px 0 6px; font-size: 12px; }
  .site-header__col--search .site-search__submit { width: 22px; }
  .site-header__col--phone { width: auto; padding: 0 4px; flex: 0 0 auto; }
  .site-header__col--phone a { font-size: 12px; }
  .site-header__col--cabinet,
  .site-header__col--delayed,
  .site-header__col--basket { width: auto; min-width: 26px; padding: 0 2px; flex: 0 0 30px; }
  .site-service--phone { font-size: 14px; }
  .site-nav__item, .site-nav__catalog-link { font-size: 13px; }
  
  /* Hide text labels, show only icons on narrow screens */
  .site-header__col--cabinet .site-service__info,
  .site-header__col--delayed .site-service__info,
  .site-header__col--basket .site-service__info {
    display: none;
  }
}

@media (max-width: 991px) {
  .site-header__desktop { display: none; }
}

/* Tablet 768-1023px */
@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Mobile <768px */
@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts-block__email,
  .contacts-block__address {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .bx-subscribe .bx-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .bx-subscribe .bx-form-control,
  .bx-subscribe .sender-btn.btn-subscribe {
    width: 100%;
  }
  .social-list {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════ Legacy catalog styles (kept) ═══════════ */
.catalog-section { margin-bottom: 40px; }
.catalog-section__empty { text-align: center; padding: 48px 0; color: var(--color-muted); }

.catalog-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.catalog-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}
.catalog-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.catalog-item__img-wrap {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  padding: 12px;
}
.catalog-item__img-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.catalog-item__img { max-width: 85%; max-height: 100%; object-fit: contain; display: block; }

.catalog-item__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  height: 20px;
  display: flex;
  align-items: center;
}
.catalog-item__badge--hit { background: #c78b2a; }
.catalog-item__badge--new { background: #222222; }
.catalog-item__badge--discount { left: auto; right: 8px; background: #e53935; }

.catalog-item__body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-item__name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  margin-bottom: 8px;
  flex: 1;
}
.catalog-item__name:hover { color: var(--accent-dark); }

.catalog-item__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.catalog-item__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.catalog-item__price-old {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: line-through;
}

.catalog-item__add {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.catalog-item__add:hover { background: var(--accent-hover); }
.catalog-item__add:disabled { opacity: 0.6; cursor: default; }

.catalog-pagination { margin-top: 32px; }

/* Фильтр каталога */
.catalog-filter {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.catalog-filter__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.catalog-filter__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
.catalog-filter__form { padding: 0; }
.catalog-filter__block {
  border-bottom: 1px solid var(--color-divider);
}
.catalog-filter__block:last-child { border-bottom: none; }
.catalog-filter__block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.catalog-filter__block-title:hover { background: var(--color-bg-soft); }
.catalog-filter__arrow {
  transition: transform var(--transition);
  flex-shrink: 0;
}
.catalog-filter__block-title--open .catalog-filter__arrow {
  transform: rotate(180deg);
}
.catalog-filter__block-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease;
  padding: 0 16px;
}
.catalog-filter__block-title--open + .catalog-filter__block-body {
  max-height: 500px;
  padding-bottom: 12px;
}
.catalog-filter__price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
}
.catalog-filter__price-input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}
.catalog-filter__price-input:focus { border-color: var(--accent-dark); }
.catalog-filter__price-sep { color: var(--color-muted); font-size: 13px; }
.catalog-filter__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text);
  position: relative;
}
.catalog-filter__label--disabled { opacity: 0.4; cursor: default; }
.catalog-filter__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.catalog-filter__checkmark {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.catalog-filter__checkbox:checked ~ .catalog-filter__checkmark {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.catalog-filter__checkbox:checked ~ .catalog-filter__checkmark::after {
  content: "";
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}
.catalog-filter__label-text { line-height: 1.3; }
.catalog-filter__label-count { color: var(--color-muted); font-size: 12px; }
.catalog-filter__actions {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--color-divider);
}
.catalog-filter__btn {
  height: 36px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-filter__btn--apply {
  background: #30343a;
  color: #fff;
}
.catalog-filter__btn--apply:hover { background: #3a3f46; }
.catalog-filter__btn--apply:active { background: #272b31; }
.catalog-filter__btn--reset {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}
.catalog-filter__btn--reset:hover { background: var(--color-bg-soft); color: var(--color-text); }

/* Layout каталога (фильтр + товары) */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.catalog-layout__filter { position: sticky; top: 24px; }
.catalog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider);
}
.catalog-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-sort__label {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
}
.catalog-sort__link {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition);
}
.catalog-sort__link:hover { color: var(--color-text); background: var(--color-bg-soft); }
.catalog-sort__link--active {
  color: #fff;
  background: var(--accent-dark);
}
.catalog-sort__link--active:hover { color: #fff; background: var(--accent-hover); }

/* Адаптив каталога */
@media (max-width: 1199px) { .catalog-items-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-layout__filter { position: static; }
}
@media (max-width: 767px) { .catalog-items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .catalog-items-grid { grid-template-columns: 1fr; } }

/* Хлебные крошки */
.breadcrumbs-wrapper { background: #fff; padding: 10px 0; }
.breadcrumb { margin: 0; font-size: 12px; background: transparent; }
.breadcrumb-item a { color: var(--color-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent-dark); }
.breadcrumb-item.active { color: var(--color-text); }

.main-content { min-height: 400px; padding: 32px 0; }
.main-content h1 { font-size: 28px; font-weight: 600; margin-bottom: 24px; color: var(--color-text); }
.main-content h2 { font-size: 28px; font-weight: 600; margin-bottom: 24px; color: var(--color-text); }
.main-content--home { display: block; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ═══════════════════════ Список разделов каталога ═══════════ */
.catalog-page--sections { margin-bottom: 32px; }
.catalog-page__title { font-size: 28px; font-weight: 600; margin-bottom: 24px; color: var(--color-text); }

.catalog-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.catalog-sections-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 108px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}

.catalog-sections-card:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.catalog-sections-card__inner {
  width: 100%;
  min-height: 108px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.catalog-sections-card__img-wrap {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-sections-card__img {
  display: block;
  max-width: 52px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.catalog-sections-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.catalog-sections-card__name {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

.catalog-sections-card__count {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-muted);
}

.catalog-sections-card:hover .catalog-sections-card__name { color: var(--accent-dark); }

.catalog-sections-card--no-imagee .catalog-sections-card__inner {
  gap: 0;
}

.catalog-sections-card--no-imagee .catalog-sections-card__body {
  width: 100%;
}

@media (max-width: 1200px) {
  .catalog-sections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .catalog-sections-card,
  .catalog-sections-card__inner {
    min-height: 92px;
  }

  .catalog-sections-card__inner {
    padding: 12px;
  }

  .catalog-sections-card__name {
    font-size: 14px;
  }

  .catalog-sections-card__img-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .catalog-sections-card__img {
    max-width: 44px;
    max-height: 44px;
  }
}

/* ═══════════════════════ Детальная карточка товара ═══════════ */
.bv-detail { margin-bottom: 64px; }
.bv-detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.bv-detail__gallery-main {
  position: relative;
  background: #fafbfc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.bv-detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bv-detail__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
}
.bv-detail__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.bv-detail__thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  background: #fff;
  transition: border-color var(--transition);
}
.bv-detail__thumb.active { border-color: var(--accent-dark); }
.bv-detail__thumb:hover { border-color: var(--accent-dark); }
.bv-detail__brand {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bv-detail__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 12px;
}
.bv-detail__article {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 20px;
}
.bv-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.bv-detail__price-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}
.bv-detail__price-old {
  font-size: 16px;
  color: var(--color-muted);
  text-decoration: line-through;
}
.bv-detail__discount-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  padding: 2px 10px;
  border-radius: 12px;
}
.bv-detail__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.bv-detail__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.bv-detail__qty-btn {
  width: 38px;
  height: 42px;
  border: none;
  background: var(--color-bg-soft);
  cursor: pointer;
  font-size: 18px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.bv-detail__qty-btn:hover { background: #e8edf0; }
.bv-detail__qty-input {
  width: 48px;
  height: 42px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  outline: none;
  -moz-appearance: textfield;
}
.bv-detail__qty-input::-webkit-outer-spin-button,
.bv-detail__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bv-detail__cart-btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bv-detail__cart-btn:hover { background: var(--accent-hover); }
.bv-detail__cart-btn:disabled { opacity: 0.6; cursor: default; }
.bv-detail__cart-btn--done { background: #16a34a !important; }
.bv-detail__fav-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.bv-detail__fav-btn:hover { color: #e53935; border-color: #e53935; }
.bv-detail__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Торговые предложения */
.bv-detail__offers {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
}
.bv-detail__offers-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}
.bv-detail__offers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bv-detail__offer-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: box-shadow var(--transition);
}
.bv-detail__offer-item:hover { box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.bv-detail__offer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bv-detail__offer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-detail__offer-color {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.bv-detail__offer-sku {
  font-size: 11px;
  color: var(--color-muted);
}
.bv-detail__offer-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.bv-detail__offer-cart {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bv-detail__offer-cart:hover { background: var(--accent-hover); }
.bv-detail__offer-cart:disabled { opacity: 0.6; cursor: default; }
.bv-detail__offer-cart.bv-detail__cart-btn--done { background: #16a34a !important; }
@media (max-width: 480px) {
  .bv-detail__offer-item { grid-template-columns: 1fr; gap: 8px; }
  .bv-detail__offer-price { text-align: left; }
  .bv-detail__offer-cart { width: 100%; }
}

/* Табы */
.bv-detail__tabs {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.bv-detail__tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}
.bv-detail__tab-btn {
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.bv-detail__tab-btn:hover { color: var(--color-text); }
.bv-detail__tab-btn.active {
  color: var(--accent-dark);
  background: #fff;
}
.bv-detail__tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-dark);
}
.bv-detail__tab-count {
  font-size: 12px;
  color: var(--color-muted);
  margin-left: 4px;
}
.bv-detail__tabs-content { background: #fff; }
.bv-detail__tab-pane {
  display: none;
  padding: 24px;
}
.bv-detail__tab-pane.active { display: block; }
.bv-detail__fulltext { font-size: 14px; line-height: 1.7; color: var(--color-text); }
.bv-detail__props-table {
  width: 100%;
  border-collapse: collapse;
}
.bv-detail__props-table tr { border-bottom: 1px solid var(--color-divider); }
.bv-detail__props-table tr:last-child { border-bottom: none; }
.bv-detail__prop-name {
  padding: 10px 16px 10px 0;
  color: var(--color-muted);
  font-size: 13px;
  width: 240px;
}
.bv-detail__prop-val {
  padding: 10px 0;
  font-size: 13px;
  color: var(--color-text);
}
.bv-detail__reviews-placeholder {
  text-align: center;
  padding: 32px 0;
  color: var(--color-muted);
}
.bv-detail__review-btn {
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.bv-detail__review-btn:hover { background: var(--accent-hover); }
.bv-detail__similar-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}
.bv-detail__similar-placeholder {
  padding: 32px;
  text-align: center;
  color: var(--color-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}
@media (max-width: 767px) {
  .bv-detail__top { grid-template-columns: 1fr; gap: 24px; }
  .bv-detail__gallery-main { height: 300px; }
  .bv-detail__title { font-size: 20px; }
  .bv-detail__price-current { font-size: 22px; }
  .bv-detail__actions { flex-wrap: wrap; }
  .bv-detail__cart-btn { min-width: 180px; }
  .bv-detail__tab-btn { padding: 12px 16px; font-size: 13px; }
}

/* ═══════════════════════ Корзина ═══════════ */
.bv-cart { margin-bottom: 64px; }
.bv-cart__title { font-size: 28px; font-weight: 600; color: var(--color-text); margin-bottom: 32px; }
.bv-cart__empty { text-align: center; padding: 64px 20px; }
.bv-cart__empty-icon { margin-bottom: 16px; }
.bv-cart__empty-title { font-size: 20px; font-weight: 600; color: var(--color-text); margin: 0 0 8px; }
.bv-cart__empty-desc { color: var(--color-muted); margin-bottom: 24px; }
.bv-cart__empty-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 28px;
  border-radius: 8px; background: var(--accent-dark); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background var(--transition);
}
.bv-cart__empty-btn:hover { background: var(--accent-hover); color: #fff; }
.bv-cart__content { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.bv-cart__items { display: flex; flex-direction: column; gap: 12px; }
.bv-cart__item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px; align-items: center; padding: 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface);
}
.bv-cart__item-img { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: #fafbfc; border-radius: 8px; overflow: hidden; }
.bv-cart__item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.bv-cart__item-noimg { width: 100%; height: 100%; background: var(--color-bg-soft); }
.bv-cart__item-name { font-size: 14px; font-weight: 600; color: var(--color-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bv-cart__item-name:hover { color: var(--accent-dark); }
.bv-cart__item-props { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bv-cart__item-prop { font-size: 12px; color: var(--color-muted); }
.bv-cart__qty { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; }
.bv-cart__qty-btn { width: 32px; height: 34px; border: none; background: var(--color-bg-soft); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--color-text); transition: background var(--transition); }
.bv-cart__qty-btn:hover { background: #e8edf0; }
.bv-cart__qty-input { width: 40px; height: 34px; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: center; font-size: 14px; font-weight: 600; color: var(--color-text); outline: none; -moz-appearance: textfield; }
.bv-cart__qty-input::-webkit-outer-spin-button, .bv-cart__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bv-cart__item-price { font-size: 16px; font-weight: 700; color: var(--color-text); white-space: nowrap; }
.bv-cart__item-del { width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-muted); transition: all var(--transition); }
.bv-cart__item-del:hover { color: #e53935; border-color: #e53935; }
.bv-cart__sidebar { position: sticky; top: 24px; }
.bv-cart__summary { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; background: var(--color-surface); }
.bv-cart__summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; color: var(--color-text); }
.bv-cart__summary-row--total { border-top: 1px solid var(--color-divider); margin-top: 8px; padding-top: 16px; font-size: 18px; font-weight: 700; }
.bv-cart__checkout-btn { display: flex; align-items: center; justify-content: center; height: 46px; width: 100%; border: none; border-radius: 8px; background: var(--accent-dark); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background var(--transition); margin-top: 16px; }
.bv-cart__checkout-btn:hover { background: var(--accent-hover); color: #fff; }
.bv-cart__continue-btn { display: flex; align-items: center; justify-content: center; height: 40px; width: 100%; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: var(--color-muted); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all var(--transition); margin-top: 8px; }
.bv-cart__continue-btn:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
@media (max-width: 767px) {
  .bv-cart__content { grid-template-columns: 1fr; }
  .bv-cart__item { grid-template-columns: 60px 1fr; gap: 12px; }
  .bv-cart__item-img { width: 60px; height: 60px; }
  .bv-cart__item-info { grid-column: 2; }
  .bv-cart__item-qty { grid-column: 1 / -1; }
  .bv-cart__item-price { grid-column: 1 / -1; text-align: right; }
  .bv-cart__item-del { position: absolute; top: 12px; right: 12px; }
  .bv-cart__item { position: relative; }
}

/* ═══════════════════════ Оформление заказа ═══════════ */
.bv-order { margin-bottom: 64px; }
.bv-order__title { font-size: 28px; font-weight: 600; color: var(--color-text); margin-bottom: 32px; }
.bv-order .bx-sop { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.bv-order .bx-sop .table { margin-bottom: 0; }
.bv-order .bx-sop th { background: var(--color-bg-soft); padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--color-text); }
.bv-order .bx-sop td { padding: 12px 16px; font-size: 13px; color: var(--color-text); }
.bv-order .bx-sop .btn-primary { background: var(--accent-dark); border-color: var(--accent-dark); }
.bv-order .bx-sop .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ═══════════════════════ Пагинация ═══════════ */
.bx-pagination .bx-pagination-container ul { justify-content: center; gap: 4px; }
.bx-pagination .bx-pagination-container ul li a,
.bx-pagination .bx-pagination-container ul li span {
  border-radius: 6px !important; border: 1px solid var(--color-border) !important;
  padding: 8px 13px !important; color: var(--color-text) !important; font-size: 13px !important;
}
.bx-pagination .bx-pagination-container ul li.bx-active span {
  background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; color: #fff !important;
}
.bx-pagination .bx-pagination-container ul li a:hover {
  border-color: var(--accent-dark) !important; color: var(--accent-dark) !important;
}

/* ═══════════════════════ CATALOG SHELL (layout) ═══════════ */
.catalog-shell {
  width: 100%;
}

.catalog-shell__inner {
  width: 100%;
}

.catalog-shell__sidebar {
  display: none; /* скрыт по умолчанию, USE_FILTER=N */
}

.catalog-shell__sidebar--hidden {
  display: none;
}

.catalog-shell__main {
  position: relative;
  width: 100%;
}

.catalog-shell__gifts {
  width: 100%;
}

.catalog-shell__sections {
  width: 100%;
  margin-bottom: 24px;
}

.catalog-shell__products {
    position: relative;
    width: 100%;
    min-height: 50px;
}

.catalog-shell__sidebar-secondary {
  width: 100%;
}

@media (max-width: 991px) {
  .catalog-shell__sidebar-secondary {
    display: none;
  }
}

/* ═══════════════════════ HOME SHOWCASE (главная) ═══════════ */
.home-showcase__container {
  width: 100%;
  max-width: 1470px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Section header (оба класса для совместимости) */
.home-showcase__section-head,
.home-showcase__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.home-showcase__section-head h2,
.home-showcase__section-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}
.home-showcase__section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}
.home-showcase__section-link:hover { text-decoration: underline; color: var(--color-accent-hover); }

/* ═══════════════════════ Разделитель между меню и hero ═══════════ */
.home-top__separator {
  height: 16px;
  background: #f9f9fa;
}

/* ═══════════════════════ ПЕРВЫЙ ЭКРАН (home-top) ═══════════ */
/* Изображение на всю высоту, controls поверх слайдов */
.home-top {
    width: 100%;
    padding: 0;
}

.home-top__container {
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.home-top__grey-block {
    background: #f3f3f3;
}

.home-top__banner-wrap {
    position: relative;
    width: 100%;
}

.home-top__slider {
    position: relative;
    height: 560px;
    min-height: 560px;
    overflow: hidden;
}

.home-top__slides {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-top__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home-top__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.home-top__slide-target {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.home-top__slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-top__slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-top__slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.03) 60%, transparent 100%);
    pointer-events: none;
}

.home-top__slide-content {
    position: absolute;
    left: 40px;
    bottom: 60px;
    z-index: 2;
    max-width: 420px;
    color: #fff;
    pointer-events: none;
}

.home-top__slide-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.home-top__slide-text {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 16px;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.home-top__slide-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    pointer-events: auto;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-top__slide-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Controls поверх слайдов */
.home-top__slider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 3;
}

.home-top__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.home-top__nav .home-top__control {
    pointer-events: auto;
}

.home-top__controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.home-top__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: auto;
}

.home-top__dots li { padding: 0; }

.home-top__control {
    border: 0;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    line-height: 38px;
    padding: 0;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    transition: background 180ms ease;
    pointer-events: auto;
}

.home-top__control:hover {
    background: rgba(255,255,255,0.4);
    color: #fff;
}

.home-top__dot {
    display: block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 180ms ease;
}

.home-top__dot:hover { background: rgba(255,255,255,0.85); }

.home-top__dot.is-active { background: #fff; }

.home-top__advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 12px 24px 16px;
}

.home-top__adv {
    width: calc(25% - 12px);
    padding: 0;
}

.home-top__adv-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 12px;
    background: transparent;
}

.home-top__adv-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-top__adv-icon img {
    display: block;
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.home-top__adv-text { flex: 1 1 auto; display: flex; align-items: center; }

.home-top__adv-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #222222;
    text-align: left;
}

/* Адаптив */
@media (max-width: 1199px) {
    .home-top__slider { height: 500px; min-height: 500px; }
}

@media (max-width: 991px) {
    .home-top__slider { height: 420px; min-height: 420px; }
    .home-top__slide-content { left: 30px; bottom: 50px; max-width: 320px; }
    .home-top__slide-title { font-size: 24px; }
    .home-top__adv { width: 50%; }
}

@media (max-width: 767px) {
    .home-top__slider { height: auto; min-height: 0; }
    .home-top__slide, .home-top__slide-inner, .home-top__slide-bg {
        position: relative;
        height: auto;
        min-height: 0;
    }
    .home-top__slide {
        position: absolute;
        inset: 0;
    }
    .home-top__slide.is-active {
        position: relative;
    }
    .home-top__slide-bg {
        aspect-ratio: 346 / 260;
        background-size: contain;
        background-position: center center;
        background-color: #f3f3f3;
        background-image: var(--m-bg) !important;
    }
    .home-top__slide-content { left: 16px; bottom: 16px; max-width: 260px; }
    .home-top__slide-title { font-size: 18px; }
    .home-top__slide-text { font-size: 13px; margin-bottom: 8px; }
    .home-top__slide-btn { padding: 8px 14px; font-size: 13px; }
    .home-top__controls { left: 16px; right: 16px; bottom: 12px; }
    .home-top__slider::after { display: none; }
    .home-top__adv { width: 50%; }
    .home-top__adv-title { font-size: 13px; }
}

@media (max-width: 479px) {
    .home-top__adv { width: 100%; }
}


/* Популярные категории — новый дизайн card-style */
.home-categories {
  padding: 36px 0 24px;
  border-bottom: 1px solid #ebebeb;
}

.home-categories__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.main-content .home-categories__title,
.home-categories__title {
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: #222222;
}

.home-categories__all {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  color: #888888;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-categories__all:hover {
  color: #444444;
  text-decoration: underline;
}

.home-categories__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Карточка категории */
.home-categories__card {
  background: #fff;
  border: 1px solid #e7e3dd;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-categories__card:hover {
  border-color: #222;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.home-categories__card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-categories__card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
}

.home-categories__card-icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.home-categories__card-name {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #222222;
  text-decoration: none;
}

.home-categories__card-name:hover {
  color: #000;
  text-decoration: underline;
}

.home-categories__card-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 60px; /* отступ от icon+name */
}

.home-categories__card-link {
  font-size: 13px;
  line-height: 1.4;
  color: #555555;
  text-decoration: none;
}

.home-categories__card-link:hover {
  color: #222222;
  text-decoration: underline;
}

/* Inline-вид подкатегорий: компактные "таблетки" в строку */
.home-categories__card-links--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-left: 60px;
}

.home-categories__card-links--inline .home-categories__card-link {
  font-size: 13px;
  padding: 2px 8px;
  border: 1px solid #e7e3dd;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
}

.home-categories__card-links--inline .home-categories__card-link:hover {
  border-color: #222;
  background-color: #f7f5f1;
  text-decoration: none;
}

@media (max-width: 767px) {
  .home-categories__cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-categories__card {
    padding: 16px;
  }
  .home-categories__card-name {
    font-size: 16px;
  }
  .home-categories__card-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .home-categories__card-icon img {
    width: 40px;
    height: 40px;
  }
  .home-categories__card-links {
    padding-left: 52px;
  }
}

/* 5. Товарный блок (reference-style) */
.home-products {
  padding: 34px 0 18px;
}

.home-products__top {
  margin-bottom: 18px;
}

.home-products__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #222222;
}

.home-products__tabs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 0 !important;
}

.home-products__tabs-item {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 18px 0 0 !important;
  padding: 0 !important;
}

.home-products__tabs-item:last-child {
  margin-right: 0 !important;
}

.home-products__tab {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #555555 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.home-products__tab.is-active,
.home-products__tab:hover {
  color: #222222 !important;
}

.home-products__tabs-item::after {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
}

.home-products__tabs-item:last-child::after {
  display: none !important;
}

.home-products__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 18px;
  align-items: start;
}

.home-products__grid .home-showcase__product-col {
  width: auto;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
  min-width: 0;
}

.home-products__more {
  margin-top: 22px;
  text-align: center;
}

.home-products__more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 26px;
  border: 1px solid #d8d4ce;
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
}

.home-products__more-link:hover {
  text-decoration: none;
  background: #f7f5f1;
}

/* Responsive: товарная сетка главной (catalog-item внутри grid) */
@media (max-width: 1199px) {
  .home-products__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .home-products__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .home-products__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 479px) {
  .home-products__grid { grid-template-columns: 1fr; }
}

/* Product card shared styles (used by both old and new grid) */
.home-showcase__product-card {
  height: 100%;
}

.home-showcase__product-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.home-showcase__product-image-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 14px;
}

.home-showcase__product-thumb {
  display: block;
  text-decoration: none;
}

.home-showcase__product-thumb img {
  display: inline-block;
  max-width: 85%;
  width: auto;
  height: auto;
}

.home-showcase__product-stickers {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.home-showcase__sticker {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.home-showcase__sticker--hit { background: #c78b2a; }
.home-showcase__sticker--new { background: #222222; }
.home-showcase__sticker--sale { background: #e53935; }

.home-showcase__product-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.home-showcase__product-top {
  margin-bottom: 12px;
}

.home-showcase__product-title {
  margin-bottom: 8px;
}

.home-showcase__product-title a {
  font-size: 14px;
  line-height: 1.35;
  color: #222222;
  text-decoration: none;
}

.home-showcase__product-title a:hover {
  text-decoration: underline;
}

.home-showcase__product-stock {
  font-size: 12px;
  line-height: 1.35;
  color: #2f8f2f;
}

.home-showcase__product-bottom {
  margin-top: auto;
  margin-bottom: 14px;
}

.home-showcase__product-price {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #222222;
}

.home-showcase__price-currency,
.home-showcase__price-measure {
  font-size: 13px;
  font-weight: 400;
}

.home-showcase__price-measure {
  color: #666666;
  margin-left: 3px;
}

/* 6. Блог (reference-style banner) */
.home-showcase__blog {
  padding: 42px 0 44px;
}

.home-showcase__blog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.home-showcase__blog-heading {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  color: #222222;
}

.home-showcase__blog-all {
  font-size: 14px;
  color: #222222;
  text-decoration: none;
}

.home-showcase__blog-all:hover {
  text-decoration: underline;
}

.home-showcase__blog-items {
  width: 100%;
}

.home-showcase__blog-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.home-showcase__blog-col {
  width: 25%;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

.home-showcase__blog-col--featured {
  width: 50%;
}

.home-showcase__blog-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-showcase__blog-inner {
  position: relative;
  min-height: 220px;
}

.home-showcase__blog-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62) 100%);
}

.home-showcase__blog-image {
  display: none;
}

.home-showcase__blog-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 20px;
}

.home-showcase__blog-caption a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.home-showcase__blog-caption a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .home-showcase__blog-col,
  .home-showcase__blog-col--featured {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .home-showcase__blog-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .home-showcase__blog-heading {
    font-size: 24px;
  }

  .home-showcase__blog-col,
  .home-showcase__blog-col--featured {
    width: 100%;
  }

  .home-showcase__blog-item,
  .home-showcase__blog-inner {
    min-height: 200px;
  }
}

/* 7. Бренды */
.home-showcase__brands {
  padding: 32px 0 40px;
  margin: 12px 0;
}

.home-showcase__brands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.home-showcase__brands-title {
  display: block;
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #222222;
}

.home-showcase__brands-all {
  font-size: 14px;
  color: #222222;
  text-decoration: none;
  font-weight: 500;
}

.home-showcase__brands-all:hover {
  text-decoration: underline;
}

.home-showcase__brands-list {
  width: 100%;
}

.home-showcase__brands-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.home-showcase__brands-col {
  width: 25%;
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

.home-showcase__brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  border: 1px solid #e7e3dd;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-showcase__brand-logo:hover {
  border-color: #222;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.home-showcase__brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.home-showcase__brand-logo:hover img {
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .home-showcase__brands-col {
    width: 50% !important;
    margin-bottom: 16px;
  }
  .home-showcase__brand-logo {
    height: 64px;
    padding: 8px;
  }
}

/* 8. Ранее смотрели (reference-style viewed block) */
.home-showcase__viewed {
  padding: 0 0 40px;
}

.home-showcase__viewed-block {
  width: 100%;
}

.home-showcase__viewed-title {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  color: #222222;
}

.home-showcase__viewed-outer {
  border: 1px solid #e7e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.home-showcase__viewed-track {
  display: flex;
  flex-wrap: nowrap;
}

.home-showcase__viewed-item {
  width: 20%;
  min-width: 0;
  padding: 15px;
  border-right: 1px solid #e7e3dd;
}

.home-showcase__viewed-item:last-child {
  border-right: 0;
}

.home-showcase__viewed-card {
  height: 100%;
}

.home-showcase__viewed-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 10px;
  overflow: hidden;
  text-decoration: none;
}

.home-showcase__viewed-image img {
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.home-showcase__viewed-name {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #222222;
  text-decoration: none;
}

.home-showcase__viewed-name:hover {
  text-decoration: underline;
}

.home-showcase__viewed-stock {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #2f8f2f;
}

.home-showcase__viewed-price {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #222222;
}

@media (max-width: 1199px) {
  .home-showcase__viewed-track {
    flex-wrap: wrap;
  }
  .home-showcase__viewed-item {
    width: 25%;
  }
}

@media (max-width: 991px) {
  .home-showcase__viewed-item {
    width: 33.3333%;
  }
}

@media (max-width: 767px) {
  .home-showcase__viewed-item {
    width: 50%;
  }
}

@media (max-width: 575px) {
  .home-showcase__viewed-item {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e7e3dd;
  }
  .home-showcase__viewed-item:last-child {
    border-bottom: 0;
  }
}

/* Адаптив home-top (legacy — replaced by newer rules above) */

@media (max-width: 1199px) {
  .home-showcase__product-col { width: 33.3333%; }
}
@media (max-width: 991px) {
  .home-showcase__product-col { width: 50%; }
}
@media (max-width: 767px) {
  .home-showcase__container { padding-left: 16px; padding-right: 16px; }
  .home-showcase__products-title { font-size: 24px; }
  .home-showcase__products-tabs { gap: 14px; }
  .home-showcase__product-col { width: 100%; }
  .home-showcase__brands-col { width: 50%; }
}


/* FIX Bitrix edit mode */
.bx-edit-area .home-products__grid,
.bx-incl-area .home-products__grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
}
.bx-edit-area .home-showcase__product-col,
.bx-incl-area .home-showcase__product-col {
    width: 100% !important;
    min-width: 0 !important;
}
.bx-edit-area .catalog-item,
.bx-incl-area .catalog-item {
    overflow: visible !important;
}
.bx-edit-area .site-nav__table,
.bx-incl-area .site-nav__table {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
.bx-edit-area .site-nav__cell,
.bx-incl-area .site-nav__cell {
    display: inline-flex !important;
    float: none !important;
    width: auto !important;
}
.bx-edit-area [id^="bx_incl_area_"],
.bx-incl-area [id^="bx_incl_area_"] {
    display: block !important;
}


/* ======================================== */
/* ФИКС: Обертка Bitrix внутри сетки товаров */
/* ======================================== */

.home-products__grid > [id^="bx_incl_area_"] {
    display: block !important;
    width: 100% !important;
}

.home-products__grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (max-width: 1199px) {
    .home-products__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .home-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 479px) {
    .home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

.home-showcase__product-col {
    width: 100% !important;
    min-width: 0 !important;
}

/* ======================================== */
/* Фикс позиции панели редактирования Bitrix */
/* ======================================== */

.home-showcase__container {
    position: relative !important;
}

[id^="bx_incl_area_"] {
    display: block !important;
    position: relative !important;
}

[id^="bx_incl_area_"] .bx-context-toolbar,
[id^="bx_incl_area_"] .bx-edit-toolbar,
[id^="bx_incl_area_"] > .bx-context-toolbar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

[id^="bx_incl_area_"][style*="display: none"] {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
/* ======================================== */
/* ГОРИЗОНТАЛЬНОЕ МЕНЮ (BEM-структура) */
/* Устойчиво к режиму редактирования Bitrix */
/* ======================================== */

.top-nav {
    background: #424F60;
    width: 100%;
    position: relative;
    z-index: 100;
}

.top-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.top-nav__item {
    flex: 1 1 0;
    min-width: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.top-nav__item:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.top-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 0 16px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.top-nav__link:hover,
.top-nav__link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.top-nav__link--active {
    background: rgba(255, 255, 255, 0.08);
    position: relative;
}

.top-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f39c12;
}

@media (max-width: 992px) {
    .top-nav__link {
        padding: 0 12px;
        font-size: 13px;
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .top-nav__list {
        flex-wrap: nowrap;
        min-width: 100%;
    }
    .top-nav__item {
        flex: 0 0 auto;
    }
    .top-nav__link {
        white-space: nowrap;
        padding: 0 12px;
        font-size: 12px;
        min-height: 44px;
    }
}
/* ======================================== */
/* КАТАЛОГ-ССЫЛКА В BEM-МЕНЮ */
/* ======================================== */

.top-nav__catalog {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.top-nav__catalog-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 55px;
    padding: 4px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.top-nav__catalog-link:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
}

.top-nav__catalog-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 14px;
    height: 11px;
    flex-shrink: 0;
}

.top-nav__catalog-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.top-nav__catalog-text {
    font-size: 15px;
    font-weight: 700;
}

.top-nav__catalog-arrow {
    display: inline-flex;
    align-items: center;
}

.top-nav .site-header__container {
    display: flex;
    align-items: stretch;
    padding-left: 30px;
    padding-right: 30px;
}
/* ======================================== */




/* ======================================== */
/* Этап 1: Меню под донора (#424F60, 60px, 1440px, разделители) */
/* ======================================== */

.top-nav {
    background: #424F60 !important;
    height: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: none !important;
}

.top-nav .top-nav {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

.top-nav__list {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 60px !important;
    list-style: none !important;
    flex: 1;
    justify-content: space-around;
}

.top-nav__item {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    text-align: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.top-nav__item:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.top-nav__link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
    padding: 20px 18px 25px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.2s ease !important;
    position: relative !important;
    width: 100%;
}

.top-nav__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.top-nav__catalog {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.15) !important;
    margin-right: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.top-nav__catalog-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 60px !important;
    padding: 20px 50px 25px 62px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: transparent !important;
    text-decoration: none !important;
}

.top-nav__catalog-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.top-nav__catalog-burger span {
    background: #fff !important;
}

.top-nav__catalog-arrow svg path {
    stroke: #fff !important;
}

.top-nav .site-header__container {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.top-nav .top-nav__list {
    display: flex !important;
    width: 100% !important;
}

.top-nav__link--active {
    background: rgba(255, 255, 255, 0.08) !important;
}

.top-nav__link--active::after {
    content: '';
    display: none !important;
}

@media (max-width: 992px) {
    .top-nav {
        height: auto !important;
        overflow-x: auto;
    }
    .top-nav__list {
        height: auto !important;
    }
    .top-nav__item,
    .top-nav__link,
    .top-nav__catalog {
        height: 50px !important;
    }
}

body.bx-edit-mode .top-nav,
body.bx-edit-mode .top-nav__item,
body.bx-edit-mode .top-nav__link,
body.bx-edit-mode .top-nav__catalog {
    height: 60px !important;
}
body.bx-edit-mode .top-nav__list {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Catalog PLP layout */
.catalog-plp {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.catalog-plp__subsections {
  margin-bottom: 4px;
}

.catalog-plp__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e9e9e9;
  background: #fafafa;
  margin-bottom: 4px;
}

.catalog-plp__toolbar:empty {
  display: none;
}

.catalog-plp__products {
  min-width: 0;
}

@media (max-width: 991px) {
  .catalog-plp {
    gap: 18px;
  }

  .catalog-plp__toolbar {
    padding: 12px 14px;
    flex-wrap: wrap;
  }
}


.catalog-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--border-strong);
}

.catalog-item__img-wrap {
    height: 168px;
}

.catalog-item__body {
    padding: 12px 14px 16px;
    gap: 6px;
}

.catalog-item__name {
    font-size: 14px;
    font-weight: 600;
}

.catalog-item__name a:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
    border-radius: 2px;
}

.catalog-item__price-row {
    gap: 10px;
}

.catalog-item__badge {
    font-size: 11px;
    padding: 3px 10px;
    height: 22px;
    border-radius: 12px;
}

.catalog-item__add {
    border-radius: 10px;
}

.catalog-item__add:active {
    transform: scale(0.98);
}

.catalog-item__add:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .catalog-item__img-wrap {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .catalog-item__img-wrap {
        height: 140px;
    }
}

/* ═══════════════════════ Toolbar (каталог) ═══════════ */
.catalog-shell__toolbar {
    width: 100%;
    margin: 0 0 18px;
}

.catalog-shell__toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.catalog-shell__toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog-shell__toolbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.catalog-shell__toolbar-label {
    font-size: 13px;
    color: var(--color-muted);
    white-space: nowrap;
}

.catalog-shell__toolbar-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.catalog-shell__toolbar-select {
    height: 32px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    font-size: 13px;
    line-height: 1.2;
    color: var(--color-text);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--transition);
}

.catalog-shell__toolbar-select:hover {
    border-color: var(--border-strong);
}

.catalog-shell__toolbar-select:focus {
    border-color: var(--accent-dark);
}

.catalog-shell__toolbar-submit {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 12px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.catalog-shell__toolbar-submit:hover {
    border-color: var(--accent-dark);
    color: var(--color-text);
}

.catalog-shell__toolbar-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.catalog-shell__toolbar-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-muted);
    background: var(--color-surface);
}

.catalog-shell__toolbar-view--active {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.catalog-shell__toolbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.catalog-shell__toolbar-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.catalog-shell__toolbar-link:hover {
    color: var(--color-text);
    background: var(--color-bg-soft);
    text-decoration: none;
}

.catalog-shell__toolbar-link.is-active {
    color: #fff;
    background: var(--accent-dark);
}

@media (max-width: 480px) {
    .catalog-shell__toolbar-label {
        display: none;
    }
}

/* Product card — meta/stock */
.catalog-item__meta {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.catalog-item__stock {
    font-size: 12px;
    line-height: 1.35;
    color: #2f8f2f;
}

.catalog-item__stock--empty {
    color: #e53935;
}

.catalog-item__img-wrap {
    overflow: hidden;
}

.catalog-item__img-link:hover .catalog-item__img {
    transform: scale(1.05);
    transition: transform 180ms ease;
}

#pagetitle {
    font-size: 30px;
    line-height: 1.18;
    font-weight: 400;
}

/* ===== HOME: Промо / Editorial блок ===== */
.home-promo { padding: 36px 0 40px; }
.home-promo__header { margin-bottom: 24px; text-align: center; }
.home-promo__title { font-size: 26px; font-weight: 600; color: #1f2a37; margin: 0 0 8px; }
.home-promo__subtitle { font-size: 15px; color: #667085; margin: 0; }
.home-promo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-promo__card {
    position: relative; display: flex; align-items: flex-end; min-height: 260px;
    border-radius: 12px; overflow: hidden; text-decoration: none;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    background-size: cover; background-position: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-promo__card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.home-promo__card-content {
    padding: 24px; width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.05) 0%, transparent 60%);
}
.home-promo__badge {
    display: inline-block; padding: 2px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700; color: #fff; background: #e53935;
    margin-bottom: 8px; text-transform: uppercase;
}
.home-promo__card-title { font-size: 18px; font-weight: 700; color: #1f2a37; margin: 0 0 4px; }
.home-promo__card-desc { font-size: 13px; color: #667085; margin: 0 0 8px; line-height: 1.4; }
.home-promo__card-link { font-size: 14px; font-weight: 600; color: #1f2a37; display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 991px) {
    .home-promo__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .home-promo__grid { grid-template-columns: 1fr; }
    .home-promo__card { min-height: auto; aspect-ratio: 346 / 260; }
}

/* ===== HOME: Подборки по задачам (curations) ===== */
.home-curations { padding: 48px 0; }
.home-curations__header { margin-bottom: 28px; text-align: center; }
.home-curations__title { font-size: 26px; font-weight: 600; color: #1f2a37; margin: 0 0 8px; }
.home-curations__subtitle { font-size: 15px; color: #667085; margin: 0; }
.home-curations__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-curations__card {
    position: relative; display: flex; align-items: flex-end; min-height: 260px;
    border-radius: 12px; overflow: hidden; text-decoration: none;
    background-size: cover; background-position: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-curations__card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.home-curations__card--dry { background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%); }
.home-curations__card--age { background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%); }
.home-curations__card--sensitive { background: linear-gradient(135deg, #e3f2fd 0%, #e0f7fa 100%); }
.home-curations__card--hair { background: linear-gradient(135deg, #fff3e0 0%, #fbe9e7 100%); }
.home-curations__card-content { padding: 24px; width: 100%; }
.home-curations__card-title { font-size: 18px; font-weight: 700; color: #1f2a37; margin: 0 0 4px; }
.home-curations__card-desc { font-size: 13px; color: #667085; margin: 0 0 8px; line-height: 1.4; }
.home-curations__card-link { font-size: 13px; font-weight: 600; color: #1f2a37; display: inline-flex; align-items: center; gap: 4px; }

/* ===== HOME: Новинки (заглушка) ===== */
.home-new { padding: 48px 0; }
.home-new__header { margin-bottom: 28px; text-align: center; }
.home-new__title { font-size: 26px; font-weight: 600; color: #1f2a37; margin: 0 0 8px; }
.home-new__subtitle { font-size: 15px; color: #667085; margin: 0; }
.home-new__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-new__placeholder {
    background: #fff; border-radius: 12px; padding: 20px; text-align: center;
    border: 1px solid #e5e7eb; transition: box-shadow 0.2s;
}
.home-new__placeholder:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.home-new__placeholder-img {
    width: 100%; aspect-ratio: 1 / 1; background: #f5f5f5; border-radius: 8px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #ccc;
}
.home-new__placeholder-name { font-size: 13px; font-weight: 500; color: #333; margin-bottom: 4px; }
.home-new__placeholder-price { font-size: 15px; font-weight: 700; color: #1f2a37; }

/* ===== HOME: Преимущества магазина (trust strip) ===== */
.home-benefits {
    padding: 28px 0;
    background: #f8f8f6;
    border-bottom: 1px solid #ebebeb;
}
.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.home-benefits__item {
    padding: 16px 12px;
    border: 1px solid #e7e3dd;
    border-radius: 10px;
    background: #fff;
}
.home-benefits__item-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}
.home-benefits__item-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
@media (max-width: 991px) {
    .home-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
    .home-benefits__grid { grid-template-columns: 1fr; }
}

/* ===== HOME: Карточки категорий (navigation blocks) ===== */
.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.home-category-card {
    border: 1px solid #e7e3dd;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-category-card:hover {
    border-color: #222;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.home-category-card__media {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-category-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.home-category-card__head {
    margin-bottom: 8px;
}
.home-category-card__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}
.home-category-card__title a {
    color: #222;
    text-decoration: none;
}
.home-category-card__title a:hover {
    text-decoration: underline;
}
.home-category-card__links {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 14px;
}
.home-category-card__links li {
    margin: 0;
    padding: 0;
}
.home-category-card__link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    line-height: 1.5;
}
.home-category-card__link:hover {
    color: #222;
    text-decoration: underline;
}
.home-category-card__more {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.home-category-card__more:hover {
    text-decoration: underline;
}
@media (max-width: 767px) {
    .home-categories__grid { grid-template-columns: 1fr; }
    .home-category-card { gap: 12px; padding: 14px; }
    .home-category-card__media { flex-basis: 60px; width: 60px; height: 60px; }
    .home-category-card__title { font-size: 18px; }
}

/* ===== HOME: Ссылка "Смотреть весь каталог" в хедерах секций ===== */
.home-products__top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.home-products__all-link { font-size: 13px; font-weight: 600; color: #1f2a37; text-decoration: none; white-space: nowrap; }
.home-products__all-link:hover { text-decoration: underline; }

/* Адаптив */
@media (max-width: 991px) {
    .home-curations__grid { grid-template-columns: repeat(2, 1fr); }
    .home-new__grid { grid-template-columns: repeat(2, 1fr); }
    .home-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .home-curations__grid { grid-template-columns: 1fr; }
    .home-new__grid { grid-template-columns: 1fr; }
    .home-benefits__grid { grid-template-columns: 1fr; }
    .home-curations__card { min-height: auto; aspect-ratio: 346 / 260; }
}

/* ═══════════════════════ MEGAMENU — КАТАЛОГ ═══════════ */

/* Root-контейнер: позиционирование для absolute dropdown */
#catalog-megamenu-root {
    position: relative;
}

/* === Панель мегаменю === */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e7e3dd;
    border-top: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

#catalog-megamenu-root.is-open .megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* === Активное состояние кнопки "Каталог" === */
#catalog-megamenu-root.is-open .top-nav__catalog-link {
    background: rgba(0,0,0,0.25);
}

#catalog-megamenu-root.is-open .top-nav__catalog-arrow svg {
    transform: rotate(180deg);
}

.top-nav__catalog-arrow svg {
    transition: transform 0.15s ease;
}

/* === Внутренний контейнер === */
.megamenu__container {
    max-width: 1470px;
    margin: 0 auto;
    padding: 24px 30px 20px;
}

/* === Сетка колонок (flex с переносом для масштабирования) === */
.megamenu__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.megamenu__col {
    flex: 1 1 180px;
    min-width: 170px;
    max-width: 340px;
}

/* === Раздел (одна категория с подразделами) === */
.megamenu__section {
    margin-bottom: 20px;
}

.megamenu__section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eae6e0;
}

/* === Иконка раздела === */
.megamenu__section-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f7f4;
    padding: 4px;
}

/* === Название раздела === */
.megamenu__section-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    transition: color 0.15s ease;
    flex: 1;
    min-width: 0;
    letter-spacing: 0.2px;
}

.megamenu__section-title:hover {
    color: #188b30;
    text-decoration: none;
}

/* === Список подразделов === */
.megamenu__subsections {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu__subsection {
    margin-bottom: 2px;
}

.megamenu__subsection-link {
    display: block;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    line-height: 1.45;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.megamenu__subsection-link:hover {
    color: #188b30;
    padding-left: 6px;
    text-decoration: none;
}

/* === Нижняя utility-зона (быстрые ссылки) === */
.megamenu__bottom {
    border-top: 1px solid #eae6e0;
    padding: 12px 30px;
    margin-top: 8px;
    background: #faf9f7;
}

.megamenu__quick-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 40px;
}

.megamenu__quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    padding: 0 16px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e7e3dd;
    transition: all 0.15s ease;
    line-height: 1;
}

.megamenu__quick-link:hover {
    background: #188b30;
    color: #fff;
    border-color: #188b30;
    text-decoration: none;
}

.megamenu__quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.megamenu__quick-link--all {
    background: none;
    color: #188b30;
    border-color: transparent;
    font-weight: 700;
}

.megamenu__quick-link--all:hover {
    background: #188b30;
    color: #fff;
    border-color: #188b30;
}

/* === Mobile megamenu — аккордеон в мобильном меню === */
@media (max-width: 768px) {
    #catalog-megamenu-root .megamenu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        pointer-events: auto;
        transition: none;
    }

    #catalog-megamenu-root.is-open .megamenu {
        display: block;
    }

    .megamenu__container {
        padding: 8px 0 4px;
    }

    .megamenu__columns {
        flex-direction: column;
        gap: 0;
    }

    .megamenu__col {
        flex: none;
    }

    .megamenu__section {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .megamenu__section-head {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        padding: 10px 0;
        cursor: pointer;
    }

    .megamenu__section-icon {
        width: 36px;
        height: 36px;
    }

    .megamenu__section-title {
        font-size: 14px;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
        padding: 0;
    }

    .megamenu__subsections {
        padding-left: 0;
        padding-bottom: 8px;
        display: none;
    }

    .megamenu__section.is-expanded .megamenu__subsections {
        display: block;
    }

    .megamenu__subsection-link {
        font-size: 13px;
        color: rgba(255,255,255,0.7);
        padding: 6px 0 6px 16px;
        line-height: 1.4;
    }

    .megamenu__subsection-link:hover {
        color: #fff;
        padding-left: 20px;
    }

    .megamenu__bottom {
        margin-left: 0;
        margin-right: 0;
        padding: 10px 0;
        background: transparent;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .megamenu__quick-links {
        gap: 6px;
    }

    .megamenu__quick-link {
        font-size: 12px;
        padding: 5px 10px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.15);
        color: rgba(255,255,255,0.85);
    }

    .megamenu__quick-link:hover {
        background: rgba(255,255,255,0.2);
        color: #fff;
        border-color: rgba(255,255,255,0.3);
    }

    .megamenu__quick-link--all {
        background: none;
        color: rgba(255,255,255,0.85);
        border-color: transparent;
    }

    .megamenu__quick-link--all:hover {
        background: rgba(255,255,255,0.2);
        color: #fff;
    }

    .megamenu__quick-icon {
        opacity: 0.7;
    }
}

/* ═══════════════════════ MOBILE CATALOG (двухшаговая навигация) ═══════════ */
.mobile-menu__item--catalog {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.mobile-catalog {
    display: none !important;
    padding: 0;
    margin: 0;
    height: auto !important;
    overflow: visible !important;
}

.mobile-menu__item--catalog.is-open .mobile-catalog {
    display: block !important;
    height: auto !important;
}

/* === Шаги === */
.mobile-catalog__step {
    display: none !important;
    padding: 0;
    height: auto !important;
    overflow: visible !important;
}

.mobile-catalog__step--active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

/* Группа L1: отступ от заголовка "Каталог" */
.mobile-catalog__doors {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 8px !important;
}

/* === Шаг 1: корень — опциональные блоки === */
.mc-root-all {
    padding: 4px 12px;
}

.mc-root-all-link {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #188b30 !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mc-root-all-link:hover {
    color: #146b25 !important;
    text-decoration: underline;
}

/* === L2: back label для icon_text === */
.mc-back-label {
    font-size: 14px;
    font-weight: 500;
    color: #555 !important;
    white-space: nowrap;
}

/* === Quick-ссылки (используют тот же паттерн, что и L1 двери) === */
.mobile-catalog__doors--quick {
    margin-top: 12px;
    padding: 8px 12px;
}

.mobile-catalog__door--quick {
    min-height: 36px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06) !important;
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.88) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-catalog__door--quick:hover {
    background: rgba(255,255,255,0.20) !important;
    color: #fff !important;
}

.mobile-catalog__door--quick .mc-arrow {
    display: none;
}

/* === Крупные кнопки разделов (изолированные стили) === */
.mobile-catalog__door {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border: none !important;
    border-radius: 12px;
    background: #ffffff !important;
    color: #222222 !important;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif !important;
    line-height: 1.3;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mobile-catalog__door:hover,
.mobile-catalog__door:active {
    background: #f0f0f0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.mc-arrow {
    flex-shrink: 0;
    margin-left: 10px;
    color: #999;
    font-size: 16px;
    font-weight: 400;
}

/* === Шаг 2: раздел (светлая тема, [◀] Название в одной строке) === */
.mobile-catalog__step[data-step^="section_"] {
    background: #fff !important;
    border-radius: 12px;
    padding: 4px 0;
}

.mc-l2-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 8px 12px 4px;
    align-items: center;
}

.mc-l2-headcopy {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.mc-back-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    border: none !important;
    background: #f0f0f0 !important;
    color: #555 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    padding: 0;
}

.mc-back-btn:hover {
    background: #e0e0e0 !important;
    color: #222 !important;
}

.mc-back-btn svg {
    display: block;
}

.mc-l2-title {
    font-size: 20px;
    font-weight: 700;
    color: #222 !important;
    line-height: 1.2;
}

.mc-l2-link {
    display: inline-block;
    padding: 2px 12px 8px;
    font-size: 13px;
    color: #188b30 !important;
    text-decoration: none;
    font-weight: 600;
}

.mc-l2-link:hover {
    text-decoration: underline;
    color: #146b25 !important;
}

.mc-l2-subs {
    padding: 2px 0;
}

.mc-l2-sub {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, padding-left 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mc-l2-sub:hover {
    background: #f5f5f5 !important;
    color: #222 !important;
    padding-left: 26px;
    text-decoration: none;
}

.mc-l2-sub:last-child {
    border-bottom: none;
}

/* Search results — restyle bootstrap_v4 section to catalog-item look */
.catalog-search .product-item-list-col-4,
.catalog-search .product-item-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.catalog-search .product-item-list > div,
.catalog-search .product-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    background: var(--color-surface) !important;
    display: flex !important;
    flex-direction: column !important;
}

.catalog-search .product-item-img-wrap {
    height: 168px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fafbfc !important;
    padding: 12px !important;
}

.catalog-search .product-item-img-wrap img {
    max-width: 85% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.catalog-search .product-item-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    line-height: 1.35 !important;
}

.catalog-search .product-item-info-container {
    padding: 0 12px 14px !important;
}

.catalog-search .product-item-price-current {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.catalog-search .product-item-price-old {
    font-size: 13px !important;
    color: var(--color-muted) !important;
    text-decoration: line-through !important;
}

.catalog-search .product-item-detail-info-container { display: none !important; }
.catalog-search .product-item-image-slider-control-container { display: none !important; }

@media (max-width: 991px) {
    .catalog-search .product-item-list-col-4,
    .catalog-search .product-item-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767px) {
    .catalog-search .product-item-list-col-4,
    .catalog-search .product-item-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}
@media (max-width: 479px) {
    .catalog-search .product-item-list-col-4,
    .catalog-search .product-item-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* Mobile cart sum — spacing below "Корзина" */
.mobile-menu__cart-sum {
    display: block;
    margin-top: 3px;
}

/* Close mobile menu scroll lock */
.mobile-menu.is-open ~ .site-header,
.mobile-menu.is-open ~ .main-content {
    position: fixed;
    width: 100%;
}

/* ═══════════════════════ CART STEPPER (button → stepper) ═══════════ */
.catalog-item__cta.bv-cart-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    gap: 0;
    background: #30343a;
    border: 1px solid transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    height: 36px;
    min-height: 36px;
    cursor: default;
}

.catalog-item__cta.bv-cart-stepper:hover {
    background: #3a3f46;
    border-color: transparent;
    color: #fff;
}

.catalog-item__cta.bv-cart-stepper .bv-cart-stepper__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: background 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.catalog-item__cta.bv-cart-stepper .bv-cart-stepper__btn:hover {
    background: #3a3f46;
    color: #fff;
}

.catalog-item__cta.bv-cart-stepper .bv-cart-stepper__btn:active {
    background: #272b31;
    transform: scale(0.96);
}

.catalog-item__cta.bv-cart-stepper .bv-cart-stepper__qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1;
    pointer-events: none;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.catalog-item__cta.bv-cart-stepper.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.catalog-item__cta.bv-cart-stepper.is-loading .bv-cart-stepper__btn {
    pointer-events: none;
}

/* ═══════════════════════ PDP CART-CONTROL (тёмная единая поверхность) ═══════════ */
/* Один общий outer-контейнер: тёмный графит в ОБОИХ состояниях.
   Меняется только внутреннее содержимое: "В корзину" ↔ "− qty +". */
.bv-detail__cart-control {
  width: 276px;
  height: 48px;                 /* единая высота с fav-btn (48px) */
  flex: 0 0 276px;
  border-radius: 10px;
  overflow: hidden;
  background: #30343a;
  color: #fff;
  position: relative;
  transition: background 0.15s ease;
}

/* Empty state — CTA-кнопка заполняет весь cart-control на той же тёмной поверхности.
   height:100% + max-height:100% гарантируют, что inner кнопка никогда не выше outer box. */
.bv-detail__cart-control .bv-detail__cart-btn {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  flex: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  border: none;
  box-sizing: border-box;
}

.bv-detail__cart-control .bv-detail__cart-btn:hover {
  background: #3a3f46;
  color: #fff;
}

/* Out-of-stock кнопка в том же тёмном box */
.bv-detail__cart-control .bv-detail__cart-btn--unavailable {
  width: 100%;
  height: 100%;
  flex: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

/* Filled state — мягкий stepper на той же тёмной поверхности */
.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  overflow: hidden;
  gap: 0;
}

.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper:hover {
  background: transparent;
  border-color: transparent;
  color: #fff;
}

.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper .bv-cart-stepper__btn {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 5px 4px;
  display: flex;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none;
  border-radius: 6px;
  transition: background 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Символы − / + разведены к внешним краям сегментов (hit area не меняется) */
.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper .bv-cart-stepper__btn--minus {
  justify-content: flex-start;
  padding-left: 18px;
}

.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper .bv-cart-stepper__btn--plus {
  justify-content: flex-end;
  padding-right: 18px;
}

/* Локальный мягкий hover-fill: не заливает всю боковую секцию до разделителя */
.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper .bv-cart-stepper__btn:hover {
  background: #3a3f46;
  color: #fff;
}

.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper .bv-cart-stepper__btn:active {
  background: #272b31;
  transform: scale(0.96);
}

/* Quantity zone — главный элемент, мягкие разделители, больше воздуха */
.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper .bv-cart-stepper__qty {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.bv-detail__cart-control .bv-detail__cart-btn.bv-cart-stepper.is-loading .bv-cart-stepper__btn {
  pointer-events: none;
}

/* Mobile: cart-control сжимается, избранное остаётся в строке 46px */
@media (max-width: 640px) {
  .bv-detail__cart-control {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .bv-detail__fav-btn {
    flex: 0 0 46px;
  }
}

/* ═══════════════════════ PLP BADGES — pill-style ═══════════ */
.bv-catalog-img-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 70%;
  z-index: 5;
  pointer-events: none;
}

.bv-catalog-img-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.bv-catalog-img-badge--sale { background: #d32f2f; }
.bv-catalog-img-badge--promo { background: #f57c00; }
.bv-catalog-img-badge--new { background: #1976d2; }
.bv-catalog-img-badge--hit { background: #2e7d32; }
.bv-catalog-img-badge--default { background: #6b7280; }
.bv-catalog-img-badge--discount { background: #e53935; }

/* ============================================================
   Scroll-to-top button: scoped BeautyVit visual override.
   Source markup: footer.php, #scrollToTop.
   Do not set display: it is controlled by the existing scroll JS.
   ============================================================ */

#scrollToTop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  text-align: center;
  line-height: 44px;
  border: 1px solid #d9dde3;
  border-radius: 50% !important;
  background: #ffffff;
  color: #3f3f46;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.12);
  font-size: 0;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#scrollToTop:hover {
  background: #f8f5f6;
  border-color: #d1c4c9;
  color: #2d2d2d;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.15);
  transform: translateY(-1px);
}

#scrollToTop:focus-visible {
  outline: 2px solid #b86a7f;
  outline-offset: 3px;
}

#scrollToTop:active {
  background: #f2ebed;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.14);
  transform: translateY(0);
}

#scrollToTop::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 2px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

#scrollToTop::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 767.98px) {
  #scrollToTop {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #scrollToTop {
    transition: none;
  }
}

/* ============================================================
   Mobile home: hide benefits strip above popular categories.
   Source: index.php -> BeautyVitRenderBenefitsBlock()
   Only for the homepage mobile viewport.
   ============================================================ */
@media (max-width: 767.98px) {
  main.main-content--home .home-benefits {
    display: none;
  }
}

/* ============================================================
   Blog listing (/blog/) — card grid 1/2/3/4 columns.
   Used by blog/index.php only (bv-blog-* classes).
   ============================================================ */
.bv-blog-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px;
}

.bv-blog-list__title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  color: #222;
  margin: 0 0 28px;
}

.bv-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bv-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7e3dd;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.bv-blog-card:hover {
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.10);
  transform: translateY(-2px);
}

.bv-blog-card__image-link {
  display: block;
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #f3f0ec;
}

.bv-blog-card__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.bv-blog-card:hover .bv-blog-card__image-link img {
  transform: scale(1.03);
}

.bv-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px;
}

.bv-blog-card__title {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  margin-bottom: 8px;
}

.bv-blog-card__title:hover {
  color: var(--color-accent, #b86a7f);
  text-decoration: underline;
}

.bv-blog-card__preview {
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0;
}

/* 4 колонки -> 3 (планшет) */
@media (max-width: 1199px) {
  .bv-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 3 -> 2 (мобильный) */
@media (max-width: 991px) {
  .bv-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2 -> 1 (узкий мобильный) */
@media (max-width: 575px) {
  .bv-blog-list {
    padding: 24px 16px;
  }

  .bv-blog-list__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .bv-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Blog article (/blog/articles/...) — editorial redesign.
   Two-width model: prose (820px) for text, wide (container)
   for tables/images. Used by blog/articles/index.php only.
   ============================================================ */
.bv-blog-article {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.bv-blog-article__back {
  margin-bottom: 20px;
}

.bv-blog-article__back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent, #b86a7f);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 180ms ease;
}

.bv-blog-article__back a:hover {
  color: #222;
  text-decoration: none;
}

.bv-blog-article__header {
  max-width: 820px;
  margin: 0 0 28px;
}

.bv-blog-article__title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.bv-blog-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bv-blog-article__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bv-blog-article__date::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #d8d4ce;
  display: inline-block;
}

.bv-blog-article__image {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7e3dd;
  background: #f8f7f4;
}

.bv-blog-article__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Контент: обычный текст — читабельная строка (prose) */
.bv-blog-article__content {
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d2d;
}

.bv-blog-article__content p {
  max-width: 820px;
  margin: 0 0 20px;
}

.bv-blog-article__content h1,
.bv-blog-article__content h2,
.bv-blog-article__content h3,
.bv-blog-article__content h4 {
  max-width: 820px;
  color: #222;
  font-weight: 700;
  margin: 36px 0 14px;
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.bv-blog-article__content h1 { font-size: 24px; }
.bv-blog-article__content h2 { font-size: 26px; }
.bv-blog-article__content h3 { font-size: 21px; }
.bv-blog-article__content h4 { font-size: 17px; }

.bv-blog-article__content ul,
.bv-blog-article__content ol {
  max-width: 820px;
  margin: 0 0 20px;
  padding-left: 24px;
}

.bv-blog-article__content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.bv-blog-article__content a {
  color: var(--color-accent, #b86a7f);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bv-blog-article__content a:hover {
  color: #222;
}

/* Wide tables — осознанный data-блок на всю ширину контейнера */
.bv-blog-article__content table {
  display: block;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0 32px;
  white-space: nowrap;
  border: 1px solid #e7e3dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.06);
}

.bv-blog-article__content table th,
.bv-blog-article__content table td {
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #ede9e3;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.bv-blog-article__content table th {
  background: #f6f3ee;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.bv-blog-article__content table tr:last-child td {
  border-bottom: none;
}

.bv-blog-article__content table tr:hover td {
  background: #faf8f4;
}

.bv-blog-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 575px) {
  .bv-blog-article {
    padding: 24px 16px 40px;
  }

  .bv-blog-article__title {
    font-size: 24px;
  }

  .bv-blog-article__content {
    font-size: 15px;
    line-height: 1.75;
  }

  .bv-blog-article__content h1 { font-size: 22px; }
  .bv-blog-article__content h2 { font-size: 23px; }
  .bv-blog-article__content h3 { font-size: 19px; }
}

/* ============================================================
   Blog listing — featured first card (light asymmetry)
   Only desktop (≥1200px): first card spans 2 columns,
   taller image, larger title. Tablet/mobile → regular card.
   ============================================================ */
.bv-blog-card--featured {
  grid-column: span 2;
}

.bv-blog-card--featured .bv-blog-card__image-link {
  height: 240px;
}

.bv-blog-card--featured .bv-blog-card__body {
  padding: 20px;
}

.bv-blog-card--featured .bv-blog-card__title {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.bv-blog-card--featured .bv-blog-card__preview {
  font-size: 14px;
}

/* Tablet/mobile: featured сбрасывается в обычную карточку,
   сетка остаётся 2/1 колонки как у остальных */
@media (max-width: 1199px) {
  .bv-blog-card--featured {
    grid-column: auto;
  }

  .bv-blog-card--featured .bv-blog-card__image-link {
    height: 150px;
  }

  .bv-blog-card--featured .bv-blog-card__body {
    padding: 16px;
  }

  .bv-blog-card--featured .bv-blog-card__title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .bv-blog-card--featured .bv-blog-card__preview {
    font-size: 13px;
  }
}

/* === Lazy background (Блок 1/2, блог «Это интересно») ===
   Плейсхолдер для карточек с data-bg до подстановки фона JS (IntersectionObserver).
   Пропорции заданы aspect-ratio в базовых правилах карточек — CLS не меняется. */
.home-curations__card.js-lazy-bg,
.home-showcase__blog-item.js-lazy-bg {
  background-color: #f3f3f3;
}

/* End */
/* /local/templates/beautyvit-v1/assets/css/auth-modal.css?17874242555490 */
/* /local/templates/beautyvit-v1/styles.css?1787817850122768 */
