/* === ПОДКЛЮЧЕНИЕ ШРИФТА === */
@font-face {
  font-family: 'Zero Cool';
  src: url('./ZeroCool.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === ШРИФТ ДЛЯ ВСЕГО БУРГЕР-МЕНЮ === */
.burger-menu {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.4;
}

/* === УБИРАЕМ ПЕРЕБИВАЮЩИЕ СТИЛИ === */
.burger-menu__nav a,
.burger-menu__nav span,
.header__mobile-nav_dropdown,
.header__mobile-submenu li a {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body.menu-open {
  overflow: hidden; /* запрещает прокрутку страницы */
  height: 100vh;    /* предотвращает смещение контента */
}















/* ==========================================================
   1) VARIABLES & RESET
   ========================================================== */
:root {
  --white: #fff;
  --black: #000;
  --primary: #0a5b59;
  --textColor: #000;
  --addGray: #d3d1dd;
  --gray: #efeff4;
  --bg: #fff;
  --red: #ec6458;
  --container-width: 1360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  background: var(--bg);
  color: var(--textColor);
}

/* ==========================================================
   2) HEADER BASE
   ========================================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header__container,
.header__container-sub {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* ==========================================================
   3) HEADER TOP
   ========================================================== */
.header__container-sub {
  justify-content: flex-end;
  padding: 2px 0;
  gap: 12px;
  margin-top: 25px;
  transform: none;
}

.header__container-sub-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__location,
.header__phone {
  background: var(--gray);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
}

.header__phone {
  text-decoration: none;
  color: var(--black);
}

.header__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__social-container svg {
  width: 35px;
  height: 35px;
  transform: translateY(5px);
}

/* ==========================================================
   4) HEADER MAIN
   ========================================================== */
.header__container:not(.header__container-sub) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
}

.header__center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1; /* добавляем, чтобы центр растягивался */
}

.header__logo svg {
  height: 100px;
}

.header__center nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.header__center nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
}

.header__center nav a:hover {
  color: var(--primary);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================
   5) SEARCH
   ========================================================== */
.header__search-wrapper {
  flex: 1;
  max-width: none;
}

.search__bar {
  width: 100%;
  min-width: 0;
  padding: 9px 16px;
  background: var(--gray);
  border-radius: 24px;
  border: none;
}

/* ==========================================================
   6) CART
   ========================================================== */
.header__btns-cart svg {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s;
}

.header__btns-cart:hover svg {
  transform: scale(1.1);
}

/* ==========================================================
   7) BURGER BUTTON
   ========================================================== */
.header__burger {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2001; /* ВАЖНО — выше меню */
  -webkit-tap-highlight-color: transparent; /* убираем мобильный flash */
  outline: none;                             /* убираем фокус */
  background: none !important;              /* запрещаем любой фон */
  border: none;
}

.header__burger:active {
  background: none;
}

.header__burger span {
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* анимация */
.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   8) BURGER MENU
   ========================================================== */
.burger-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: #fff;
  display: none;
  flex-direction: column;
  padding: 20px 20px;
  z-index: 1500; /* НИЖЕ кнопки */
  overflow-y: auto;
}

.burger-menu.active {
  display: flex;
}

.burger-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.burger-menu__nav a {
  text-decoration: none;
  color: #000;
  font-size: 22px;
  line-height: 1.5;  /* выравниваем вертикально */
  font-size: 30px;
}

/* ==========================================================
   9) MOBILE
   ========================================================== */
@media (max-width: 1050px) {

  .header__container-sub {
    display: none;
  }

  .header__container:not(.header__container-sub) {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
  }

  .header__burger {
    display: flex;
  }

  .header__center {
    justify-content: center;
  }

  .header__logo svg {
    height: 60px;
  }

  .header__center nav,
  .header__search-wrapper {
    display: none;
  }
}
/* ==========================================================
   Пункт меню с подменю
   ========================================================== */
.menu-item.has-submenu {
    padding: 10px 0;
  display: flex;                 
  align-items: center;           
  justify-content: flex-start;   /* текст и кнопка рядом, не растягиваем */
  margin-bottom: 0px;
  gap: 6px;                      /* расстояние между текстом и стрелкой */
}

/* Основной текст пункта */
.menu-item.has-submenu .menu-title {
  font-size: 30px;       
  font-weight: 500;
  line-height: 1.5;      
}

/* Кнопка для открытия подменю */
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;                     
  justify-content: flex-start;   /* стрелка рядом с текстом */
  padding: 10px 0px;            
  font-size: 30px;               
  font-weight: 500;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Стрелка внутри кнопки */
.submenu-toggle svg {
  display: inline-block;
  vertical-align: middle;   
  margin: 0;                
  transition: transform 0.3s;
}

/* Анимация стрелки при открытии */
.menu-item.has-submenu.active .submenu-toggle svg {
  transform: rotate(180deg);
}

/* Подменю по умолчанию скрыто */
.submenu {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 0;              
  margin: 0;           
  padding-left: 0;
  transition: max-height 0.3s ease;
  list-style: none;
}

/* Ссылки в подменю — как основные пункты */
.submenu a {
  font-size: 30px;     
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  color: #0a5b59;      
  display: block;
  padding: 10px 0;     
}

/* Показываем подменю только при активном состоянии */
.menu-item.has-submenu.active .submenu {
  max-height: 500px;
}

