:root{
  --burgundy: #80318c;
  --burgundy-dark: #5e2468;
  --burgundy-deep: #3a1640;
  --rose: #9b5ea5;
  --rose-soft: #f1e2f4;
  --banner-bg: #fce4ec;
  --banner-text: #80318c;
  --cream: #fbf8f4;
  --paper: #ffffff;
  --ink: #261b22;
  --ink-soft: #6e6470;
  --line: #ece4e8;
  --gold: #b9893f;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- utility bar ---------- */
.utility{
  background:var(--burgundy-deep);
  color:#fff;
  font-size:15px;
}
.utility-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 32px;
}
.utility a{color:inherit;text-decoration:none;}
.utility-left{display:flex;align-items:center;gap:22px;}
.utility-phone{display:flex;align-items:center;gap:8px;font-weight:700;color:#80318c;letter-spacing:.2px;}
.utility-phone svg{width:14px;height:14px;}
.utility-social{display:flex;gap:12px;}
.utility-social a{
  width:26px;height:26px;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s var(--ease), border-color .2s var(--ease);
}

.utility-social svg{width:13px;height:13px;}
.utility-hours{opacity:.85;}
.utility-right{display:flex;align-items:center;gap:18px;}
.utility-right a:hover{color:#fff;}

/* ---------- main header ---------- */
header.main{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:relative;z-index:50;
  transition:padding .25s var(--ease), box-shadow .25s var(--ease);
}
header.main.is-stuck{box-shadow:0 8px 24px rgba(43,10,28,.10);}
.main-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;gap:36px;
  padding:22px 32px;
  transition:padding .25s var(--ease);
}
header.main.is-stuck .main-inner{padding:13px 32px;}

.logo-wrap{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;text-decoration:none;}
.logo-wrap .logo{display:flex;}
.logo-tagline{
  font-size:20px;font-weight:700;letter-spacing:.4px;
  color:#fff;
  white-space:nowrap;
  padding-right: 5px;
}
.logo-tagline strong{color:#fff);}
.logo-img{
  height:54px;width:auto;display:block;
  transition:height .25s var(--ease);
}
header.main.is-stuck .logo-img{height:40px;}

/* ---------- main search (усиленный) ---------- */
#search.search {
  flex: 1; 
  display: flex !important; 
  align-items: center;
  position: relative !important;
  background: var(--cream) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 4px 6px 4px 20px !important;
  margin: 0 30px !important; /* Отступы по бокам, чтобы не липло к логотипу и корзине */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#search.search:focus-within {
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 4px var(--rose-soft) !important;
}
#search.search input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 17px !important;
  color: var(--ink) !important;
  padding: 10px 8px !important;
  height: auto !important;
  margin: 0 !important;
}
#search.search input::placeholder { 
  color: var(--ink-soft) !important; 
}
#search.search .search_btn {
  border: none !important;
  background: var(--burgundy) !important;
  color: #fff !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important; /* На случай, если Bootstrap попытается сжать */
  border-radius: 50% !important;
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
  cursor: pointer;
  padding: 0 !important;
  transition: background .2s var(--ease), transform .15s var(--ease);
  box-shadow: none !important;
  text-shadow: none !important;
}
#search.search .search_btn:hover { 
  background: var(--rose) !important; 
}
#search.search .search_btn:active { 
  transform: scale(.93); 
}
#search.search .search_btn svg { 
  width: 16px; 
  height: 16px; 
}

