/* Точечные правки поверх styles.css — мобильный разбор 2026-11-09.
   Отдельный файл подключается после styles.css (layouts/app.blade.php). */

/* Зачёркнутая цена: было #aaa на кремовом (~2.3:1), стало ~4.7:1 */
.price-old { color: #6e6259; }

/* Шрифт Manrope (38 КБ) был нужен только карточкам «преимуществ» — берём основной */
.feature-card h3,
.feature-card p { font-family: inherit; }

/* Плашка праздника на карточке товара (см. components/product/cards/card.blade.php) */
.pc-holiday-badge {
  position: absolute;
  top: 8px;
  z-index: 4;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 60px;
  white-space: nowrap;
}
.pc-hb-short,
.pc-name-short { display: none; }

/* Повод / Кому в карточке товара — ссылки-чипы */
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pc-tags a,
.pc-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 60px;
  border: 1px solid #d9cfbd;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.pc-tags a:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 767.98px) {
  /* Короче на узких карточках: «К 29.11», «Букет «Мадлен»» */
  .pc-hb-long,
  .pc-name-long { display: none; }
  .pc-hb-short,
  .pc-name-short { display: inline; }

  /* Касание пальцем — не меньше 44px */
  .m-compact .product-card-buttons .btn-buy-1click,
  .btn-buy-1click { min-height: 44px; }
  .product-card .like::after,
  .splide__pagination__page::after {
    content: "";
    position: absolute;
    inset: -6px;
  }
  .splide__pagination__page { position: relative; }
  .splide__pagination__page::after { inset: -14px -6px; }

  /* Строка доверия на первом экране: две строки вместо трёх */
  .hero-trust { gap: 6px; margin-bottom: 16px; }
  .hero-trust li { font-size: 12.5px; padding: 5px 10px; }
  .hero-trust li a { padding: 5px 10px !important; }

  /* Кнопка чата Jivo: меньше и прячется, пока листают (JS в layouts/app) */
  jdiv[class*="__jivoMobi"] {
    scale: .82;
    transform-origin: bottom right;
    transition: opacity .25s ease;
  }
  body.is-scrolling jdiv[class*="__jivoMobi"] {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .pc-tags a,
  .pc-tags span { min-height: 40px; }
}

/* ---- Форма «Не нашли свой букет?» (livewire/bouquet-request-form) + ссылка к ней ---- */
.catalog-toolbar .br-link { margin-right: auto; }
.br-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.br-link:hover { color: var(--primary); opacity: .85; }
.br-link__short { display: none; }

.br-form {
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  margin: 32px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
  scroll-margin-top: 120px;
}
.br-form__head,
.br-form__done { flex: 1 1 340px; min-width: 0; }
.br-form__head h2,
.br-form__done h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  color: var(--primary);
  text-align: left;
}
.br-form__head p,
.br-form__done p { margin: 0; font-size: 18px; line-height: 1.5; }
.br-form__body {
  flex: 1 1 460px;
  min-width: 0;
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 1px 1px 15px rgba(15, 19, 16, .08);
  position: relative;
}
.br-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.br-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin: 0; }
.br-field > span small { font-weight: 400; color: #5d6a5f; }
.br-field input {
  height: 48px;
  border: 1px solid #d9cfbd;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  background: var(--bg);
  width: 100%;
}
.br-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.br-chips button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 60px;
  border: 1px solid #d9cfbd;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.br-chips button.is-on { background: var(--primary); border-color: var(--primary); color: var(--bg); font-weight: 600; }
.br-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3f4b41; margin: 0; }
.br-consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.br-err { color: #b42318; font-weight: 400; font-size: 13px; }
.br-err--block { display: block; }
.br-submit { height: 52px; font-size: 17px; font-weight: 700; }

@media (max-width: 767.98px) {
  .catalog-toolbar { flex-wrap: wrap; }
  .catalog-toolbar .br-link {
    flex: 1 1 100%;
    margin: 0 0 4px;
    justify-content: center;
    min-height: 44px;
    border: 1px dashed var(--primary);
    border-radius: 60px;
    background: #fff;
    text-decoration: none;
    font-size: 15px;
  }
  .br-link__long { display: none; }
  .br-link__short { display: inline; }
  .br-form { padding: 22px 16px; border-radius: 22px; gap: 16px; }
  .br-form__head h2, .br-form__done h2 { font-size: 26px; }
  .br-form__head p, .br-form__done p { font-size: 16px; }
  .br-form__body { padding: 16px; }
  .br-form__row { grid-template-columns: minmax(0, 1fr); }
  .br-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-chips button { padding: 0 8px; }
}

/* ---- Размеры букета (price-and-variants) ---- */
.pc-size-hint { margin: -8px 0 14px; font-size: 14px; line-height: 1.45; color: #3f4b41; }
.pc-size-comp { margin: 0 0 8px; font-size: 13px; color: #5d6a5f; }
.pc-size-note {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 5;
  background: rgba(41, 53, 43, .82);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 60px;
  pointer-events: none;
}
.pc-size-note[hidden] { display: none; }
/* Размеры: на телефоне сеткой 2×2, кнопки одинаковые */
@media (max-width: 767.98px) {
  .pc-sizes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-sizes > button { min-height: 52px; padding: 6px 8px !important; border-radius: 14px !important; }
}

/* ==== Поиск: экран для телефона (components/default/search-overlay) и страница /search ==== */
html.so-lock, html.so-lock body { overflow: hidden; }
.so { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: flex; flex-direction: column; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.so.is-open { opacity: 1; transform: none; }
.so[hidden] { display: none; }
.so-bar { flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 10px 12px 12px 4px; padding-top: max(10px, env(safe-area-inset-top)); box-shadow: 0 10px 18px -16px rgba(41,53,43,.5); margin: 0; }
.so-back, .so-clear { border: 0; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.so-back { width: 44px; height: 44px; flex-shrink: 0; }
.so-field { flex: 1; min-width: 0; height: 48px; margin: 0; border-radius: 999px; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px rgba(118,35,47,.12); }
.so-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); padding: 0; -webkit-appearance: none; appearance: none; }
.so-field input::-webkit-search-cancel-button { display: none; }
.so-clear { width: 36px; height: 36px; border-radius: 50%; background: var(--card); flex-shrink: 0; }
.so-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 32px; }
.so-label { display: block; margin: 18px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f6d61; }
.so-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.so-chip { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px #e3d8c5; transition: transform .12s ease; }
.so-chip:active { transform: scale(.96); }
.so-results { transition: opacity .15s ease; }
.so.is-loading .so-results { opacity: .55; }
.so-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 14px; line-height: 1.45; }
.so-page { margin-top: 10px; min-height: 64px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--primary); color: var(--bg) !important; text-decoration: none !important; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 18px -12px rgba(118,35,47,.8); transition: transform .12s ease; }
.so-page:active { transform: scale(.98); }
.so-page img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.so-page-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.so-page-text b { font-size: 16px; }
.so-page-text span { font-size: 13px; opacity: .85; }
.so-item { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #efe4d1; color: var(--text) !important; text-decoration: none !important; }
.so-item img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 10px -6px rgba(15,19,16,.4); }
.so-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.so-item-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.so-item-why { font-size: 13px; color: #4d6150; }
.so-item-price { font-size: 16px; color: var(--primary); flex-shrink: 0; }
.so-all { margin-top: 18px; height: 52px; border-radius: 999px; background: #fff; color: var(--primary) !important; text-decoration: none !important; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 2px var(--primary); }
.search-result-all { display: block; padding: 10px 12px; text-align: center; font-weight: 600; color: var(--primary); }
.search-result-page { background: rgba(118,35,47,.06); }

.srp { padding-bottom: 24px; }
.srp-head { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 14px; }
.srp-q { font-size: 14px; color: #5f6d61; }
.srp-title { margin: 0; font-family: "Playfair Display", serif; font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--primary); }
.srp-note { font-size: 14px; color: #4d6150; }
.srp-page { max-width: 520px; }
.srp-label { margin-top: 22px; }
.srp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 460px; margin: 12px auto 0; }
.srp-empty p { margin: 0; color: #3f4b41; line-height: 1.5; }
.srp-empty-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--card); color: var(--primary); display: flex; align-items: center; justify-content: center; }

/* «Показать ещё» с полоской прогресса (каталог и поиск). */
.cat-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px auto 8px; max-width: 420px; }
.cat-more-text { font-size: 13px; color: #5f6d61; }
.cat-more-bar { width: 160px; height: 4px; border-radius: 2px; background: #e3d8c5; display: flex; overflow: hidden; }
.cat-more-bar span { display: block; height: 4px; border-radius: 2px; background: var(--primary); }
.cat-more-btn { margin-top: 4px; width: 100%; height: 52px; border-radius: 999px; background: #fff; color: var(--primary) !important; text-decoration: none !important; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 2px var(--primary); transition: transform .12s ease; }
.cat-more-btn:active { transform: scale(.98); }
.cat-more-btn.is-loading { opacity: .6; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .so, .so-page, .so-chip, .cat-more-btn, .so-results { transition: none; }
}

/* ==== Каталог на телефоне/планшете (< 1024): products-list.blade.php, filter.blade.php ==== */
.cm-top, .hs-mobile { display: none; }
.pc-ready { position: absolute; left: 8px; top: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(66,86,69,.92); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; }
.pc-ready-dot { width: 7px; height: 7px; border-radius: 50%; background: #a9d6ae; box-shadow: 0 0 0 3px rgba(169,214,174,.3); }
.pc-ready-note { display: block; margin-top: 2px; font-size: 12px; color: #4d6150; text-align: center; }

@media (max-width: 1023.98px) {
    /* Внутренний .page-main внутри <main class="page-main"> удваивал отступ под шапкой. */
    .page-main .page-main { margin-top: 0; }

    .catalog-toolbar, .filter-mobile-toggle, .filter-card.categories-card.mobile-categories { display: none !important; }
    .catalog-page-crumbs .crumbs { display: none; }
    .catalog-page-crumbs .section-title { margin-bottom: 4px; }

    /* Колонка каталога — элемент сетки/флекса: без min-width:0 длинная лента категорий распирала её на всю длину ленты. */
    .catalog-layout, .catalog-layout > *, .catalog-content { min-width: 0; max-width: 100%; }
    .cm-top { display: block; margin: 0 -12px 4px; min-width: 0; }
    .cm-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 12px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); scroll-snap-type: x proximity; }
    .cm-cats::-webkit-scrollbar { display: none; }
    .cm-cat { flex-shrink: 0; height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: #fff; color: var(--text) !important; font-size: 15px; white-space: nowrap; text-decoration: none !important; box-shadow: inset 0 0 0 1px #e3d8c5; scroll-snap-align: start; transition: transform .12s ease, background .2s ease; }
    .cm-cat.has-img { padding: 0 14px 0 6px; }
    .cm-cat img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
    .cm-cat.is-on { background: var(--text); color: var(--bg) !important; font-weight: 600; box-shadow: none; }
    .cm-cat:active { transform: scale(.96); }
    .cm-live { width: 7px; height: 7px; border-radius: 50%; background: #7fae84; box-shadow: 0 0 0 3px rgba(127,174,132,.25); }

    .cm-bar { position: relative; z-index: 40; margin-top: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; background: rgba(255,246,231,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid #f1e6d3; transition: box-shadow .2s ease; }
    .cm-bar.is-stuck { position: fixed; left: 0; right: 0; margin-top: 0; box-shadow: 0 10px 18px -14px rgba(41,53,43,.55); }
    @keyframes cmIn { from { transform: translateY(-8px); opacity: .6; } to { transform: none; opacity: 1; } }
    .cm-search { flex: 1; min-width: 0; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: #fff; color: #5f6d61; font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px #e3d8c5; text-align: left; }
    .cm-search svg { color: var(--primary); flex-shrink: 0; }
    .cm-filter { flex-shrink: 0; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: #fff; color: var(--primary); font: inherit; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--primary); }
    .cm-filter.is-active { padding-right: 8px; background: var(--primary); color: var(--bg); box-shadow: 0 4px 10px -4px rgba(118,35,47,.6); }
    .cm-filter-n { min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 13px; background: var(--bg); color: var(--primary); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
    .cm-sort { position: relative; flex-shrink: 0; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: #fff; color: var(--text); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #e3d8c5; }
    .cm-sort select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
    .cm-search:active, .cm-filter:active, .cm-sort:active { transform: scale(.97); }

    .cm-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 12px 0; }
    .cm-chip { height: 38px; padding: 0 8px 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--text); color: var(--bg) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
    .cm-chip-x { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,246,231,.18); display: inline-flex; align-items: center; justify-content: center; }
    .cm-reset { padding: 10px 6px; font-size: 14px; font-weight: 600; }
    .cm-count { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 12px 4px; font-size: 14px; color: #5f6d61; }
    .cm-count b { color: var(--text); }

    .cm-lead { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--green); color: #fff; box-shadow: 0 10px 22px -14px rgba(41,53,43,.7); }
    .cm-lead-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
    .cm-lead-text { display: flex; flex-direction: column; gap: 6px; }
    .cm-lead-text b { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 600; }
    .cm-lead-text span { font-size: 14px; line-height: 1.45; opacity: .92; }
    .cm-lead-btn { align-self: flex-start; margin-top: 6px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--bg); color: #3f5242 !important; text-decoration: none !important; display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; }
    .cm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 12px; text-align: center; }
    .cm-end { margin: 8px 0 4px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #e3d8c5; font-size: 14px; line-height: 1.45; }
    .catalog-content .pagination { display: none; }

    /* Шторка фильтра снизу. */
    /* Шторка выезжает CSS-анимацией: не зависит от того, успел ли браузер перерисовать кадр (раньше могла замереть на полпути). */
    html.filter-lock, html.filter-lock body { overflow: hidden; }
    .filter-overlay.open { position: fixed; inset: 0; z-index: 99; display: block; background: rgba(28,22,20,.48); animation: fsFade .2s ease both; }
    .filter-overlay.open.is-closing { animation: fsFadeOut .2s ease both; }
    .filter-content.open { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; margin: 0; height: calc(100% - 56px); height: calc(100dvh - 56px); padding: 0 20px 0; box-sizing: border-box; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 30px -12px rgba(0,0,0,.35); transform: none; transition: none; overscroll-behavior: contain; animation: fsUp .24s cubic-bezier(.2,.8,.2,1) both; will-change: transform; }
    .filter-content.open.is-closing { animation: fsDown .2s ease-in both; }
    .filter-content.open.is-dragging { animation: none; }
    @keyframes fsUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    @keyframes fsDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
    @keyframes fsFade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes fsFadeOut { from { opacity: 1; } to { opacity: 0; } }
    .filter-grabber { display: block; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: #d9cfbd; }
    .filter-content .filter-header { position: sticky; top: 0; z-index: 2; margin: 0 -20px 0; padding: 6px 8px 8px 20px; background: var(--bg); border-bottom: 1px solid #efe4d1; gap: 4px; }
    .filter-content .filter-header h2 { flex: 1; font-weight: 600; }
    .filter-reset { padding: 10px; font-size: 15px; font-weight: 600; }
    .filter-content .filter-close { width: 44px; height: 44px; background: var(--card); }
    .filter-content .filter-card.filters-card { background: transparent; box-shadow: none; padding: 0; margin: 0; }
    #filter_catalog_form { display: flex; flex-direction: column; }
    .filter-section--price { order: -1; }
    .filter-content .filter-section { margin: 0; padding: 18px 0; border-bottom: 1px solid #efe4d1; }
    .filter-content .filter-section h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f6d61; pointer-events: none; }
    .filter-content .filter-section h3 .filter-chevron { display: none; }
    .filter-content .filter-section.collapsed .filter-body { display: flex; }
    .filter-content .filter-body { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .filter-content .checkbox-row { position: relative; margin: 0; }
    .filter-content .checkbox-row.is-extra { display: none; }
    .filter-content .filter-body.show-all .checkbox-row.is-extra { display: block; }
    .filter-content .checkbox-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .filter-content .checkbox-row label { height: 40px; padding: 0 14px; margin: 0; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #fff; color: var(--text); font-size: 15px; cursor: pointer; box-shadow: inset 0 0 0 1px #e3d8c5; transition: background .15s ease, transform .12s ease; }
    .filter-content .checkbox-row label::before, .filter-content .checkbox-row label::after { display: none !important; }
    .filter-content .checkbox-row input:checked + label { background: var(--text); color: var(--bg); font-weight: 600; box-shadow: none; }
    .filter-content .checkbox-row input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
    .filter-content .checkbox-row label:active { transform: scale(.96); }
    .fv-count { font-size: 13px; color: #5f6d61; font-weight: 400; }
    .filter-content .checkbox-row input:checked + label .fv-count { color: inherit; opacity: .7; }
    .filter-more { height: 40px; padding: 0 8px; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 15px; font-weight: 600; }
    .price-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
    .price-preset { height: 40px; border: 0; border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px #e3d8c5; }
    .price-preset.is-on { background: var(--text); color: var(--bg); font-weight: 600; box-shadow: none; }
    .filter-submit { position: sticky; bottom: 0; z-index: 2; order: 99; margin: 0 -20px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -10px 20px -16px rgba(41,53,43,.5); }
    .filter-submit .btn { height: 54px; border-radius: 999px; font-size: 17px; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(118,35,47,.7); transition: opacity .15s ease; }
    .filter-submit .btn.is-counting { opacity: .75; }
    .filter-submit .btn:disabled { opacity: .5; }

    /* Плашка праздника под шапкой (вместо бегущей строки). */
    .hs-mobile { margin: 6px 0 2px; height: 40px; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 10px; border-radius: 14px; background: var(--primary); color: var(--bg) !important; font-size: 14px; text-decoration: none !important; }
    .hs-mobile-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hs-mobile-days { opacity: .8; }
    .hs-mobile-cta { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255,246,231,.16); font-size: 13px; font-weight: 600; }

    /* Карточки: «Купить в 1 клик» читается лучше. */
    .m-compact .product-card-buttons .btn-buy-1click { color: #3f5242; }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) {
    .filter-content.open, .filter-overlay.open, .cm-cat, .cm-bar { transition: none; animation: none !important; }
}
/* Чат Jivo не перекрывает кнопки поиска и шторки фильтра. */
html.so-lock jdiv, html.filter-lock jdiv, body:has(.filter-content.open) jdiv { display: none !important; }
@media (max-width: 1023.98px) {
    /* Порядок разделов в шторке: цена, кому, повод, цветы, упаковка. */
    #filter_catalog_form [data-filter-section="8"] { order: 1; }
    #filter_catalog_form [data-filter-section="7"] { order: 2; }
    #filter_catalog_form [data-filter-section="3"] { order: 3; }
    #filter_catalog_form [data-filter-section="5"] { order: 4; }
    #filter_catalog_form [data-filter-section="2"] { order: 5; }
}
.fv-count { margin-left: 6px; font-size: 13px; color: #5f6d61; font-weight: 400; }
.filter-content .checkbox-row input:checked + label .fv-count { color: inherit; }
@media (min-width: 1024px) {
    .price-presets, .filter-grabber, .filter-reset { display: none; }
    .filter-content .checkbox-row.is-extra { display: flex; }
    .filter-more { display: none; }
}
/* Главная, «Специальные предложения»: плашка скидки «−N%» стоит в левом верхнем углу — плашки карточки опускаем под неё. */
.m-offer .pc-holiday-badge, .m-offer .pc-ready, .m-offer .product-badge { top: 38px; }

/* Ползунок цены: закрашенный отрезок между ручками, на телефоне ручки крупнее. */
.price-track .price-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 999px; background: var(--primary); opacity: .85; pointer-events: none; z-index: 1; }
@media (max-width: 1023.98px) {
    .filter-content .price-track { height: 8px; margin: 14px 14px 4px; background: #e3d8c5; touch-action: none; }
    .filter-content .price-track input[type=range] { height: 44px; top: -18px; left: -14px; width: calc(100% + 28px); touch-action: none; }
    .filter-content .price-track input[type=range]::-webkit-slider-runnable-track { height: 44px; }
    .filter-content .price-track input[type=range]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: 8px; background: #fff; border: 0; box-shadow: 0 0 0 2px var(--primary), 0 3px 8px rgba(0,0,0,.2); }
    .filter-content .price-track input[type=range]::-moz-range-thumb { width: 28px; height: 28px; background: #fff; border: 0; box-shadow: 0 0 0 2px var(--primary), 0 3px 8px rgba(0,0,0,.2); }
    .filter-content .price-label { margin-top: 12px; font-size: 15px; }
}

/* Витрина трёх магазинов (2026-11-18): кнопки магазина над сеткой и метка на карточке. */
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.st-chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #e6d6c8; background: #fff; color: #3a2a26; border-radius: 999px; padding: 9px 15px; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.st-chip i, .pc-store i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.st-chip b { font-weight: 700; color: #9a8278; font-size: 13px; }
.st-chip:hover { border-color: #76232F; color: #3a2a26; }
.st-chip.is-on { background: #76232F; border-color: #76232F; color: #fff; }
.st-chip.is-on b { color: #f3d9dc; }
.st-chip.is-on i { box-shadow: 0 0 0 2px #fff; }
.pc-store { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; color: #5a4a44; white-space: nowrap; }
@media (max-width: 575.98px) {
    .st-chips { gap: 6px; }
    .st-chip { padding: 8px 11px; font-size: 13px; gap: 5px; }
    .pc-store { font-size: 12px; }
}
.co-showcase-note { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #f3ece2; color: #3a2a26; font-size: 14px; line-height: 1.4; }
.co-showcase-note--warn { background: #fbeee0; border: 1px solid #ecc99c; }
.st-sub { width: 100%; margin: -4px 0 12px; color: #6b5a52; font-size: 15px; }

/* «Готовые сейчас» — витрина лентой над каталогом «Все букеты» (2026-11-19). */
.sc-row { margin: 4px 0 18px; padding: 16px 0 6px; border-radius: 22px; background: #f6efe2; box-shadow: inset 0 0 0 1px #eadfcb; }
.sc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 16px 12px; }
.sc-title { margin: 0; display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", serif; font-size: 22px; font-weight: 600; color: var(--text); }
.sc-title .cm-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7fae84; box-shadow: 0 0 0 3px rgba(127,174,132,.25); animation: scPulse 2s ease-in-out infinite; }
@keyframes scPulse { 50% { box-shadow: 0 0 0 6px rgba(127,174,132,.08); } }
.sc-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: #5f6d61; }
.sc-all { flex-shrink: 0; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; color: var(--primary) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; box-shadow: inset 0 0 0 1.5px var(--primary); white-space: nowrap; }
.sc-all::after { content: " →"; white-space: pre; }
.sc-track { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 12px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.sc-item { flex: 0 0 calc((100% - 36px) / 4); min-width: 0; scroll-snap-align: start; }
.sc-more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 18px; background: var(--green); color: #fff !important; text-decoration: none !important; min-height: 220px; }
.sc-more b { font-family: "Playfair Display", serif; font-size: 24px; font-weight: 600; }
.sc-more span { font-size: 14px; opacity: .92; }
.sc-more .sc-more-arrow { margin-top: 8px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; opacity: 1; }
@media (max-width: 1023.98px) {
  .sc-row { margin: 8px -12px 16px; border-radius: 0; box-shadow: none; padding-top: 14px; }
  .sc-item { flex-basis: calc((100% - 24px) / 3); }
}
@media (max-width: 767.98px) {
  .sc-head { padding: 0 12px 10px; }
  .sc-title { font-size: 20px; }
  .sc-sub { font-size: 13px; }
  .sc-all { height: 38px; padding: 0 14px; font-size: 14px; }
  .sc-track { gap: 8px; padding: 0 12px 10px; scroll-padding: 0 12px; scrollbar-width: none; }
  .sc-track::-webkit-scrollbar { display: none; }
  .sc-item { flex-basis: 44%; }
}
@media (prefers-reduced-motion: reduce) { .sc-title .cm-live { animation: none; } }
/* В ленте и так написано «Готовые сейчас» — плашка на каждой карточке лишняя. */
.sc-row .pc-ready { display: none; }
/* Лента прокручивается внутри себя: без min-width:0 у колонок каталога она распирала страницу на компьютере. */
.catalog-layout, .catalog-layout > *, .catalog-content, .sc-row { min-width: 0; max-width: 100%; }
