:root {
  --accent-color: #ffe973; /* жёлтый */
}
.red-theme {
  --accent-color: #ff4c3f; /* красный */
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Начальное состояние */
.header {
  position: static; /* или relative */
  padding-left: 115px;
  padding-right: 89px;
  display: flex;
  align-items: center;
  background-color: #fff;
  width: 100%;
  z-index: 100;
  transition: top 0.5s ease, left 0.5s ease; /* плавное появление */
}

/* Категории по умолчанию (на странице) */
.category-list {
  position: static;
  display: block;
}

/* Когда появляется в header */
.header-fixed .catalog-btn {
  display: inline-block;
}

/* Когда открыто меню */
.category-list.active {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  z-index: 1001;
  display: block;
  width: 250px;
}

/* фиксированный header после 800px */
/* Класс, который будет добавляться при скролле */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 999;
  transition: top 0.3s ease;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  /*animation: slideDown 0.3s ease; if need add*/
}

/*@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
} if need add*/

.header-fixed #shop-logo {
  width: 86px;
  height: 66px;
  object-fit: contain;
}

.page-header-left-section {
/*  max-width: 290px; */
  flex-shrink: 0;
 /* margin-top: 43px;
  margin-right: 53px; */
  display: flex;
  align-items: center;
  gap: 13px; /* расстояние между логотипом и кнопкой */
}
.online-shop-logo {
  width: 334px;
  height: 65px;
}
.page-header-middle-section {
  display: flex;
  align-items: center;
  /* margin-top: 47px; */
  flex: 1; /* Занимает всё доступное пространство */
  gap: 15px;
}

.search-container {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 778px;
  margin-left: 30px;
}

.search-bar {
  width: 100%;
  min-width: 367px;
  height: 42px;
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  padding: 0 50px 0 15px;
  font-size: 16px;
  box-sizing: border-box;
}
.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.search-button img {
  width: 28px;
  height: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center; /* центрируем содержимое по горизонтали */
  gap: 4px;
  max-width: 241px;
  margin-right: 22px;
  margin-left: 15px;
  text-wrap: nowrap;
  padding-top: 15px;
  padding-bottom: 10px;
}

.work-time-text {
  font-weight: Bold;
  font-size: var(--fs-sm);
  color: #515151;
  max-width: 236px;
  text-align: center;
}

/* Активная ссылка телефона */
.work-time-text-number {
  font-weight: 600;
  font-size: var(--fs-xl);
  color: #000;
  /*height: 36px;*/
  line-height: 100%;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease;
}
.work-time-text-number:hover {
  color: var(--accent-color);
}
.send-text-with-image {
  display: flex;
  align-items: center;
  gap: 8px;
  /* height: 49px; */
  line-height: 100%;
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
  margin-top: -5px;
}
.send-text-with-image:hover {
  color: var(--accent-color);
}

.send-text-with-image:hover .work-time-text-write {
  color: var(--accent-color);
}
.send-text-with-image img {
  width: 35px;
  height: 35px;
  /* margin-left: 13px;  */
  /* margin-top: -20px; */
  transition: transform 0.3s ease;
}
/*.send-text-with-image:hover img {
  transform: translateX(3px);
} if need add*/
.work-time-text-write {
  font-weight: 600;
  font-size: var(--fs-lg);
  color: #000;
  /* height: 44px; */
  transition: color 0.3s ease;
}

.red-theme .work-time-text-write {
  color: var(--accent-color);
}

.page-header-left-section,
.page-header-middle-section,
.page-header-right-section {
  flex-shrink: 0; /* не уменьшаем их слишком сильно */
  margin-top: 0;
}
.page-header-right-section {
  display: flex;
  align-items: flex-start;
  max-width: 272px;
  height: 65.26px;
}

.navbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-profile-item {
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.navbar-profile-item:hover {
  background: #f5f5f5;
}

.all-icons{
  width: 40px;
  height: 40px;
}

.vector-icon {
  width: 53px;
  height: 40px;
}

.heart-icon {
  width: 43px;
  height: 44px;
}
.man-icon {
  width: 45px;
  height: 45px;
}
.cart-icon {
  width: 55px;
  height: 55px;
}
.number-icon {
  display: none; /* ADD THIS AND HAMBURGER MENU*/
}

.profile-cart {
  position: relative;
}
.profile-heart {
  position: relative;
}

.cart-number-inside-elipse {
  position: absolute;
  top: 0;
  right: -3px;
}
.heart-number-inside-elipse {
  position: absolute;
  top: -3px;
  right: -5px;
}
.elipse-medium-red {
  width: 29px;
  height: 29px;
}

.cart-item-number,
.heart-item-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}

