﻿/* РыбоедЪ — styles.css */

/* =======================================================================
   1. BASE & RESET
   ======================================================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root {
  --bg: #f7f6f2;
  --ink: #0f172a;
  --ink-m: #334155;
  --ink-s: #64748b;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  --brand: #0b2530;
  --brand-hover: #163b4d;
  --accent: #0ea5e9;
  --radius: 18px;
  --radius-lg: 22px;
  --menu-radius: 32px;
}

/* --- FIX: INFO MODALS (About, Delivery) --- */
/* Desktop: Делаем окна уже и аккуратнее */
.modal--info .modal__panel {
  max-width: 550px !important;
  margin-top: -5vh;
}

/* Mobile: Отступ снизу, чтобы FAB-кнопка не перекрывала текст */
@media (max-width: 600px) {
  .modal--info .modal__panel { 
    padding-bottom: 90px !important; /* Место под кнопку Меню */
    max-height: 85vh; /* Чтобы влезало в экран */
    overflow-y: auto; /* Скролл если текст длинный */
  }
}

body {
  margin: 0;
  padding-bottom: 200px; 
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Utility */
.muted { color: var(--ink-s); font-size: 14px; opacity: 0.9; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* =======================================================================
   2. TOPBAR
   ======================================================================= */
.topbar {
  display: flex; align-items: center; padding: 10px 0; 
  font-size: 14px; font-weight: 500; color: var(--ink-m); gap: 24px; 
}
.addr { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.phone { font-weight: 600; white-space: nowrap; }

.search-catalog-wrap { position: relative; width: 260px; }
#catalog-search-input {
  padding: 8px 16px; border-radius: 99px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  width: 100%; font-size: 14px; outline: none; background: #fff;
  transition: border-color 0.2s;
}
#catalog-search-input:focus { border-color: var(--brand); }

/* =======================================================================
   3. UI COMPONENTS (Buttons, Badges)
   ======================================================================= */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  font-weight: 600; transition: 0.15s ease; font-size: 15px;
}
.btn.primary { background: var(--brand); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.full-width { width: 100%; }

.btn--ghost {
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.16);
  color: var(--ink-m);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn--glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn--glass:hover { 
  background: rgba(255, 255, 255, 0.25); 
  transform: scale(1.02); 
}

.btn-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.btn-icon-left {
  width: 24px; height: 24px; display: inline-block; flex-shrink: 0; opacity: 0.8;
}

/* -------------------- Brand -------------------- */
.brand {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  display: block; width: 90px; height: 90px;
  border-radius: 50%; background: transparent !important;
}
.brand img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover img { transform: scale(1.1) rotate(-5deg); }

/* -------------------- Hero Banner -------------------- */
.hero {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; min-height: 480px; 
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  margin: 10px auto 30px;
  display: flex;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%);
  pointer-events: none;
}
.hero-secondary { min-height: 480px !important; }

/* Hero Chips */
.hero-chips {
  position: absolute; top: 32px; left: 32px; z-index: 10;
  display: flex; gap: 10px; flex-wrap: wrap; max-width: 60%;
  transition: 0.2s;
}
.hero-chips:hover .chip { opacity: 0.5; } 
.hero-chips .chip:hover { opacity: 1; transform: scale(1.05); background: #fff; color: var(--ink); }

.chip {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--ink); border: none;
  box-sizing: border-box !important;
  height: 42px !important;
  padding: 0 20px;
  border-radius: 999px;
  
  font-weight: 600; font-size: 14px;
  cursor: pointer; transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
}

/* -------------------- Hero Search -------------------- */
.hero-search-wrap {
  position: absolute; 
  top: 32px; 
  right: 32px; 
  z-index: 20;
  height: 42px;
  display: flex; 
  align-items: center; 
  justify-content: flex-end;
}

.hero-search-toggle {
  order: 2; position: relative; z-index: 22;
  box-sizing: border-box !important;
  width: 42px !important; height: 42px !important;
  border-radius: 50%;
  background: #fff; border: 1px solid transparent; 
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: flex; justify-content: center; align-items: center;
  padding: 0; margin-left: -12px; flex-shrink: 0; 
  transition: transform 0.2s;
  margin-top: 0; margin-bottom: 0;
}
.hero-search-toggle:hover { transform: scale(1.05); }
.hero-search-toggle img { width: 18px; height: 18px; display: block; }

.hero-search {
  order: 1; 
  box-sizing: border-box !important;
  height: 42px !important;
  width: 0; background: #fff; border: 1px solid transparent;
  border-radius: 24px; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; z-index: 21; display: flex; align-items: center; opacity: 0;
  margin-top: 0; margin-bottom: 0;
}
.hero-search-wrap.open .hero-search {
  width: 320px; opacity: 1; padding-right: 40px; margin-right: -21px; 
}
.hero-search-input {
  width: 100%; height: 100%; border: none; outline: none;
  background: transparent; font-size: 14px; 
  color: var(--ink); 
  white-space: nowrap; padding: 0 20px; margin: 0;
  appearance: none; -webkit-appearance: none; 
  line-height: 40px; 
}

/* -------------------- Sections & Cards -------------------- */
.sections-root { display: grid; gap: 40px; margin: 40px auto; }
.section h2 { font-size: 26px; font-weight: 700; margin: 0 0 20px; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 10px 20px rgba(0,0,0,0.04);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease; border: 1px solid transparent;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.card__media { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #f8fafc; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card__title { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: 8px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.card__meta { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.card__price { font-size: 19px; font-weight: 700; color: var(--ink); }
.card__unit { font-size: 14px; color: #94a3b8; font-weight: 500; margin-bottom: 2px; }

/* -------------------- CATALOG LAYOUT (Sidebar Left) -------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr; /* Сайдбар 260px, остальное - сетка */
  gap: 40px;
  margin: 40px auto;
  align-items: start;
  position: relative;
}

.catalog-sidebar {
  position: sticky; /* Липкий сайдбар */
  top: 20px;
  z-index: 10;
}

.sidebar-sticky h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--ink);
}

.catalog-nav {
  display: flex;
  flex-direction: column; /* Вертикальный список кнопок */
  gap: 10px;
}

/* Стили чипов именно в сайдбаре (чтобы отличались от главной) */
.catalog-nav .chip {
  width: 100%;
  justify-content: flex-start; /* Текст слева */
  text-align: left;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0 20px;
  height: 48px !important;
  border-radius: 12px; /* Менее круглые, чем на главной */
}

.catalog-nav .chip:hover {
  background: #f8fafc;
  border-color: var(--ink-s);
  transform: translateX(4px); /* Легкий сдвиг вправо при наведении */
}

.catalog-nav .chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(11, 37, 48, 0.2);
}

