/**
 * STYLES.CSS
 * =============================================================
 * Вёрстка mobile-first: базовые стили — для маленького экрана,
 * media (min-width: …) — последовательно добавляют/меняют раскладку
 * для планшетов и десктопа.
 *
 * Все цвета/шрифты/радиус скруглений — через CSS-переменные в :root.
 * Значения ниже — это ДЕФОЛТЫ (на случай, если shop-config.js по
 * каким-то причинам не выполнился). Как только страница загрузится,
 * script.js подставит актуальные значения из конфига поверх этих же
 * переменных. Менять цвета лучше в shop-config.js, а не здесь —
 * тогда они не разъедутся.
 * ============================================================= */

:root {
  --color-primary: #6F7A52;
  --color-accent: #A6512F;
  --color-accent-dark: #7E3D22;
  --color-bg: #FBF5EC;
  --color-bg-alt: #F1E7D6;
  --color-surface: #FFFDF9;
  --color-text: #3B2F27;
  --color-text-muted: #7C6F60;
  --color-border: #E6D9C4;
  --color-on-primary: #FBF5EC;

  --font-heading: 'Yeseva One', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;

  --shadow-sm: 0 2px 10px rgba(59, 47, 39, .08);
  --shadow-md: 0 14px 30px -10px rgba(59, 47, 39, .24);
  --shadow-lg: 0 26px 54px -14px rgba(59, 47, 39, .3);

  --container-w: 1200px;
}

/* ---------------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

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

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.1rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

/* компенсация высоты sticky-хедера при переходе по ссылкам меню (#hero, #catalog, #footer) */
#top, #hero, #catalog, #footer { scroll-margin-top: 74px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------
   КНОПКИ
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: rgba(166, 81, 47, .08); }

.btn-text { background: none; border: none; color: var(--color-text-muted); text-decoration: underline; padding: .5rem; font-weight: 700; }

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ---------------------------------------------------------------
   ХЕДЕР
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 245, 236, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .6rem;
  position: relative;
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.15;
}

.header-actions { display: flex; align-items: center; gap: .25rem; }

.icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--color-text);
  padding: .55rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--color-bg-alt); }
.icon-btn.pulse { animation: cartPulse .35s ease; }
@keyframes cartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-bg);
}
.cart-count[hidden] { display: none; } /* явно перебиваем display:flex выше — иначе [hidden] игнорируется */

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform .25s ease, opacity .25s ease;
}
.burger-btn.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: .5rem 1.1rem 1rem;
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.site-nav a {
  padding: .8rem .1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}
.site-nav a:last-child { border-bottom: none; }

@media (min-width: 860px) {
  .burger-btn { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-right: 1.5rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    gap: 2rem;
  }
  .site-nav a { border-bottom: none; padding: .4rem .1rem; }
  .site-nav a:hover { color: var(--color-accent); }
}

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.hero {
  padding-block: 2.25rem 3rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.hero-inner { display: flex; flex-direction: column; gap: 2rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.hero-badges li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: .76rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 1.55rem + 2.2vw, 3.3rem);
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1.6rem;
  max-width: 54ch;
}
.hero-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

@media (min-width: 900px) {
  .hero-inner { flex-direction: row; align-items: center; gap: 3.5rem; }
  .hero-content { flex: 1 1 50%; }
  .hero-media { flex: 1 1 50%; }
}

/* ---------------------------------------------------------------
   КАТАЛОГ / ФИЛЬТРЫ
   --------------------------------------------------------------- */
.catalog { padding-block: 2.5rem 3.5rem; }

.category-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.chip {
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: .5rem 1.05rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card.is-in-cart { border-color: var(--color-accent); }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .product-card:hover .product-card-media img { transform: scale(1.06); }
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: pointer;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }

/* значок "уже в корзине: N шт." поверх фото, в противоположном от категории углу */
.product-card-in-cart {
  position: absolute;
  top: .55rem;
  right: .55rem;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(59, 47, 39, .3);
}

