/* =================================================================== */
/* 🔥 ФИНАЛЬНЫЕ ИЗМЕНЕНИЯ (от 17.10.2025)                              */
/* =================================================================== */

/* 2. 🔥 НОВОЕ: Адаптация для мобильных устройств */
@media (max-width: 576px) {
  /* Уменьшаем главный заголовок на мобильных ЕЩЁ БОЛЬШЕ */
  h1.shop-name {
    font-size: 2.8rem !important;
  }
  /* Уменьшаем подзаголовок */
  .shop-decsription {
    font-size: 0.9rem;
  }
  /* Двигаем кнопку смены темы на мобильных */
  .btn-switch-theme {
    transform: translateX(35px);
  }
}

/* =================================================================== */
/* 🔥 НОВЫЕ ИЗМЕНЕНИЯ ДЛЯ МОБИЛЬНЫХ (от 18.10.2025)                    */
/* =================================================================== */
@media (max-width: 768px) {
  /* Уменьшаем скругление баннера на мобильных до 100px */
  .spirit-shop-jumbotron {
    border-radius: 100px !important;
  }
  
  /* Уменьшаем высоту баннера на мобильных */
  .spirit-shop-jumbotron {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* Опускаем заголовок на 25px вниз */
  h1.shop-name {
    margin-top: 25px;
  }
}

/* 1. ИСПРАВЛЕНИЕ: Сдвигаем текст кнопки "Перейти к товарам" на 10px влево */
/* Уточняем селектор, чтобы стили применялись ТОЛЬКО к кнопке в баннере */
.spirit-shop-jumbotron .btn-xl.btn-accent.rounded-pill::after {
  content: "Перейти к товарам";
  font-size: 18px;
  display: block;
  transform: translateX(-10px); /* Сдвигаем текст */
}
.spirit-shop-jumbotron .btn-xl.btn-accent.rounded-pill {
  font-size: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 3. 🔥 НОВОЕ: Заменяем текст "Другие товары" на "Ещё варианты:" */
.mt-48.d-md-block.d-none > p.mb-24.color-default,
.mt-48.d-md-none.d-block > p.mb-24.color-default {
  font-size: 0; /* Скрываем старый текст */
}
.mt-48.d-md-block.d-none > p.mb-24.color-default::before,
.mt-48.d-md-none.d-block > p.mb-24.color-default::before {
  content: "Ещё варианты:"; /* Добавляем новый */
  font-size: 1rem; /* Возвращаем исходный размер */
}

/* 4. 🔥 НОВОЕ: Скрываем категорию "Привилегии" на странице товара */
.d-flex.align-items-center.color-default.opacity-3 {
  display: none !important;
}

/* 2. 🔥 НОВАЯ АНИМАЦИЯ "ЗАПОЛНЕНИЕ" ДЛЯ КНОПКИ "ПОДРОБНЕЕ" */
.product-card .btn-outline-accent {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease-in-out;
}
.product-card .btn-outline-accent span,
.product-card .btn-outline-accent svg {
  position: relative;
  z-index: 2;
}
.product-card .btn-outline-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.product-card .btn-outline-accent:hover::before {
  transform: translateX(0);
}
.product-card .btn-outline-accent:hover span,
.product-card .btn-outline-accent:hover svg path {
  color: #fff;
  stroke: #fff;
}

/* 3. 🔥 НОВАЯ АНИМАЦИЯ "НАКЛОН" ДЛЯ КАТЕГОРИЙ */
.spirit-shop-category {
  transition: transform 0.3s ease !important; /* Убираем все старые transition */
}
.spirit-shop-category:hover {
  transform: scale(1.05) rotateY(10deg); /* Наклоняем при наведении */
}
/* Убираем старые анимации */
.spirit-shop-category::before, .spirit-shop-category::after {
  display: none !important;
}

/* 4. Возвращаем анимацию "сияющий блик" при загрузке */
@keyframes onLoadGleam {
  0% { left: -50%; }
  100% { left: 150%; }
}
.spirit-shop-jumbotron .btn-xl.btn-accent.rounded-pill::before {
  animation: onLoadGleam 0.7s ease-in-out 2s 1;
}

/* 5. Изменяем текст над товарами на "Наш магазин" */
h3.d-xl-block.d-none.mb-36 {
  font-size: 0;
}
h3.d-xl-block.d-none.mb-36::before {
  content: "Доступные товары:";
  font-size: 28px;
  display: block;
}

/* 6. Увеличиваем время анимации переворота текста до 5 секунд */
@keyframes flip-text-animation {
  0%, 100% { transform: rotateX(0deg); }
  50% { transform: rotateX(360deg); }
}
.spirit-shop-name {
  display: inline-block !important;
  font-size: 0 !important;
  animation: flip-text-animation 15s infinite ease-in-out;
}
.spirit-shop-name::before {
  content: "Официальный магазин";
  font-size: 18px;
  font-weight: 500;
  color: var(--color-default);
  display: inline-block;
}

/* =================================================================== */
/* 🔥 ИСПРАВЛЕНИЕ: Отключение старой анимации подчеркивания            */
/* =================================================================== */

.spirit-navbar-item::after {
  display: none !important;
}

/* =================================================================== */
/* 🔥 АНИМАЦИЯ "РАСШИРЯЮЩИЙСЯ КРУГ" ДЛЯ МЕНЮ                          */
/* =================================================================== */

.spirit-navbar-item a {
  position: relative;
  z-index: 1;
  padding: 8px 15px;
  border-radius: 99px;
  overflow: hidden;
  transition: color 0.4s ease-in-out;
}
.spirit-navbar-item a span, .spirit-navbar-item a svg {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease-in-out, stroke 0.4s ease-in-out;
}
.spirit-navbar-item a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2em;
  height: 1.2em;
  background-color: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.spirit-navbar-item a:hover::before {
  transform: translate(-50%, -50%) scale(15);
}
.spirit-navbar-item a:hover span {
  color: #fff;
}
.spirit-navbar-item a:hover svg path {
  stroke: #fff;
}
.spirit-navbar-item a svg {
  display: none !important;
}

/* =================================================================== */
/* 1. Улучшенные 3D-карточки товаров с эффектом "левитации"          */
/* =================================================================== */

.shop-products .row {
  perspective: 1500px;
}
.spirit-navbar {
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  width: 100%;
  border-radius: 0;
}
@media (min-width: 576px) {
  .spirit-navbar {
    top: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 0;
  }
}
@keyframes float-animation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.product-card {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: float-animation 4s ease-in-out infinite;
}
.product-card:nth-child(2n) {
  animation-delay: 2s;
}
.product-card:nth-child(3n) {
  animation-delay: 1s;
}
.product-card:hover {
  animation-play-state: paused;
  transform: translateY(-10px) rotateY(8deg) rotateX(4deg) scale(1.05);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 20px 2px var(--color-accent-75);
}

/* =================================================================== */
/* 3. Анимация печатания текста для описания (ИСПРАВЛЕНО)              */
/* =================================================================== */

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
.shop-decsription.mb-0.text-center {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(38, end) forwards;
}
.spirit-shop-jumbotron .col-12 {
  text-align: center;
}

/* =================================================================== */
/* 4. Новая анимация для кнопки "Перейти в магазин"                    */
/* =================================================================== */

/* Уточняем селектор, чтобы стили применялись ТОЛЬКО к кнопке в баннере */
.spirit-shop-jumbotron .btn-xl.btn-accent.rounded-pill {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease-in-out;
}
.spirit-shop-jumbotron .btn-xl.btn-accent.rounded-pill::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -50%;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-45deg);
  transition: left 0.7s ease-in-out;
}
.spirit-shop-jumbotron .btn-xl.btn-accent.rounded-pill:hover::before {
  left: 150%;
}