/*.navbar-profile-item:hover img {
  transform: scale(1.1);
} add if need*/

/* ====== МОБИЛЬНЫЙ HEADER ====== */
.mobile-header {
  display: none; /* По умолчанию скрыт */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Левый блок */
.mobile-header-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Гамбургер меню */
.hamburger-btn {
  width: 35px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Логотип для мобильных */
.mobile-logo {
  width: 42px;
  height: auto;
}

/* Кнопка каталога на мобильных */
button.mobile-catalog-btn {
  width: 200px;
  height: 46px;
  border: none;
  background: var(--accent-color);
  border-radius: 5px;
  padding: 15px 20px;
  text-wrap: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: black;
}

.mobile-catalog-btn img {
  width: 24px;
  height: 24px;
}
.mobile-catalog-btn span {
  font-size: 14px;
}

/* Правый блок */
.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mobile-icon-btn {
  position: relative;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.mobile-icon-btn img {
  width: 35px;
  height: 35px;
}

.icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4c3f;
  color: white;
  font-size: 12px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Поиск для мобильных */
.mobile-search-container {
  display: none;
  padding: 10px 15px;
  background: white;
  margin-top: 64px; /* Высота header */
}

.mobile-search {
  position: relative;
  width: 100%;
}

.mobile-search-bar {
  width: 100%;
  height: 31px;
  border: 1px solid #b9b9b9;
  border-radius: 5px;
  padding: 0 50px 0 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.mobile-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-search-btn img {
  width: 24px;
  height: 24px;
}

/* ====== МОБИЛЬНОЕ МЕНЮ ====== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.mobile-menu-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 356px;
  height: 85%;
  background: white;
  padding: 0;
  padding-top: 0;
  overflow-y: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #000000;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;

  width: 100%;
  padding: 12px 20px; /* добавляем боковые отступы тут */
  box-sizing: border-box;
}

.mobile-shop-logo img {
  padding-left: 20px; /* добавляем боковые отступы тут */
}

.mobile-nav-item:hover {
  background-color: #eeeeee;
}
.mobile-shop-logo:hover {
  background-color: #eeeeee;
}

/* ФИКСИРОВАННОЕ МЕСТО ПОД ИКОНКУ */
.nav-icon {
  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

/* ИКОНКА МОЖЕТ БЫТЬ ЛЮБОЙ ФОРМЫ */
.nav-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ТЕКСТ ВСЕГДА НА ОДНОЙ ЛИНИИ */
.nav-text {
  white-space: nowrap;
}

.nav-arrow {
  margin-left: auto;
  font-size: 20px;
}

.mobile-contacts {
  text-align: center;
  margin-top: 10px;
  padding-top: 20px;
}

.mobile-phone {
  display: block;
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  margin-bottom: 10px;
}

.mobile-work-time {
  font-size: 16px;
  color: #515151;
}
.mobile-write-us-contacts {
  display: flex;
  flex-direction: row;
  gap: 37px;
  align-items: center;
  justify-content: center;
}

.mobile-write-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 0;
}

.mobile-write-btn img {
  width: 45px;
  height: 45px;
}
.mobile-shop-logo img {
  width: 200px;
  height: 40px;
  object-fit: contain;
}

/* Мобильное меню контактов */
.mobile-menu-contacts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto; /* На случай если контент не помещается */
}

.mobile-menu-contacts-container {
  position: relative; /* Для кнопки закрытия */
  background: white;
  padding: 15px 10px 10px;
  max-width: 400px;
  width: 95%;
  max-height: auto;
  margin: 0 auto; /* Центрирование по горизонтали */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  animation: fadeInScale 0.3s ease;
  box-sizing: border-box;

  /* Центрирование с отступом сверху для всех устройств */
  position: absolute;
  top: 15vh; /* 15% от высоты экрана - можно регулировать это значение */
  left: 50%;
  transform: translateX(-50%);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.mobile-menu-contacts-overlay .mobile-menu-contacts-close {
  position: absolute;
  top: -45px;
  right: 0px;
  background: white;
  border: none;
  font-size: 34px;
  line-height: 1;
  padding: 0;
  color: #000000;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
  z-index: 10001;
}

.mobile-contacts-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-contacts-info .mobile-write-btn {
  display: flex;
  align-items: center;
  justify-content: center; /* Выравнивание по левому краю */
  gap: 15px;
  background: none;
  color: #000;
  font-size: 18px;
  cursor: pointer;
  padding: 12px 20px;
  text-align: left;
  width: 100%;
  transition: all 0.3s ease;
  position: relative; /* Для центрирования текста */

  text-decoration: none;
}

/* Специфичные стили для каждой кнопки */

.mobile-contacts-info .phone-btn {
  border: 1px solid #ff4c3f;
  padding: 0;
  padding-left: 10px;
}

.mobile-contacts-info .phone-btn:hover {
  background-color: rgba(255, 0, 0, 0.2);
}

.mobile-contacts-info .telegram-btn {
  border: 1px solid #27a6e6;
  padding-left: 10px;
}

.mobile-contacts-info .telegram-btn:hover {
  background-color: rgba(42, 171, 238, 0.2);
}

.mobile-contacts-info .viber-btn {
  border: 1px solid #7f4da0;
  padding-left: 10px;
}

.mobile-contacts-info .viber-btn:hover {
  background-color: rgba(115, 96, 242, 0.2);
}

.mobile-contacts-info .whatsapp-btn {
  border: 1px solid #4caf50;
  padding-left: 10px;
}

.mobile-contacts-info .whatsapp-btn:hover {
  background-color: rgba(37, 211, 102, 0.2);
}

.mobile-contacts-info .mobile-write-btn img {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.mobile-contacts-info .mobile-work-time {
  font-size: 16px;
  color: #515151;
  display: block;
}

.mobile-contacts-info .mobile-phone {
  font-size: 26px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  display: block;
}

/* Стили для кнопок с иконками и текстом по центру */
.mobile-contacts-info .mobile-write-btn {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 20px; /* Место для иконки */
}

.mobile-contacts-info .social-btn {
  padding-left: 50px; /* Место для иконки */
}

.mobile-contacts-info .social-btn img {
  position: absolute;
  left: 20px;
  width: 35px;
  height: 35px;
}

.mobile-contacts-info .social-text {
  flex: 1;
  text-align: center;
  margin: 0;
}

/* ДЛЯ ТЕЛЕФОНА - ВСЕГО 3 СТРОКИ */
.mobile-contacts-info .phone-btn > div {
  flex: 1; /* Занимает всё доступное пространство */
  text-align: center; /* Центрируем текст */
}

.mobile-contacts-info .phone-btn img {
  position: absolute;
  left: 20px;
  width: 35px;
  height: 35px;
}

/* ====== МЕДИА-ЗАПРОСЫ ====== */

@media (max-width: 1600px) {
  .my-navbar {
    padding-left: 50px;
    padding-right: 20px;
  }
  .header {
    padding-left: 40px;
    padding-right: 20px;
  }
  .navbar-profile {
    gap: 5px;
  }
}

@media (max-width: 1440px) {
  .my-navbar {
    padding-left: 40px;
    padding-right: 20px;
  }
  .header {
    padding-left: 30px;
    padding-right: 20px;
  }
  .navbar-profile {
    gap: 3px;
  }

  .online-shop-logo {
    width: 260px;
    height: auto;
  }

  .search-container {
    max-width: 600px;
    margin-left: 0px;
  }

  .navbar-profile-item img {
    width: 40px;
    height: 40px;
  }

  .send-text-with-image img {
    width: 30px;
    height: 30px;
  }
  .heart-number-inside-elipse .elipse-medium-red {
    width: 24px;
    height: 24px;
  }
  .cart-number-inside-elipse .elipse-medium-red {
    width: 24px;
    height: 24px;
  }

  .cart-item-number,
  .heart-item-number {
    top: 52%;
    font-size: 17px;
  }
}

@media (max-width: 1200px) {
  /* Скрываем десктопный header */
  .header {
    display: none;
    /* Важно: убираем фиксацию и отступы */
    position: relative;
    top: auto;
  }

  /* Показываем мобильный */
  .mobile-header {
    display: flex;
    flex-direction: column;
    gap: 11px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .mobile-header {
    padding: 10px 15px;
  }

  .mobile-logo {
    width: 60px;
  }

  .mobile-catalog-btn {
    padding: 5px 8px;
    font-size: 16px;
  }

  .mobile-catalog-btn img {
    width: 27px;
    height: 27px;
  }

  .mobile-icon-btn img {
    width: 40px;
    height: 40px;
  }

  /* Или для первого элемента после header */
  .categories-and-text {
    margin-top: 80px;
  } /*because of this i have written in kontakti and etc pages margin-top in medis queries */
  .advertisement {
    margin-top: 0; /* Убрать лишние отступы */
  }

  .mobile-header-top,
  .mobile-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Скрываем категории на странице */
  .category-list {
    display: none;
  }
  .mobile-menu-container {
    height: 75%;
  }
}

@media (max-width: 768px) {
  .categories-and-text {
    margin-top: 125px;
  }

  .mobile-header-top,
  .mobile-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Скрываем категории на странице */
  .category-list {
    display: none;
  }

  .hamburger-btn {
    width: 30px;
    height: 25px;
  }

  button.mobile-catalog-btn {
    width: 178px;
    height: 36px;
    padding: 15px 20px;
    gap: 15px;
    font-size: 13px;
  }

  .mobile-catalog-btn img {
    width: 24px;
    height: 24px;
  }
  .mobile-catalog-btn span {
    font-size: 14px;
  }

  .mobile-catalog-btn {
    padding: 15px 15px;
    font-size: 13px;
  }
  .mobile-icon-btn img {
    width: 45px;
    height: 45px;
  }
  .mobile-cart-icon img {
    width: 35px;
    height: 35px;
  }
  .mobile-menu-container {
    height: 65%;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .mobile-header {
    padding: 8px 12px;
  }

  .mobile-header-right {
    gap: 0px;
  }

  .hamburger-btn {
    width: 25px;
    height: 20px;
  }

  .mobile-logo {
    width: 46px;
  }

  .mobile-catalog-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  .mobile-catalog-btn img {
    width: 21px;
    height: 21px;
  }

  .mobile-catalog-btn span {
    font-size: 12px;
  }

  .mobile-icon-btn img {
    width: 35px;
    height: 35px;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
  }

  .mobile-cart-icon img {
    width: 30px;
    height: 30px;
  }

  .mobile-search-container {
    margin-top: 60px;
    padding: 8px 12px;
  }
  .categories-and-text {
    margin-top: 105px;
  }

  .mobile-search-bar {
    font-size: 14px;
  }

  .mobile-search-btn img {
    width: 19px;
    height: 19px;
  }
  .icon-badge {
    top: 0px;
    right: -2px;
    background: #ff4c3f;
    min-width: 17px;
    height: 17px;
  }
  .mobile-menu-container {
    height: 55%;
  }
  .mobile-shop-logo img {
    width: 177px;
    height: 35px;
  }
  .product-list-container {
    margin: 0;
  }
  .nav-icon {
    width: 30px;
    height: 30px;
  }
  .mobile-write-btn img {
    width: 36px;
    height: 36px;
  }
  .mobile-work-time {
    font-size: 14px;
  }
  .mobile-contacts-info .mobile-write-btn img {
    width: 36px;
    height: 36px;
  }
  .mobile-contacts-info .mobile-work-time {
    font-size: 14px;
  }
  .mobile-contacts-info .mobile-phone {
    font-size: 24px;
  }
}

/* ===== МОБИЛЬНЫЙ КАТАЛОГ ===== */
.mobile-catalog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9998;
  display: none;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-catalog-overlay.active {
  display: flex;
  transform: translateX(0);
}

.mobile-catalog-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  height: 60px;
  box-sizing: border-box;
}

.mobile-catalog-back,
.mobile-catalog-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-catalog-back {
  font-size: 24px;
}

.mobile-catalog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  flex: 1;
  text-align: center;
}

.mobile-catalog-main {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 20px 0;
}

.mobile-catalog-content {
  padding: 0 20px;
}

.mobile-category-item {
  border-bottom: 1px solid #eee;
}

.mobile-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  text-align: left;
}

.mobile-category-header.active {
  color: #ff4c3f;
}

.mobile-category-icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  flex-shrink: 0;
}

.mobile-category-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.mobile-category-arrow {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s;
  margin-left: 10px;
}

.mobile-category-arrow.active {
  transform: rotate(90deg);
  color: #ff4c3f;
}

.mobile-category-dropdown {
  display: none;
  padding-left: 45px;
  padding-bottom: 10px;
}

.mobile-category-dropdown.active {
  display: block;
}

.mobile-subcategory-item {
  margin-bottom: 15px;
}

.mobile-subcategory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  text-align: left;
}

.mobile-subcategory-name {
  flex: 1;
  font-weight: 500;
}

.mobile-subcategory-arrow {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s;
}

.mobile-subcategory-arrow.active {
  transform: rotate(90deg);
  color: #ff4c3f;
}

.mobile-subcategory-dropdown {
  display: none;
  padding-left: 20px;
  padding-top: 10px;
}

.mobile-subcategory-dropdown.active {
  display: block;
}

.mobile-subcategory-link {
  display: block;
  padding: 10px 0;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-subcategory-link:last-child {
  border-bottom: none;
}

.mobile-subcategory-link:hover {
  color: #ff4c3f;
}

/* Контейнер для подкатегорий (второй уровень) */
.mobile-subcategories-container {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10;
  overflow-y: auto;
  padding: 20px;
  display: none;
}

.mobile-subcategories-container.active {
  display: block;
  transform: translateX(0);
}

.mobile-subcategory-list {
  padding-top: 10px;
}

.mobile-subcategory-list-item {
  display: block;
  padding: 16px 0;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}

.mobile-subcategory-list-item:last-child {
  border-bottom: none;
}

.mobile-subcategory-list-item:hover {
  color: #ff4c3f;
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 375px) {
  .mobile-catalog-header {
    padding: 15px;
  }

  .mobile-catalog-content {
    padding: 0 15px;
  }

  .mobile-category-name {
    font-size: 15px;
  }

  .mobile-subcategory-list-item {
    font-size: 15px;
    padding: 14px 0;
  }
}

body[data-page="home"] .header-fixed,
body[data-page="tovar"] .header-fixed,
body[data-page="category"] .header-fixed,
body[data-page="kontakty"] .header-fixed,
body[data-page="sertifikaty"] .header-fixed,
body[data-page="dostavka-i-oplata"] .header-fixed {
  padding-top: 0;
  position: fixed;
  top: 0;
}

body[data-page="home"] .my-navbar,
body[data-page="tovar"] .my-navbar,
body[data-page="category"] .my-navbar,
body[data-page="kontakty"] .my-navbar,
body[data-page="sertifikaty"] .my-navbar,
body[data-page="dostavka-i-oplata"] .my-navbar {
  position: static;
}

body[data-page="orders"] .header-version .category-list-header,
body[data-page="favorites"] .header-version .category-list-header,
body[data-page="korzina"] .header-version .category-list-header,
body[data-page="reviews"] .header-version .category-list-header,
body[data-page="viewed"] .header-version .category-list-header {
  margin-top: 55px;
}

/*
LAYOUT LOGIC (по макету Figma):

1. На страницах home/category/tovar:
   - navbar виден до скролла
   - при скролле navbar скрывается
   - появляется фиксированный header

2. На user pages (orders/profile/...):
   - navbar всегда виден
   - header сразу фиксированный
   - scroll-effects отключены

Решено через page-specific styles,
так как поведение отличается по дизайну.
*/

/* МИНИМАЛЬНЫЕ СТИЛИ ДЛЯ ПЕРЕКЛЮЧЕНИЯ ГАМБУРГЕР МЕНЮ
 ДЛЯ РЕГИСТРИРОВАННОГО И НЕРЕГИСТРИРОВАННОГО ПОЛЬЗОВАТЕЛЬЯ */

.auth-section--guest,
.auth-section--user {
  margin-top: 15px; /* Дополнительный небольшой отступ */
}

/* По умолчанию — ГОСТЬ */
.auth-section--guest {
  display: block;
}

.auth-section--user {
  display: none;
}

/* Авторизованный пользователь */
body.is-auth .auth-section--guest {
  display: none;
}

body.is-auth .auth-section--user {
  display: block;
}
