*{box-sizing:border-box;}
html,body{margin:0;padding:0;height:100%;}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#f4f5ff;
  color:#111827;
}
a{color:#2563eb;}
.app-root{min-height:100vh;display:flex;flex-direction:column;}

/* TOPBAR */
.topbar{
  height:96px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #1e40af 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 32px;
  color:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.18);
  overflow:hidden;
}
.topbar-inner{
  width:100%;
  max-width:1320px;
  display:flex;
  align-items:center;
  gap:16px;
}

/* LOGO */
.topbar-logo{
  display:flex;
  align-items:center;
  flex:0 0 72px;
  width:72px;
  height:72px;
  text-decoration:none;
}
.topbar-logo-img{
  width:72px;height:72px;display:block;object-fit:contain;
}

/* SEARCH */
.topbar-search{position:relative;flex:1;display:flex;align-items:center;gap:8px;min-width:240px;}
.topbar-search input{
  width:100%;
  border-radius:999px;
  border:none;
  padding:14px 20px;
  font-size:15px;
  outline:none;
}
.topbar-search button{
  border-radius:999px;border:none;padding:12px 18px;font-size:14px;font-weight:400;
  cursor:pointer;color:#fff;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  box-shadow:0 14px 28px rgba(37,99,235,.28);
  transition: transform .1s ease, box-shadow .1s ease, opacity .1s ease;
}
.topbar-search button:hover{transform: translateY(-1px);box-shadow:0 18px 34px rgba(37,99,235,.35);opacity:.98;}
.topbar-search button:active{transform: translateY(0);box-shadow:0 10px 20px rgba(37,99,235,.22);opacity:.95;}