.head-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.icon-btn{
  position:relative;
  display:flex;align-items:center;gap:10px;
  border:none;background:none;cursor:pointer;
  padding:9px 14px;border-radius:999px;
  color:var(--ink);font-size:13.5px;font-weight:600;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover{background:var(--rose-soft);color:var(--burgundy);}
.icon-btn svg{width:21px;height:21px;flex-shrink:0;}
.icon-btn .count{
  position:absolute;top:2px;left:24px;
  background:var(--rose);color:#fff;
  font-size:10px;font-weight:800;
  min-width:17px;height:17px;padding:0 4px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  box-sizing:border-box;
}
.icon-btn.cart{
  background:var(--burgundy);color:#fff;padding:10px 18px;
}
.icon-btn.cart:hover{background:var(--burgundy-dark);color:#fff;}
.icon-btn.cart .price{font-weight:800;}
.icon-btn.cart .count{background:var(--gold);color:var(--burgundy-deep);}

/* ---------- nav / mega menu ---------- */
nav.primary{
  background:var(--burgundy-deep);
  position:relative;z-index:40;
}
.nav-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:stretch;
  padding:0 32px;
}
.catalog-trigger{
  display:flex;align-items:center;gap:10px;
  background:var(--rose);color:#fff;
  font-weight:700;font-size:14px;letter-spacing:.3px;
  padding:18px 22px;border:none;cursor:pointer;
  white-space:nowrap;
}
.catalog-trigger svg{width:17px;height:17px;}
.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1; 
}

/* 2. Заставляем каждый пункт меню (и простые ссылки, и выпадающие) растянуться поровну */
.nav-links > a, .nav-links > .dropdown-wrap {
  position: relative;
  flex: 1; 
}
.nav-links > *:not(:last-child){border-right:1px solid rgba(255,255,255,.08);}