.catalog-toolbar-mobile {
  display: none !important;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки товаров */
  gap: 24px;
}

/* Адаптив внутри каталога (если 3 колонки не влезают) */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------- Info & Menu FAB -------------------- */
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 60px auto 40px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.info-card h3 { margin-top: 0; font-size: 22px; margin-bottom: 16px; }
.info-card p { color: var(--ink-m); line-height: 1.6; flex-grow: 1; margin-bottom: 24px; }

#menu-fab {
  position: fixed; right: 20px; 
  bottom: 38px; /* ИСПРАВЛЕНО: Центровка относительно логотипа */
  z-index: 200;
  background: #fff; color: var(--ink); padding: 14px 32px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15); border: none; cursor: pointer;
  font-weight: 700; font-size: 16px; transition: transform 0.2s;
}
#menu-fab:hover { transform: translateY(-2px); }
/* Desktop: wrapper should not hide fixed brand/menu */
.mobile-bottom-bar{
  display: contents;
}
.mobile-bottom-bar__divider{
  display: none;
}

/* -------------------- Common Modals -------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(8px); }
.modal__panel {
  position: relative; z-index: 101; background: #fff; width: 100%; 
  max-width: 760px;
  border-radius: 28px; box-shadow: 0 20px 80px rgba(0,0,0,0.2); 
  padding: 48px; 
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__head { 
  display: flex; 
  align-items: center; 
  margin-bottom: 24px; 
  position: relative; /* Для абсолютного поз. кнопки */
  justify-content: center; /* Центрируем заголовок */
  min-height: 36px;
}
.modal__head h3 { 
  margin: 0; 
  font-size: 24px; 
  font-weight: 700; 
  text-align: center;
  flex-grow: 1;
}
.modal__body { line-height: 1.6; }
.modal__close {
  position: absolute; 
  right: 0; 
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px; 
  
  /* Убираем фон кружка */
  background: transparent; 
  border-radius: 0;
  border: none; 
  cursor: pointer; 
  
  /* Стили как у главного меню */
  font-size: 24px; 
  color: #94a3b8;
  display: flex; 
  align-items: center; 
  justify-content: center;
  z-index: 2;
  transition: 0.2s;
}
.modal__close:hover {
  color: var(--ink);
  transform: translateY(-50%) rotate(90deg);
}

/* --- INFO MODALS & HIGHLIGHT BOXES --- */
.text-content .lead { font-size: 15px; line-height: 1.5; color: var(--ink-m); margin-bottom: 24px; }
.info-note { font-size: 13px; text-align: center; color: var(--ink-s); margin: 24px 0 !important; }

/* Highlight Box (Плашка) */
.highlight-box {
  background: #f8fafc; /* Светлый фон */
  border: 1px solid #e2e8f0;
  border-radius: 20px; /* Скругление */
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
/* Центрирование внутри плашки */
.highlight-box.centered-text {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.highlight-title {
  font-weight: 700; font-size: 15px; margin-bottom: 6px; display: block;
}
.highlight-icon-row {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; font-weight: 700;
}
.highlight-emoji { font-size: 18px; }

/* Delivery List (Жесткие колонки) */
.delivery-list {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.delivery-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.delivery-list li:last-child { border-bottom: none; padding-bottom: 0; }
.d-label { font-size: 15px; color: var(--ink); font-weight: 500; }
.d-value { font-weight: 700; font-size: 15px; color: var(--ink); text-align: right; }
.d-value.badge-green { color: #16a34a; background: #dcfce7; padding: 4px 10px; border-radius: 99px; font-size: 13px; text-transform: uppercase; }

/* Tile List (About) */
.tile-list { list-style: none; padding: 0; display: grid; gap: 16px; margin-bottom: 24px; }
.tile-list li { background: #fff; padding: 0; }
.tile-list h4 { margin: 0 0 4px; font-size: 15px; }
.tile-list p { margin: 0; font-size: 13px; color: var(--ink-s); }

/* Feature List (Why Us) */
.feature-list { display: grid; gap: 20px; margin-bottom: 24px; }
.feature-item h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.feature-item p { margin: 0; font-size: 13px; color: var(--ink-m); line-height: 1.5; }


/* =======================================================================
   11. MENU SYSTEM (UNIFIED & CLEANED)
   ======================================================================= */
#menu-modal .modal__panel {
  width: 100%;
  max-width: 1000px;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  min-height: auto;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
#menu-modal.menu-modal--user .modal__panel {
  max-width: min(95vw, 980px);
}
#menu-modal.menu-modal--user .menu-columns {
  grid-template-columns: 360px 580px;
  justify-content: center;
  width: 100%;
}
/**/
#menu-modal.menu-modal--user .menu-column--left.user-sidebar {
  width: 360px;
  max-width: 360px;
}

#menu-modal.menu-modal--user .menu-column--right.user-main {
  width: 580px;
  max-width: 580px;
}

.menu-close-abs {
  position: absolute; 
  top: 50px; /* Сдвигаем внутрь контента (padding панели 48px) */
  right: 50px; 
  z-index: 150;
  
  width: 32px; 
  height: 32px; 
  
  border-radius: 50%; 
  background: transparent; /* Убираем кружок */
  border: none; 
  cursor: pointer; 
  
  font-size: 24px; /* Крестик покрупнее */
  color: #94a3b8;  /* Мягкий серый цвет */
  
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: 0.2s ease;
  line-height: 1;
}

.menu-close-abs:hover { 
  background: transparent; 
  color: #0f172a; /* При наведении темнеет */
  transform: rotate(90deg); 
}

.menu-layout, .menu-state { width: 100%; display: flex; justify-content: center; }
.menu-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; align-items: stretch; }
.menu-column { position: relative; display: flex; flex-direction: column; }

/* === USER MENU: стабильная левая колонка, правая не растягивает модалку === */
.menu-state--user .menu-columns {
  grid-template-columns: 360px minmax(0, 1fr);
  justify-content: center;
  align-items: start;
}
.menu-state--user .menu-column--left.user-sidebar {
  width: 100%;
  max-width: 360px;
}
.menu-state--user .menu-column--right.user-main {
  width: 100%;
  max-width: 750px; /* right panel fixed width */
}

