/* Подключаем кастомный шрифт */
@font-face {
  font-family: 'Bebas Neue';
  src: url('https://static.tildacdn.com/tild6135-3433-4139-a131-346363393936/Bebas-Neue-Cyrillic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.header-links {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .t451__centerside {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
  }

  .t451__centerside .t-heading.t-heading_xs {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

.header-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #b3b3b3 !important;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

/* Корзина: отступ справа на десктопе */
@media (min-width: 769px) {
  .header-links a:last-child {
    margin-right: 2px;
  }
}

/* Корзина — отступ справа, чтобы не обрезало счётчик */
@media (max-width: 768px) {
  .header-links a:last-child {
    margin-right: 24px !important;
  }
}

/* "меню" немного правее */
.header-links a:first-child {
  margin-left: 4px;
}

/* Убираем стандартный бургер */
.t-menuburger {
  display: none !important;
}

/* Убираем стандартную иконку корзины, включая всплывающую внизу */
.t706__carticon-wrapper,
.t-menuwidgeticons_icon,
.t-menuwidgeticons__cart {
  display: none !important;
}

/* Логотип */
.t451__centerside .t-heading.t-heading_xs {
  font-size: 34px !important;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* 💻 На компьютерах — крупнее + расстояние между буквами */
@media (min-width: 769px) {
  .header-links a {
    font-size: 22px;
    letter-spacing: 1.2px;
  }
}

/* 📱 На мобильных — меньше */
@media (max-width: 768px) {
  .header-links a {
    font-size: 18px;
    letter-spacing: 0.3px;
  }
}

.header-links a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}

/* 💻 На компьютерах увеличим, чтобы не отставало от "корзина" */
@media (min-width: 769px) {
  #custom-cart-count {
    font-size: 22px;
    letter-spacing: 1.2px;
  }
}

/* Эффект при наведении — ДЛЯ ВСЕХ ЭКРАНОВ */
a.t451__logo:hover .t-heading.t-heading_xs {
  color: #f0f0f0 !important;
  transition: color 0.4s ease;
}

/* Название товара */
.t706__product-title {
  color: #000000 !important;
}

/* Цена за единицу */
.t706__product-amount {
  color: #000000 !important;
}

/* Общая сумма */
.t706__cart-totalprice {
  color: #000000 !important;
}

/* Слово "Сумма:" */
.t706__cart-total {
  color: #000000 !important;
}

/* Название товара */
.t706__product-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #000000 !important;
}

/* Цена за единицу */
.t706__product-amount {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  color: #000000 !important;
}

/* Применяем шрифт ко всей корзине */
.t706 {
  font-family: 'Bebas Neue', sans-serif !important;
}

/* Итоговая сумма: Слово "Сумма:" */
.t706__cart-total {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #000000 !important;
}

/* Итоговая сумма: цифра */
.t706__cart-totalprice {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #000000 !important;
}

.t706__cart-totalprice span {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  font-variant: normal !important;
  line-height: 1.2 !important;
  color: #000000 !important;
}

.t706__cart-totalprice span,
.t706__cart-total span {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  font-variant: normal !important;
  line-height: 1.2 !important;
  color: #000000 !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
}

/* Сумма (цифра) — 12 400 ₽ */
.t706__cartwin-prodamount-price {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  color: #000000 !important;
  letter-spacing: 0.5px !important;
}

/* Слово "Сумма:" */
.t706__sidebar-prodamount-label {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: #000000 !important;
  letter-spacing: 0.2px !important;
}

/* Фикс второго уровня меню в выпадающем списке */
.t-menusub__menu {
  max-width: 100% !important;
  overflow-x: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}

/* Убираем горизонтальную прокрутку и ползунок */
.t-menupopup {
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  .header-links a {
    font-size: 18px !important;
    letter-spacing: 0.4px !important;
    font-weight: 400 !important;
  }

  #custom-cart-count {
    font-size: 18px !important;
    letter-spacing: 0.4px !important;
    font-weight: 400 !important;
    vertical-align: baseline !important;
  }
}

.header-links a:hover,
.header-links a:hover #custom-cart-count {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}

.header-links a {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .header-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 56px !important;
    padding: 0 16px !important;
    transform: none !important;
  }

  .header-links a {
    font-size: 18px !important;
    font-family: 'Bebas Neue', sans-serif !important;
    color: #b3b3b3 !important;
    letter-spacing: 0.4px !important;
    font-weight: 400 !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-decoration: none !important;
    line-height: normal !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
  }

  #custom-cart-count {
    font-size: 18px !important;
    letter-spacing: 0.4px !important;
    font-weight: 400 !important;
    margin-left: 4px !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
    position: static !important;
    transform: translateY(-1px) !important;
  }

  .header-links a:last-child {
    margin-right: 6px !important;
  }

  .header-links a:first-child {
    margin-left: 4px !important;
  }

  .t451__centerside {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: relative;
  }

  .t451__centerside .t-heading.t-heading_xs {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    font-size: 34px !important;
  }
}

.header-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #b3b3b3 !important;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  height: 56px;
  display: flex;
  align-items: center;
  line-height: 56px;
}

a.t451__logo {
  display: inline-block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  #custom-cart-count {
    font-size: 20px !important;
    transform: translateY(1px) !important;
    display: inline-block !important;
    margin-left: 4px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
  .t451__centerside {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: relative;
  }

  .t451__centerside .t-heading.t-heading_xs {
    margin: 0 auto !important;
    text-align: center !important;
  }
}

