/* ============================================================
   Шураны Эко Гарден — основные стили
   Цветовая палитра: нежно-зелёная, премиальная
   ============================================================ */

/* ── Reset & базовые ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Фирменные цвета ───────────────────────────────────── */
  --olive:        #6E7553;   /* OLIVE — основной бренд */
  --olive-dark:   #5a6246;   /* OLIVE darker */
  --olive-deep:   #4e5440;   /* OLIVE very dark */
  --carrot:       #B64A2D;   /* CARROT — акцент / CTA */
  --carrot-dark:  #8f3a20;   /* CARROT darker */
  --brown:        #483723;   /* BROWN TREE — заголовки / футер */
  --creme:        #FAF5F6;   /* CREME — фон */

  /* ── Маппинг на старые имена (UI совместимость) ────────── */
  --green-50:  #f5f4f0;   /* olive faint */
  --green-100: #e8e6de;   /* olive light */
  --green-200: #c5c9b5;   /* olive pale — текст на тёмном фоне */
  --green-400: #8a9270;   /* olive medium-light */
  --green-500: #6E7553;   /* = --olive */
  --green-600: #5a6246;   /* = --olive-dark */
  --green-700: #483723;   /* = --brown */

  --red-400:   #e83e3e;
  --red-500:   #c0392b;
  --orange:    #f97316;
  --gold:      #d4a017;

  --text:      #2c1f14;   /* очень тёмный коричневый */
  --text-2:    #6b5540;   /* средний коричневый */
  --text-3:    #9c856e;   /* приглушённый */
  --border:    #dbd5cc;   /* тёплый бежевый */
  --bg:        #FAF5F6;   /* = --creme */
  --white:     #ffffff;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.13);
  --radius:    14px;
  --radius-sm: 8px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Кнопки ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(110,117,83,.35);
}
.btn--primary:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110,117,83,.5);
}
.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,.15); }
.btn--full { width: 100%; }

/* ── Заголовки секций ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 8px;
}
.section-sub { color: var(--text-3); font-size: 1rem; }

/* ══════════════════════ HEADER ═══════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}

/* Лого */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__icon { width: 44px; height: 44px; }
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-700);
}
.logo__sub {
  font-size: .72rem;
  color: var(--green-500);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Навигация */
.header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.header__nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green-500);
  border-radius: 2px;
  transition: width var(--transition);
}
.header__nav-link:hover { color: var(--green-500); }
.header__nav-link:hover::after { width: 100%; }

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.search-btn, .cart-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: var(--transition);
  position: relative;
}
.search-btn:hover, .cart-btn:hover {
  background: var(--green-50);
  color: var(--green-600);
}
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--green-500);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--green-600);
  border-radius: 2px;
  transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.mobile-menu.open { max-height: 300px; }
.mobile-menu__link {
  padding: 14px 20px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--green-50);
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__link:hover { background: var(--green-50); color: var(--green-600); }

/* Строка поиска */
.search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.search-bar.open { max-height: 80px; }
.search-bar > .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}
.search-bar__input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
}
.search-bar__input:focus { border-color: var(--green-500); }
.search-bar__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 1rem;
  flex-shrink: 0;
}
.search-bar__close:hover { background: var(--green-50); color: var(--green-600); }

/* ══════════════════════ HERO ══════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--brown);
  z-index: 0;
}

/* Фото-фон героя — проявляется справа через маску */
.hero__photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,.25) 18%,
    rgba(0,0,0,.7)  38%,
    black           62%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,.25) 18%,
    rgba(0,0,0,.7)  38%,
    black           62%
  );
  display: none; /* показывается только когда src установлен через JS */
}
.hero__photo.loaded { display: block; }

/* Hero layout: текст слева, фото проявляется справа абсолютно */
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 80px 20px 60px;
  min-height: 520px;
  max-width: 1260px;
  margin: 0 auto;
}
.hero__content {
  max-width: 560px;
  width: 100%;
}
.hero__eyebrow {
  font-size: .82rem;
  font-weight: 500;
  color: var(--green-200);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 1rem;
  color: var(--green-100);
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero image */
.hero__image {
  position: relative;
  z-index: 1;
}
.hero__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  display: block;
}
.hero__illustration {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.2));
}

