/* SEO-ТЕКСТ ВНИЗУ СТРАНИЦЫ (секция rich-text, 49 страниц: главная,
   коллекции, карточки). Доводка 2026-09-01 по снимку владельца и по
   скилам seo-audit / cro:
   — колонка ≤ 760 (~75 знаков в строке) вместо всей ширины (~150 знаков);
   — иерархия на ступень ниже товарных секций: заголовок Chillax 22 (тема
     давала 32 uppercase на коллекциях), подзаголовки Outfit 16/600,
     текст 15/1.6 приглушённым белым;
   — свёрнутый вид = 5 целых строк (120 px), а не 140 px с обрезом по букве;
     скрипт секции и так режет текст по слову на 300 знаках;
   — «Show more» — текстовая ссылка 14/600 жёлтым, а не 20 px с большой
     стрелкой; под блоком 64 до подвала.
   Файл ГЛОБАЛЬНЫЙ (theme-global.tsx), грузится после зеркала темы.
   Разметку и содержимое не трогаем — Google получает полный текст с сервера. */

/* ★ Обёртка сама несёт .page-width (секция full-width): контейнер 1200 по
   центру с полями 50 — его не трогаем, узкой делаем колонку ТЕКСТА внутри.
   Первая версия сужала обёртку и с margin 0 уводила блок к левому краю окна. */
.rich-text .rich-text__wrapper {
  justify-content: flex-start;
}
/* ★ Владелец (2026-09-01): «пустая правая половина». Две колонки на всю
   ширину контейнера: слева треть — заголовок и «Show more», справа две
   трети — текст (~780 при 1200, те же ~75 знаков в строке). Порядок в
   разметке остаётся (заголовок, текст, кнопка), раскладка — через grid-area,
   на мобильном снова столбик. */
.rich-text .rich-text__blocks {
  width: 100%;
  max-width: none;
  font-size: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 48px;
  align-items: start;
}
.rich-text .rich-text__blocks > .rich-text__heading {
  grid-column: 1;
  grid-row: 1;
}
.rich-text .rich-text__blocks > .rich-text__caption {
  grid-column: 1;
  grid-row: 2;
}
.rich-text .rich-text__blocks > .description-wrapper {
  grid-column: 2;
  grid-row: 1 / 4;
}
.rich-text .rich-text__blocks > .show-more-description {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}
.rich-text .rich-text__blocks > .rich-text__buttons {
  grid-column: 1;
  grid-row: 4;
}
/* На главной кромка текста = кромка панелей (промо, FAQ): тот же контейнер
   1360 по центру с полями 80 → 120 при 1440, 80 при 1280. Владелец: «почему
   он не по центру, а влево сдвинут» — блок стоял от 80 под панелью от 120.
   (Тема даёт контейнеру ещё 15 своих — снимаем.) */