.nav-links a, .dropdown-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Центрируем текст по горизонтали */
  width: 100%; /* Растягиваем кликабельную зону на всю ширину пункта */
  gap: 6px;
  height: 100%;
  color: #e7d4dd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 18px 10px; /* Немного уменьшили боковые отступы, чтобы текст не сжимался на узких экранах */
  transition: color .2s var(--ease);
  box-sizing: border-box;
}
.nav-links a::after, .dropdown-trigger::after{
  content:"";position:absolute;left:20px;right:20px;bottom:0;height:3px;
  background:var(--rose);border-radius:3px 3px 0 0;
  transform:scaleX(0);transform-origin:50% 50%;
  transition:transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active,
.dropdown-wrap:hover .dropdown-trigger, .dropdown-trigger.is-active{color:#fff;}
.nav-links a:hover::after, .nav-links a.is-active::after,
.dropdown-wrap:hover .dropdown-trigger::after{transform:scaleX(1);}
.dropdown-trigger .caret{width:11px;height:11px;transition:transform .2s var(--ease);}
.dropdown-wrap:hover .caret{transform:rotate(180deg);}

/* mega panel */
.mega-wrap{position:relative;}
.mega{
  position:absolute;top:100%;left:0;
  width:920px;max-width:90vw;
  background:var(--paper);
  border-radius:0 0 var(--radius) var(--radius);
  box-shadow:0 30px 60px rgba(43,10,28,.22);
  display:flex;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  overflow:hidden;
}
.mega-wrap:hover .mega, .mega-wrap:focus-within .mega{
  opacity:1;visibility:visible;transform:translateY(0);
}
.mega-cats{
  width:280px;flex-shrink:0;
  background:var(--cream);
  padding:14px 0;
  border-right:1px dashed var(--line);
  max-height:480px;overflow-y:auto;
  margin:0;
}
.mega-cats li{list-style:none;}
.mega-cats button{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  background:none;border:none;text-align:left;cursor:pointer;
  font-size:13.5px;font-weight:600;color:var(--ink);
  padding:11px 22px;
  transition:background .15s var(--ease), color .15s var(--ease);
}
.mega-cats button svg{width:13px;height:13px;opacity:.5;flex-shrink:0;}
.mega-cats button:hover, .mega-cats button.is-active{
  background:var(--paper);color:var(--burgundy);
}
.mega-cats button.is-active{box-shadow:inset 3px 0 0 var(--rose);}

#megaPanels{flex:1;min-width:0;}
.mega-panel{padding:26px 30px;display:none;}
.mega-panel.is-active{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.mega-col .col-title{
  serif;font-size:14.5px;font-weight:600;
  color:var(--burgundy);margin:0 0 12px;
  padding-bottom:8px;border-bottom:1px dashed var(--line);
}
.mega-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;}
.mega-col a{
  color:var(--ink-soft);text-decoration:none;font-size:13px;font-weight:500;
  transition:color .15s var(--ease);
}
.mega-col a:hover{color:var(--rose);}
.mega-col a.more{color:var(--burgundy);font-weight:700;}

/* simple dropdown */
.dropdown-wrap{display:flex;}
.dropdown-panel{
  position:absolute;top:100%;left:0;
  min-width:230px;
  background:var(--paper);
  border-radius:0 0 var(--radius) var(--radius);
  box-shadow:0 24px 48px rgba(43,10,28,.20);
  padding:8px 0;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index:45;
}
.dropdown-wrap:hover .dropdown-panel, .dropdown-wrap:focus-within .dropdown-panel{
  opacity:1;visibility:visible;transform:translateY(0);
}
.dropdown-panel a{
  display:block;color:var(--ink);text-decoration:none;
  font-size:13.5px;font-weight:600;
  padding:11px 22px;
  transition:background .15s var(--ease), color .15s var(--ease);
}
.dropdown-panel a:hover{background:var(--cream);color:var(--burgundy);}

.visually-hidden{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
}
a:focus-visible, button:focus-visible{
  outline:2.5px solid var(--rose); outline-offset:2px; border-radius:6px;
}

/* ---------- sticky compact bar ---------- */
.sticky-bar{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:var(--burgundy-deep);
  box-shadow:0 4px 24px rgba(43,10,28,.28);
  transform:translateY(-100%);
  transition:transform .32s var(--ease), box-shadow .32s var(--ease);
  will-change:transform;
}
.sticky-bar.is-visible{
  transform:translateY(0);
}
.sticky-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:stretch;gap:0;
  padding:0 32px;
  height:56px;
}
.sticky-logo{
  display:flex;align-items:center;text-decoration:none;flex-shrink:0;
  margin-right:28px;
  padding:0;
}
.sticky-logo img{
  height:45px;width:auto;display:block;
  filter:brightness(0) invert(1);
}
.sticky-catalog{
  display:flex;align-items:center;gap:8px;
  background:var(--rose);color:#fff;
  font-weight:700;font-size:15px;letter-spacing:.3px;
  padding:0 20px;border:none;cursor:pointer;
  white-space:nowrap;flex-shrink:0;
  align-self:stretch;
  transition:background .2s var(--ease);
  margin-right:4px;
}
.sticky-catalog:hover{background:var(--burgundy);}
.sticky-catalog svg{width:15px;height:15px;}
.sticky-nav{
  display:flex;align-items:stretch;flex:1;
}
.sticky-nav > a, .sticky-nav > .sticky-drop{
  position:relative;
  display:flex;
}
.sticky-nav > *:not(:last-child){
  border-right:1px solid rgba(255,255,255,.07);
}
.sticky-nav a, .sticky-drop-trigger{
  display:flex;align-items:center;gap:5px;
  color:#d9c8df;text-decoration:none;
  font-size:15px;font-weight:600;letter-spacing:.2px;
  padding:0 16px;
  transition:color .18s var(--ease);
  border:none;background:none;cursor:pointer;
  
  white-space:nowrap;
}
.sticky-nav a:hover, .sticky-drop:hover .sticky-drop-trigger{color:#fff;}
.sticky-drop-trigger .caret{width:10px;height:10px;transition:transform .18s var(--ease);}
.sticky-drop:hover .caret{transform:rotate(180deg);}
.sticky-drop{display:flex;}
.sticky-drop-panel{
  position:absolute;top:100%;left:0;
  min-width:220px;
  background:var(--paper);
  border-radius:0 0 var(--radius) var(--radius);
  box-shadow:0 20px 40px rgba(43,10,28,.22);
  padding:8px 0;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index:110;
}
.sticky-drop:hover .sticky-drop-panel,
.sticky-drop:focus-within .sticky-drop-panel{
  opacity:1;visibility:visible;transform:translateY(0);
}
.sticky-drop-panel a{
  display:block;color:var(--ink);text-decoration:none;
  font-size:13px;font-weight:600;
  padding:10px 20px;
  transition:background .15s var(--ease), color .15s var(--ease);
}
.sticky-drop-panel a:hover{background:var(--cream);color:var(--burgundy);}
.sticky-mega-wrap{position:relative;display:flex;align-self:stretch;}
.sticky-mega{
  position:absolute;top:100%;left:0;
  width:920px;max-width:90vw;
  background:var(--paper);
  border-radius:0 0 var(--radius) var(--radius);
  box-shadow:0 30px 60px rgba(43,10,28,.22);
  display:flex;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  overflow:hidden;
  z-index:110;
}
.sticky-mega-wrap:hover .sticky-mega,
.sticky-mega-wrap:focus-within .sticky-mega{
  opacity:1;visibility:visible;transform:translateY(0);
}
.sticky-mega .mega-cats{
  width:240px;
}
.sticky-phone{
  display:flex;align-items:center;gap:7px;
  color:#fff;text-decoration:none;
  font-size:15px;font-weight:700;letter-spacing:.2px;
  margin-left:auto;padding-left:24px;flex-shrink:0;
  white-space:nowrap;
}
.sticky-phone svg{width:14px;height:14px;color:#d9c8df;}
.sticky-phone:hover{color:var(--rose-soft);}

/* ---------- main header ---------- */
header.main{
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:relative;z-index:50;
  transition:padding .25s var(--ease), box-shadow .25s var(--ease);
  margin-bottom: 0 !important; /* Принудительно убиваем отступ OpenCart */
}

/* ---------- nav / mega menu ---------- */
nav.primary{
  background:var(--burgundy-deep);
  position:relative;z-index:40;
  margin-bottom: 30px; /* Отступ до баннера или контента страницы */
}


/* ---------- Поиск в липкой шапке (компактный) ---------- */
.sticky-search-wrap {
  flex: 1;
  max-width: 260px; /* Ограничиваем ширину, чтобы не сдавить меню */
  margin: 0 20px;
  display: flex;
  align-items: center;
}

#sticky-search.search {
  flex: 1;
  position: relative !important;
  background: var(--cream) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important; /* Легкая граница для темного фона */
  border-radius: 999px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  transition: box-shadow .2s var(--ease);
}

#sticky-search.search:focus-within {
  box-shadow: 0 0 0 3px rgba(241, 226, 244, 0.2) !important;
}

#sticky-search.search input {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  padding: 8px 45px 8px 16px !important; /* Уменьшенные отступы */
  height: 38px !important; /* Меньшая высота */
  margin: 0 !important;
  border-radius: 999px !important;
}