.hero__features {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: var(--green-100);
  font-size: .9rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero__feature:last-child { border-right: none; }
.hero__feature-icon { font-size: 1.4rem; }

/* ══════════════════════ АКЦИИ / БАННЕРЫ ══════════════════════════════════ */
.promos {
  padding: 56px 0 48px;
  background: var(--green-50);
  border-top: 1px solid var(--border);
}

.promos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Один баннер — горизонтальный на всю ширину */
.promos__grid--single {
  grid-template-columns: 1fr;
}
.promos__grid--single .promo-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  max-height: 300px;
}
.promos__grid--single .promo-card__img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}
.promos__grid--single .promo-card__img-placeholder {
  height: 100%;
  min-height: 200px;
}
.promos__grid--single .promo-card__body {
  justify-content: center;
  padding: 36px 40px;
}
.promos__grid--single .promo-card__title {
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.promos__grid--single .promo-card__subtitle {
  font-size: 1rem;
  line-height: 1.7;
}

.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promo-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.promo-card__img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--olive) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.promo-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.promo-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.3;
}
.promo-card__subtitle {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}
.promo-card__hint {
  margin-top: auto;
  padding-top: 14px;
  font-size: .8rem;
  color: var(--text-3);
  font-style: italic;
}

@media (max-width: 700px) {
  .promos__grid--single .promo-card {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .promos__grid--single .promo-card__img { max-height: 220px; }
  .promos__grid--single .promo-card__body { padding: 24px; }
  .promos__grid--single .promo-card__title { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .promos__grid { grid-template-columns: 1fr; }
  .promos { padding: 40px 0 32px; }
}

/* ══════════════════════ CATALOG ═══════════════════════════ */
.catalog {
  padding: 72px 0 80px;
  background-color: #f5f4f0;
  background-image: radial-gradient(circle, #c5c9b5 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* Layout: sidebar + main */
.catalog__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.catalog__sidebar {
  position: sticky;
  top: 86px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--green-200) transparent;
}
.catalog__sidebar::-webkit-scrollbar { width: 4px; }
.catalog__sidebar::-webkit-scrollbar-track { background: transparent; }
.catalog__sidebar::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 4px; }
/* Поиск в сайдбаре ────────────────────────────────────────── */
.sidebar-search { margin-bottom: 12px; }
.sidebar-search__inner {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green-50);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 12px;
  transition: border-color var(--transition), background var(--transition);
}
.sidebar-search__inner:focus-within {
  border-color: var(--green-500);
  background: var(--white);
}
.sidebar-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: .87rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}
.sidebar-search__input::placeholder { color: var(--text-3); }
.sidebar-search__clear {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  padding: 0 2px;
}
.sidebar-search__clear:hover { color: var(--text); }