.product-card-category {
  position: absolute;
  top: .55rem;
  left: .55rem;
  max-width: calc(100% - 1.1rem);
  background: rgba(251, 245, 236, .94);
  color: var(--color-text);
  font-size: .64rem;
  font-weight: 800;
  padding: .3rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-body {
  padding: .8rem .85rem .95rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.product-card-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}
.product-card-name:hover { color: var(--color-accent); }
.product-card-price { font-size: 1.02rem; font-weight: 800; color: var(--color-accent); }
.product-card-actions { margin-top: auto; padding-top: .55rem; }
.product-card-actions .btn { width: 100%; padding: .6rem .8rem; font-size: .82rem; }

/* переключатель "В корзину" → степпер количества, когда товар уже добавлен */
.product-card-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  border-radius: 999px;
  background: var(--color-accent);
  padding: 0 .3rem;
}
.product-card-qty-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-qty-btn:hover { background: rgba(255, 255, 255, .32); }
.product-card-qty-value { color: #fff; font-weight: 800; font-size: .9rem; }

/* ---------------------------------------------------------------
   МОДАЛКА / КОРЗИНА — общий оверлей
   --------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(59, 47, 39, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
@media (min-width: 640px) { .overlay { align-items: center; padding: 1.5rem; } }

/* ---------------------------------------------------------------
   МОДАЛКА ТОВАРА
   --------------------------------------------------------------- */
.modal {
  background: var(--color-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform .3s ease;
}
.overlay.is-open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body { display: flex; flex-direction: column; min-height: 0; }
.modal-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--color-bg-alt); flex-shrink: 0; }
.modal-info { padding: 1.25rem 1.4rem 1.75rem; min-width: 0; }
.modal-category {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: .4rem;
}
.modal-info h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
  color: var(--color-text);
  margin-bottom: .4rem;
}
.modal-price { font-size: 1.3rem; font-weight: 800; color: var(--color-accent); margin-bottom: .75rem; }
.modal-description { color: var(--color-text-muted); line-height: 1.65; margin-bottom: 1.25rem; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.qty-btn { width: 42px; height: 42px; background: var(--color-surface); border: none; font-size: 1.2rem; color: var(--color-text); cursor: pointer; }
.qty-btn:hover { background: var(--color-bg-alt); }
.qty-stepper span { min-width: 34px; text-align: center; font-weight: 800; }

/* Кнопки всегда в столбик на полную ширину — намеренно, без варианта "в один ряд":
   в ряд у длинных подписей ("Добавить в корзину" / "Заказать сейчас") на узкой
   колонке модалки текст не помещался в кнопку и вылезал за края (см. правки). */
.modal-actions { display: flex; flex-direction: column; gap: .75rem; }
.modal-actions .btn { width: 100%; }

@media (min-width: 640px) {
  .modal {
    max-height: 85vh;
    overflow: hidden; /* скроллится не вся модалка, а только .modal-info — см. ниже */
    display: flex;
    flex-direction: column;
  }
  .modal-body { flex-direction: row; flex: 1; min-height: 0; }
  /* высота картинки берётся не из её пропорций, а от высоты строки (align-items: stretch
     по умолчанию) + object-fit: cover — так текстовая колонка не зависит от формы фото */
  .modal-image { width: 40%; height: auto; aspect-ratio: auto; }
  .modal-info {
    flex: 1;
    padding: 1.75rem 2rem;
    overflow-y: auto; /* именно этот скролл решает проблему "текст не помещается" на десктопе */
  }
}

/* ---------------------------------------------------------------
   КОРЗИНА (выезжающая панель)
   --------------------------------------------------------------- */
#cartBackdrop { justify-content: flex-end; align-items: stretch; padding: 0; }

.cart-drawer {
  background: var(--color-bg);
  width: min(440px, 100vw);
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top);
}
#cartBackdrop.is-open .cart-drawer { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.drawer-header h2 { font-family: var(--font-heading); font-weight: 400; font-size: 1.4rem; color: var(--color-text); }
.drawer-header .modal-close { position: static; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}
.drawer-body[hidden] { display: none; } /* явно перебиваем display:flex выше — иначе [hidden] игнорируется (та же история, что и с .cart-count) */