/* --- GUEST SIDEBAR --- */
.menu-column--left.menu-guest-visual {
  background: url('../backgrounds/menu-bg-1.png') center/cover no-repeat;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.3);
  overflow: hidden; position: relative; min-height: 480px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.guest-contacts-overlay {
  position: relative; z-index: 2; width: 100%; max-width: 280px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}

.guest-contact-chip, .guest-contacts-overlay .btn {
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 64px; width: 100%; height: 54px;
  
  background: rgba(255, 255, 255, 0.55); 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50px; color: #fff; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.guest-contact-chip:hover, .guest-contacts-overlay .btn:hover {
  background: rgba(255, 255, 255, 0.75); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.guest-contact-chip img, .guest-contacts-overlay .btn img { display: none !important; }
.guest-contact-chip::before, .guest-contacts-overlay .btn::before {
  content: ""; display: block; width: 24px; height: 24px; margin-right: 12px;
  background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0;
}
/* Guest Icons Mapping */
.guest-contact-chip[href*="wa.me"]::before { background-image: url('../icon/whatsapp2.png'); }
.guest-contact-chip[href*="t.me"]::before { background-image: url('../icon/telegram2.png'); }
#btn-guest-phone::before { background-image: url('../icon/phone2.png'); }

/* Guest Auth Right */
.menu-column--right.menu-guest-auth {
  background: #fff; border-radius: 32px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); padding: 40px;
  display: flex; flex-direction: column;
  width: 520px;
  max-width: min(520px, calc(100vw - 64px));
}
.menu-state--guest .menu-columns { grid-template-columns: 520px 520px; justify-content: center; }
.menu-state--guest .menu-column--left.menu-guest-visual { width: 520px; max-width: 520px; }
.menu-state--guest .menu-column--right.menu-guest-auth { width: 520px; max-width: 520px; }
.guest-auth-card {
  width: 100%; max-width: 380px; margin: auto; text-align: center;
  display: flex; flex-direction: column; flex-grow: 1; justify-content: center;
}
.guest-auth-title { margin: auto auto 12px; font-size: 26px; font-weight: 700; color: var(--ink); }
.guest-auth-subtitle { margin-bottom: 24px; color: var(--ink-m); font-size: 15px; line-height: 1.5; }
.guest-auth-text { font-size: 13px; line-height: 1.4; color: var(--ink-m); margin-bottom: 16px; text-align: center; }
.guest-auth-actions { width: 100%; margin: 24px 0; }
.guest-auth-submit {
  width: 100%; height: 52px; border-radius: 50px; font-size: 16px; font-weight: 600;
  background: rgba(11, 37, 48, 0.9); backdrop-filter: blur(12px); color: #fff; border: none;
  cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 20px rgba(11, 37, 48, 0.25);
  padding: 0 24px !important;
}
.guest-auth-submit:hover { background: var(--brand); transform: translateY(-1px); }
.guest-auth-submit img, .guest-auth-submit::before { display: none !important; }
.guest-auth-note { font-size: 10px; color: rgba(0,0,0,0.5); line-height: 1.3; margin-top: 24px; text-align: center; }

/* --- USER STATE --- */
.menu-column--left.user-sidebar {
  padding-top: 0; display: flex; flex-direction: column; align-items: center;      
  justify-content: flex-start; text-align: center;
  
  position: relative; 
}
.user-card {
  background: #ffffff; border-radius: 28px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  max-width: 360px; width: 100%; margin: 0 auto 16px; overflow: hidden;
}
.user-card-header {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.user-avatar-wrap { width: auto; height: auto; background: transparent; }
.user-avatar { width: 80px; height: auto; object-fit: contain; }
.user-card-text { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.user-greeting { margin: 0; font-size: 14px; color: var(--ink-s); }
.user-name { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); }
.user-username { margin: 0; font-size: 14px; color: var(--accent); font-weight: 500; }

/* User Contacts Plate */
#contacts-main { 
  width: 100%; display: flex; justify-content: center; 
  
  position: relative; 
  z-index: 5; 
}
#contact-plate, .user-contacts-icons {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px; gap: 12px; padding: 6px 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: relative;
}
#contact-marker { display: none !important; }
.user-contacts { border-top: none; padding-top: 0; margin-top: 0; width: 100%; display: flex; justify-content: center; }

.contact-item, .user-contacts-icons a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border-radius: 50%; transition: 0.2s;
  border: none; cursor: pointer; padding: 0; margin: 0;
}
.contact-item:hover, .user-contacts-icons a:hover {
  background: var(--brand); transform: scale(1.15); box-shadow: 0 4px 12px rgba(11, 37, 48, 0.3);
}
.contact-item img, .user-contacts-icons img {
  width: 20px; height: 20px; filter: none; opacity: 0.8; display: block; transition: 0.2s;
}

/* User Icons Swap Logic */
.contact-item[data-index="0"]:hover img, .user-contacts-icons a[href*="t.me"]:hover img { content: url('../icon/telegram2.png'); filter: none !important; opacity: 1; }
.contact-item[data-index="1"]:hover img, .user-contacts-icons a[href^="tel"]:hover img { content: url('../icon/phone2.png'); filter: none !important; opacity: 1; }
.contact-item[data-index="2"]:hover img, .user-contacts-icons a[href*="wa.me"]:hover img { content: url('../icon/whatsapp2.png'); filter: none !important; opacity: 1; }
.contact-item[data-index="0"], .user-contacts-icons a[href*="t.me"] { order: 1; }
.contact-item[data-index="1"], .user-contacts-icons a[href^="tel"] { order: 2; }
.contact-item[data-index="2"], .user-contacts-icons a[href*="wa.me"] { order: 3; }

/* Phones Dropdown Common (GUEST & USER) */
.phones-popover {
  position: absolute; top: 100%; left: 0; width: 100%; margin-top: 8px; z-index: 100;
  
  background: rgba(255, 255, 255, 0.55); 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px; padding: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25); 
  display: flex; flex-direction: column; gap: 4px;
  animation: glassPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: top center;
}

.phones-popover a {
  display: block; text-align: center; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 12px; border-radius: 18px; text-decoration: none; 
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid transparent;
}

