/**
 * Сброс конфликтов с Next.js на страницах витрины.
 * Подключать последним после style.css.
 * Все правила через :has() — StoreLegacyBody не нужен.
 */

/* ─── html / body ────────────────────────────────────────── */

html:has(.store-legacy-catalog) {
  background-color: #f7f7f7;
  overflow-x: hidden;
}

html:has(.store-legacy-legal) {
  overflow-x: hidden;
}

body:has(.store-legacy-catalog) {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f7f7f7;
  color: #212529;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Юридические страницы: layout_4.css (белый фон, серый футер), без catalog-footer */
body:has(.store-legacy-legal) {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fff;
  color: #0a2721;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── обёртка витрины ────────────────────────────────────── */

.store-legacy-catalog {
  display: block;
  width: 100%;
  max-width: 100%;
}

.store-legacy-legal {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

.store-legacy-legal .section-content {
  flex: 1 1 auto;
  background-color: #fff;
}

.store-legacy-legal .section-footer-band .section-inner .container {
  width: 100%;
  max-width: 1140px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Bulma is-fullheight растягивает шапку на весь экран ── */

.store-legacy-catalog section.hero.is-fullheight.bg-bracelets {
  min-height: 0;
  height: auto;
}

.store-legacy-catalog .finance__amulet,
.store-legacy-catalog .live__amulet,
.store-legacy-catalog .negative__amulet {
  min-height: 0;
  height: auto;
}

/* ─── Кнопки «Узнать подробнее» — Forum ─────────────────── */

.store-legacy-catalog a.btn-bracelet,
.store-legacy-catalog a.button.btn-bracelet,
.store-legacy-catalog .btn-bracelet {
  margin: 0 auto;
  color: #fff;
  text-decoration: none;
  display: block;
  font-family: Forum, Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400;
  line-height: 24px;
}

/* ─── Навигация ──────────────────────────────────────────── */

.section-footer-band .logo a,
.store-legacy-catalog .section-footer-band .nav-wrapper__item-link {
  margin: 0;
  color: #0a2721;
  font-size: 15px;
  font-weight: 600;
}

/* ─── Шрифты заголовков шапки ───────────────────────────── */

.store-legacy-catalog .header__subtitle,
.store-legacy-catalog .header__title {
  font-family: Montserrat-Bold, Montserrat, sans-serif;
}

.store-legacy-catalog .header__title {
  font-family: Montserrat-Italic, Montserrat, sans-serif;
  font-style: italic;
}

/* ─── Шрифты карточек амулетов ──────────────────────────── */

.store-legacy-catalog .finance__title,
.store-legacy-catalog .finance__text--line {
  font-family: Forum, Georgia, serif;
}

.store-legacy-catalog .finance__subtitle {
  font-family: Montserrat, sans-serif;
}

.store-legacy-catalog .line__title {
  font-family: Montserrat, sans-serif;
  font-style: italic;
}

/* ─── Cookie-баннер не сжимает колонку ──────────────────── */

body:has(.store-legacy-catalog) .cookie-consent {
  display: none !important;
}
