/* ===== Дизайн-система Flora Hub ===== */
:root {
  --black: #0d0b0e;
  --graphite: #1b151b;
  --rose: #e66f9d;
  --rose-soft: #f8c7d7;
  --ivory: #fff8f9;
  --muted: #8f7f88;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Страховка от горизонтального скролла (выезжающая корзина за правым краем и т.п.);
   clip не создаёт скролл-контейнер, поэтому sticky-шапка продолжает работать */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-ui);
  background: var(--ivory);
  color: var(--black);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(13, 11, 14, 0.15);
  padding-bottom: 16px;
}
.section-title--light { color: var(--ivory); border-color: rgba(255, 248, 249, 0.2); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--rose {
  background: var(--rose);
  color: var(--black);
  box-shadow: 0 6px 24px rgba(230, 111, 157, 0.35);
}
.btn--rose:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(230, 111, 157, 0.5); }
.btn--dark { background: var(--black); color: var(--rose-soft); }
.btn--full { width: 100%; }

/* ===== Верхняя полоса (бегущая строка) ===== */
.topbar {
  background: var(--black);
  color: var(--rose-soft);
  font-size: 0.85rem;
  overflow: hidden;
  padding: 8px 0;
  white-space: nowrap;
}
.topbar__track {
  display: flex;
  width: max-content;
  animation: topbar-scroll 24s linear infinite;
}
.topbar:hover .topbar__track { animation-play-state: paused; }
.topbar__track span { display: inline-flex; align-items: center; gap: 8px; padding-right: 64px; }
.topbar__track span::before { content: '●'; color: var(--rose); font-size: 0.55rem; }
@keyframes topbar-scroll {
  to { transform: translateX(-50%); }
}

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 11, 14, 0.08);
}
.header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.header__logo-img { height: 48px; width: auto; flex: none; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.header__logo-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--black);
}
.header__logo-name em { color: var(--rose); font-style: normal; }
.header__logo-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.header__logo-tagline:empty { display: none; }
.header__nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.header__nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.header__nav a:hover { color: var(--rose); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 11, 14, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
}
.header__search svg { width: 16px; height: 16px; color: var(--muted); }
.header__search input { border: none; background: none; outline: none; font-family: inherit; width: 150px; }

/* Строка поиска в шапке на мобильном (скрыта на ПК) */
.header__searchrow { display: none; }

/* Выпадающие подсказки поиска */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(13, 11, 14, 0.18);
  overflow: hidden;
  z-index: 60;
}
.search-suggest__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--black);
  cursor: pointer;
  text-align: left;
}
.search-suggest__item:hover { background: rgba(230, 111, 157, 0.1); }
.search-suggest__item b { color: var(--rose); font-weight: 700; white-space: nowrap; }
/* вариант в тёмном мобильном меню */
.search-suggest--menu {
  position: static;
  flex-basis: 100%;
  min-width: 0;
  margin-top: 10px;
  background: rgba(255, 248, 249, 0.08);
  box-shadow: none;
}
.search-suggest--menu .search-suggest__item { color: var(--ivory); }
.search-suggest--menu .search-suggest__item:hover { background: rgba(255, 248, 249, 0.12); }
/* подсказки адреса в форме заказа */
.order-form__field { position: relative; }
.order-form__field input { width: 100%; box-sizing: border-box; }
.search-suggest--address { max-height: 220px; overflow-y: auto; }
.search-suggest--address .search-suggest__item { font-size: 0.85rem; line-height: 1.35; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rose);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.header__phone:hover { background: #d65a8c; color: #fff; }
.header__phone svg { width: 18px; height: 18px; }
.header__cart {
  position: relative;
  background: none;
  border: 1px solid rgba(13, 11, 14, 0.2);
  border-radius: 999px;
  padding: 10px;
  cursor: pointer;
  display: flex;
}
.header__cart svg { width: 20px; height: 20px; }
.header__fav.active { border-color: var(--rose); color: var(--rose); }
.header__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--rose);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--black); }