/* ==========================================================
   Мобильное подменю
   ========================================================== */
.header__mobile-nav-left {
  display: block;
  margin-left: 0;      
}

.header__mobile-nav-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header__mobile-nav-left li {
  position: relative;
}

.header__mobile-nav_dropdown {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* стрелка рядом с текстом */
  gap: 6px;                    /* расстояние между текстом и стрелкой */
  cursor: pointer;
  user-select: none;
  padding: 10px 0;             
  background-color: transparent;
  border-radius: 0;            
  font-size: 30px;             
  font-weight: 500;
  width: auto;                  /* не растягиваем на всю ширину */
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.header__mobile-nav_dropdown:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.header__mobile-nav_dropdown span {
  margin: 0;                   
  display: inline-block;
  line-height: 1;              
}

/* Стрелка вниз */
.header__mobile-nav_dropdown svg {
  margin: 0;                    
  transition: transform 0.3s;
}

/* Поворот стрелки при открытии */
.header__mobile-nav_dropdown.open svg {
  transform: rotate(180deg);
}

/* Подменю второго уровня */
.header__mobile-submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  padding-left: 0;      
  margin: 0;
  border-left: none;    
  transition: max-height 0.3s ease;
}

.header__mobile-submenu li {
  margin: 0;            
}

.header__mobile-submenu li a {
  text-decoration: none;
  color: #0a5b59;       
  font-size: 30px;      
  font-weight: 500;
  line-height: 1.5;
  display: block;
}

.header__mobile-submenu li a:hover {
  color: #054b3a;
}

.header__mobile-submenu.active {
  max-height: 500px;
}

.header__burger:active,
.header__burger:focus,
.header__burger:focus-visible {
  background: none !important;  /* убираем фон при всех состояниях */
  box-shadow: none !important;  /* убираем обводку/тень */
}}

.header__mobile-nav_dropdown:active {
  background-color: transparent !important;
}

:root {
  --white: #fff;
  --black: #000;
  --primary: #0a5b59;
  --textColor: #000;
  --addGray: #d3d1dd;
  --gray: #efeff4;
  --bg: #fff;
  --red: #ec6458;

  /* Добавляем зеленый для телефона */
  --color-green: #0a5b59;
}

/* === Блок с адресом и телефоном === */
.burger-menu__info {
  display: flex;
  flex-direction: column;
  gap: 8px; /* расстояние между адресом и телефоном */
  margin-top: 20px;
}

.burger-menu__address {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #0a5b59;
}

.burger-menu__phone {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #0a5b59 !important;  /* ставим !important, чтобы перебить другие стили */
  text-decoration: none;       /* убираем подчеркивание */
}

.burger-menu__icon path {
  fill: #0a5b59  !important;
}

.header__btns-cart {
  display: flex;
  align-items: center;
  gap: 6px; /* расстояние между иконкой и числом */
  position: relative;
  text-decoration: none;
}

.cart-count {
  color: var(--primary);
  font-size: 20px;
  font-family: 'Zero Cool', sans-serif;
  line-height: 1;
  display: inline-block;

  min-width: 18px; /* чтобы не прыгала верстка */
  text-align: left;
}

@media (max-width: 1050px) {
  .header__btns-cart {
    transform: translateX(-5px);
  }
}

.header {
  font-size: 20px;
  font-family: 'Inter', sans-serif;
}

.header input,
.header textarea,
.header select {
  font-size: inherit;
}

.header {
  line-height: 1;
}


.header__container-sub {
  align-items: center;
}

.header__location,
.header__phone {
  display: flex;
  align-items: center;
}

.NavTab__container {
  height: 62px !important;
}

html {
  scrollbar-gutter: stable both-edges;
}

.card-top img.card-img-contain {
  object-fit: contain;
  transform: scale(0.95);
}

.search {
  position: relative;
}

.search__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
}

.search__dropdown.active {
  display: block;
}

.search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.search__item:hover {
  background: #efeff4;
}

.search__item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.search__item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search__item-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.search__item-price {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #0a5b59;
}

.search__empty {
  padding: 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #888;
}

.burger-rolls-banner:hover {
  opacity: 0.9;
}

.burger-rolls-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  padding-right: 110px; /* ← добавить */
  flex: 1;
  z-index: 1;
}

.burger-rolls-banner__title {
  font-family: 'Zero Cool', sans-serif;
  font-size: 22px !important;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

.burger-rolls-banner__sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.65);
}

.burger-rolls-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 20px 0 0 24px;
  background: #0a5b59;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  min-height: 120px;
  transition: opacity 0.2s;
  box-shadow:
    0 8px 32px rgba(10, 91, 89, 0.3),
    0 2px 8px rgba(10, 91, 89, 0.15);
}

.burger-rolls-banner__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;  /* было 140px */
  height: 161px; /* было 110px */
  object-fit: cover;
  object-position: -40% 20px; /* было center top */
  filter: drop-shadow(-6px -4px 16px rgba(0, 0, 0, 0.4));
}

.product-card {
  position: relative; /* если ещё нет */
}

.product-card[data-available="0"] .card-top::after {
  content: "Нет в наличии :(";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Zero Cool', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #ffffff;
  pointer-events: all;
  cursor: default;
  z-index: 10;
}