/* ACTIONS */
.topbar-actions{display:flex;align-items:center;gap:18px;font-size:13px;flex:0 0 auto;}
.topbar-action-item{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  opacity:.95;text-shadow:0 1px 2px rgba(0,0,0,.25);
  color:#fff;text-decoration:none;
  padding: 8px 10px;border-radius:14px;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.topbar-action-icon{width:28px;height:24px;display:block;}
.topbar-action-item:hover{transform: translateY(-1px);background: rgba(255,255,255,.12);box-shadow:0 10px 24px rgba(0,0,0,.18);opacity:1;}

/* MAIN */
.main{flex:1;display:flex;justify-content:center;padding:24px 16px 32px;}
.main-inner{width:100%;max-width:1240px;}
.page-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;}
.card{background:#fff;border-radius:20px;padding:20px;box-shadow:0 12px 30px rgba(15,23,42,.12);}

/* LOGIN */
#loginSection h2{margin:0 0 8px;font-size:18px;}
#loginSection p.muted{margin:0 0 14px;font-size:13px;color:#6b7280;}
.primary-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 16px;border-radius:999px;border:none;
  background:linear-gradient(135deg,#2563eb,#0891b2);
  color:#fff;font-weight:600;font-size:14px;cursor:pointer;
  box-shadow:0 12px 30px rgba(37,99,235,.35);
}

/* APP */
.app-shell{display:flex;flex-direction:column;gap:16px;}

/* welcome banner */
.welcome-banner{
  border-radius:16px;padding:14px 16px;
  background: linear-gradient(90deg, rgba(29,78,216,.14), rgba(14,165,233,.06));
  border: 1px solid rgba(29,78,216,.18);
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.welcome-title{font-size:16px;font-weight:800;color:#0f172a;}
.welcome-sub{margin-top:4px;font-size:13px;color:#334155;}
.welcome-actions{display:flex;gap:8px;align-items:center;flex:0 0 auto;}
.welcome-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:6px 12px;border-radius:999px;text-decoration:none;
  cursor:pointer;color:#fff;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  box-shadow:0 14px 28px rgba(37,99,235,.28);
  font-size:14px;font-weight:800;border:none;
}
.welcome-arrow{width:26px;height:26px;display:block;object-fit:contain;}
.welcome-note{
  margin-top:10px;padding:12px 14px;border-radius:14px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color:#065f46;font-size:13px;
}

/* layout */
.app-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;}
.sidebar{border-radius:16px;background:#f9fafb;padding:12px 10px;font-size:13px;}
.sidebar-title{font-weight:600;margin-bottom:8px;}
.sidebar-nav{list-style:none;padding:0;margin:0;}
.sidebar-nav li{padding:6px 8px;border-radius:10px;cursor:pointer;display:flex;gap:6px;align-items:flex-start;}
.sidebar-nav li span.icon{font-size:16px;line-height:1.1;}
.sidebar-nav li.active{background:#eef2ff;color:#4338ca;font-weight:600;}
.sidebar-nav li:not(.active):hover{background:#e5e7eb;}
.sidebar-nav li .cat-text{white-space:normal;line-height:1.2;}

.content{display:flex;flex-direction:column;gap:14px;}

.banner{
  border-radius:16px;padding:14px 16px;
  background:linear-gradient(135deg,#1d4ed8,#0ea5e9);
  color:#fff;display:flex;justify-content:space-between;align-items:center;font-size:14px;
}
.banner-title{font-weight:700;margin-bottom:4px;}
.banner-sub{font-size:13px;opacity:.95;}
.banner-badge{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.18);font-size:12px;}
.section-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;}
.section-header h3{margin:0;font-size:15px;}
.section-header a{font-size:12px;}

.product-grid{display:grid;grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));gap:14px;}
.product-card{
  border-radius:14px;border:1px solid #e5e7eb;background:#fff;
  padding:10px 10px 12px;display:flex;flex-direction:column;gap:6px;font-size:13px;
}
.product-thumb{
  height:140px;border-radius:10px;
  background:radial-gradient(circle at 30% 20%, #fef3c7, #bfdbfe);
  display:flex;align-items:center;justify-content:center;font-size:30px;
}
.product-name{font-weight:700;margin-top:2px;}
.product-meta{color:#6b7280;font-size:12px;}
.product-price-row{display:flex;align-items:center;justify-content:space-between;margin-top:2px;}
.product-price{font-weight:800;font-size:14px;}
.product-btn{border-radius:999px;border:none;background:#0ea5e9;color:#fff;font-size:12px;padding:6px 10px;cursor:pointer;}

/* responsive */
@media (max-width:1000px){ .app-layout{grid-template-columns:1fr;} }
@media (max-width:640px){
  .topbar{height:78px;padding:0 16px;}
  .topbar-actions{display:none;}
  .topbar-logo{flex:0 0 56px;width:56px;height:56px;}
  .topbar-logo-img{width:56px;height:56px;}
}

/* PROMO CAROUSEL */
.promo-carousel{
  position: relative;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
  aspect-ratio: 1240 / 320;
  background: #0b4aa6;
}
.promo-track{
  height: 100%;
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
  position: relative;
  z-index: 1;
}
.promo-slide{flex: 0 0 100%;height: 100%;display: block;}
.promo-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b4aa6;
  display: block;
}
.promo-nav{
  position: absolute;top: 50%;transform: translateY(-50%);
  width: 40px;height: 40px;border: none;border-radius: 999px;cursor: pointer;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(15,23,42,.18);
  display:flex;align-items:center;justify-content:center;
  font-size: 22px;line-height: 1;z-index: 50;
}
.promo-nav.prev{ left: 10px; }
.promo-nav.next{ right: 10px; }

.promo-dots{
  position: absolute;left: 0; right: 0;bottom: 10px;
  display: flex;justify-content: center;gap: 7px;z-index: 50;
}
.promo-dot{
  width: 8px;height: 8px;border-radius: 999px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.65);
  cursor: pointer;
}
.promo-dot.active{ background: rgba(255,255,255,.95); }

/* --- FIX: welcome компактнее, promo отдельной секцией --- */
#welcomeSection { display:block; }
#promoSection { display:block; margin-top:12px; }

/* welcome не растягиваем по высоте */
.welcome-banner{
  align-items: center;          /* было flex-start */
  padding: 14px 16px;
}

/* Чтобы слева было приветствие, справа кнопка, без огромной пустоты */
.welcome-banner > div:first-child{
  max-width: 520px;             /* ограничиваем текст */
}

/* promo визуально отделяем от welcome */
#promoSection .promo-carousel{
  border: 2px solid rgba(37,99,235,.20);
}

/* ===== ANIM: кнопка "Войти" (единая версия) ===== */
.welcome-btn{
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow, opacity;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, filter .15s ease;
}

.welcome-btn:hover{
  transform: translateY(-1px);
  opacity:.98;
  filter: brightness(1.03);
  box-shadow:0 18px 34px rgba(37,99,235,.35);
}

.welcome-btn:active{
  transform: translateY(0);
  opacity:.95;
  box-shadow:0 10px 20px rgba(37,99,235,.22);
}

.welcome-btn.pulse{
  animation: dsPulseGlow 2.4s ease-in-out infinite;
}

@keyframes dsPulseGlow{
  0%   { box-shadow:0 14px 28px rgba(37,99,235,.22); transform: translateY(0); }
  50%  { box-shadow:0 18px 36px rgba(37,99,235,.38); transform: translateY(-1px); }
  100% { box-shadow:0 14px 28px rgba(37,99,235,.22); transform: translateY(0); }
}

.welcome-btn.pulse::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:60%;
  left:-80%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: dsBtnShine 2.8s ease-in-out infinite;
  pointer-events:none;
}

@keyframes dsBtnShine{
  0%   { left:-80%; }
  60%  { left:130%; }
  100% { left:130%; }
}

@media (prefers-reduced-motion: reduce){
  .welcome-btn, .welcome-btn::after{ animation:none !important; transition:none !important; }
}

/* ===== DROPDOWN КАТЕГОРИЙ ПРИ НАВЕДЕНИИ НА ПОИСК ===== */
.topbar-search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 950px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  padding: 20px 24px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.topbar-search:hover .search-dropdown,
.topbar-search:focus-within .search-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dropdown-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  transition: all 0.2s;
}