.phones-popover a:hover { 
  background: #fff; 
  color: var(--brand); 
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* SPECIFIC USER OVERRIDE */
.menu-state--user #contacts-phones { 
  width: 100%; max-width: 200px; 
  position: absolute; 
  top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 12px;
  
  background: rgba(255, 255, 255, 0.55); 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* --- USER MAIN CONTENT & TABS --- */
.menu-column--right.user-main {
  background: #fff; border-radius: 32px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); padding: 40px;
}
.user-main-card {
  height: 580px; min-height: 580px; display: flex; flex-direction: column; overflow: hidden; padding: 32px 40px;
}
.menu-state--user .user-main-card::-webkit-scrollbar { display: none; }
.user-main-header { margin-bottom: 12px; text-align: center; flex-shrink: 0; }
.user-main-title { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }


.user-tabs {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  
  /* Container visual */
  background: #f1f5f9; 
  border-radius: 99px;
  
  /* Remove gaps */
  padding: 4px;
  gap: 3px;
  border: none !important;
  
  overflow: hidden;
  box-shadow: none !important;
  /* Use mask to clip artifacts */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  width: fit-content;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  justify-self: center;
}

.tabs-marker {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  
  background: var(--brand);
  border-radius: 99px;
  
  z-index: 1;
  pointer-events: none;
  width: 0; opacity: 0;
  
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.2s ease;
  will-change: transform, width;
  
  /* Anti-aliasing overlap hack: 1px shadow same color */
  box-shadow: 0 0 0 1px var(--brand);
}
.tabs-marker.initialized { opacity: 1; }

.user-tab {
  position: relative; z-index: 2;
  height: 36px; 
  min-height: 0;
  width: auto;
  max-width: none; 
  padding: 8px 12px;
  
  font-size: 13px;
  letter-spacing: -0.01em;
  
  background: transparent !important;
  color: var(--ink-s);
  border: none; cursor: pointer; font-weight: 600;
  
  transition: color 0.2s ease;
  flex-shrink: 0;
  
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  margin: 0 !important; 
  border-radius: 99px;
}
.user-tab:hover { color: var(--ink); }
.user-tab.tab-on-marker { color: #fff !important; transition-delay: 0.05s; }

/* Forms & Panels */
.user-main-panels { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.user-panel { height: 100%; display: flex; flex-direction: column; }
.user-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 8px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field:last-child { grid-column: 1 / -1; }
.form-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--ink-s); margin-bottom: 0; }
.form-input {
  height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid #e2e8f0;
  font-size: 14px; width: 100%; outline: none; transition: 0.2s;
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 37, 48, 0.05); }

.profile-actions {
  display: flex; width: 100%; justify-content: flex-end; align-items: center;
  gap: 12px; margin-top: auto; padding-top: 0; border-top: none; flex-shrink: 0; padding-bottom: 0;
}
.profile-actions .btn { margin: 0; }
.menu-column--right.user-main #profile-save-btn, .menu-column--right.user-main #btn-logout {
  display: inline-flex; align-items: center; justify-content: center; height: 46px;
  min-width: 130px; padding: 0 24px; border-radius: 99px; font-size: 14px; font-weight: 600; margin: 0;
}
.menu-column--right.user-main #profile-save-btn { background: var(--brand); color: #fff; border: none; }
.menu-column--right.user-main #btn-logout { background: #fff; color: #111827; border: 1px solid rgba(15, 23, 42, 0.12); }