#sticky-search.search input::placeholder {
  color: var(--ink-soft) !important;
}

#sticky-search.search .search_btn {
  position: absolute !important;
  right: 3px !important;
  top: 3px !important;
  border: none !important;
  background: var(--burgundy) !important;
  color: #fff !important;
  width: 32px !important; /* Уменьшенная кнопка */
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background .2s var(--ease), transform .15s var(--ease);
  box-shadow: none !important;
  z-index: 5 !important;
}

#sticky-search.search .search_btn:hover {
  background: var(--rose) !important;
}

#sticky-search.search .search_btn svg {
  width: 14px !important;
  height: 14px !important;
}


/* ---------- Принудительный сброс старых стилей для Избранного ---------- */
button#wishlist-total.icon-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  box-shadow: none !important;
  color: var(--ink) !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
}

button#wishlist-total.icon-btn:hover {
  background: var(--rose-soft) !important;
  color: var(--burgundy) !important;
}

/* Убиваем старые иконки от FontAwesome, которые лезут из старой темы */
button#wishlist-total.icon-btn::before,
button#wishlist-total.icon-btn::after,
button#wishlist-total.icon-btn i {
  display: none !important;
}


/* =========================================================
   ФИНАЛЬНЫЕ СТИЛИ КОРЗИНЫ (Переодеваем стандартный OpenCart)
   ========================================================= */

