/* =========================================================
   СИЯЙ! — цветочный магазин (мультистраничный сайт)
   Светлый, воздушный, тёплый пудрово-розовый акцент.
   ========================================================= */

:root {
  --bg: #fffaf9;
  --surface: #ffffff;
  --pink-soft: #fdeef1;
  --pink: #f6b9c6;
  --pink-deep: #ec6f89;
  --pink-deep-2: #e2536f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1fb959;
  --ink: #3a2c2f;
  --ink-dim: #8a7478;
  --ink-faint: #b7a3a7;
  --line: rgba(58, 44, 47, 0.09);
  --line-strong: rgba(58, 44, 47, 0.16);
  --shadow: 0 24px 50px -24px rgba(58, 44, 47, 0.2);
  --shadow-sm: 0 10px 24px -12px rgba(58, 44, 47, 0.18);
  --radius-lg: 24px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ff-head: "Playfair Display", Georgia, serif;
  --ff-body: "Nunito", system-ui, sans-serif;
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); margin: 0; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--pink-soft); }
.section-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-deep-2); margin: 0 0 10px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin: 0 0 36px; }

/* ---------- ПЛЕЙСХОЛДЕР ФОТО ---------- */
.ph-1, .ph-2, .ph-3, .ph-4, .ph-5 {
  position: relative;
  background-image: repeating-linear-gradient(135deg, rgba(58, 44, 47, 0.05) 0 2px, transparent 2px 18px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph-1 { background-color: #f7dde1; }
.ph-2 { background-color: #efd9dc; }
.ph-3 { background-color: #f3e6d8; }
.ph-4 { background-color: #e7dde9; }
.ph-5 { background-color: #dde9e2; }
.ph-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em;
  color: var(--ink-dim); background: rgba(255, 255, 255, 0.75);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.ph-label::before {
  content: ""; width: 16px; height: 13px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z'/%3E%3Ccircle cx='12' cy='14' r='3.4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z'/%3E%3Ccircle cx='12' cy='14' r='3.4' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--ff-body); font-weight: 800; font-size: 15px;
  white-space: nowrap; min-height: 46px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--pink-deep); color: #fff; box-shadow: 0 14px 28px -12px rgba(226, 83, 111, 0.55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(226, 83, 111, 0.65); background: var(--pink-deep-2); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--pink-deep); color: var(--pink-deep-2); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 14px 28px -12px rgba(37, 211, 102, 0.5); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.wa-icon { width: 19px; height: 19px; fill: #fff; }
.btn-sm { padding: 11px 20px; font-size: 13.5px; min-height: 40px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--ff-head); font-style: italic; font-weight: 800;
  font-size: 32px; color: var(--ink); flex-shrink: 0;
}
.logo-bang { color: var(--pink-deep-2); font-style: normal; }
.logo--footer { font-size: 30px; margin-bottom: 14px; display: inline-block; color: var(--pink); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 700; font-size: 15px; color: var(--ink); position: relative; padding: 8px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--pink-deep); transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--pink-deep-2); }

.nav-contacts-btn {
  background: var(--pink-soft); color: var(--pink-deep-2);
  font-weight: 800; font-size: 14.5px; padding: 9px 18px; border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-contacts-btn:hover { background: var(--pink-deep); color: #fff; }

/* ---------- КНОПКА КОРЗИНЫ ---------- */
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background 0.25s ease, color 0.25s ease;
}
.cart-btn:hover { background: var(--pink-soft); color: var(--pink-deep-2); }
.cart-icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--pink-deep); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.cart-btn--mobile { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cart-btn--mobile .cart-count { position: static; }

/* ---------- ПЛАВАЮЩАЯ КНОПКА КОРЗИНЫ (везде внизу справа) ---------- */
.cart-float-btn {
  position: fixed; right: 22px; bottom: 24px; z-index: 250;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--surface); color: var(--pink-deep); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -14px rgba(58, 44, 47, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), bottom 0.25s ease;
}
.cart-float-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(58, 44, 47, 0.45); }
.cart-float-btn .cart-icon { width: 25px; height: 25px; }
.cart-float-btn .cart-count { border: 2px solid var(--surface); }

@media (max-width: 480px) {
  .cart-float-btn { right: 14px; bottom: 18px; width: 52px; height: 52px; }
  .cart-float-btn .cart-icon { width: 22px; height: 22px; }
}

.burger {
  display: none; width: 40px; height: 40px; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  max-height: 0; overflow: hidden;
  background: var(--surface); border-top: 1px solid transparent;
  transition: max-height 0.35s var(--ease), border-color 0.3s ease;
}
.mobile-nav.is-open { max-height: 420px; border-top-color: var(--line); }
.mobile-nav a { padding: 16px 24px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a.is-active { color: var(--pink-deep-2); }
.nav-contacts-btn--mobile { margin: 16px 24px; text-align: center; padding: 13px 18px; }

/* =========================================================
   КАРУСЕЛЬ
   ========================================================= */
.carousel { position: relative; overflow: hidden; background: var(--pink-soft); }
.carousel-track { display: flex; width: 300%; transition: transform 0.6s var(--ease); }
.slide {
  width: 33.3333%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: 56px 24px; max-width: 1200px; margin: 0 auto;
}
.slide-photo {
  aspect-ratio: 16 / 11; border-radius: var(--radius-lg); order: 2;
  box-shadow: var(--shadow);
}
.slide-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.3s ease;
}
.slide-photo-img.is-loaded { opacity: 1; }
.slide-photo-img.is-error { display: none; }
.slide-copy { order: 1; }
.slide-title { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.15; margin-bottom: 18px; }
.slide-title--xl { font-size: clamp(36px, 5.2vw, 58px); }
.slide-sub { font-size: 17px; color: var(--ink-dim); max-width: 420px; margin-bottom: 28px; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm);
  font-size: 24px; color: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-arrow--prev { left: 20px; }
.carousel-arrow--next { right: 20px; }
.carousel-arrow:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.carousel-arrow:disabled:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-50%); }

.carousel-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; z-index: 5; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(58, 44, 47, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-dots button.is-active { background: var(--pink-deep); transform: scale(1.3); }

/* =========================================================
   КАТЕГОРИИ
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  position: relative; display: block; width: 100%; padding: 0; text-align: left;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-photo { position: absolute; inset: 0; }
.cat-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.3s ease;
}
.cat-photo-img.is-loaded { opacity: 1; }
.cat-photo-img.is-error { display: none; }
.cat-photo-img.is-loaded ~ .ph-label { display: none; }
.cat-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(58, 44, 47, 0.55) 0%, rgba(58, 44, 47, 0) 55%);
}
.cat-photo .ph-label { position: absolute; top: 14px; left: 14px; font-size: 11.5px; padding: 6px 12px; }
.cat-name {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 19px; text-align: left;
}

/* =========================================================
   ДОСТАВКА (тизер на главной)
   ========================================================= */
.delivery-teaser { text-align: center; }
.delivery-teaser-copy { max-width: 620px; margin: 0 auto; }
.delivery-teaser-text { color: var(--ink-dim); font-size: 17px; margin-bottom: 28px; }

/* =========================================================
   PAGE HERO (внутренние страницы)
   ========================================================= */
.page-hero { background: var(--pink-soft); padding: 56px 0 48px; text-align: center; }
.page-hero-title { font-size: clamp(32px, 5vw, 48px); margin: 0 0 10px; }
.page-hero-sub { color: var(--ink-dim); font-size: 17px; }

/* =========================================================
   КАТАЛОГ — ВКЛАДКИ
   ========================================================= */
.tab-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab-btn {
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 800; font-size: 15px; color: var(--ink-dim);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tab-btn:hover { border-color: var(--pink-deep); color: var(--pink-deep-2); }
.tab-btn.is-active { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }
.tab-panel[hidden] { display: none; }

/* =========================================================
   КАТАЛОГ — ПОИСК И СОРТИРОВКА
   ========================================================= */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.search-field { position: relative; flex: 1 1 320px; max-width: 440px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-faint); }
.search-field input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 15px; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-field input:focus { border-color: var(--pink-deep); box-shadow: 0 0 0 4px rgba(236, 111, 137, 0.15); outline: none; }

.sort-field { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink-dim); }
.sort-field select {
  padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 700; font-size: 14.5px; color: var(--ink);
  cursor: pointer;
}
.sort-field select:focus { border-color: var(--pink-deep); outline: none; }

/* =========================================================
   КАТАЛОГ — ФИЛЬТР-ЧИПЫ
   ========================================================= */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chip {
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-weight: 700; font-size: 14.5px; color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip:hover { border-color: var(--pink-deep); color: var(--pink-deep-2); }
.chip.is-active { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }

/* =========================================================
   КАТАЛОГ — СЕТКА ТОВАРОВ ("ОКОШКИ")
   ========================================================= */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-photo { position: relative; aspect-ratio: 4 / 3; }
.product-photo--img { background: var(--pink-soft); }
.product-photo--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.product-photo.is-clickable, .product-title.is-clickable { cursor: pointer; }
.product-title.is-clickable:hover { color: var(--pink-deep-2); }
.product-badges {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.product-badge {
  background: var(--pink-deep); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(226, 83, 111, 0.6);
}
.product-badge--hit { background: #e2820a; box-shadow: 0 8px 18px -8px rgba(226, 130, 10, 0.6); }
.product-badge--sale { background: #c23b3b; box-shadow: 0 8px 18px -8px rgba(194, 59, 59, 0.6); }
.stock-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--ink, #333); color: #fff; font-weight: 800; font-size: 11.5px;
  letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px;
}
.product-card.is-out-of-stock { opacity: 0.6; }
.product-card.is-out-of-stock .btn-order { cursor: not-allowed; }
.product-card.is-out-of-stock .btn-order:hover { transform: none; }
/* Кратковременная подсветка карточки, к которой вернулись со страницы товара */
.product-card.is-target { box-shadow: 0 0 0 3px var(--pink-deep), var(--shadow); animation: productCardTargetPulse 1.1s ease-in-out 2; }
@keyframes productCardTargetPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--pink-deep), var(--shadow); }
  50% { box-shadow: 0 0 0 3px var(--pink-soft), var(--shadow); }
}

/* Компактная пометка на карточке каталога для категорий «Букеты»/«Композиции» —
   подставляется автоматически по названию категории, без ручного ввода. */
.replace-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fdeaea; color: #c23b3b; font-size: 11.5px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px; align-self: flex-start;
}