/* =================================================================== */
/* 5. Новая анимация для иконок товаров в углу карточки               */
/* =================================================================== */

.product-group-product {
    transition: transform 0.4s ease, margin-left 0.4s ease;
}
.product-card:hover .product-group-product {
    margin-left: -15px;
}
.product-card:hover .product-group-product:nth-child(1) {
    transform: rotate(-15deg) translateX(-5px);
    transition-delay: 0s;
}
.product-card:hover .product-group-product:nth-child(2) {
    transform: rotate(0deg) translateX(0);
    transition-delay: 0.1s;
}
.product-card:hover .product-group-product:nth-child(3) {
    transform: rotate(15deg) translateX(5px);
    transition-delay: 0.2s;
}

/* =================================================================== */
/* 6. Прочие стили и анимации                                         */
/* =================================================================== */

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 20px;
  border: 2px solid #1a1a1a;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #ffffff;
}
/* 2. 🔥 НОВОЕ: Скрываем заголовок "Информация" на странице товара */
.sticky-top > h2.mb-24 {
  display: none !important;
}

/* =================================================================== */
/* 🔥 СТИЛЬ ЦЕНЫ (ШРИФТ GOLOS TEXT) (от 18.10.2025)                    */
/* =================================================================== */
.spirit-product .display-3.mb-0.font-family-golos.font-weight-500 {
  font-family: 'Golos Text', sans-serif; /* Возвращаем стандартный шрифт */
  font-weight: 700; /* Делаем его просто жирным */
  font-size: 2.5rem; /* Размер оставляем */
}