.dropdown-cat-item:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.dropdown-cat-icon {
  font-size: 18px;
}

/* Корзина */
.cart-items { display: flex; flex-direction: column; gap: 15px; }
.cart-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: #f8f9fa; border-radius: 8px; }
.cart-item-emoji { font-size: 32px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; margin-bottom: 4px; }
.cart-item-price { color: #666; font-size: 14px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.cart-item-qty button { width: 30px; height: 30px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; font-size: 16px; }
.cart-item-qty button:hover { background: #f0f0f0; }
.cart-item-total { font-weight: bold; min-width: 80px; text-align: right; }
.cart-item-remove { background: none; border: none; color: #999; cursor: pointer; font-size: 18px; padding: 5px; }
.cart-item-remove:hover { color: #e74c3c; }
.empty-cart { text-align: center; padding: 40px 20px; }
.empty-cart-icon { font-size: 64px; margin-bottom: 15px; }
.empty-cart-text { font-size: 18px; color: #666; margin-bottom: 10px; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #e74c3c; color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.cart-notification { position: fixed; bottom: 20px; right: 20px; background: #27ae60; color: #fff; padding: 12px 20px; border-radius: 8px; opacity: 0; transform: translateY(20px); transition: all 0.3s; z-index: 1000; }
.cart-notification.show { opacity: 1; transform: translateY(0); }

/* ========== DROPDOWN КАТЕГОРИЙ ПРИ НАВЕДЕНИИ НА ПОИСК ========== */
.topbar-search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 900px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 24px 32px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

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

.dropdown-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.dropdown-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dropdown-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-cat-item:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.dropdown-cat-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ПРИНУДИТЕЛЬНЫЙ FIX для dropdown */
.search-dropdown {
  background: #ffffff !important;
  width: 900px !important;
  max-width: 95vw !important;
  padding: 24px !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
  left: 0 !important;
  transform: none !important;
}

.topbar-search:hover .search-dropdown,
.topbar-search:focus-within .search-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.dropdown-categories {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  background: #ffffff !important;
}

.dropdown-cat-item {
  background: #f1f5f9 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  color: #334155 !important;
}

/* FIX: Dropdown поверх всего контента */
.topbar {
  overflow: visible !important;
  z-index: 9999 !important;
}

.topbar-inner {
  overflow: visible !important;
}

.topbar-search {
  overflow: visible !important;
  z-index: 9999 !important;
}

.search-dropdown {
  z-index: 99999 !important;
}

/* ===== КРАСИВЫЙ DROPDOWN КАК НА РЕФЕРЕНСЕ ===== */
.search-dropdown {
  background: #ffffff !important;
  width: 950px !important;
  padding: 20px 28px !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
  border-top: 1px solid #e2e8f0 !important;
}

.dropdown-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 18px !important;
  padding-left: 4px !important;
}

.dropdown-categories {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
}

.dropdown-cat-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
}

.dropdown-cat-item:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

.dropdown-cat-icon {
  font-size: 22px !important;
  line-height: 1 !important;
}

/* Закруглённые края dropdown */
.search-dropdown {
  border-radius: 20px !important;
  margin-top: 8px !important;
}

/* Адаптивный dropdown - подстраивается под ширину поиска */
.search-dropdown {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Адаптивная сетка для разных экранов */
@media (max-width: 900px) {
  .dropdown-categories {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 700px) {
  .dropdown-categories {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dropdown-cat-item {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  .dropdown-cat-icon {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .dropdown-categories {
    grid-template-columns: 1fr !important;
  }
  .search-dropdown {
    padding: 16px !important;
  }
}

/* Скрываем боковой sidebar с категориями */
.sidebar {
  display: none !important;
}

/* Расширяем контент на всю ширину */
.app-layout {
  display: block !important;
}

.content {
  width: 100% !important;
  max-width: 100% !important;
}

/* ===== КНОПКА НАЙТИ ВНУТРИ ПОИСКОВОЙ СТРОКИ ===== */
.topbar-search {
  position: relative !important;
}

.topbar-search input {
  padding-right: 110px !important;
  width: 100% !important;
}

.topbar-search button {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 40px !important;
  padding: 0 24px !important;
  border-radius: 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.3s ease !important;
}

.topbar-search button:hover {
  transform: translateY(-50%) translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
}

.topbar-search button:active {
  transform: translateY(-50%) translateY(0) !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3) !important;
}

/* Добавляем стрелку как у кнопки Войти */
.topbar-search button::after {
  content: " →";
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.topbar-search button:hover::after {
  transform: translateX(4px);
}

/* Исправляем hover для кнопки Найти - только увеличение */
.topbar-search button:hover {
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

.topbar-search button:active {
  transform: translateY(-50%) scale(0.98) !important;
}

/* Кнопка Найти - меньше и без стрелки */
.topbar-search button {
  height: 36px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
}

.topbar-search button::after {
  display: none !important;
  content: none !important;
}

/* Кнопка Войти - увеличение при наведении */
.welcome-banner .primary-btn:hover,
.card .primary-btn:hover,
button.primary-btn:hover,
a.primary-btn:hover {
  transform: scale(1.05) !important;
}

.welcome-banner .primary-btn:active,
.card .primary-btn:active,
button.primary-btn:active,
a.primary-btn:active {
  transform: scale(0.98) !important;
}

/* Кнопка Войти - увеличение при наведении */
.welcome-banner button:hover,
.welcome-banner a:hover,
[class*="btn"]:hover {
  transform: scale(1.05) !important;
  transition: transform 0.2s ease !important;
}

/* Анимация увеличения кнопки Войти */
.ИМЯ_КЛАССА:hover {
  transform: scale(1.05) !important;
  transition: transform 0.2s ease !important;
}

/* === Баннер менеджера === */
.popular-section-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

.manager-banner {
  min-width: 220px;
  max-width: 220px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e8e8e8;
}

.manager-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #0066cc;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.manager-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-title {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.manager-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.manager-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manager-phone,
.manager-email {
  display: block;
  font-size: 13px;
  color: #0066cc;
  text-decoration: none;
  padding: 8px 12px;
  background: #f0f7ff;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.manager-phone:hover,
.manager-email:hover {
  background: #0066cc;
  color: white;
  transform: scale(1.02);
}

.popular-products-block {
  flex: 1;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .popular-section-wrapper {
    flex-direction: column;
  }
  .manager-banner {
    max-width: 100%;
    min-width: auto;
  }
}

/* Плавная смена фото менеджера при наведении */
.manager-photo {
  position: relative;
}

.manager-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.manager-img-default {
  opacity: 1;
}

.manager-img-hover {
  opacity: 0;
}

.manager-photo:hover .manager-img-default {
  opacity: 0;
}

.manager-photo:hover .manager-img-hover {
  opacity: 1;
}

/* === Чат с менеджером === */
.chat-banner {
  min-width: 220px;
  max-width: 220px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  margin-top: 16px;
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-messages {
  height: 150px;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.manager-message {
  background: white;
  color: #333;
  align-self: flex-start;
  border: 1px solid #e8e8e8;
}

.user-message {
  background: #0066cc;
  color: white;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #e8e8e8;
}

.chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: #0066cc;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .chat-banner {
    max-width: 100%;
    min-width: auto;
  }
}

/* Левая колонка с менеджером и чатом */
.manager-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
  max-width: 220px;
}

.manager-column .manager-banner {
  margin-top: 0;
}

.manager-column .chat-banner {
  margin-top: 0;
}

/* Увеличенный чат */
.chat-banner {
  min-width: 280px !important;
  max-width: 280px !important;
}

.manager-column {
  min-width: 280px !important;
  max-width: 280px !important;
}

.manager-banner {
  min-width: 280px !important;
  max-width: 280px !important;
}

.chat-messages {
  height: 200px !important;
}

.chat-header {
  padding: 14px 18px !important;
  font-size: 15px !important;
}

.chat-input {
  padding: 10px 16px !important;
  font-size: 14px !important;
}

.chat-message {
  font-size: 14px !important;
  padding: 10px 14px !important;
}

.chat-send-btn {
  width: 40px !important;
  height: 40px !important;
  font-size: 16px !important;
}

/* Фикс ширины колонки */
.popular-section-wrapper .manager-column {
  min-width: 280px !important;
  max-width: 280px !important;
  width: 280px !important;
}

.popular-section-wrapper .manager-column .manager-banner {
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.popular-section-wrapper .manager-column .chat-banner {
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.manager-photo {
  width: 130px !important;
  height: 130px !important;
}

/* Картинка в QR-баннере */
.qr-banner-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Улучшаем QR-баннер */
.order-qr-banner-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e8e8e8 !important;
  margin-bottom: 20px !important;
  gap: 20px !important;
}

.qr-banner-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.qr-banner-icon-big {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.qr-banner-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.qr-banner-title-big {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

.qr-banner-order-num {
  font-size: 14px !important;
  color: #666 !important;
}

.qr-banner-address-text {
  font-size: 13px !important;
  color: #888 !important;
}

.qr-banner-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.qr-code-big {
  width: 100px !important;
  height: 100px !important;
  border-radius: 8px !important;
}

.qr-hint {
  font-size: 12px !important;
  color: #666 !important;
  text-align: center !important;
}
.hidden{display:none!important;}
.favorite-btn{background:none;border:1px solid #ddd;border-radius:8px;padding:6px 10px;cursor:pointer;font-size:16px;transition:all 0.3s;}.favorite-btn:hover{border-color:#ef4444;}.favorite-btn.active{color:#ef4444;border-color:#ef4444;}
.login-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:flex;justify-content:center;align-items:center;z-index:9999;}.login-modal{background:#fff;padding:30px;border-radius:16px;text-align:center;max-width:350px;box-shadow:0 10px 40px rgba(0,0,0,0.2);}.login-modal-title{font-size:20px;font-weight:bold;margin-bottom:10px;}.login-modal-text{color:#666;margin-bottom:20px;}.login-modal-btn{background:#0ea5e9;color:#fff;border:none;padding:12px 24px;border-radius:8px;cursor:pointer;font-size:16px;margin-right:0;margin-bottom:15px;display:block;width:100%;}.login-modal-close{background:#f1f1f1;color:#333;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;}
.empty-profile{text-align:center;padding:40px 20px;}.empty-profile-text{font-size:18px;color:#666;margin-bottom:20px;}.profile-login-btn{display:inline-block;background:#0ea5e9;color:#fff;padding:15px 40px;border-radius:10px;font-size:18px;font-weight:bold;text-decoration:none;transition:all 0.3s;}.profile-login-btn:hover{background:#0284c7;transform:scale(1.05);}
@keyframes pulse-glow{0%{transform:scale(1);box-shadow:0 4px 15px rgba(0,119,182,0.4);}50%{transform:scale(1.05);box-shadow:0 6px 25px rgba(0,119,182,0.6);}100%{transform:scale(1);box-shadow:0 4px 15px rgba(0,119,182,0.4);}}.profile-login-btn-animated{animation:pulse-glow 2s ease-in-out infinite;}

/* Hover эффект для кнопки входа v230 */
a[href="/app/login"]:hover{transform:scale(1.08);box-shadow:0 8px 25px rgba(0,119,182,0.5);transition:all 0.3s ease;}
a[href="/app/login"]{transition:all 0.3s ease;}

/* Центрирование страницы входа */
#loginSection{text-align:center;}
#loginSection h2{text-align:center;}
#loginSection p{text-align:center;}
#loginSection .primary-btn{margin:0 auto;}

/* Улучшение текста страницы входа */
#loginSection p{max-width:500px;margin:0 auto 20px auto;font-size:16px;line-height:1.6;}
#loginSection h2{font-size:24px;margin-bottom:15px;}

/* Текст влево, блок по центру */
#loginSection p{text-align:left;}

/* Текст влево - принудительно */
#loginSection p.muted{text-align:left!important;}

/* Текст влево v235 */
section#loginSection p{text-align:left!important;}
section.card#loginSection p{text-align:left!important;}

/* Блок текста влево */
#loginSection p.muted{margin-left:0!important;margin-right:auto!important;}

/* Блок текста влево */
#loginSection p.muted{margin-left:0!important;margin-right:auto!important;}

/* ===== Стили страницы профиля ===== */
/* Заголовок профиля */
#profileBox h2{font-size:28px;font-weight:600;color:#1e293b;margin-bottom:20px;}

/* Блок аватара */
.avatar-wrapper{display:flex;align-items:center;gap:20px;margin-bottom:25px;padding:20px;background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-radius:16px;}
.avatar-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:3px solid #0ea5e9;box-shadow:0 4px 15px rgba(14,165,233,0.3);}
.avatar-placeholder{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#0ea5e9,#0077b6);display:flex;align-items:center;justify-content:center;font-size:32px;color:white;box-shadow:0 4px 15px rgba(14,165,233,0.3);}

/* Информация пользователя */
.user-info{flex:1;}
.user-info .user-name{font-size:22px;font-weight:600;color:#1e293b;margin-bottom:4px;}
.user-info .user-username{font-size:14px;color:#64748b;margin-bottom:4px;}
.user-info .user-phone,.user-info .user-id{font-size:13px;color:#94a3b8;}

/* Приветственный баннер */
.welcome-banner{background:linear-gradient(135deg,#e0f2fe,#bae6fd);border:1px solid #7dd3fc;border-radius:12px;padding:16px 20px;margin-bottom:20px;display:flex;align-items:center;gap:12px;}
.welcome-banner span{font-size:15px;color:#0369a1;}

/* Блок заказа */
.order-ready-box{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:25px;box-shadow:0 2px 8px rgba(0,0,0,0.04);}
.order-ready-box .order-title{font-size:16px;font-weight:600;color:#1e293b;margin-bottom:8px;}
.order-ready-box .order-id{color:#0ea5e9;font-weight:500;}
.order-ready-box .order-address{font-size:14px;color:#64748b;}

/* Секция статистики */
.stats-section{margin-bottom:25px;}
.stats-section h3{font-size:18px;font-weight:600;color:#1e293b;margin-bottom:15px;display:flex;align-items:center;gap:8px;}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;}
.stat-item{background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-radius:12px;padding:20px;text-align:center;}
.stat-item .stat-value{font-size:28px;font-weight:700;color:#0ea5e9;display:block;}
.stat-item .stat-label{font-size:13px;color:#64748b;margin-top:4px;}

/* Секция избранное */
.favorites-section h3{font-size:18px;font-weight:600;color:#1e293b;margin-bottom:15px;}

/* Секция история */
.history-section h3{font-size:18px;font-weight:600;color:#1e293b;margin-bottom:15px;}
.history-item{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:15px;margin-bottom:10px;}
.history-item .order-number{color:#0ea5e9;font-weight:600;}
.history-item .order-date{font-size:13px;color:#94a3b8;}
.history-item .order-status{font-size:13px;padding:4px 10px;border-radius:20px;background:#d1fae5;color:#065f46;}

/* Исправление цвета кнопки Войти */
.welcome-btn-pulse span{color:#ea580c!important;}
a.welcome-btn-pulse span{color:#ea580c!important;}

/* Кнопка Войти в баннере */
.welcome-btn-pulse, .welcome-section a, .welcome-section button{color:white!important;}

/* Белый текст кнопки Войти */
.welcome-btn{color:white!important;}
.welcome-btn span{color:white!important;}
.welcome-btn-pulse{color:white!important;}
.welcome-btn-pulse span{color:white!important;}

/* Белый текст кнопки Войти - переопределение */
#btnLogin{color:white!important;}
#btnLogin span{color:white!important;}
a.welcome-btn-pulse{color:white!important;}
a.welcome-btn-pulse span{color:white!important;}
a#btnLogin{color:white!important;}
a#btnLogin span{color:white!important;}

/* Аватар кликабельный */
#avatarContainer{cursor:pointer;}

/* Карточки товаров в избранном профиля */
#profileFavGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:15px;padding:10px 0;}
.fav-product-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:15px;transition:all 0.2s;}
.fav-product-card:hover{box-shadow:0 4px 15px rgba(0,0,0,0.1);transform:translateY(-2px);}
.fav-product-card .product-thumb{font-size:48px;text-align:center;margin-bottom:10px;}
.fav-product-card .product-name{font-size:14px;font-weight:500;color:#1e293b;margin-bottom:8px;line-height:1.3;min-height:36px;}
.fav-product-card .product-price-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.fav-product-card .product-price{font-size:16px;font-weight:700;color:#0ea5e9;}
.fav-product-card .favorite-btn{background:none;border:1px solid #ddd;border-radius:8px;padding:6px 10px;font-size:18px;cursor:pointer;transition:all 0.3s;}.fav-product-card .favorite-btn:hover{border-color:#ef4444;}.fav-product-card .favorite-btn.active{color:#ef4444;border-color:#ef4444;}
.fav-product-card .cart-btn-wrapper{width:100%;}
.fav-product-card .add-to-cart-btn{width:100%;padding:8px;background:#0ea5e9;color:white;border:none;border-radius:8px;cursor:pointer;font-size:13px;}
.fav-product-card .add-to-cart-btn:hover{background:#0284c7;}

/* История покупок - красивые карточки v249 */
.history-list{display:flex;flex-direction:column;gap:12px;}
.history-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,0.04);transition:all 0.2s ease;}
.history-item:hover{box-shadow:0 4px 12px rgba(0,0,0,0.08);transform:translateY(-2px);}
.history-item .order-info{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;}
.history-item .order-num{color:#0ea5e9;font-weight:600;font-size:14px;}
.history-item .order-date{color:#94a3b8;font-size:13px;}
.history-item .order-products{color:#475569;font-size:14px;margin-bottom:10px;line-height:1.4;}
.history-item .order-status{display:inline-block;font-size:12px;padding:4px 12px;border-radius:20px;font-weight:500;}
.history-item .order-status.ready{background:#d1fae5;color:#065f46;}
.history-item .order-status.delivered{background:#dbeafe;color:#1e40af;}
.history-item .order-total{font-size:16px;font-weight:700;color:#1e293b;margin-top:8px;}

/* Фикс кнопки удаления из корзины */
.cart-item-remove{position:relative;z-index:10;cursor:pointer;background:none;border:none;font-size:20px;color:#94a3b8;padding:5px 10px;transition:color 0.2s;}
.cart-item-remove:hover{color:#ef4444;}

/* Анимации для кнопок количества +/- v249 */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 2px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    color: #0ea5e9;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.qty-btn:hover {
    background: #0ea5e9;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}

.qty-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(14,165,233,0.2);
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Анимация появления селектора */
.qty-selector.animate-in {
    animation: fadeInScale 0.2s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