.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-deep-2); }
.product-title { font-size: 22px; }
.product-desc {
  color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.product-price { font-family: var(--ff-head); font-weight: 700; font-size: 23px; color: var(--ink); margin: 6px 0 4px; }
.product-actions { display: flex; gap: 10px; margin-top: 10px; }
.product-actions .btn { flex: 1; padding-left: 12px; padding-right: 12px; }

.catalog-empty { text-align: center; color: var(--ink-dim); font-size: 16px; padding: 40px 0; }

/* =========================================================
   СТРАНИЦА ТОВАРА (product.php)
   ========================================================= */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.product-gallery-main {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--pink-soft); box-shadow: var(--shadow-sm); cursor: zoom-in;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 16px; box-sizing: border-box;
}
.product-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.product-gallery-thumb {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 2px solid transparent; background: var(--pink-soft); cursor: pointer;
  transition: border-color 0.2s ease;
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.product-gallery-thumb:hover { border-color: var(--pink); }
.product-gallery-thumb.is-active { border-color: var(--pink-deep); }

.product-info-title { font-size: clamp(26px, 3.4vw, 34px); margin: 6px 0 4px; }
.product-info-price { font-family: var(--ff-head); font-weight: 700; font-size: 30px; color: var(--ink); margin: 4px 0 16px; }
.product-info-desc { color: var(--ink-dim); font-size: 16px; line-height: 1.65; margin-bottom: 24px; }

/* Заметное предупреждение на товарах категорий «Букеты»/«Композиции» —
   подставляется автоматически по названию категории товара. */
.replace-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fdeaea; border: 1px solid #f3c6c6; color: #c23b3b;
  border-radius: var(--radius); padding: 14px 16px; font-weight: 700; font-size: 14.5px;
  line-height: 1.4; margin-bottom: 22px;
}
.replace-notice-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #c23b3b; color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.product-info-actions { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.stock-badge--static { position: static; display: inline-flex; margin-bottom: 10px; }
.product-badges-static { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }

@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .product-info-actions { max-width: none; }
}

/* =========================================================
   ДОСТАВКА — СТРАНИЦА
   ========================================================= */
.delivery-rules { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }
.delivery-rule {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pink);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.delivery-rule:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.delivery-rule-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink-soft); color: var(--pink-deep-2);
  display: flex; align-items: center; justify-content: center;
}
.delivery-rule-icon svg { width: 22px; height: 22px; }
.delivery-rule-body h3 { font-size: 17px; margin-bottom: 6px; }
.delivery-rule p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; margin: 0; }
.delivery-rule p strong { color: var(--ink); }
.delivery-rule p a { color: var(--pink-deep-2); font-weight: 700; }
.delivery-rule p a:hover { text-decoration: underline; }
.delivery-rule--warning { border-left-color: var(--pink-deep); background: var(--pink-soft); }
.delivery-rule--warning .delivery-rule-icon { background: var(--pink-deep); color: #fff; }

@media (max-width: 560px) {
  .delivery-rule { flex-direction: column; gap: 12px; padding: 20px; }
  .delivery-rule-icon { width: 40px; height: 40px; }
  .delivery-rule-icon svg { width: 20px; height: 20px; }
}

.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.delivery-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.delivery-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.delivery-icon svg { width: 24px; height: 24px; }
.delivery-card h3 { font-size: 19px; margin-bottom: 10px; }
.delivery-card p { color: var(--ink-dim); font-size: 15px; line-height: 1.55; }

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
/* Отступы слева/справа у .review-carousel — это «карман» для стрелок:
   .review-viewport обрезает (overflow:hidden) только свою область, а сам
   отступ карусели остаётся снаружи и карточками никогда не перекрывается. */
.review-carousel { position: relative; padding: 0 48px; }
.review-viewport { overflow: hidden; }
.review-track { display: flex; gap: 24px; transition: transform 0.5s var(--ease); }
.review-track .review-card { flex: 0 0 calc((100% - 48px) / 3); }
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: var(--pink-deep); letter-spacing: 3px; font-size: 15px; }
.review-text { color: var(--ink-dim); font-size: 15px; line-height: 1.6; flex: 1; }
.review-author { font-weight: 800; color: var(--ink); font-size: 14.5px; margin-top: auto; }
.review-carousel .carousel-arrow {
  width: 38px; height: 38px; font-size: 19px;
  background: rgba(255, 255, 255, 0.85);
}
.review-carousel .carousel-arrow--prev { left: 2px; }
.review-carousel .carousel-arrow--next { right: 2px; }
.review-dots { display: flex; justify-content: center; gap: 9px; margin-top: 28px; }
.review-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(58, 44, 47, 0.22);
  transition: background 0.25s ease, transform 0.25s ease;
}
.review-dots button.is-active { background: var(--pink-deep); transform: scale(1.3); }