.sidebar-cat-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 10px;
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Категории (вертикально в сайдбаре) */
.categories {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cat-btn {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cat-btn:hover { background: var(--green-50); color: var(--green-600); }
.cat-btn--active {
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 600;
}

/* Спецфильтры */
.special-filters {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tag-filter {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  border: none;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.tag-filter:hover { background: var(--green-50); color: var(--green-600); }
.tag-filter.active {
  background: var(--green-600);
  color: var(--white);
}

/* Сетка товаров — 3 колонки при наличии сайдбара */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  min-height: 60vh;
  align-content: start;
}
.no-products {
  text-align: center;
  color: var(--text-3);
  padding: 60px 0;
  font-size: 1.1rem;
}

/* Скелетон */
.product-skeleton {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.product-skeleton::before {
  content: '';
  display: block;
  padding-top: 70%;
  background: var(--green-100);
}
.product-skeleton::after {
  content: '';
  display: block;
  height: 100px;
  margin: 16px;
  border-radius: 6px;
  background: var(--green-100);
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ── Карточка товара ──────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-100);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Изображение */
.product-card__img-wrap {
  position: relative;
  padding-top: 65%;
  background: var(--green-50);
  overflow: hidden;
}
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__img-placeholder svg { width: 70%; height: 70%; opacity: .7; }
.product-card__img-placeholder { display: none; }
.product-card__img-placeholder.show { display: flex; }

/* Бейджи */
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

/* Хит недели — многоконечная звезда */
.badge-hit {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: var(--olive);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-hit svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(110,117,83,.4));
}

/* Акция */
.badge-sale {
  background: var(--olive);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(110,117,83,.3);
  letter-spacing: .02em;
}

/* К вину */
.badge-wine {
  background: #7b2f7a;
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* На подарок */
.badge-weight {
  background: #6b7280;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-gift {
  background: var(--brown);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* Тело карточки */
.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-card__country {
  font-size: .72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.product-card__sku {
  font-size: .7rem;
  color: var(--text-3);
  font-family: monospace;
  min-height: 0;
}
.product-detail__sku {
  font-size: .75rem;
  color: var(--text-3);
  font-family: monospace;
  margin-bottom: 2px;
}
.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.product-card__desc {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Подвал карточки */
.product-card__footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__pricing { display: flex; flex-direction: column; gap: 2px; }
.product-card__price-line { display: flex; align-items: baseline; gap: 6px; }
.product-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
}
.product-card__old-price {
  font-size: .85rem;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card__weight-label {
  font-size: .75rem;
  color: var(--text-3);
}

/* Обёртка управления корзиной на карточке */
.card-cart-ctrl { flex-shrink: 0; }

.product-card__add-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--olive);
  color: var(--white);
  font-size: .83rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}
.product-card__add-btn:hover {
  background: var(--olive-dark);
  transform: scale(1.04);
}

/* Степпер − / кол-во / + */
.card-qty-stepper {
  align-items: center;
  background: var(--olive);
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  justify-content: space-between;
}
.card-qty-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}
.card-qty-btn:hover { background: rgba(0,0,0,.15); }
.card-qty-val {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* ══════════════════════ О МАГАЗИНЕ ════════════════════════ */
.about {
  background: var(--green-50);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__text p {
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.about__stat {
  display: flex;
  flex-direction: column;
}
.about__stat strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green-600);
  font-weight: 700;
}
.about__stat span {
  font-size: .82rem;
  color: var(--text-3);
}
.about__img-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
}
.about__img-placeholder svg { width: 100%; height: 100%; }

/* ══════════════════════ ДОСТАВКА ══════════════════════════ */
.delivery { }

.delivery__banner {
  background: linear-gradient(135deg, #8f3a20 0%, #B64A2D 60%, #c85f3d 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.delivery__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(255,255,255,.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
  pointer-events: none;
}

.delivery__banner-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 32px;
}

.delivery__banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.delivery__point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 28px 0 0;
  border-right: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.delivery__point:first-child { padding-left: 0; }
.delivery__point:last-child { border-right: none; padding-right: 0; padding-left: 28px; }
.delivery__point:not(:first-child):not(:last-child) { padding-left: 28px; }

.delivery__point-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.delivery__point div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.delivery__point strong {
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.delivery__point span {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

/* ══════════════════════ КОНТАКТЫ ══════════════════════════ */
.contacts {
  background: var(--green-50);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contacts__list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contacts__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.contacts__item:hover { color: var(--green-600); }
.contacts__icon { font-size: 1.3rem; }

.contacts__cta p {
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ══════════════════════ FOOTER ════════════════════════════ */
.footer {
  background: var(--green-700);
  color: var(--green-100);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}
.footer__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: .88rem;
  color: var(--green-200);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__copy { width: 100%; font-size: .8rem; color: var(--green-200); text-align: center; }

/* ══════════════════════ КОРЗИНА ═══════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
  box-shadow: var(--shadow-lg);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-panel__header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-700);
}
.cart-panel__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-3);
  transition: var(--transition);
}
.cart-panel__close:hover { background: var(--green-50); color: var(--green-600); }

/* Уведомление о весовых товарах */
.cart-weight-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: 12px 16px;
  margin: 0 16px 4px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .8rem;
  color: #78350f;
  line-height: 1.5;
}
.cart-weight-notice svg { flex-shrink: 0; color: #f59e0b; margin-top: 2px; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-empty {
  text-align: center;
  color: var(--text-3);
  padding: 40px 0;
  font-size: 1rem;
}

/* Элемент корзины */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}
.cart-item__img {
  width: 64px; height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-100);
}
.cart-item__img-placeholder {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.cart-item__info { min-width: 0; }
.cart-item__name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.cart-item__weight { font-size: .75rem; color: var(--text-3); margin-bottom: 6px; }
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item__qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--green-600);
  transition: var(--transition);
  background: var(--white);
}
.cart-item__qty-btn:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
.cart-item__qty { font-weight: 600; font-size: .9rem; min-width: 18px; text-align: center; }
.cart-item__price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  text-align: right;
}
.cart-item__remove {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 4px;
}
.cart-item__remove:hover { background: #fee2e2; color: var(--red-400); }

.cart-panel__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total span { font-size: .9rem; color: var(--text-2); }
.cart-total strong { font-size: 1.25rem; color: var(--brown); font-weight: 700; }

/* ══════════════════════ МОДАЛКИ ═══════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal--wide { max-width: 680px; }
.modal--small { max-width: 400px; }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
}
.modal__header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-700);
}
.modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-3);
  transition: var(--transition);
}
.modal__close:hover { background: var(--green-50); color: var(--green-600); }

.modal__body { padding: 24px 28px; overflow-y: auto; }
.modal__body--scroll { flex: 1; }
.modal__body--center { padding: 40px 28px; text-align: center; }

.modal__footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ── Форма оформления ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.req { color: var(--red-400); }
.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-input:focus { border-color: var(--green-500); }
.form-input.error { border-color: var(--red-400); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error {
  display: block;
  font-size: .78rem;
  color: var(--red-400);
  margin-top: 4px;
  min-height: 16px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--green-500);
  cursor: pointer;
  margin-top: 2px;
}
.form-check label { font-size: .88rem; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.oferta-link { color: var(--green-500); text-decoration: underline; }
.oferta-link:hover { color: var(--green-600); }

.checkout-weight-notice {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .85rem;
  color: #78350f;
  margin-bottom: 18px;
  line-height: 1.55;
}

.checkout-order-summary {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .85rem;
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-2);
  border-bottom: 1px dashed var(--border);
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 2px solid var(--border);
  font-weight: 700;
  color: var(--green-700);
}

/* ── Оферта ────────────────────────────────────────────────── */
.oferta-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--green-700);
  margin: 20px 0 8px;
  font-weight: 600;
}
.oferta-content h3:first-child { margin-top: 0; }
.oferta-content p {
  font-size: .88rem;
  color: var(--text-2);
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ── Успешный заказ ─────────────────────────────────────────── */
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
}
.success-icon svg { width: 100%; height: 100%; }
.modal__body--center h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--green-700);
  margin-bottom: 12px;
}
.modal__body--center p {
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ══════════════════════ ДЕТАЛИ ТОВАРА ════════════════════ */
.modal--product {
  max-width: 780px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

/* Кнопка закрыть — поверх картинки */
.pd-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pd-close:hover { background: var(--white); transform: scale(1.08); }

.product-detail {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 400px;
}

/* Изображение */
.product-detail__img-wrap {
  position: relative;
  background: var(--green-50);
  overflow: hidden;
}
.product-detail__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-detail__img-placeholder {
  width: 100%; height: 100%;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.product-detail__img-placeholder svg { width: 70%; height: 70%; opacity: .7; }

/* Информация */
.product-detail__info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 88dvh;
}
.product-detail__badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.product-detail__country {
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.product-detail__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.28;
  margin-bottom: 14px;
}
.product-detail__desc {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.product-detail__price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 4px;
}
.product-detail__price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brown);
}
.product-detail__old-price {
  font-size: 1rem;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-detail__weight {
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 22px;
}
.product-detail__cart-ctrl { margin-top: auto; }
.product-detail__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--olive);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.product-detail__add-btn:hover { background: var(--olive-dark); }
.product-detail__stepper {
  align-items: center;
  background: var(--olive);
  border-radius: 50px;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
}
.product-detail__stepper .card-qty-btn { padding: 12px 20px; font-size: 1.3rem; }
.product-detail__stepper .card-qty-val { font-size: 1rem; }