/* 3. Скрываем блок с информацией о проекте на странице товара */
.col-xl-12.col-md-6 .card.border-0.shadow-none.mb-12 {
  display: none !important;
}

h1.shop-name {
  text-transform: uppercase;
  letter-spacing: 5px;
  animation: text-pulse 4s ease-in-out infinite;
  font-size: 6rem;
}
@keyframes text-pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
  }
}

.spirit-shop-jumbotron {
  position: relative;
  overflow: hidden;
  border-radius: 400px !important;
  margin-top: 95px !important;
}
.spirit-shop-jumbotron::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  animation: scrolling-grid 10s linear infinite;
}
@keyframes scrolling-grid {
  from { background-position: 0 0; }
  to { background-position: 30px 60px; }
}

@keyframes cart-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(5deg); }
}
@keyframes cart-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cart-badge:hover .cart-counter:not(.not-empty) {
  animation: cart-shake 0.6s ease-in-out;
}
.cart-badge:hover .cart-counter.not-empty {
  animation: cart-pulse 0.5s ease-in-out;
}

@media (min-width: 768px) {
  .spirit-shop-jumbotron {
    padding-top: 354px;
    padding-bottom: 354px;
    transition: padding 0.5s ease;
  }
}
.product-card .shop-product-cost {
  position: relative;
  height: 29px;
}
.product-card .shop-product-cost::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background-secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* =================================================================== */
/* 🔥 АНИМАЦИЯ ДЛЯ БЛОКА "ЕЩЁ ВАРИАНТЫ" (от 18.10.2025)                */
/* =================================================================== */

/* Анимация появления "падения" */
@keyframes fall-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Начальное состояние для элементов, чтобы они были скрыты до анимации */
.spirit-product .row .col-3 .same-product-sm {
  opacity: 0;
  animation: fall-in 0.5s ease-out forwards; /* Применяем анимацию */
}

/* Задаем задержку для каждого элемента, чтобы они появлялись по очереди */
.spirit-product .row .col-3:nth-child(1) .same-product-sm { animation-delay: 0.1s; }
.spirit-product .row .col-3:nth-child(2) .same-product-sm { animation-delay: 0.2s; }
.spirit-product .row .col-3:nth-child(3) .same-product-sm { animation-delay: 0.3s; }
.spirit-product .row .col-3:nth-child(4) .same-product-sm { animation-delay: 0.4s; }
/* ... можно добавить больше, если товаров много */

/* Эффект при наведении на неактивный товар */
.same-product-sm.inactive {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.same-product-sm.inactive:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Стиль для выбранного (активного) товара - наклон */
.same-product-sm.active {
  transform: scale(1.05) rotate(4deg);
  box-shadow: 0 0 15px var(--color-accent-50);
}

/* =================================================================== */
/* 🔥 ДОБАВЛЕН ТЕКСТ О ПРОМОКОДЕ (от 18.10.2025)                       */
/* =================================================================== */
/* 1. Скрываем оригинальное содержимое блока (иконку и старый текст) */
.d-flex.align-items-center.flex-wrap.opacity-5.color-default.justify-content-sm-start.justify-content-center {
  font-size: 0; /* Скрывает текст "Безопасная оплата онлайн" */
}
.d-flex.align-items-center.flex-wrap.opacity-5.color-default.justify-content-sm-start.justify-content-center svg {
  display: none !important; /* Скрывает иконку */
}

/* 2. Добавляем новый текст с помощью псевдо-элемента */
.d-flex.align-items-center.flex-wrap.opacity-5.color-default.justify-content-sm-start.justify-content-center::before {
  content: "*Промокод указывается на этапе оплаты";
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
  opacity: 1; /* Делаем текст полностью видимым */
  font-size: 0.9rem; /* ВОЗВРАЩАЕМ РАЗМЕР ШРИФТА, так как родитель имеет font-size: 0 */
}