/* =========================================================
   УСЛОВИЯ РАБОТЫ
   ========================================================= */
.terms-card {
  max-width: 780px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-sm); position: relative;
}
.terms-card::before {
  content: "“"; font-family: var(--ff-head); font-size: 90px; color: var(--pink);
  position: absolute; top: 0; left: 32px; line-height: 1; user-select: none;
}
.terms-card p {
  font-size: 19px; line-height: 1.75; color: var(--ink); position: relative; z-index: 1;
}

/* =========================================================
   ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ
   ========================================================= */
.policy-card {
  max-width: 780px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-sm);
}
.policy-card h2 { font-size: 21px; margin: 34px 0 12px; }
.policy-card h2:first-child { margin-top: 0; }
.policy-card p { font-size: 16px; line-height: 1.75; color: var(--ink); margin-bottom: 14px; }
.policy-card ul { margin: 0 0 14px; padding-left: 22px; }
.policy-card li { font-size: 16px; line-height: 1.75; color: var(--ink); list-style: disc; margin-bottom: 8px; }
.policy-updated { color: var(--ink-dim); font-size: 14.5px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* =========================================================
   ФУТЕР
   ========================================================= */
.site-footer { background: var(--ink); color: #f5ecee; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-col h4 { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink); margin-bottom: 16px; }
.footer-col p { margin-bottom: 10px; color: rgba(245, 236, 238, 0.75); font-size: 15px; }
.footer-col a:hover { color: var(--pink); }
.footer-text { color: rgba(245, 236, 238, 0.75); font-size: 15px; max-width: 320px; margin-bottom: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}
.social-icon:hover { background: var(--pink-deep); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 24px; text-align: center; font-size: 13.5px; color: rgba(245, 236, 238, 0.6); }

/* =========================================================
   ОКНО КОНТАКТОВ (МОДАЛКА)
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(58, 44, 47, 0.45); z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; top: 50%; left: 50%; z-index: 401;
  width: min(420px, calc(100vw - 40px));
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 36px 32px 32px;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal h3 { font-size: 26px; margin-bottom: 22px; }

.success-modal { text-align: center; }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%; background: #e4f6ea; color: #1f9d4c;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-icon svg { width: 32px; height: 32px; }
.success-modal h3 { font-size: 28px; margin-bottom: 10px; }
.success-text { color: var(--ink-dim); font-size: 16.5px; line-height: 1.5; margin-bottom: 26px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--pink-soft); color: var(--pink-deep-2); }
.modal-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.modal-row span { color: var(--ink-dim); font-weight: 600; }
.modal-row b { font-weight: 700; text-align: right; }
.modal-row a:hover { color: var(--pink-deep-2); }
.modal-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

/* =========================================================
   ОКНО КОРЗИНЫ
   ========================================================= */
.cart-modal { width: min(460px, calc(100vw - 40px)); text-align: left; }
.cart-list { display: flex; flex-direction: column; gap: 14px; max-height: 320px; overflow-y: auto; margin-bottom: 4px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cart-item-price { color: var(--ink-dim); font-size: 13.5px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cart-qty-btn:hover { border-color: var(--pink-deep); color: var(--pink-deep-2); }
.cart-item-qty { min-width: 18px; text-align: center; font-weight: 700; font-size: 14.5px; }
.cart-remove {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 18px; transition: background 0.2s ease, color 0.2s ease;
}
.cart-remove:hover { background: var(--pink-soft); color: var(--pink-deep-2); }
.cart-empty { color: var(--ink-dim); font-size: 15px; text-align: center; padding: 18px 0; }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.cart-total span { color: var(--ink-dim); font-weight: 700; }
.cart-total b { font-family: var(--ff-head); font-size: 21px; }

/* =========================================================
   ФОРМА ЗАКАЗА
   ========================================================= */
.order-modal { width: min(460px, calc(100vw - 40px)); text-align: left; }
.order-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-dim); }
.form-field input, .form-field textarea {
  padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 15px; color: var(--ink); resize: vertical; font-family: var(--ff-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--pink-deep); box-shadow: 0 0 0 4px rgba(236, 111, 137, 0.15); outline: none; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.form-checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--pink-deep); flex-shrink: 0; }
.form-checkbox a { color: var(--pink-deep-2); font-weight: 700; text-decoration: underline; }
.form-message { font-size: 14px; font-weight: 700; padding: 12px 16px; border-radius: var(--radius); }
.form-message.is-success { background: #e4f6ea; color: #1f7a3d; }
.form-message.is-error { background: #fdeaea; color: #c23b3b; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 500; text-align: center; max-width: min(90vw, 420px);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   ЛАЙТБОКС ФОТО ТОВАРА
   ========================================================= */
.photo-lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(30, 20, 22, 0.88);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  touch-action: pan-y;
}
.photo-lightbox.is-open { opacity: 1; pointer-events: auto; }
.photo-lightbox img {
  max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--surface);
  transform: scale(0.96); transition: transform 0.25s ease, opacity 0.18s ease;
  user-select: none; -webkit-user-drag: none;
}
.photo-lightbox.is-open img { transform: scale(1); }
.photo-lightbox img.is-switching { opacity: 0; }
.photo-lightbox-close {
  position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease; z-index: 602;
}
.photo-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Стрелки и счётчик показываем только когда фото у товара больше одного */
.photo-lightbox-nav, .photo-lightbox-counter { display: none; }
.photo-lightbox.is-multi .photo-lightbox-nav,
.photo-lightbox.is-multi .photo-lightbox-counter { display: flex; }
.photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 30px; line-height: 1;
  transition: background 0.2s ease; z-index: 601;
}
.photo-lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.photo-lightbox-prev { left: 16px; }
.photo-lightbox-next { right: 16px; }
.photo-lightbox-counter {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-weight: 700; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; letter-spacing: 0.3px;
}
@media (max-width: 560px) {
  .photo-lightbox { padding: 16px; }
  .photo-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 22px; }
  .photo-lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
  .photo-lightbox-prev { left: 6px; }
  .photo-lightbox-next { right: 6px; }
  .photo-lightbox-counter { bottom: 14px; font-size: 13px; padding: 6px 14px; }
}