/* ===== Мобильное меню ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 14, 0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 84px 16px 36px;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { color: var(--ivory); text-decoration: none; font-size: 1.3rem; font-family: var(--font-display); }
.mobile-menu a:active, .mobile-menu a:hover { color: var(--rose); }
.mobile-menu__phone {
  background: var(--rose);
  color: var(--black) !important;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.mobile-menu nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 16px; }
.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.6rem;
  cursor: pointer;
}
.mobile-menu__close:hover { color: var(--rose); }
.mobile-menu__search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(255, 248, 249, 0.25);
  background: rgba(255, 248, 249, 0.06);
  border-radius: 999px;
  padding: 13px 20px;
  width: min(340px, 84vw);
}
.mobile-menu__search svg { width: 16px; height: 16px; color: var(--rose-soft); flex: none; }
.mobile-menu__search input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  color: var(--ivory);
  width: auto;
  flex: 1;
  min-width: 0;
}
.mobile-menu__search input::placeholder { color: var(--muted); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--ivory);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 249, 0.96) 0%, rgba(255, 248, 249, 0.8) 32%, rgba(255, 248, 249, 0.15) 62%, transparent 78%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 88px 24px 84px;
}
.hero__content { max-width: 600px; }
.hero-anim > * { animation: hero-in 0.6s ease both; }
.hero-anim > *:nth-child(2) { animation-delay: 0.08s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.16s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.24s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.32s; }
.hero-anim > *:nth-child(6) { animation-delay: 0.4s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--rose);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__badge::before { content: ''; width: 44px; height: 1px; background: var(--rose); }
.hero__badge:empty { display: none; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--black);
  margin-bottom: 22px;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}
.hero__subtitle { color: #5c4a53; margin-bottom: 34px; font-size: 1.05rem; max-width: 430px; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.hero__cta::after { content: '→'; font-size: 1rem; }
.hero__features {
  list-style: none;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 160px;
}
.hero__features svg { width: 26px; height: 26px; color: var(--rose); flex: none; }
/* перенос предложений подзаголовка hero (включается только на мобильном) */
.hero__sent-br { display: none; }
.hero__gift {
  position: absolute;
  z-index: 2;
  right: 11%;
  top: 24%;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  box-shadow: 0 18px 44px rgba(230, 111, 157, 0.45);
}
.hero__gift svg { width: 26px; height: 26px; }
.hero__gift small {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.9;
}
.hero__note {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 310px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(13, 11, 14, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.hero__note p { flex: 1; }
.hero__note-thumb {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hero__note-thumb svg { width: 24px; height: 24px; }
.hero__note-arrow {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__note-arrow svg { width: 16px; height: 16px; }

/* ===== Баннеры ===== */
.banners { padding: 40px 0; }
.banners__container { position: relative; }
.banners__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
}
.banners__track::-webkit-scrollbar { display: none; }
.banner {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 24px;
  background: var(--graphite);
  color: var(--ivory);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(230, 111, 157, 0.2);
}
.banner img { display: block; width: 100%; height: auto; opacity: 0.8; }
.banner--noimg { min-height: 360px; display: flex; align-items: center; }
.banner--noimg .banner__content { position: static; }
.banner__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* текст занимает только левую часть баннера, справа остаётся фото */
  padding: 32px 55% 32px 48px;
  /* подложка на всю ширину: текст читаем на любом загруженном фото */
  background: linear-gradient(90deg, rgba(13, 11, 14, 0.78) 0%, rgba(13, 11, 14, 0.55) 40%, rgba(13, 11, 14, 0.15) 65%, transparent 80%);
}
.banner__content h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.banner__content p { color: var(--rose-soft); font-size: 0.92rem; }
.banner__cta {
  align-self: flex-start;
  display: inline-block;
  margin-top: 22px;
  padding: 12px 38px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.banner:hover .banner__cta { background: var(--rose-soft); transform: scale(1.05); }
.banners__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--rose);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.banners__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.banners__arrow svg { width: 18px; height: 18px; }
.banners__arrow--prev { left: 18px; }
.banners__arrow--next { right: 18px; }

/* Отступ при скролле к якорям, чтобы заголовок раздела не уезжал под липкую шапку */
section[id], footer[id] { scroll-margin-top: 84px; }

/* ===== Категории (Выбор покупателей, стиль Polaroid) ===== */
.categories { padding: 56px 0; }
.categories__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 24px;
}
.category-card {
  width: 180px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.category-card__frame {
  background: #fff;
  padding: 12px 12px 40px;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(13, 11, 14, 0.14);
  transition: box-shadow 0.15s ease;
}
.category-card:hover { transform: translateY(-5px) rotate(-1.2deg); }
.category-card:hover .category-card__frame,
.category-card.active .category-card__frame {
  box-shadow: 0 14px 32px rgba(230, 111, 157, 0.35);
}
.category-card.active .category-card__frame { outline: 2px solid var(--rose); }
.category-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.category-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose-soft), var(--ivory));
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--rose);
}
.category-card h3 { font-size: 1rem; margin-top: 14px; }