/* 1. Сбрасываем обертку */
body header.main #cart {
  float: none !important;
  margin: 0 !important;
  display: block !important;
}

/* 2. Формируем новую бордовую пилюлю из старой кнопки */
body header.main .cart_btn {
  position: relative !important; /* Обязательный якорь для золотого кружочка */
  background: var(--burgundy, #80318c) !important;
  height: 44px !important;
  min-width: 0 !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important; /* Отступ между иконкой и текстом */
  cursor: pointer !important;
  transition: background .2s ease !important;
}

body header.main .cart_btn:hover {
  background: var(--rose, #9b5ea5) !important;
}

/* 3. УБИВАЕМ старую картинку тележки */
body header.main .cart_count:before {
  display: none !important;
  content: none !important;
}

/* 4. ВНЕДРЯЕМ новую красивую SVG-иконку прямо в кнопку */
body header.main .cart_btn:before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-image: url(/image/cart-shopping.svg);
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* 5. Выстраиваем контейнер цены */
body header.main #cart-total {
  display: flex !important;
  align-items: center !important;
}

/* 6. ЗОЛОТОЙ БЕЙДЖ С КОЛИЧЕСТВОМ (Висит поверх иконки) */
body header.main .cart_count {
  position: absolute !important;
  top: 2px !important;
  left: 32px !important;
  background: #bd8f3a !important; 
  color: #1f151c !important;     
  
  /* Делаем счетчик резиновым */
  min-width: 16px !important; /* Не меньше 16px (чтобы был круглым для 0-9) */
  width: auto !important;     /* Растягивается под 10+ */
  height: 16px !important;
  padding: 0 4px !important;  /* Добавляем боковые отступы для длинных чисел */
  
  line-height: 16px !important; /* Выровнял по высоте, чтобы текст был ровно по центру */
  margin: 0 !important;
  
  /* Используем пиксели для сохранения формы пилюли при растягивании */
  border-radius: 10px !important; 
  
  font-size: 10px !important;
  font-weight: 800 !important;
  text-align: center !important;
  display: inline-block !important; /* inline-block лучше работает с auto-шириной */
  box-sizing: border-box !important;
  z-index: 2 !important;
}

/* 7. ТЕКСТ С ЦЕНОЙ */
body header.main .cart_summ {
  margin: 0 !important; /* Убираем старый отступ в 40px */
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1 !important;
}



/* ---------- NAV / MEGA MENU ---------- */
nav.primary {
  background: var(--burgundy-deep, #3a1640);
  position: relative;
  z-index: 40;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 32px;
}
.catalog-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--rose, #9b5ea5);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  padding: 18px 22px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.catalog-trigger svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: stretch; }
.nav-links > a, .nav-links > .dropdown-wrap { position: relative; }
.nav-links > *:not(:last-child) { border-right: 1px solid rgba(255,255,255,.08); }

.nav-links a, .dropdown-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  color: #e7d4dd;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 18px 20px;
  transition: color .2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-links a::after, .dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  background: var(--rose, #9b5ea5);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.is-active,
.dropdown-wrap:hover .dropdown-trigger, .dropdown-trigger.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after,
.dropdown-wrap:hover .dropdown-trigger::after { transform: scaleX(1); }
.dropdown-trigger .caret { width: 11px; height: 11px; transition: transform .2s ease; }
.dropdown-wrap:hover .caret { transform: rotate(180deg); }

/* ---------- MEGA PANEL (КАТАЛОГ) ---------- */
.mega-wrap { position: relative; }

/* Общая обертка: идеальная ширина под размер контейнера сайта */
.mega, .sticky-mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: 1216px !important; /* 1280px минус боковые padding по 32px */
  max-width: calc(100vw - 64px) !important;
  background: var(--paper, #fff) !important;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 30px 60px rgba(43,10,28,.22);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  /* Анимация плавного изменения ширины */
  transition: width 0.2s ease, opacity 0.18s ease, transform 0.18s ease, visibility 0.18s !important;
  overflow: hidden;
  z-index: 110;
}

/* Состояние, когда нет подразделов (меню схлопывается) */
.mega.is-empty, .sticky-mega.is-empty {
  width: 280px !important;
}

/* Показ меню при наведении */
.mega-wrap:hover .mega, .mega-wrap:focus-within .mega,
.sticky-mega-wrap:hover .sticky-mega, .sticky-mega-wrap:focus-within .sticky-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Левая колонка со списком (фиксированная ширина) */
.mega-cats {
  width: 280px !important;
  flex-shrink: 0 !important;
  background: var(--cream, #fbf8f4);
  padding: 14px 0;
  margin: 0;
  border-right: 1px dashed var(--line, #ece4e8);
  max-height: 650px;
  overflow-y: auto;
}
.mega-cats li { list-style: none; }
.mega-cats button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #261b22);
  padding: 4px 15px;
  transition: background .15s ease, color .15s ease;
}
.mega-cats button svg { width: 13px; height: 13px; opacity: .5; flex-shrink: 0; }
.mega-cats button:hover, .mega-cats button.is-active {
  background: var(--paper, #fff);
  color: var(--burgundy, #80318c);
}
.mega-cats button.is-active { box-shadow: inset 3px 0 0 var(--rose, #9b5ea5); }

/* Правая панель */
#megaPanels, #stickyMegaPanels {
  flex: 1 !important; 
  width: auto !important;
  background: var(--paper, #fff) !important;
}

/* УМНАЯ СЕТКА: Газетная верстка (Masonry layout) */
.mega-panel.is-active {
  display: block !important; /* Отключаем Grid */
  column-count: 3 !important; /* Бьем ровно на 3 колонки */
  column-gap: 35px !important; /* Отступ между колонками */
  width: 100% !important;
  padding: 26px 30px !important;
  box-sizing: border-box !important;
}

/* Отдельный блок-список товаров */
.mega-col {
  display: inline-block !important; /* Запрещаем разбивать один блок на разные колонки */
  width: 100% !important;
  margin-bottom: 25px !important; /* Отступ снизу */
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

.col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--burgundy, #80318c);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line, #ece4e8);
}
.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
/* --- 1. ПОДРАЗДЕЛЫ 1-ГО УРОВНЯ (Заголовки колонок) --- */
.mega-col .col-title a {
  font-size: 16px !important; /* Укажи нужный размер здесь */
  font-weight: 600 !important;
}

/* --- 2. ПОДРАЗДЕЛЫ 2-ГО УРОВНЯ (Обычные ссылки в списке) --- */
.mega-col ul li a {
  color: var(--ink-soft, #6e6470) !important;
  text-decoration: none !important;
  font-size: 14px !important; /* Укажи нужный размер здесь */
  font-weight: 500 !important;
  transition: color .15s ease !important;
}

.mega-col ul li a:hover {
  color: var(--rose, #9b5ea5) !important;
}

/* ---------- SIMPLE DROPDOWN (ИНФОРМАЦИЯ) ---------- */
.dropdown-wrap { display: flex; }
.dropdown-panel, .sticky-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--paper, #fff);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 48px rgba(43,10,28,.20);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 110;
}
.dropdown-wrap:hover .dropdown-panel, .dropdown-wrap:focus-within .dropdown-panel,
.sticky-drop:hover .sticky-drop-panel, .sticky-drop:focus-within .sticky-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel a, .sticky-drop-panel a {
  display: block;
  color: var(--ink, #261b22);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 11px 22px;
  transition: background .15s ease, color .15s ease;
}
.dropdown-panel a:hover, .sticky-drop-panel a:hover {
  background: var(--cream, #fbf8f4);
  color: var(--burgundy, #80318c);
}




  :root {
    --burgundy: #80318c;
    --burgundy-dark: #5e2468;
    --burgundy-deep: #5e2468;
    --rose: #9b5ea5;
    --rose-soft: #f1e2f4;
    --cream: #fbf8f4;
    --paper: #ffffff;
    --ink: #261b22;
    --ink-soft: #6e6470;
    --line: #ece4e8;
    --gold: #b9893f;
    --radius: 14px;
    --ease: cubic-bezier(.22,.61,.36,1);
  }

  /* ========== FOOTER ========== */
  .site-footer {
    background: var(--burgundy-deep);
    color: #c5aecf;
    margin-top: 60px;
  }

  .footer-main {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 56px 32px 48px;
  }

  /* колонка 1 — бренд */
  .footer-logo {
    display: block;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    height: 55px;
    width: auto;
    opacity: .9;
  }
  .footer-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 22px;
    max-width: 280px;
  }
  .footer-social { display: flex; gap: 10px; }
  .footer-social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  }

  .footer-social svg { width: 14px; height: 14px; }
  .footer-social img { width: 22px; height: 22px; } /* Для иконки Max */

  /* колонки 2-4 — ссылки */
  .footer-col h4 {
    font-size: 23px;
    font-weight: 600;
    color: #c8b8d0;
    letter-spacing: .2px;
    margin: 0 0 18px;
  }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .footer-col ul li a {
    color: #c8b8d0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color .18s var(--ease);
  }
  .footer-col ul li a:hover { color: #fff; }

  /* контакты внутри колонки */
  .footer-contacts { display: flex; flex-direction: column; gap: 12px; }
  .footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .2px;
    transition: color .18s var(--ease);
  }
  .footer-phone:hover { color: var(--rose-soft); }
  .footer-phone svg { width: 15px; height: 15px; color: #9b5ea5; flex-shrink: 0; }
  .footer-hours { font-size: 14px; color: #c8b8d0; line-height: 1.65; }
  .footer-hours strong { color: #c5aecf; display: block; margin-bottom: 3px; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
  .footer-order-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(155,94,165,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #e3d7e7;
    margin-top: 4px;
    width: fit-content;
  }

  /* нижняя полоса */
  .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
  .footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    gap: 24px;
  }
  .footer-copy { font-size: 15px; color: #e1cfe7; }
  .footer-legal { display: flex; gap: 20px; }
  .footer-legal a {
    font-size: 15px;
    color: #e1cfe7;
    text-decoration: none;
    transition: color .18s var(--ease);
  }
  .footer-legal a:hover { color: #c5aecf; }
  
 /* === МОБИЛЬНАЯ АДАПТАЦИЯ ФУТЕРА === */
  @media (max-width: 991px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 767px) {
    /* Базовая сетка: 2 колонки для меню */
    .footer-main { 
      grid-template-columns: 1fr 1fr; 
      gap: 40px 15px; 
      padding: 40px 20px 20px; 
    }

    /* 1-Й БЛОК: Бренд (Во всю ширину, по центру) */
    .footer-brand {
      grid-column: 1 / -1;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .footer-logo { margin: 0 auto 14px; }
    .footer-tagline { margin: 0 auto 20px; }
    .footer-social { justify-content: center; }

    /* 4-Й БЛОК: Контакты (Во всю ширину, по центру) */
    .footer-main > .footer-col:last-child {
      grid-column: 1 / -1;
      text-align: center;
      margin-top: 10px;
    }
    .footer-contacts {
      align-items: center; /* Центрируем иконки с текстом */
    }
    .footer-order-note {
      margin: 10px auto 0; /* Плашка по центру */
    }

    /* Ссылки меню (2 и 3 блоки): делаем удобнее для пальца */
    .footer-col ul li a {
      display: block;
      padding: 5px 0;
      font-size: 15px;
    }

    /* НИЖНЯЯ ПОЛОСА: Копирайт и политика */
    .footer-bottom-inner { 
      flex-direction: column; 
      text-align: center;
      gap: 16px;
      /* Отступ 110px снизу обязателен, чтобы плавающая кнопка контактов не закрыла текст */
      padding: 24px 20px 110px; 
    }
    
    /* 2 ссылки в одну строку по центру */
    .footer-legal {
      flex-direction: row;
      justify-content: center;
      flex-wrap: wrap; /* Защита: если экран крошечный, перенесутся аккуратно */
      gap: 20px;
    }
  }