/* =========================================================
   ПЛАШКА О COOKIE
   ========================================================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--ink); color: #fff;
  padding: 18px 24px; box-shadow: 0 -14px 34px -16px rgba(58, 44, 47, 0.35);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-text {
  margin: 0; flex: 1 1 420px; max-width: 640px;
  font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.88);
}
.cookie-banner-text a { color: var(--pink); font-weight: 700; text-decoration: underline; }
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-btn { flex-shrink: 0; }

@media (max-width: 560px) {
  .cookie-banner { justify-content: flex-start; padding: 16px 18px; }
  .cookie-banner-btn { width: 100%; }
}

/* =========================================================
   ПРОЯВЛЕНИЕ ПРИ СКРОЛЛЕ
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .slide { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; gap: 24px; }
  .slide-copy { order: 1; }
  .slide-photo { order: 0; aspect-ratio: 16/10; }
  .slide-sub { margin-left: auto; margin-right: auto; }
  .review-track .review-card { flex: 0 0 100%; }
}

@media (max-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-row { justify-content: center; }
  .footer-text { margin-left: auto; margin-right: auto; }
  .section { padding: 64px 0; }
  .terms-card { padding: 32px 24px; }
  .terms-card p { font-size: 17px; }
  .policy-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .container { padding: 0 16px; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 20px; }
  .review-carousel { padding: 0 34px; }
  .review-carousel .carousel-arrow { width: 30px; height: 30px; font-size: 15px; }
  .review-carousel .carousel-arrow--prev { left: 0; }
  .review-carousel .carousel-arrow--next { right: 0; }
  .product-actions { flex-direction: column; }
  .logo { font-size: 26px; }
  .modal { padding: 30px 22px 26px; }
}