/* ===== Каталог ===== */
.catalog { padding: 56px 0; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.catalog__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.catalog__filters button {
  border: 1px solid rgba(13, 11, 14, 0.2);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}
.catalog__filters button.active { background: var(--black); color: var(--rose-soft); border-color: var(--black); }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.catalog__empty { text-align: center; color: var(--muted); padding: 40px 0; }

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(13, 11, 14, 0.08);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.product-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 248, 249, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.product-card__fav svg { width: 18px; height: 18px; color: var(--muted); }
.product-card__fav.active svg { fill: var(--rose); stroke: var(--rose); color: var(--rose); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13, 11, 14, 0.1); }
.product-card__image {
  aspect-ratio: 4 / 3;
  margin: 12px 12px 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--graphite), var(--rose-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 32px;
  line-height: 1.35;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__badge {
  align-self: flex-start;
  background: var(--rose-soft);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card__badge:empty { display: none; }
.product-card h3 { font-size: 1.05rem; }
.product-card__desc { font-size: 0.85rem; color: var(--muted); flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; flex-wrap: wrap; }
.product-card__price { font-family: var(--font-display); font-size: 1.3rem; color: var(--rose); font-weight: 700; }
.product-card h3, .product-card__price { overflow-wrap: anywhere; }
.product-card__btns { display: flex; gap: 8px; }
.product-card__more {
  background: none;
  color: var(--black);
  border: 1px solid rgba(13, 11, 14, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
}
.product-card__more:hover { border-color: var(--rose); color: var(--rose); }
.trending .product-card__more { color: var(--ivory); border-color: rgba(255, 248, 249, 0.35); }
.trending .product-card__more:hover { border-color: var(--rose); color: var(--rose); }
.product-card__add {
  background: var(--black);
  color: var(--rose-soft);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
}
.product-card__add:hover { background: var(--rose); color: var(--black); }

/* ===== Бесконечная лента ===== */
.trending { background: var(--black); padding: 64px 0; color: var(--ivory); }
.trending__viewport { overflow: hidden; }
.trending__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 8px 0;
  will-change: transform;
  touch-action: pan-y;
}
.trending__track .product-card {
  flex: 0 0 280px;
  background: var(--graphite);
  border-color: rgba(230, 111, 157, 0.25);
  color: var(--ivory);
}
.trending__track .product-card__desc { color: var(--rose-soft); }
.trending__controls { display: flex; gap: 12px; margin-top: 24px; }
.trending__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  background: transparent;
  color: var(--rose);
  font-size: 1.2rem;
  cursor: pointer;
}
.trending__arrow:hover { background: var(--rose); color: var(--black); }

/* ===== Текстовые секции ===== */
.text-section { padding: 56px 0; }
.text-section--alt { background: #fff; }

/* ===== Рамка «Подарок к первому заказу» ===== */
.gift-frame { padding: 16px 0 48px; }
.gift-frame__box {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 48px;
  background: #fff;
  border: 1px solid rgba(230, 111, 157, 0.45);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(230, 111, 157, 0.12);
}
.gift-frame__box::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(230, 111, 157, 0.5);
  border-radius: 14px;
  pointer-events: none;
}
.gift-frame__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--rose);
  margin-bottom: 12px;
}
.gift-frame__body { color: #5c4a53; font-size: 1.02rem; line-height: 1.6; max-width: 620px; margin: 0 auto; }
.text-section__body { max-width: 720px; color: #3d3238; font-size: 1.05rem; white-space: pre-line; overflow-wrap: anywhere; }

/* ===== CTA-блок ===== */
.cta-block {
  background:
    linear-gradient(rgba(13, 11, 14, 0.78), rgba(13, 11, 14, 0.78)),
    url('/assets/cta-bg.jpg') center / cover no-repeat;
  color: var(--ivory);
  padding: 72px 0;
}
.cta-block__inner { text-align: center; }
.cta-block h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-block p { color: var(--rose-soft); margin-bottom: 28px; }
.cta-block__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-block__buttons a {
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.cta-block__buttons a.cta-tg { background: var(--rose); color: var(--black); }
.cta-block__buttons a.cta-max { background: transparent; color: var(--rose-soft); border: 1px solid var(--rose-soft); }

/* ===== Footer ===== */
.footer { background: var(--black); color: var(--muted); padding: 56px 0 96px; }
.footer__logo { height: 72px; width: auto; margin-bottom: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer h3 { font-family: var(--font-display); color: var(--rose-soft); margin-bottom: 12px; }
.footer__contacts { display: flex; flex-direction: column; gap: 8px; }
.footer__contacts a { color: var(--rose); text-decoration: none; font-weight: 600; }

/* ===== Корзина-шторка ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 14, 0.6);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--ivory);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cart.open { transform: translateX(0); }
.cart__head { display: flex; justify-content: space-between; align-items: center; }
.cart__close { background: none; border: none; font-size: 1.4rem; cursor: pointer; width: 40px; height: 40px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(13, 11, 14, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
}
.cart-item__info { flex: 1; }
.cart-item__info h5 { font-size: 0.95rem; }
.cart-item__price { color: var(--rose); font-weight: 700; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(13, 11, 14, 0.2);
  background: #fff;
  cursor: pointer;
}
.cart-item__remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.cart__addons {
  background: var(--rose-soft);
  border-radius: 20px;
  padding: 16px;
}
.cart__addons h4 { margin-bottom: 12px; font-size: 0.95rem; }
.badge-recommend {
  background: var(--rose);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}
.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.addon-item h6 { font-size: 0.9rem; }
.addon-item p { font-size: 0.78rem; color: var(--muted); }
.addon-item button {
  background: var(--black);
  color: var(--rose-soft);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
}
.addon-item button:hover { background: var(--rose); color: var(--black); }
.cart__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  border-top: 1px solid rgba(13, 11, 14, 0.12);
  padding-top: 16px;
}
.cart__total strong { color: var(--rose); font-family: var(--font-display); }

.order-form { display: flex; flex-direction: column; gap: 12px; }
.order-form__hint { font-size: 0.85rem; color: var(--muted); background: #fff; border-radius: 12px; padding: 10px 14px; border-left: 3px solid var(--rose); }
.order-form input, .order-form textarea, .order-form select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(13, 11, 14, 0.2);
  background: #fff;
  outline: none;
}
.order-form input:focus, .order-form textarea:focus, .order-form select:focus { border-color: var(--rose); }
.order-form__dt { display: flex; gap: 10px; }
.order-form__dt input, .order-form__dt select { flex: 1; min-width: 0; width: 100%; }
.order-success { text-align: center; padding: 24px 0; }
.order-success h4 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 12px; }
.order-success p { color: var(--muted); margin-bottom: 20px; }

/* ===== Быстрый просмотр ===== */
.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 14, 0.7);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.quickview-overlay.open { display: flex; }
.quickview {
  background: var(--ivory);
  border-radius: 24px;
  max-width: 880px;
  width: 100%;
  padding: 32px;
  position: relative;
}
.quickview__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.quickview__image { margin: 0; aspect-ratio: 4 / 5; }
.quickview__info { display: flex; flex-direction: column; gap: 12px; }
.quickview h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.quickview__close {
  position: absolute; top: 2px; right: 6px; z-index: 2;
  width: 40px; height: 40px; padding: 0; line-height: 1;
  background: none; border: none; border-radius: 50%;
  color: var(--black); font-size: 1.3rem; cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.quickview__close:hover { color: var(--rose); transform: scale(1.1); }
.quickview__price { font-family: var(--font-display); font-size: 1.6rem; color: var(--rose); font-weight: 700; margin: 0; }
.quickview__desc { color: var(--graphite); line-height: 1.55; }
.quickview__note { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.quickview__composition h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.quickview__composition p { color: var(--graphite); line-height: 1.55; }
.quickview__actions { display: flex; gap: 12px; align-items: stretch; margin-top: 8px; }
.quickview__add { flex: 1; }
.quickview__fav {
  width: 48px;
  flex: 0 0 48px;
  border-radius: 999px;
  border: 1px solid rgba(13, 11, 14, 0.25);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.quickview__fav svg { width: 20px; height: 20px; color: var(--muted); }
.quickview__fav:hover { border-color: var(--rose); transform: scale(1.06); }
.quickview__fav.active { border-color: var(--rose); }
.quickview__fav.active svg { fill: var(--rose); stroke: var(--rose); color: var(--rose); }
.quickview__manager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
  color: var(--rose);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(230, 111, 157, 0.5);
  padding-bottom: 2px;
}
.quickview__manager svg { width: 18px; height: 18px; }
.quickview__manager:hover { color: var(--black); border-bottom-color: var(--black); }

/* ===== Авторизация покупателя ===== */
.auth-modal { max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-modal__tabs { display: flex; gap: 8px; }
.auth-modal__tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(13, 11, 14, 0.12);
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted);
}
.auth-modal__tab.active { color: var(--black); border-bottom-color: var(--rose); }
.auth-modal__form { display: flex; flex-direction: column; gap: 12px; }
.auth-modal__form[hidden] { display: none; }
.auth-modal__form input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid rgba(13, 11, 14, 0.2);
  border-radius: 12px;
  outline: none;
}
.auth-modal__form input:focus { border-color: var(--rose); }
.auth-modal__error { color: #c0392b; font-size: 0.85rem; margin: 0; }
.header__account.logged { color: var(--rose); border-color: var(--rose); }
.mobile-menu__account {
  background: none;
  border: none;
  color: var(--rose-soft);
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 12px 16px;
  min-height: 48px;
}
.auth-prompt {
  background: rgba(230, 111, 157, 0.08);
  border: 1px solid rgba(230, 111, 157, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.85rem;
}
.auth-prompt p { margin: 0 0 10px; }
.auth-prompt__btns { display: flex; align-items: center; gap: 14px; }
.auth-prompt__btns .btn { padding: 8px 22px; font-size: 0.85rem; }
.auth-prompt__later { background: none; border: none; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 0.85rem; text-decoration: underline; }

/* ===== Галерея фото в быстром просмотре ===== */
.quickview__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.quickview__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: none;
}
.quickview__thumb.active { border-color: var(--rose); }
.quickview__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quickview__image { touch-action: pan-y; }
.quickview__image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Окно избранного ===== */
.fav-modal { max-width: 560px; max-height: 85vh; overflow-y: auto; }
.fav-modal h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 16px; }
.fav-modal__list { display: flex; flex-direction: column; gap: 12px; }
.fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(13, 11, 14, 0.08);
  border-radius: 16px;
  padding: 12px;
  flex-wrap: wrap;
}
.fav-item__img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--rose-soft); }
.fav-item__info { flex: 1; min-width: 120px; }
.fav-item__info h5 { margin: 0 0 4px; font-size: 0.95rem; }
.fav-item__price { color: var(--rose); font-weight: 700; }
.fav-item__btns { display: flex; align-items: center; gap: 8px; }
.fav-item__add { padding: 10px 18px; font-size: 0.85rem; min-height: 40px; }
.fav-item__remove { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--muted); width: 40px; height: 40px; }
.fav-item__remove:hover { color: #c0392b; }
.fav-modal__empty { color: var(--muted); line-height: 1.5; }

/* ===== Плашка сброса поиска в фильтрах каталога ===== */
.catalog__reset {
  border: 1px dashed var(--rose);
  background: none;
  color: var(--rose);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.catalog__reset:hover { background: var(--rose); color: var(--black); }

/* ===== Адаптивность ===== */
@media (max-width: 1199px) {
  .header__inner { flex-wrap: wrap; }
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .hero__gift { right: 5%; top: 18%; width: 140px; height: 140px; font-size: 0.62rem; }
  .hero__note { right: 20px; bottom: 24px; }
  .categories__grid { gap: 28px 20px; }
  .category-card { width: 150px; }
}

@media (max-width: 767px) {
  /* на мобильном шапка выше (2 ряда: навигация + поиск) — отступ скролла больше */
  section[id], footer[id] { scroll-margin-top: 118px; }
  /* контент не прижат к краям: общие боковые отступы шире (правило первым — дальше секции могут его переопределять) */
  .container { padding-left: 28px; padding-right: 28px; }
  .header__search { display: none; }
  /* строка поиска под основным рядом шапки */
  .header__searchrow { display: block; padding: 0 28px 10px; }
  .header__search--mobile { display: flex; width: 100%; padding: 12px 18px; }
  .header__search--mobile input { width: 100%; flex: 1; }
  .header__logo-tagline { display: none; }
  /* Компактная шапка: бургер + лого + иконки в один ряд, телефон — круглой иконкой; края — по сетке контента (28px) */
  .header__inner { flex-wrap: nowrap; gap: 4px 8px; padding: 8px 28px; }
  .header__burger { padding: 12px 12px 12px 4px; }
  .header__logo { min-width: 0; gap: 8px; }
  .header__logo-img { height: 36px; }
  .header__logo-name { font-size: 1rem; }
  .header__actions { margin-left: auto; gap: 6px; }
  .header__cart { padding: 10px; }
  .header__account { display: none; } /* на мобильном вход — через меню и промпт в корзине */
  .header__phone { padding: 10px; border-radius: 50%; gap: 0; }
  .header__phone span { display: none; }
  .header__phone svg { width: 20px; height: 20px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255, 248, 249, 0.88) 0%, rgba(255, 248, 249, 0.6) 45%, rgba(255, 248, 249, 0.35) 100%);
  }
  /* портретный фон: женщина помещается целиком */
  .hero__bg { background-image: url('/assets/hero-bg-mobile.jpg') !important; background-position: center top; }
  /* hero целиком помещается в экран 360px */
  /* hero занимает весь первый экран: баннеры начинаются ниже; текст ближе к шапке */
  .hero__inner { padding: 36px 16px 44px; min-height: calc(100svh - 132px); display: flex; flex-direction: column; justify-content: flex-start; }
  .hero__content { max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
  .hero__title { font-size: clamp(1.35rem, 5.8vw, 1.7rem); overflow-wrap: break-word; }
  .hero__subtitle { max-width: 100%; font-size: 0.85rem; margin-bottom: 20px; }
  .hero__sent-br { display: block; }
  /* преимущества колонкой и кнопка прижаты к низу главного экрана */
  .hero__features {
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    background: rgba(13, 11, 14, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 14px 16px;
  }
  .hero__features li {
    max-width: none;
    flex: none;
    font-size: 0.95rem;
    color: var(--ivory);
  }
  .hero__features svg { width: 30px; height: 30px; color: var(--rose-soft); }
  .hero__cta { order: 10; margin-top: 26px; }
  .hero__gift, .hero__note { display: none; }
  .banner, .banner--noimg { min-height: 220px; }
  /* фото уходит на фон, контент задаёт высоту и не обрезается */
  .banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* контент с градиентом растягивается на всю высоту баннера — затемнение без обрезки снизу */
  .banner { display: flex; }
  .banner__content { position: relative; flex: 1; padding: 24px 40% 24px 24px; background: linear-gradient(90deg, rgba(13, 11, 14, 0.85) 0%, rgba(13, 11, 14, 0.6) 45%, rgba(13, 11, 14, 0.25) 70%, transparent 90%); }
  .banner__content h3 { font-size: 1.35rem; }
  .banner__cta { margin-top: 14px; padding: 10px 28px; font-size: 0.85rem; }
  .banners__arrow { width: 44px; height: 44px; }
  .banners__arrow--prev { left: 10px; }
  .banners__arrow--next { right: 10px; }
  .categories { padding: 40px 0; }
  .categories__grid { gap: 22px 14px; }
  .category-card { width: calc(50% - 7px); max-width: 170px; }
  .category-card__frame { padding: 8px 8px 28px; }
  .category-card__img--empty { font-size: 2rem; }
  .category-card h3 { font-size: 0.82rem; margin-top: 10px; }
  .topbar { font-size: 0.75rem; }
  .quickview { padding: 24px; max-height: 90vh; overflow-y: auto; }
  .quickview__close { top: -2px; right: 2px; font-size: 1.15rem; }
  .gift-frame__box { padding: 32px 22px; }
  .quickview__grid { grid-template-columns: 1fr; gap: 20px; }
  .quickview__image { aspect-ratio: 4 / 3; }
  /* Каталог в две колонки, карточка компактнее */
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { border-radius: 18px; }
  .product-card__image { margin: 8px 8px 0; padding: 16px; border-radius: 12px; font-size: 0.9rem; }
  .product-card__body { padding: 12px; gap: 6px; }
  .product-card h3 { font-size: 0.92rem; }
  .product-card__desc { font-size: 0.78rem; }
  .product-card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-card__btns { flex-direction: column; }
  .product-card__more, .product-card__add { width: 100%; padding: 9px 12px; font-size: 0.8rem; min-height: 44px; }
  /* Ленты: уже карточки и стрелки */
  .trending__track .product-card { flex: 0 0 200px; }
  .trending__arrow { width: 44px; height: 44px; font-size: 1rem; }
}

@media (max-width: 560px) {
  /* узкие телефоны: карточка товара компактнее, фото шире и ниже */
  .quickview { padding: 40px 16px 18px; }
  .quickview__grid { gap: 14px; }
  .quickview__image { aspect-ratio: 16 / 10; }
  .quickview h3 { font-size: 1.3rem; }
  .quickview__info { gap: 10px; }
  .quickview__price { font-size: 1.35rem; }
  .quickview__desc, .quickview__composition p { font-size: 0.92rem; }
  /* фильтры каталога — в два ровных столбца */
  .catalog__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .catalog__filters button { width: 100%; padding: 10px 8px; font-size: 0.82rem; text-align: center; }
  /* дата/время: дате больше места, мельче шрифт — значение не обрезается */
  .order-form__dt input, .order-form__dt select { font-size: 0.85rem; padding: 12px 10px; }
  .order-form__dt input[type="date"] { flex: 1.4; }
}

@media (max-width: 420px) {
  /* шапка в один ряд на узких экранах: имя у логотипа прячем */
  .header__logo-name { display: none; }
}

@media (max-width: 380px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .header__inner { padding: 8px 16px; gap: 4px 8px; }
  .header__logo-img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__track { animation: none; }
}