.menu-state--user .empty-state {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px;
}
.empty-state__icon { width: 72px; height: 72px; margin-bottom: 20px; opacity: 0.5; display: flex; align-items: center; justify-content: center; }
.empty-state__icon img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%); }
.empty-state__title { font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.empty-state__text { font-size: 14px; color: var(--ink-m); max-width: 280px; margin: 0 0 24px; line-height: 1.5; }

/* =======================================================================
   12. PRODUCT MODAL -------------------- */
.product-modal {
  max-width: 900px !important;
  width: 95%;
  padding: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-modal .menu-close-abs { 
  top: 48px !important;
  right: 52px !important;
  
  background: transparent !important; 
  z-index: 20; 
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal__content {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 500px;
  align-items: stretch;
}

/* Left Col */
.product-modal__gallery {
  background: #f4f4f5; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; height: 100%;
}
.product-modal__image-wrap {
  width: 100%; height: 100%; background: transparent !important; box-shadow: none !important;
  border-radius: 0; display: flex; align-items: center; justify-content: center; padding: 0;
}
.product-modal__image-wrap img {
  width: 90%; height: auto; max-height: 90%; object-fit: contain;
  /* mix-blend-mode: multiply; <-- УБРАЛИ, так как это скрывало некоторые фото */
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05)); 
  transition: transform 0.3s; 
  border-radius: 24px;
}
.product-modal__thumbs {
  position: absolute; bottom: 24px; left: 0; width: 100%; display: flex; gap: 8px; justify-content: center; z-index: 10;
}
.product-modal__thumbs button {
  width: 48px; height: 48px; border-radius: 10px; padding: 0; border: 2px solid rgba(255,255,255,0.5);
  overflow: hidden; cursor: pointer; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.product-modal__thumbs button:hover { border-color: var(--brand); transform: translateY(-2px); }

/* Right Col */
.product-modal__info {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-modal__header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-right: 40px; }
.product-modal__title { font-size: 26px; font-weight: 700; line-height: 1.1; margin: 0; color: var(--ink); }
.status-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 6px 12px; border-radius: 99px;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
  margin-top: auto; align-self: flex-start; margin-bottom: 24px; width: fit-content;
}
.status-badge.in-stock { background: #dcfce7; color: #15803d; }
.status-badge.out-of-stock { background: #fee2e2; color: #b91c1c; }
.product-modal__desc { font-size: 14px; color: var(--ink-m); line-height: 1.6; margin-bottom: 24px; }
.product-modal__desc p { margin: 0 0 8px; }

.product-modal__footer {
  margin-top: auto;
  padding-top: 32px;
  padding-right: 4px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-modal__price-block { display: flex; flex-direction: column; gap: 2px; justify-content: center; transform: translateY(2px); }
.price-label { font-size: 12px; color: var(--ink-s); }
.product-modal__price { font-size: 24px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.product-modal__actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }

.qty-counter {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  background: #f1f5f9; border-radius: 99px; padding: 4px; height: 52px; width: 120px; flex-shrink: 0;
}
.qty-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff;
  font-size: 18px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex; justify-content: center; align-items: center; transition: 0.2s; flex-shrink: 0; margin: 0;
}
.qty-btn:hover { background: #fff; transform: scale(1.05); }
.qty-input {
  flex: 1; width: auto; min-width: 0; text-align: center; border: none; background: transparent;
  font-size: 16px; font-weight: 700; height: 100%; margin: 0; padding: 0;
  appearance: none; -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* === СТАБИЛЬНАЯ СИСТЕМА КНОПОК КОРЗИНЫ (DESKTOP) === */
.product-modal__actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important; 
}

#product-modal-add {
  all: unset !important; 
  box-sizing: border-box !important;
  
  height: 52px !important;
  min-width: 210px !important; 
  padding: 0 24px !important;
  border-radius: 99px !important;
  border: 2px solid transparent !important;
  
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}

#product-modal-add:not(.btn--success) {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

#product-modal-add.btn--success {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important; 
}

#product-modal-add.btn--success:hover {
  background: var(--ink) !important;
  color: #fff !important;
}

/* =======================================================================
   13. CART & CHECKOUT
   ======================================================================= */

.cart-wrapper {
  display: flex; flex-direction: column; 
  height: 100%; min-height: 0; overflow: hidden;
}

/* --- COMPACT CART STYLES --- */
.cart-list { 
  display: flex; flex-direction: column; gap: 8px; /* Меньше зазор между товарами */
  overflow-y: auto; flex-grow: 1; 
  padding-right: 2px; margin-bottom: 12px; min-height: 0; 
}

.cart-item {
  display: flex !important; 
  align-items: center; 
  gap: 8px; /* Плотнее элементы внутри */
  padding: 8px 10px; /* Меньше воздуха внутри карточки */
  background: #fff; 
  border-radius: 14px; 
  border: 1px solid rgba(15, 23, 42, 0.08); 
  transition: 0.2s; 
  width: 100%;
  min-height: 60px; /* Фикс минимальной высоты */
}

/* Картинка меньше */
.cart-item__img { 
  width: 48px !important; 
  height: 48px !important; 
  border-radius: 8px; 
  object-fit: cover; 
  background: #f1f5f9; 
  flex-shrink: 0; 
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden; 
  min-width: 0;
  flex-grow: 1;
}

/* Название компактнее */
.cart-item__title { 
  display: block;
  width: 100%;
  font-size: 12px; /* Чуть меньше шрифт */
  font-weight: 600; 
  color: var(--ink) !important;
  margin: 0; 
  line-height: 1.3;
  white-space: normal;
  overflow: hidden;
  /* Ограничиваем 2 строками, если длинное */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Контроллеры (+/-) компактнее */
.cart-item__controls { 
  display: flex; 
  align-items: center; 
  gap: 0; 
  background: #f1f5f9; 
  border-radius: 8px; 
  padding: 0; 
  height: 28px; /* Ниже высота */
  flex-shrink: 0; 
}

.cart-btn-qty { 
  width: 24px; 
  height: 28px; 
  border-radius: 6px; 
  border: none; 
  background: transparent; 
  color: var(--ink); 
  font-weight: 500; 
  cursor: pointer; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 16px; 
  padding: 0; 
  line-height: 1;
}

.cart-item__qty { 
  font-size: 12px; 
  font-weight: 600; 
  min-width: 18px; 
  text-align: center; 
}

/* Цена справа */
.cart-item__price { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--ink); 
  white-space: nowrap; 
  margin-left: 2px; 
  min-width: 50px; /* Чтобы цифры стояли ровно */
  text-align: right;
}

/* Крестик удаления */
.cart-item__remove { 
  width: 24px; 
  height: 24px; 
  border: none; 
  background: transparent; 
  color: #cbd5e1; 
  cursor: pointer; 
  display: flex; align-items: center; justify-content: center; 
  font-size: 18px; 
  margin-left: 0; 
  padding: 0;
}
.cart-item__remove:hover { color: #ef4444; }

.cart-footer { 
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); 
  display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; 
}
.cart-total { display: flex; justify-content: space-between; align-items: flex-end; }
.cart-total__label { font-size: 13px; color: var(--ink-m); }
.cart-total__val { font-size: 18px; font-weight: 800; color: var(--ink); }
.btn--checkout { width: 100%; height: 44px; font-size: 15px; }

/* Checkout Modal */
.checkout-modal {
  max-width: 500px; width: 100%; padding: 32px; max-height: 90vh; height: auto;
  display: flex; flex-direction: column; overflow: hidden;
}
.checkout-content { display: flex; flex-direction: column; height: 100%; overflow-y: auto; padding-right: 4px; }
.checkout-content::-webkit-scrollbar { width: 4px; }
.checkout-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.checkout-title { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--ink); text-align: center; }
.checkout-summary-bar { display: flex; justify-content: center; align-items: center; gap: 8px; background: #f1f5f9; border-radius: 12px; padding: 12px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--ink-m); }
.checkout-total-price { color: var(--ink); font-weight: 700; }
.checkout-divider { color: #cbd5e1; }
.checkout-methods { display: flex; gap: 8px; background: #f1f5f9; padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.method-radio { flex: 1; position: relative; cursor: pointer; }
.method-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.method-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-m); transition: 0.2s; }
.method-radio input:checked + .method-btn { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.method-details { margin-bottom: 24px; animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.pickup-info { display: flex; align-items: center; gap: 10px; background: #ecfdf5; color: #065f46; padding: 16px; border-radius: 12px; font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.pickup-info img { width: 18px; height: 18px; opacity: 0.8; }
.pickup-note { font-size: 13px; color: var(--ink-s); margin: 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.form-field.full-width { grid-column: 1 / -1; }
.checkout-line { border: 0; border-top: 1px solid var(--line); margin: 0 0 24px; }
.checkout-subtitle { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: var(--ink); }
.form-textarea { min-height: 80px; resize: vertical; padding: 12px; }
.mt-4 { margin-top: 16px; }
.checkout-policy { font-size: 11px; color: var(--ink-s); text-align: center; margin-top: 16px; line-height: 1.4; }
.btn--submit-order { height: 52px; font-size: 16px; margin-top: 24px; }

/* Orders List */
.orders-list { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; flex-grow: 1; padding-right: 4px; padding-bottom: 20px; min-height: 0; }
.orders-list::-webkit-scrollbar { width: 4px; }
.orders-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.order-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: 0.2s; position: relative; }
.order-card:hover { background: #fff; border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.order-card.is-canceled { opacity: 0.75; background: #f1f5f9; }
.order-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.order-info-group { display: flex; flex-direction: column; gap: 2px; }
.order-id { font-size: 14px; font-weight: 700; color: var(--ink); }
.order-date { font-size: 12px; color: var(--ink-s); }
.status-sent { background: #dcfce7; color: #16a34a; }
.status-canceled { background: #fee2e2; color: #b91c1c; }
.order-body { display: flex; flex-direction: column; gap: 6px; }
.order-item-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-m); }
.order-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; }
.order-total-label { font-size: 13px; color: var(--ink-s); }
.order-total-price { font-size: 16px; font-weight: 800; color: var(--ink); }
.order-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn-order-action { flex: 1; height: 36px; font-size: 13px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); transition: 0.2s; }
.btn-order-action:hover { background: #f1f5f9; }
.btn-repeat { color: var(--brand); border-color: rgba(11, 37, 48, 0.15); }
.btn-repeat:hover { background: var(--brand); color: #fff; }
.btn-cancel { color: #ef4444; border-color: rgba(239, 68, 68, 0.15); }
.btn-cancel:hover { background: #fee2e2; border-color: transparent; }

/* =======================================================================
   14. Footer
   ======================================================================= */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 60px 0 20px; margin-top: 60px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.site-footer__brand { max-width: 320px; }
.site-footer__wordmark { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; display: block; margin-bottom: 12px; color: var(--brand); }
.site-footer__text { font-size: 14px; line-height: 1.6; color: var(--ink-m); }
.site-footer__contacts { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__contacts h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.site-footer__phones { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.site-footer__link { font-size: 16px; font-weight: 600; color: var(--ink); }
.site-footer__messengers { display: flex; gap: 12px; margin-bottom: 12px; }
.site-footer__catalog-link { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid var(--line); padding-top: 20px; }
.site-footer__copy { font-size: 13px; color: var(--ink-s); margin: 0; }

/* Footer: mobile variant hidden by default (desktop uses footer-desktop) */
.footer-mobile { display: none; }
.footer-desktop { display: block; }

/* --- FIX: HIDE MOBILE ELEMENTS ON DESKTOP --- */
/* Скрываем мобильные кнопки и попапы на ПК */
.guest-mobile-actions,
.guest-popover-mobile {
  display: none;
}

/* =======================================================================
   15. Media Queries
   ======================================================================= */
@media (max-width: 900px) {
  .grid, .info-row { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: relative; top: 0; }
  .catalog-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .catalog-nav .chip { width: auto; }
  /* --- Topbar Mobile Fix --- */
  .topbar { 
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-between;
    gap: 12px 0;
    padding: 16px 0; 
  }
  
  .addr { 
    width: auto; 
    margin-right: auto; 
    order: 1; 
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .phone { 
    margin-left: auto; 
    order: 2; 
    font-size: 14px;
    font-weight: 700;
  }
  
  .search-catalog-wrap { 
    width: 100%; 
    order: 3; 
    margin-top: 4px;
  }
  
  #menu-modal .modal__panel { align-items: flex-start; overflow-y: auto; height: 100%; }
  .menu-columns { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .menu-column--left.menu-guest-visual { height: 280px; min-height: auto; border-radius: 32px; }
  .menu-column--right.menu-guest-auth { border-radius: 32px; }
  .guest-contacts-overlay { max-width: 100%; }
  .menu-column--left.user-sidebar, .menu-column--right.user-main { padding: 24px; }
  .user-main-grid { grid-template-columns: 1fr; }

  /* --- Mobile Guest Menu (variant B) --- */
  #menu-modal:not(.menu-modal--user) .modal__panel{
    width: min(92vw, 420px);
    max-width: 92vw;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    transform: none;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #menu-modal:not(.menu-modal--user) .menu-layout,
  #menu-modal:not(.menu-modal--user) .menu-columns{
    height: auto;
    overflow: visible;
  }

  #menu-modal #auth-guest .menu-column--left.menu-guest-visual{
    display: none;
  }

  #menu-modal #auth-guest .menu-columns{
    grid-template-columns: 1fr;
  }

  #menu-modal #auth-guest .menu-column--right.menu-guest-auth{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent !important;
    box-shadow: none !important;
  }

  #menu-modal #auth-guest .guest-auth-card{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    border-radius: 24px;
    padding: 20px 18px;
    order: 1;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  }

  #menu-modal #auth-guest .guest-auth-title{ margin: 0 0 8px; }
  #menu-modal #auth-guest .guest-auth-text{ margin: 0 0 10px; }
  #menu-modal #auth-guest .guest-auth-note{ margin-top: 10px; }
  #menu-modal #auth-guest .guest-auth-actions{ margin: 12px 0; }

  #menu-modal #auth-guest .guest-contacts-overlay{
    display: none !important;
  }

  #menu-modal #auth-guest .guest-mobile-actions {
    position: relative;
    width: auto;
    max-width: 90%;
    margin: 24px auto 0;
    
    background: #ffffff;
    border-radius: 99px;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    
    order: 2;
    z-index: 100;
  }
  
  #menu-modal #auth-guest .guest-mobile-chip {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  
  #menu-modal #auth-guest .guest-mobile-chip:active {
    transform: scale(0.9);
    background: rgba(15, 23, 42, 0.05);
  }

  #menu-modal #auth-guest .guest-mobile-chip span {
    display: none;
  }

  #menu-modal #auth-guest .guest-mobile-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
  }

  #menu-modal #auth-guest .guest-popover-mobile {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    z-index: 3000;
    
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    
    border: none;
    border-radius: 0;
    transform: none;
    top: 0; left: 0;
  }

  #menu-modal #auth-guest .guest-popover-mobile.is-open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
  }

  #menu-modal #auth-guest .guest-phone-row {
    display: block;
    width: 100%;
    max-width: 320px;
    background: #ffffff;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    
    padding: 20px;
    margin-bottom: 12px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.2s;
  }
  
  #menu-modal #auth-guest .guest-phone-row:active {
    transform: scale(0.92);
    background: #f1f5f9;
  }

  #menu-modal #auth-guest .guest-search-popover {
    background: transparent;
    backdrop-filter: none;
    justify-content: flex-end;
    padding-bottom: 100px;
  }

  .guest-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 99px;
    padding: 4px;
    height: 44px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  }

  .guest-search-input {
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
    color: #0f172a;
    min-width: 0;
  }

  .guest-search-submit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .guest-search-submit img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    display: block;
  }

}