/* Карточка — курсор указывает на кликабельность */
.product-card { cursor: pointer; }

/* ══════════════════════ RESPONSIVE ════════════════════════ */

/* 1100px – сайдбар чуть уже, 2 колонки товаров */
@media (max-width: 1100px) {
  .catalog__layout { grid-template-columns: 190px 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero__features-grid { grid-template-columns: repeat(3, 1fr); }
  .header__nav { gap: 18px; }
}

/* 900px – hero в одну колонку */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 50px 20px 36px; }
  .hero__title { font-size: 2.2rem; }
  /* На мобайле фото занимает всю ширину, маска сверху вниз */
  .hero__photo.loaded {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 30%, black 65%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.5) 30%, black 65%);
    opacity: .45;
  }
}

/* 768px – скрываем десктопную навигацию, убираем sidebar */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }

  /* Каталог: переходим на блочный layout, сайдбар становится sticky */
  .catalog__layout { display: block; }
  .catalog__sidebar {
    position: sticky;
    top: 70px; /* высота хедера */
    z-index: 50;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    margin-bottom: 14px;
  }
  .sidebar-cat-title { display: none; }
  .sidebar-search { margin-bottom: 8px; }
  .categories {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  .categories::-webkit-scrollbar { display: none; }
  .cat-btn {
    flex-shrink: 0;
    width: auto;
    border-radius: 50px;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    background: var(--green-50);
    color: var(--green-600);
    font-size: .84rem;
  }
  .cat-btn--active {
    background: var(--green-500);
    color: var(--white);
    border-color: var(--green-500);
  }
  .sidebar-divider { display: none; }
  .special-filters {
    flex-direction: row;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .special-filters::-webkit-scrollbar { display: none; }
  .tag-filter {
    width: auto;
    flex-shrink: 0;
    border-radius: 50px;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-2);
    font-size: .82rem;
  }
  .tag-filter.active { background: var(--green-600); color: var(--white); border-color: var(--green-600); }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .product-card__add-btn { width: 100%; justify-content: center; }

  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__image { display: none; }
  .about__stats { flex-wrap: wrap; gap: 20px; }

  .contacts__inner { grid-template-columns: 1fr; gap: 32px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__links { margin-left: 0; }
  .footer__copy { text-align: left; }

  .cart-panel { width: 100%; }
  .delivery__banner-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .delivery__point { border-right: none; padding: 0 0 24px 0 !important; border-bottom: 1px solid rgba(255,255,255,.12); }
  .delivery__point:nth-child(3), .delivery__point:nth-child(4) { border-bottom: none; padding-bottom: 0 !important; }
  .hero__features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Детали товара — мобильный */
@media (max-width: 640px) {
  .modal--product { border-radius: 20px 20px 0 0; max-height: 94dvh; overflow-y: auto; }
  .modal-overlay:has(.modal--product) { align-items: flex-end; padding: 0; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__img-wrap { min-height: 220px; max-height: 260px; }
  .product-detail__img-placeholder { min-height: 220px; }
  .product-detail__info { padding: 20px; max-height: none; overflow-y: visible; }
}

/* 480px */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card__footer { flex-direction: column; align-items: flex-start; }
  .product-card__add-btn { width: 100%; justify-content: center; }
  .hero__features-grid { grid-template-columns: 1fr; }
  .delivery__banner-grid { grid-template-columns: 1fr; }
  .delivery__point { border-bottom: 1px solid rgba(255,255,255,.12) !important; padding-bottom: 20px !important; }
  .delivery__point:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
  .delivery__point:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,.12) !important; padding-bottom: 20px !important; }
  .hero__feature { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero__feature:last-child { border-bottom: none; }
  .modal { border-radius: 16px 16px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal--small { border-radius: var(--radius); }
  .modal--small.modal { margin: auto; border-radius: var(--radius); }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; }
  .about__stats { gap: 16px; }
  .hero__title { font-size: 1.9rem; }
}

/* ══════════════════════ НАШ МАГАЗИН ══════════════════════ */
.shop-section {
  padding: 72px 0 80px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

/* Информация */
.shop-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-info__block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.shop-info__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}
.shop-info__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.shop-info__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.shop-info__value a {
  color: var(--green-600);
  text-decoration: none;
}
.shop-info__value a:hover { text-decoration: underline; }

.shop-info__welcome {
  margin-top: 8px;
  padding: 20px 22px;
  background: var(--green-50);
  border-left: 3px solid var(--green-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.shop-info__welcome p {
  color: var(--text-2);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.shop-info__welcome p:last-child { margin-bottom: 0; }

/* Яндекс карта */
.shop-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.shop-map__link {
  display: block;
  position: relative;
  text-decoration: none;
}
.shop-map__iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
  pointer-events: auto;
}
.shop-map__hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.shop-map:hover .shop-map__hint { opacity: 1; }

/* ── Галерея / Карусель ────────────────────────────────────── */
.shop-gallery {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.shop-gallery__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 24px;
  text-align: center;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-prev,
.gallery-next {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 2;
}
.gallery-prev:hover,
.gallery-next:hover {
  background: var(--green-50);
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
}
.gallery-prev:disabled,
.gallery-next:disabled {
  opacity: .35;
  cursor: default;
}

.gallery-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-track {
  display: flex;
  gap: 16px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.gallery-slide {
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-slide:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.gallery-slide__caption {
  padding: 10px 14px;
  font-size: .83rem;
  color: var(--text-2);
  text-align: center;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.gallery-dot.active {
  background: var(--green-500);
  transform: scale(1.3);
}

/* Лайтбокс галереи */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.gallery-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 16px 60px rgba(0,0,0,.5);
}
.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ── Адаптив для магазина ─────────────────────────────────── */
@media (max-width: 860px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .shop-map__iframe { height: 300px; }
  .gallery-slide img { height: 190px; }
}
@media (max-width: 540px) {
  .shop-section { padding: 48px 0 56px; }
  .gallery-prev, .gallery-next { width: 38px; height: 38px; }
  .gallery-slide img { height: 160px; }
}

/* ══════════════════════ КНОПКА "НАВЕРХ" ══════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.75);
  background: var(--green-600);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  box-shadow: 0 4px 20px rgba(110,117,83,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.back-to-top:hover {
  background: var(--olive-dark);
  box-shadow: 0 6px 24px rgba(110,117,83,.55);
}
@media (max-width: 600px) {
  .back-to-top { bottom: 20px; right: 16px; padding: 7px 12px; font-size: .68rem; }
}
