/* ===================== Tokens ===================== */
/* Базовая тема + фисташковые поверхности. КНОПКИ НЕ ТРОГАЕМ: --primary остаётся красным */
:root{
  --bg:#ffffff;
  --surface:#f8fafc;
  --surface-2:#e7efe9;      /* было #eef2f7 — сделал более «зелёным» подтоном */

  --text:#13141a;
  --muted:#6b7280;

  /* ВАЖНО: primary — это ЦВЕТ КНОПОК. НЕ МЕНЯЕМ. */
  --primary:#e11d48;
  --primary-700:#be123c;
  --primary-soft:#fee2e2;

  /* Писташковая палитра для блоков/акцентов */
  --pistachio:#8BC49A;
  --pistachio-700:#5B8F6B;
  --pistachio-soft:#E8F5EC;
  --pistachio-ink:#0f2d1e;

  --accent:#16a34a;
  --ring:0 0 0 3px rgba(139,196,154,.28);
  --shadow-1:0 8px 24px rgba(0,0,0,.08);
  --shadow-2:0 20px 72px rgba(0,0,0,.16);

  --r-xl:20px; --r-lg:16px; --r-md:12px; --r-sm:10px; --r-pill:999px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial;
}

/* ===================== Base ===================== */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{ margin:0; font-family:var(--font); color:var(--text); background:var(--bg); }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width:min(1200px, calc(100% - 32px)); margin-inline:auto; }
.section{ padding:42px 0; }
.row{ display:flex; gap:12px; align-items:center; }
.mute{ color:var(--muted); }

/* ===================== Navbar ===================== */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--surface-2);
}
.nav__inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }

/* Логотип — градиент с фисташковым подтоном (кнопки не затрагивает) */
.logo{
  width:36px; height:36px; border-radius:10px;
  background:conic-gradient(from 210deg, var(--pistachio), #CFE9D9, var(--accent));
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.04);
}