@media (max-width: 768px) {
  .product-modal__content { grid-template-columns: 1fr; }
  .status-badge { position: static; margin-bottom: 8px; align-self: flex-start; }
  .product-modal__header { padding-right: 0; }
  .product-modal .menu-close-abs { top: 20px; right: 20px; }
}

@media (max-width: 600px) {
  .grid, .info-row { grid-template-columns: 1fr; }
  /* --- СПЕЦИАЛЬНО ДЛЯ КАТАЛОГА: 2 КОЛОНКИ НА МОБИЛКЕ (FIX) --- */
  #catalog-grid.grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  /* Компактный стиль карточек для 2 колонок */
  #catalog-grid .card__body {
    padding: 10px !important;
  }
  #catalog-grid .card__title {
     font-size: 13px !important;
     line-height: 1.3 !important;
     margin-bottom: 6px !important;
     height: 34px; /* Ограничиваем высоту заголовка 2 строками */
     overflow: hidden;
  }
  #catalog-grid .card__meta {
    flex-direction: column; /* Цена и вес друг под другом, чтобы влезло */
    align-items: flex-start !important;
    gap: 2px;
  }
  #catalog-grid .card__price {
    font-size: 15px !important;
  }
  #catalog-grid .card__unit {
    font-size: 11px !important;
  }
  /* ---------------------------------------------------- */
  .catalog-toolbar-mobile {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 10px 0 20px !important;
    padding: 0 10px !important;
  }

  .catalog-nav {
    display: none !important;
  }

  .toolbar-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 48px !important;
    flex: 0 1 auto !important;
    min-width: 135px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    border-radius: 99px !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    cursor: pointer !important;
  }

  .toolbar-btn img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  .toolbar-btn span {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
  }

  .filter-modal-blur {
    position: fixed !important;
    inset: 0 !important;
    z-index: 3000 !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .filter-modal-blur:not([hidden]) {
    display: flex !important;
  }

  .filter-grid-wrap {
    width: 90% !important;
    max-width: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
  }

  #mobile-filter-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .filter-chip-cell {
    background: #fff !important;
    color: var(--ink) !important;
    padding: 12px 24px !important;
    border-radius: 99px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
  }

  .filter-chip-cell.active {
    background: var(--brand) !important;
    color: #fff !important;
  }

  .filter-title {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  #btn-close-filter {
    display: none !important;
    margin-top: 20px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    padding: 14px 40px !important;
    border-radius: 99px !important;
    font-weight: 700 !important;
    backdrop-filter: blur(5px) !important;
    cursor: pointer !important;
  }

  /* --- MOBILE HERO FIX (<=600px) --- */
  .hero-chips {
    display: none !important;
  }

  .hero {
    width: calc(100% - 24px);
    margin: 12px auto 20px;
    border-radius: 26px;
    min-height: 520px;
    overflow: hidden;
  }

  .hero-bg {
    object-position: center;
  }

  
  .product-modal { padding: 24px; }
  .product-modal__content { gap: 20px; }
  .product-modal__info { padding-right: 0; }
  .product-modal__footer { flex-wrap: wrap; } 
  .site-footer { padding: 40px 0 24px; }
  .site-footer__wordmark { font-size: 26px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .modal--info .modal__panel { padding: 24px 20px; width: 92%; }
  .section .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0;
    margin: 0;
  }
  .section .grid > .card:first-child { grid-column: 1 / -1; }
  .section .grid > .card:first-child .card__media { aspect-ratio: 4 / 3; }
  .section .grid > .card:not(:first-child) .card__media { aspect-ratio: 1 / 1; }
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }

  /* --- MOBILE BOTTOM BAR (logo | divider | menu) --- */
  .mobile-bottom-bar{
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 220;

    display: inline-flex;
    align-items: center;
    gap: 16px;

    padding: 16px 24px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.18);
  }

  @supports (padding: max(0px)) {
    .mobile-bottom-bar{
      bottom: calc(20px + env(safe-area-inset-bottom));
    }
  }

  .mobile-bottom-bar__divider{
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 40px;
    align-self: center;
    background: rgba(15, 23, 42, 0.35);
    opacity: 1;
    border-radius: 1px;
  }

  .mobile-bottom-bar .brand{
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }

  .mobile-bottom-bar .brand img{
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .mobile-bottom-bar #menu-fab{
    position: static;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    box-shadow: none;

    background: transparent;
    padding: 10px 14px;
    border-radius: 14px;

    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    line-height: 1;
  }

  /* --- MOBILE: compact info cards (About / Why us / Delivery) --- */
  .info-row{
    gap: 14px;
    margin: 28px auto 22px;
  }

  .info-card{
    padding: 20px 18px;
    border-radius: 22px;
  }

  .info-card h3{
    font-size: 18px;
    margin-bottom: 10px;
  }

  .info-card p{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;

    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .info-card .btn{
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  /* --- MOBILE: info slider (single card + premium dots) --- */
  .info-row.is-slider{
    display:block;
    position:relative;
    max-width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .info-row.is-slider .info-card.is-slide{ display:none; opacity:0; transform:translateY(4px); }
  .info-row.is-slider .info-card.is-slide.is-active{ display:flex; opacity:1; transform:translateY(0); transition:opacity .18s ease, transform .18s ease; }
  .info-row.is-slider .info-dots{ display:flex; justify-content:center; gap:10px; margin-top:12px; }
  .info-row.is-slider .info-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    border:1px solid rgba(15, 23, 42, 0.18);
    background:rgba(15, 23, 42, 0.12);
    padding:0;
  }
  .info-row.is-slider .info-dot.is-active{
    width:10px;
    height:10px;
    background:#0f172a;
    border-color:#0f172a;
  }

  /* компактная высота слайда: не растягиваем карточку на весь экран */
  .info-row.is-slider .info-card.is-slide{
    height: auto;
    min-height: 0;
  }

  /* убрать растягивание текста, которое создаёт пустоту */
  .info-row.is-slider .info-card.is-slide p{
    flex-grow: 0;
  }

  /* кнопка ближе к тексту, без огромного отступа вниз */
  .info-row.is-slider .info-card.is-slide .btn{
    margin-top: 10px;
  }

  /* лёгкая подсказка “можно листать”: еле заметный пульс активного индикатора */

  /* --- MOBILE: slider affordance (hint that it can be swiped) --- */
  .info-row.is-slider{
    padding: 0;
    touch-action: pan-y;
  }

  /* --- MOBILE: compact footer on home (premium) --- */
  .page-home .footer-desktop{
    display: none;
  }

  /* убираем “белую простыню” футера на главной */
  .page-home .site-footer{
    background: transparent;
    border-top: none;
    margin-top: 18px;
    padding: 0 0 calc(110px + env(safe-area-inset-bottom));
    position: relative;
  }

  .page-home .site-footer::before{
    content: "";
    display: block;
    max-width: calc(100% - 24px);
    margin: 0 auto 14px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(15, 23, 42, 0.14),
      transparent
    );
  }

  /* сам микро-футер — компактный, спокойный, без жирной тени */
  .page-home .footer-mobile{
    display: block;
    max-width: calc(100% - 24px);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* компоновка: кнопка + иконки в одну линию */
  .page-home .footer-mobile__actions{
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .page-home .footer-mobile__catalog{
    width: auto;
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;

    font-weight: 700;
    font-size: 14px;
    color: #0f172a;

    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.16);
  }

  /* иконки — маленькие “пилюли”, без лишних рамок */
  .page-home .footer-mobile__socials{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 6px;
  }

  .page-home .footer-mobile__socials a{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;

    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .page-home .footer-mobile__socials img{
    width: 20px;
    height: 20px;
    display: block;
  }

  .page-home .footer-mobile__copy{
    text-align: center;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.55);
  }

  /* --- MOBILE: Fixed Product Card (No Scroll) --- */
  .modal{
    padding: 12px;
  }

  .modal__panel.product-modal {
    width: calc(100% - 24px) !important;
    height: auto !important;
    max-height: 75vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 300;
    margin-bottom: 90px !important;
  }

  .product-modal__content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  .product-modal__gallery {
    height: 180px !important;
    flex-shrink: 0 !important;
    padding: 10px !important;
  }

  .product-modal__info {
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
  }

  .product-modal__title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
  }

  .product-modal__desc {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    color: var(--ink-m) !important;
    overflow: visible !important; 
    max-height: none !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  .status-badge.status-badge-dynamic {
    margin-bottom: 12px !important;
    align-self: flex-start !important;
  }

  .product-modal__footer {
    position: relative !important;
    margin-top: auto !important;
    padding: 12px 16px 20px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    border-top: 1px solid var(--line) !important;
    background: #fff !important;
  }

  .product-modal__actions {
    display: contents !important;
  }

  #product-modal-add {
    grid-column: 1 / -1 !important;
    height: 46px !important;
    margin-top: 8px !important;
  }

  .qty-counter {
    height: 40px !important;
    width: 100px !important;
  }

  .qty-input {
    all: unset !important;
    width: 34px !important;
    height: 100% !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .product-modal__price-block {
    justify-content: center !important;
  }

  .product-modal__image-wrap{
    height: 100%;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  }

  .product-modal__image-wrap img{
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
  }

  .product-modal__header{
    gap: 8px;
    margin-bottom: 12px;
  }

  #product-modal-thumbs,
  .product-modal__thumbs{
    display: none;
  }

  /* --- MOBILE: menu modal layout --- */
  #menu-modal .modal__panel{
    width: calc(100vw - 24px);
    max-width: 420px;
    height: min(72vh, 640px);
    padding: 12px;
    overflow: hidden;
  }

  .menu-layout,
  .menu-columns{
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-columns{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .menu-column--left.menu-guest-visual{
    height: 160px;
    min-height: 160px;
  }

  .menu-column--left.menu-guest-visual,
  .menu-column--right.menu-guest-auth,
  .menu-column--left.user-sidebar,
  .menu-column--right.user-main{
    width: 100%;
    max-width: 100%;
  }

  .menu-column--left.user-sidebar,
  .menu-column--right.user-main{
    padding: 16px;
  }

  .user-tabs{
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .user-tab{
    padding: 10px 14px;
  }

  .user-main-card{
    height: auto;
    min-height: 0;
    padding: 20px 16px;
  }

  .user-main-panels{
    overflow: auto;
  }

  .phones-popover{
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }


  .product-modal__price-block{
    grid-column: 1;
    grid-row: 1;
  }

  .product-modal__actions{
    display: contents;
  }

  .qty-counter{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .btn--add-cart{
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }

  /* --- MOBILE AUTHORIZED MENU (User Adaptation v2) --- */
  #menu-modal.menu-modal--user .modal__panel {
    background: transparent;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
  }

  #menu-modal.menu-modal--user .menu-close-abs {
    top: 16px;
    right: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
  }

  #menu-modal.menu-modal--user .menu-layout {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 60px 16px 130px;
    display: block;
  }

  #menu-modal.menu-modal--user .menu-columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0;
  }

  #menu-modal.menu-modal--user .menu-column--left.user-sidebar {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
  }

  #menu-modal.menu-modal--user .user-card {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-radius: 24px;
  }

  #menu-modal.menu-modal--user .user-contacts { display: none; }

  #menu-modal.menu-modal--user .menu-column--right.user-main {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  #menu-modal.menu-modal--user .user-main-card {
    height: auto;
    min-height: 300px;
    padding: 20px 16px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  #menu-modal.menu-modal--user .user-main-header { display: none; }

  #menu-modal.menu-modal--user .user-tabs {
    width: 100%;
    display: flex;
    justify-content: space-between;
    overflow: visible;
    padding: 4px;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: 16px;
  }

  #menu-modal.menu-modal--user .user-tab {
    flex: 1;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
    font-size: 12px;
    height: auto;
    min-height: 38px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #menu-modal.menu-modal--user .tabs-marker {
    border-radius: 12px;
  }

  #menu-modal.menu-modal--user .user-main-panels {
    overflow: visible;
    height: auto;
    flex-grow: 1;
  }

  #menu-modal.menu-modal--user .user-main-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #menu-modal.menu-modal--user .profile-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 28px;
  }

  #menu-modal.menu-modal--user .profile-actions .btn {
    width: 100%;
    margin: 0;
    height: 50px;
  }

  /* Скрываем верхний крестик в меню и товаре на мобилке (управление через FAB) */
  #menu-modal .menu-close-abs,
  .product-modal .menu-close-abs {
    display: none !important;
  }

  /* Скрываем поиск на баннере героя на мобилке */
  .hero-search-wrap {
    display: none !important;
  }

  /* Скрываем крестик в модалке оформления заказа на мобилке */
  .checkout-modal .menu-close-abs {
    display: none !important;
  }
}