#cartViewEmpty { align-items: center; justify-content: center; text-align: center; gap: 1.25rem; }
.cart-empty-text { color: var(--color-text-muted); font-size: 1.05rem; max-width: 30ch; }

.cart-items { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1rem; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: .75rem; align-items: center; }
.cart-item img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--color-bg-alt); }
.cart-item-name { font-weight: 700; font-size: .9rem; color: var(--color-text); margin-bottom: .15rem; }
.cart-item-price { color: var(--color-text-muted); font-size: .82rem; }
.cart-item-qty { display: flex; align-items: center; gap: .45rem; }
.cart-item-qty button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-surface);
  cursor: pointer; font-size: 1rem; line-height: 1; color: var(--color-text);
}
.cart-item-qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: .88rem; }
.cart-item-remove {
  grid-column: 2 / 3;
  justify-self: start;
  background: none; border: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  font-size: .76rem;
  cursor: pointer;
  padding: 0;
  margin-top: .3rem;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1rem 0;
  border-top: 1.5px dashed var(--color-border);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.cart-summary span:last-child { color: var(--color-accent); }

/* форма оформления заказа */
.link-back { align-self: flex-start; background: none; border: none; color: var(--color-text-muted); font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 1.1rem; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label, .delivery-field legend { font-size: .85rem; font-weight: 700; color: var(--color-text); padding: 0; }
.field input, .field textarea {
  font: inherit;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--color-accent); outline: none; }
.field-error { color: #B23A2E; font-size: .78rem; min-height: 1.1em; }

.delivery-field { border: none; padding: 0; margin: 0 0 1.1rem; }
.delivery-options { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; }
.delivery-option {
  display: flex; align-items: center; gap: .4rem;
  border: 1.5px solid var(--color-border);
  padding: .55rem .95rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap; /* текст варианта ("Самовывоз"/"Доставка") не переносится внутри овала */
}
.delivery-option input { flex-shrink: 0; }
.delivery-option:has(input:checked) { border-color: var(--color-accent); color: var(--color-accent); background: rgba(166, 81, 47, .06); }
.delivery-option input { accent-color: var(--color-accent); }

.checkout-hint { font-size: .8rem; color: var(--color-text-muted); text-align: center; margin-top: .85rem; }

/* успех */
#cartViewSuccess { align-items: center; text-align: center; gap: .5rem; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.success-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-text); }
.success-text { color: var(--color-text-muted); margin-bottom: 1.1rem; }
#cartViewSuccess .btn { width: 100%; margin-bottom: .7rem; }

/* ---------------------------------------------------------------
   TOAST
   --------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
  box-shadow: var(--shadow-md);
  max-width: 90vw;
  text-align: center;
}
.toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------
   ФУТЕР
   --------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding-block: 3rem 2rem;
  margin-top: 2.5rem;
}
.footer-inner { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-logo { width: 52px; height: 52px; border-radius: 50%; margin-bottom: .8rem; }
.footer-shop-name { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: .35rem; }
.footer-tagline { opacity: .85; font-size: .92rem; }

.footer-contacts h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; opacity: .8; }
.footer-contacts-list { display: flex; flex-direction: column; gap: .75rem; }
.footer-contacts-list a { color: var(--color-on-primary); text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .94rem; }
.footer-contacts-list a svg { flex-shrink: 0; opacity: .9; }
.footer-contacts-list a:hover { text-decoration: underline; }
.footer-contacts-list span.muted { opacity: .75; font-weight: 500; }

.footer-note { font-size: .82rem; opacity: .75; display: flex; flex-direction: column; gap: .45rem; }
@media (min-width: 720px) { .footer-note { text-align: right; } }