.nav__links{ display:flex; gap:18px; }
.nav__links a{
  padding:10px 12px; border-radius:10px; color:#374151; font-weight:600;
  transition:background .15s ease, color .15s ease;
}
.nav__links a:hover{ background:#f3f6f4; color:#1b2b22; } /* мягкий зелёный hover */
.nav__links a:active{ background:var(--pistachio-soft); }

/* ===================== Buttons (не меняем цвета!) ===================== */
.btn{
  --bg:var(--primary); --bg-hover:var(--primary-700); --txt:#fff;
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:var(--r-md); border:none;
  background:var(--bg); color:var(--txt);
  font-weight:700; cursor:pointer; box-shadow:var(--shadow-1);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover{ background:var(--bg-hover); transform:translateY(-1px); }
.btn:active{ transform:translateY(0); background:var(--primary); color:#fff; }
.btn:focus-visible{ outline:none; box-shadow:var(--shadow-1), var(--ring); }

.btn--ghost{
  --bg:transparent; --bg-hover:#f2faf4; --txt:#111827;
  box-shadow:none; border:1px solid #e3ebe6;
}
.btn--ghost:hover{ background:var(--bg-hover); }
.btn--ghost:active{ background:var(--pistachio-soft); border-color:#cde6d5; }

.btn--ghost.active,
.btn--ghost.is-active{
  background: #edf8f1 !important;
  color: #1e6a44 !important;
  border-color: #d6ebdc !important;
  box-shadow: inset 0 0 0 1px #d6ebdc;
}
.btn--ghost.active:hover,
.btn--ghost.is-active:hover{
  background: #e7f5ec !important;
  color: #1e6a44 !important;
}
.btn--sm{ padding:8px 12px; border-radius:var(--r-sm); font-weight:600; }
.btn--inline{ display:inline-block; }
.btn--tight{ gap:0; }

/* ===================== Inputs ===================== */
.input{
  width:100%; padding:12px 16px; color:var(--text);
  background:#fff; border:1px solid #e3ebe6; border-radius:var(--r-pill);
  outline:none; transition:border-color .2s, box-shadow .2s; box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.input::placeholder{ color:#9aa3b2; }
.input:focus{ box-shadow:0 2px 10px rgba(139,196,154,.22), var(--ring); border-color:var(--pistachio); }

/* ===================== Баннеры/герои/промо ===================== */
/* На главной .promo задаётся в <style> страницы. Переопределяем в теме, чтобы стало фисташково. */
.promo{
  background: linear-gradient(90deg, #9fd7b3 0%, #6FAF88 100%) !important;
  color:#0f2018;
}
.promo .badge{
  background:rgba(255,255,255,.18);
  padding:6px 10px; border-radius:999px;
}

/* Мини-герои (на payment/delivery уже зеленоватые, усилим общий ритм) */
.hero-mini{
  border:1px solid var(--surface-2);
  border-radius:16px; box-shadow:var(--shadow-1); padding:18px;
  background:
    radial-gradient(700px 300px at 100% -20%, rgba(139,196,154,.20) 0%, rgba(139,196,154,0) 60%), #fff;
}

/* ===================== Секции «О нас», фильтры, карточки ===================== */
.about{ background: var(--surface); border-top:1px solid var(--surface-2); border-bottom:1px solid var(--surface-2); }
.section__head{ text-align:center; margin-bottom:14px; }
.section__title{ margin:0 0 6px; font-size:28px; }
.section__title small{ display:block; font-size:12px; color:var(--muted); }
.section__sub{ margin:0; color:var(--muted); }

/* Гриды */
.grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:16px; }

/* Карточки товара */
.card{
  background:#fff; border:1px solid var(--surface-2); border-radius:var(--r-lg);
  box-shadow:var(--shadow-1); padding:12px; display:flex; flex-direction:column;
}
.card__img{
  width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px;
  border:1px solid var(--surface-2);
}
.card__body{ padding:14px 0 0; }
.card__title{ margin:0 0 6px; font-size:18px; }

/* Цена — спокойный тёмно-зелёный акцент */
.price{ color:#2f6b49; font-weight:800; letter-spacing:.2px; }

/* Бейджи, чипы, активные фильтры — в фисташковой гамме */
.badge{
  padding:4px 10px; border-radius:999px; border:1px solid #d7eadf;
  background:#f2faf6; color:#185a37; font-weight:700; font-size:12px;
}
.chipbar{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chip{
  display:inline-block; padding:6px 10px; border-radius:999px;
  border:1px solid #d7eadf; background:#f4fbf7; color:#113a24; font-weight:700; font-size:12px;
}
.filters{ background:#fff; border:1px solid var(--surface-2); border-radius:16px; box-shadow:var(--shadow-1); padding:12px; }
.active-filter,
.btn[data-filter].active{
  background:var(--pistachio) !important;
  color:#fff !important;
  border-color:var(--pistachio) !important;
  box-shadow:0 6px 16px rgba(139,196,154,.28);
}

/* ===================== Тосты/уведомления ===================== */
.toast{
  position:fixed; left:50%; bottom:22px; transform:translateX(-50%);
  background:var(--pistachio-700); color:#fff;
  padding:10px 14px; border-radius:12px; box-shadow:var(--shadow-2); opacity:0; transition:opacity .25s ease;
  z-index:60;
}

/* ===================== Табличные блоки (админка) ===================== */
.card-box{
  background:#fff; border:1px solid var(--surface-2); border-radius:16px; box-shadow:var(--shadow-1); padding:16px;
}
table{ width:100%; border-collapse:collapse; }
th,td{ padding:10px 12px; border-bottom:1px solid var(--surface-2); text-align:left; }
.tag.ok{ background:#e8f5ec; border:1px solid #cfe9d9; color:#124d31; padding:6px 10px; border-radius:8px; display:inline-block; }
.tag.err{ background:#fee2e2; border:1px solid #fecdd3; color:#7f1d1d; padding:6px 10px; border-radius:8px; display:inline-block; }

/* ===================== Footer ===================== */
/* Был глубокий «тёмный». Оставим контраст, но с тёмно-зелёным оттенком */
.site-footer{
  margin-top:40px;
  background:#0b1a14;      /* тёмно-зелёный */
  color:#e5e7eb;
  padding:28px 0 18px;
}
.site-footer a{ color:#e5e7eb; text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.foot-grid{
  display:grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap:24px; align-items:flex-start;
}
.foot-col{ min-width:0; }
.foot-title{ font-weight:700; color:#ffffff; margin-bottom:8px; }
.foot-links, .foot-contacts{ list-style:none; padding:0; margin:0; }
.foot-links li, .foot-contacts li{ margin:6px 0; }
.foot-bottom{
  margin-top:18px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between;
}
@media (max-width:900px){
  .foot-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:560px){
  .foot-grid{ grid-template-columns: 1fr; }
  .foot-bottom{ flex-direction:column; gap:8px; align-items:flex-start; }
}

/* ===================== Мелкие полезности ===================== */
.section .about__card{ background:#fff; border:1px solid var(--surface-2); border-radius:16px; padding:16px; box-shadow:var(--shadow-1); }
.input-file{ padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px; background:#fafafa; }
.preview{ width:180px; height:180px; border-radius:12px; object-fit:cover; border:1px solid var(--surface-2); }

/* === Sticky footer (футер всегда внизу, даже если контента мало) === */
html, body { height: 100%; }
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-footer{
  margin-top: auto;
}


/* 
FloraExpress Header
*/

.fe-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e7efe9;
  box-shadow: 0 8px 24px rgba(18, 38, 24, 0.05);
}

.fe-header__inner{
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.fe-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #18222d;
  min-width: 0;
}

.fe-brand__logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, #bde8c8 0%, #8fd3a5 35%, #39a86a 70%, #22834f 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.5),
    0 8px 20px rgba(55, 168, 106, 0.25);
  position: relative;
}

.fe-brand__logo::after{
  content:"";
  position:absolute;
  inset: 9px 13px 10px 14px;
  border-radius: 100% 0 100% 0;
  background: rgba(255,255,255,.72);
  transform: rotate(28deg);
}

.fe-brand__text{
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.fe-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
}

.fe-nav::-webkit-scrollbar{ display:none; }

.fe-nav__link{
  text-decoration: none;
  color: #44505f;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 14px;
  transition: .18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.fe-nav__link:hover{
  color: #162027;
  background: #f4f8f5;
}

.fe-nav__link.is-active{
  color: #1e6a44;
  background: #edf8f1;
  box-shadow: inset 0 0 0 1px #d6ebdc;
}

.fe-menu{
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.fe-menu__summary{
  appearance: none;
  border: none;
  cursor: pointer;
  user-select: none;
  color: #44505f;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 14px;
  transition: .18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  font-family: inherit;
}

.fe-menu__summary:hover,
.fe-menu:hover .fe-menu__summary,
.fe-menu:focus-within .fe-menu__summary{
  color: #162027;
  background: #f4f8f5;
}
.fe-menu__summary.is-active,
.fe-menu.is-active .fe-menu__summary,
.fe-menu:hover .fe-menu__summary.is-active,
.fe-menu:focus-within .fe-menu__summary.is-active{
  color: #1e6a44;
  background: #edf8f1;
  box-shadow: inset 0 0 0 1px #d6ebdc;
}

.fe-menu__arrow{ font-size: 12px; line-height: 1; transition: transform .18s ease; }
.fe-menu:hover .fe-menu__arrow,
.fe-menu:focus-within .fe-menu__arrow{ transform: rotate(180deg); }

.fe-menu__dropdown{
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dce7df;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  display: grid;
  gap: 4px;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.fe-menu:hover .fe-menu__dropdown,
.fe-menu:focus-within .fe-menu__dropdown{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.fe-menu__item{
  display: block;
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 12px;
  transition: .18s ease;
}

.fe-menu__item:hover{ background: #f4f8f5; color: #162027; }
.fe-menu__item.is-active{ background: #edf8f1; color: #1e6a44; }

.fe-header__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.fe-user-badge{
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4fbf6 0%, #ecf8f0 100%);
  border: 1px solid #d4eadb;
  color: #225b3b;
  box-shadow: 0 6px 16px rgba(57, 168, 106, 0.10);
  text-decoration: none;
  transition: .18s ease;
  flex: 0 0 auto;
}

.fe-user-badge:hover{ transform: translateY(-1px); box-shadow: 0 10px 20px rgba(57, 168, 106, 0.16); }
.fe-user-badge__role{ font-size: 12px; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.fe-user-badge__name{ font-size: 14px; font-weight: 700; line-height: 1.2; }

.fe-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: .18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.fe-btn--ghost{
  color: #1f2937;
  background: #fff;
  border: 1px solid #dbe4dd;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.fe-btn--ghost:hover{ background: #f7faf8; transform: translateY(-1px); }

.fe-btn--cart{
  color: #fff;
  background: linear-gradient(180deg, #ff3e6c 0%, #e61d52 100%);
  border: 1px solid #db1b4c;
  box-shadow: 0 10px 20px rgba(230, 29, 82, 0.22);
}

.fe-btn--cart:hover{ transform: translateY(-1px); box-shadow: 0 14px 28px rgba(230, 29, 82, 0.28); }
.fe-btn__count{ opacity: .95; display:inline-flex; align-items:center; justify-content:center; min-width:24px; }

@media (max-width: 1180px){
  .fe-header__inner{
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
    gap: 12px;
  }

  .fe-brand,
  .fe-header__actions{ justify-content: center; }

  .fe-nav{ width: 100%; justify-content: center; flex-wrap: wrap; overflow: visible; }
}

@media (max-width: 700px){
  .fe-brand__text{ font-size: 24px; }
  .fe-nav{ justify-content: flex-start; }
  .fe-nav__link,
  .fe-menu__summary{ padding: 10px 12px; font-size: 15px; }
  .fe-menu{ width: 100%; display:block; }
  .fe-menu__summary{ width: 100%; justify-content: center; }
  .fe-menu__dropdown{
    position: static;
    margin-top: 8px;
    width: 100%;
    min-width: 0;
    left: auto;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .fe-menu:hover .fe-menu__dropdown,
  .fe-menu:focus-within .fe-menu__dropdown{ display:grid; }
  .fe-header__actions{ width: 100%; justify-content: stretch; flex-wrap: wrap; }
  .fe-btn,
  .fe-user-badge{ flex: 1 1 auto; }
}


.fe-fav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:48px;
  min-height:48px;
  padding:0 14px;
  border-radius:16px;
  text-decoration:none;
  background:#fff;
  border:1px solid #dbe4dd;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  color:#6b7280;
  transition:.18s ease;
  flex:0 0 auto;
}

.fe-fav-link:hover{
  background:#fff7f8;
  border-color:#fecdd3;
  color:#e11d48;
  transform:translateY(-1px);
}

.fe-fav-link.is-active{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#e11d48;
}

.fe-fav-link__icon{
  font-size:22px;
  line-height:1;
  transform:translateY(1px);
}

.fe-fav-link__count{
  font-size:13px;
  font-weight:800;
  line-height:1;
}


/* Stage 10 fixes: favorites button and header favorite size */
.fe-fav-link{
  min-width:56px;
  height:48px;
  padding:0 14px;
}
.fe-fav-link__icon{font-size:20px}


.catalog-card .catalog-card-actions,
.catalog-card .product-card-actions,
.catalog-grid .catalog-card-actions,
.catalog-grid .product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.catalog-card .catalog-card-actions .btn,
.catalog-card .product-card-actions .btn,
.catalog-grid .catalog-card-actions .btn,
.catalog-grid .product-card-actions .btn,
.catalog-card .catalog-card-actions button,
.catalog-card .product-card-actions button,
.catalog-grid .catalog-card-actions button,
.catalog-grid .product-card-actions button,
.catalog-card .catalog-card-actions a,
.catalog-card .product-card-actions a,
.catalog-grid .catalog-card-actions a,
.catalog-grid .product-card-actions a {
  min-height: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  line-height: 1.1;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  border-radius: 14px;
}

.catalog-card .catalog-card-actions .favorite-btn,
.catalog-card .product-card-actions .favorite-btn,
.catalog-grid .catalog-card-actions .favorite-btn,
.catalog-grid .product-card-actions .favorite-btn {
  width: 52px;
  min-width: 52px;
  padding: 0;
  font-size: 20px;
}

.catalog-card .catalog-card-actions .favorite-btn svg,
.catalog-card .product-card-actions .favorite-btn svg,
.catalog-grid .catalog-card-actions .favorite-btn svg,
.catalog-grid .product-card-actions .favorite-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .catalog-card .catalog-card-actions,
  .catalog-card .product-card-actions,
  .catalog-grid .catalog-card-actions,
  .catalog-grid .product-card-actions {
    grid-template-columns: 1fr 1fr 48px;
    gap: 8px;
  }

  .catalog-card .catalog-card-actions .btn,
  .catalog-card .product-card-actions .btn,
  .catalog-grid .catalog-card-actions .btn,
  .catalog-grid .product-card-actions .btn,
  .catalog-card .catalog-card-actions button,
  .catalog-card .product-card-actions button,
  .catalog-grid .catalog-card-actions button,
  .catalog-grid .product-card-actions button,
  .catalog-card .catalog-card-actions a,
  .catalog-card .product-card-actions a,
  .catalog-grid .catalog-card-actions a,
  .catalog-grid .product-card-actions a {
    min-height: 42px;
    height: 42px;
    font-size: 15px;
  }

  .catalog-card .catalog-card-actions .favorite-btn,
  .catalog-card .product-card-actions .favorite-btn,
  .catalog-grid .catalog-card-actions .favorite-btn,
  .catalog-grid .product-card-actions .favorite-btn {
    width: 48px;
    min-width: 48px;
  }
}


/* Catalog card actions: wide cart button + favorite on right */
.catalog-card-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) 52px;
  gap:10px;
  align-items:stretch;
  margin-top:14px;
}

.catalog-card-cart-form,
.catalog-favorite-form{
  margin:0;
}

.catalog-buy-btn{
  width:100%;
  min-height:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:14px;
  white-space:nowrap;
  line-height:1;
  box-sizing:border-box;
}

.catalog-favorite-btn{
  width:52px;
  min-width:52px;
  max-width:52px;
  min-height:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #d9e3dc;
  border-radius:14px;
  background:#fff;
  color:#94a3b8;
  text-decoration:none;
  font-size:24px;
  line-height:1;
  box-sizing:border-box;
  transition:.2s ease;
}

.catalog-favorite-btn:hover{
  border-color:#f43f5e;
  color:#f43f5e;
}

.catalog-favorite-btn.is-active{
  color:#f43f5e;
  border-color:#fda4af;
  background:#fff1f2;
}

.catalog-favorite-btn .heart{
  line-height:1;
  transform:translateY(-1px);
}

@media (max-width:640px){
  .catalog-card-actions{
    grid-template-columns:minmax(0,1fr) 48px;
    gap:8px;
  }

  .catalog-buy-btn{
    min-height:44px;
    height:44px;
    font-size:14px;
    padding:0 12px;
  }

  .catalog-favorite-btn{
    width:48px;
    min-width:48px;
    max-width:48px;
    min-height:44px;
    height:44px;
    font-size:22px;
  }
}


.catalog-filter-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.catalog-search-form{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:18px;
}

.catalog-card{
  position:relative;
  background:#fff;
  border:1px solid var(--surface-2);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-1);
  display:flex;
  flex-direction:column;
}

.catalog-card__media{
  display:block;
  position:relative;
  padding:12px 12px 0;
}

.catalog-card__img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--surface-2);
  background:#f8fafc;
}

.catalog-card__fav{
  position:absolute;
  top:22px;
  right:22px;
  z-index:2;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  color:#ffffff;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  transition:.18s ease;
}

.catalog-card__fav:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.55);
}

.catalog-card__fav.is-active{
  background:rgba(225,29,72,.78);
  border-color:rgba(255,255,255,.45);
  color:#fff;
}

.catalog-card__body{
  padding:14px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1 1 auto;
}

.catalog-card__title{
  font-size:16px;
  font-weight:800;
  line-height:1.3;
}

.catalog-card__desc{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  min-height:66px;
}

.catalog-card__price{
  color:#0f7a4d;
  font-size:18px;
  font-weight:800;
  line-height:1.1;
}

.catalog-card__actions{
  margin-top:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}

.catalog-card__buy{
  width:100%;
  min-height:46px;
  justify-content:center;
  border-radius:16px;
  white-space:nowrap;
}

.fe-fav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:56px;
  height:48px;
  padding:0 14px;
  border-radius:16px;
  text-decoration:none;
  background:#fff;
  border:1px solid #dbe4dd;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  color:#6b7280;
  transition:.18s ease;
  flex:0 0 auto;
}

.fe-fav-link:hover{
  background:#fff7f8;
  border-color:#fecdd3;
  color:#e11d48;
  transform:translateY(-1px);
}

.fe-fav-link.is-active{
  background:#fff1f2;
  border-color:#fecdd3;
  color:#e11d48;
}

.fe-fav-link__icon{
  font-size:20px;
  line-height:1;
}

.fe-fav-link__count{
  font-size:13px;
  font-weight:800;
  line-height:1;
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  background:rgba(15,23,42,.92);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  box-shadow:0 16px 36px rgba(0,0,0,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:9999;
}

@media (max-width: 720px){
  .catalog-grid{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
}

@media (max-width: 560px){
  .catalog-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .catalog-search-form{
    width:100%;
    margin-left:0;
    margin-top:10px;
    justify-content:space-between;
  }

  .search{
    width:100%;
  }
}

/* ===== Stage 12: hover menu bridge + care nav ===== */
.fe-menu{
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.fe-menu::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:18px;
}
.fe-menu__dropdown{
  top: calc(100% + 2px);
}
.fe-menu.is-open .fe-menu__summary,
.fe-menu.is-open .fe-menu__summary.is-active{
  color:#162027;
  background:#f4f8f5;
}
.fe-menu.is-open .fe-menu__summary.is-active,
.fe-menu.is-active .fe-menu__summary.is-active{
  color:#1e6a44;
  background:#edf8f1;
  box-shadow: inset 0 0 0 1px #d6ebdc;
}
.fe-menu.is-open .fe-menu__arrow{ transform: rotate(180deg); }
.fe-menu.is-open .fe-menu__dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
@media (max-width:700px){
  .fe-menu{
    padding-bottom:0;
    margin-bottom:0;
  }
  .fe-menu::after{ display:none; }
  .fe-menu.is-open .fe-menu__dropdown{ display:grid; }
}