.vp2-home .rich-text.content-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.vp2-home .rich-text .rich-text__wrapper.page-width {
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 80px !important;
  padding-right: 80px !important;
}
.rich-text .rich-text__heading.rich-text__heading {
  font-family: var(--dz-font-display, "Chillax", sans-serif) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin: 0 0 14px !important;
}
.rich-text .rich-text__text,
.rich-text .rich-text__text p,
.rich-text .rich-text__text li {
  font-family: var(--dz-font-body, "Outfit", sans-serif) !important;
  font-size: 15px !important;
  line-height: 24px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400;
}
.rich-text .rich-text__text p,
.rich-text .rich-text__text ul,
.rich-text .rich-text__text ol {
  margin: 0 0 12px !important;
}
.rich-text .rich-text__text h2,
.rich-text .rich-text__text h3,
.rich-text .rich-text__text h4 {
  font-family: var(--dz-font-body, "Outfit", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  color: #ffffff !important;
  text-transform: none !important;
  margin: 20px 0 8px !important;
}
.rich-text .rich-text__text h2:first-child,
.rich-text .rich-text__text h3:first-child {
  margin-top: 0 !important;
}
.rich-text .rich-text__text strong {
  color: #ffffff;
  font-weight: 600;
}
.rich-text .rich-text__text a {
  color: #f2ff00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rich-text .rich-text__text a:hover {
  color: #ffffff;
}
/* Свёрнуто: пять строк по 24. Скрипт секции кладёт текст с <br> — переносы
   и пустые строки ломают кратность 24, и снизу торчала верхушка строки.
   Поэтому низ свёрнутого блока ЗАТУХАЕТ (последние 32 px), но только когда
   текст не влезает (класс dz-overflow ставит скрипт) — короткому тексту на
   карточке затухать нечего. */
.rich-text .description-wrapper.collapsed {
  max-height: 120px;
}
.rich-text .description-wrapper.collapsed.dz-overflow {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%);
}
.rich-text .show-more-description {
  font-family: var(--dz-font-body, "Outfit", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #f2ff00 !important;
  gap: 6px !important;
  margin: 4px 0 0 !important;
  line-height: 20px;
}
.rich-text .show-more-description svg {
  width: 12px !important;
  height: 12px !important;
}
.rich-text .show-more-description svg path {
  fill: #f2ff00 !important;
}
.rich-text .show-more-description:hover,
.rich-text .show-more-description:hover svg path {
  color: #ffffff !important;
  fill: #ffffff !important;
}
/* Кнопка секции (на карточках «Shop all …») — по левой кромке текста,
   тема центрировала её под левым абзацем. */
.rich-text .rich-text__blocks .rich-text__buttons,
.rich-text .rich-text__blocks.left .rich-text__buttons,
.rich-text .rich-text__blocks.center .rich-text__buttons {
  justify-content: flex-start !important;
  margin-top: 16px !important;
}
/* Воздух до подвала: 64 (тема давала только padding-top, низ — из
   margin-bottom кнопки 20 и хвоста главной). */
.shopify-section .rich-text {
  padding-bottom: 64px !important;
}

@media screen and (max-width: 749px) {
  .rich-text .rich-text__blocks {
    display: block;
  }
  .rich-text .show-more-description {
    margin-top: 12px !important;
  }
  .rich-text .rich-text__heading.rich-text__heading {
    font-size: 20px !important;
  }
  .vp2-home .rich-text .rich-text__wrapper.page-width {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .rich-text .description-wrapper.collapsed {
    max-height: 144px; /* шесть строк: колонка уже, текст длиннее */
  }
  .shopify-section .rich-text {
    padding-bottom: 40px !important;
  }
}

/* ── ВСТУПИТЕЛЬНЫЙ SEO-ТЕКСТ КОЛЛЕКЦИИ (секция collection-seo-intro, 55 из
   72 категорий) — 2026-09-02. Раньше секция несла свой инлайн-стиль,
   перенесённый из Liquid: заголовок капсом clamp(26,5vw,38), колонка 1100,
   свёртка 190 с обрезом по букве и, главное, цвет rgba(0,0,0,.75) —
   контраст к фиолетовому фону 1.23:1, текст практически не читался (у
   нижнего блока 10.72:1). Теперь оба SEO-блока страницы живут на одних
   токенах и в одном файле; классы разные (pd-seo-intro vs rich-text), чтобы
   ворота нижнего блока не хватали интро своим querySelector. */
.pd-seo-intro {
  margin: 40px auto 0;
}
.pd-seo-intro__blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 48px;
  align-items: start;
  font-size: 15px;
}
.pd-seo-intro__heading {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--dz-font-display, "Chillax", sans-serif) !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin: 0 0 14px !important;
}
.pd-seo-intro__body {
  grid-column: 2;
  grid-row: 1 / 4;
  max-height: 120px;
  overflow: hidden;
}
.pd-seo-intro__body.is-open {
  max-height: none;
}
.pd-seo-intro__body.dz-overflow:not(.is-open) {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%);
}
.pd-seo-intro__body,
.pd-seo-intro__body p,
.pd-seo-intro__body li {
  font-family: var(--dz-font-body, "Outfit", sans-serif) !important;
  font-size: 15px !important;
  line-height: 24px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400;
}
.pd-seo-intro__body p,
.pd-seo-intro__body ul,
.pd-seo-intro__body ol {
  margin: 0 0 12px !important;
}
.pd-seo-intro__body h3,
.pd-seo-intro__body h4 {
  font-family: var(--dz-font-body, "Outfit", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  color: #ffffff !important;
  text-transform: none !important;
  margin: 20px 0 8px !important;
}
.pd-seo-intro__body h3:first-child {
  margin-top: 0 !important;
}
.pd-seo-intro__body strong {
  color: #ffffff;
  font-weight: 600;
}
.pd-seo-intro__body a {
  color: #f2ff00;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}
.pd-seo-intro__body a:hover {
  color: #ffffff;
}
.pd-seo-intro__toggle {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--dz-font-body, "Outfit", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 20px;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #f2ff00 !important;
  margin: 4px 0 0 !important;
}
.pd-seo-intro__toggle:hover {
  color: #ffffff !important;
}
.pd-seo-intro__chev {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.pd-seo-intro__toggle[aria-expanded="true"] .pd-seo-intro__chev {
  transform: rotate(180deg);
}

@media screen and (max-width: 749px) {
  .pd-seo-intro__blocks {
    display: block;
  }
  .pd-seo-intro__heading {
    font-size: 20px !important;
  }
  .pd-seo-intro__body {
    max-height: 144px;
  }
  .pd-seo-intro__toggle {
    margin-top: 12px !important;
  }
}
