/* ===== ОСНОВНЫЕ СТИЛИ КАТАЛОГА ===== */
.moto-catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Open Sans", sans-serif;
}

.moto-catalog__header {
  text-align: center;
  margin-bottom: 40px;
}

.moto-catalog__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  font-family: "Open Sans", sans-serif;
}

.moto-catalog__subtitle {
  color: #666;
  font-size: 1.1rem;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
}

/* ===== ФИЛЬТРЫ ===== */
.moto-catalog__filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Скрываем фильтры на экранах меньше 600px */
@media (max-width: 599px) {
  .moto-catalog__filters {
    display: none;
  }
}

.moto-catalog__filter {
  padding: 12px 24px;
  border: 2px solid #e2e2e2;
  border-radius: 30px;
  background: white;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moto-catalog__filter:hover {
  border-color: #ec1827;
  background: #ec1827;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 24, 39, 0.3);
}

.moto-catalog__filter.active {
  border-color: #ec1827;
  background: #ec1827;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 24, 39, 0.3);
}

.moto-catalog__filter.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.moto-catalog__filter.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== СЕТКА КАРТОЧЕК ===== */
.moto-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  align-items: stretch;
}

/* ===== КАРТОЧКИ МОТОЦИКЛОВ ===== */
.moto-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.moto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Изображение */
.moto-card__image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.moto-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.moto-card:hover .moto-card__image img {
  transform: none;
}

.moto-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
}

/* Бейдж категории */
.moto-card__category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(236, 24, 39, 0.95);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Open Sans", sans-serif;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
}

/* Контент карточки */
.moto-card__content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.moto-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-family: "Open Sans", sans-serif;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moto-card__description {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

/* Цена */
.moto-card__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ec1827;
  margin-bottom: 20px;
  font-family: "Open Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Убираем автоматическое добавление "от", так как теперь это делается в шаблоне */
/* .moto-card__price::before {
  content: 'от';
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
} */

/* Цвета */
.moto-card__colors {
  margin-bottom: 25px;
}

.moto-card__colors-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Open Sans", sans-serif;
}

.moto-card__color-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.moto-card__color-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.moto-card__color-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.moto-card__color-item:hover {
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border-color: #ec1827;
}

.moto-card__color-item:hover::before {
  transform: translateX(100%);
}

.moto-card__color-item:active {
  transform: scale(1.1);
}

.moto-card__color-item.active {
  border-color: #ec1827;
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
  transform: scale(1.1);
  position: relative;
}

.moto-card__color-item.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.moto-card__color-item.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.moto-card__color-item.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #ec1827;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Контейнер для фотографий цвета */
.moto-card__color-photos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.moto-card__color-photos-carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.moto-card__color-photos-container {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.moto-card__color-photo {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.moto-card__color-photo:hover {
  transform: scale(1.02);
}

/* Навигация карусели */
.moto-card__carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 15;
}

.moto-card__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.moto-card__carousel-dot.active {
  background: #ec1827;
  transform: scale(1.2);
}

.moto-card__carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Кнопки навигации */
.moto-card__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 15;
  font-size: 14px;
}

.moto-card__carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.moto-card__carousel-btn--prev {
  left: 10px;
}

.moto-card__carousel-btn--next {
  right: 10px;
}

.moto-card__carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.moto-card__back-to-main {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(236, 24, 39, 0.9);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 5px;
}

.moto-card__back-to-main:hover {
  background: #ec1827;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
}

.moto-card__back-to-main i {
  font-size: 0.7rem;
}

/* Анимации для переключения изображений */
.moto-card__main-image,
.moto-card__color-photos {
  transition: opacity 0.3s ease;
}

.moto-card__color-more {
  font-size: 0.7rem;
  color: #6c757d;
  margin-left: 5px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}

/* Кнопки */
.moto-card__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-shrink: 0;
}

.moto-card__btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.moto-card__btn::before {
  content: '';
  position: absolute;
  height: 250%;
  width: 40px;
  top: 0;
  left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg) translateY(-35%);
  animation: shine 3s ease infinite;
}

@keyframes shine {
  0% {
    left: -80px;
  }
  40% {
    left: calc(100% + 20px);
  }
  100% {
    left: calc(100% + 20px);
  }
}

.moto-card__btn--primary {
  background: linear-gradient(135deg, #ec1827 0%, #c1101c 100%);
  color: white;
  box-shadow: 
    0 10px 30px rgba(236, 24, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.moto-card__btn--primary:hover {
  background: linear-gradient(135deg, #c1101c 0%, #a93226 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(236, 24, 39, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.moto-card__btn--primary:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Кнопка "В корзине" */
.moto-card__btn--in-cart {
  background: white;
  color: #ec1827;
  border: 2px solid #ec1827;
  box-shadow: 
    0 10px 30px rgba(236, 24, 39, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: cartAdded 0.6s ease-out;
}

.moto-card__btn--in-cart::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #ec1827;
  opacity: 0;
  display: block;
  /* Отключаем анимацию shine для кнопки "В корзине" */
  height: auto;
  width: auto;
  background: none;
  animation: checkmarkAppear 0.4s ease-out 0.2s forwards;
  z-index: 10;
}

.moto-card__btn--in-cart:hover {
  background: #ec1827;
  color: white;
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(236, 24, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.moto-card__btn--in-cart:hover::before {
  color: white;
}

.moto-card__btn--in-cart:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Анимация добавления в корзину */
@keyframes cartAdded {
  0% {
    transform: scale(1);
    background: linear-gradient(135deg, #ec1827 0%, #c1101c 100%);
    color: white;
  }
  50% {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ec1827 0%, #c1101c 100%);
    color: white;
  }
  100% {
    transform: scale(1);
    background: white;
    color: #ec1827;
  }
}

/* Анимация появления галочки */
@keyframes checkmarkAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.moto-card__btn--secondary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  border: 2px solid #e9ecef;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.moto-card__btn--secondary:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  color: #212529;
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.moto-card__btn--secondary:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Состояния загрузки и пустого состояния */
.moto-catalog__loading {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.moto-catalog__loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ec1827;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-motos {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 20px;
  margin: 40px 0;
}

.no-motos p {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 1024px) {
  .moto-catalog {
    padding: 15px;
  }
  
  .moto-catalog__title {
    font-size: 2.2rem;
  }
  
  .moto-catalog__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .moto-card__content {
    padding: 20px;
  }
  
  .moto-card__title {
    font-size: 1.3rem;
  }
  
  .moto-card__price {
    font-size: 1.2rem;
  }
}

/* Средние планшеты */
@media (max-width: 768px) {
  .moto-catalog__title {
    font-size: 2rem;
  }
  
  .moto-catalog__subtitle {
    font-size: 1rem;
  }
  
  .moto-catalog__filters {
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .moto-catalog__filter {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .moto-catalog__grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .moto-card__image {
    height: 220px;
  }
  
  .moto-card__content {
    padding: 18px;
  }
  
  .moto-card__title {
    font-size: 1.2rem;
  }
  
  .moto-card__price {
    font-size: 1.1rem;
  }
  
  .moto-card__actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .moto-card__btn {
    padding: 14px 20px;
    font-size: 0.85rem;
  }
}

/* Мобильные устройства */
@media (max-width: 480px) {
  .moto-catalog {
    padding: 10px;
  }
  
  .moto-catalog__title {
    font-size: 1.8rem;
  }
  
  .moto-catalog__subtitle {
    font-size: 0.95rem;
  }
  
  .moto-catalog__filters {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .moto-catalog__filter {
    width: 200px;
    text-align: center;
    padding: 12px 20px;
  }
  
  .moto-catalog__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .moto-card__image {
    height: 200px;
  }
  
  .moto-card__content {
    padding: 20px;
  }
  
  .moto-card__title {
    font-size: 1.3rem;
    min-height: auto;
  }
  
  .moto-card__description {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  
  .moto-card__price {
    font-size: 1.2rem;
  }
  
  .moto-card__actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .moto-card__btn {
    padding: 16px 20px;
    font-size: 0.9rem;
  }
  
  .no-motos {
    padding: 60px 20px;
  }
  
  .no-motos p {
    font-size: 1.1rem;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .moto-catalog__title {
    font-size: 1.6rem;
  }
  
  .moto-catalog__grid {
    gap: 15px;
  }
  
  .moto-card__content {
    padding: 15px;
  }
  
  .moto-card__title {
    font-size: 1.2rem;
  }
  
  .moto-card__price {
    font-size: 1.1rem;
  }
  
  .moto-card__btn {
    padding: 14px 16px;
    font-size: 0.85rem;
  }
}

/* Анимации для плавного появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.moto-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Улучшенные hover эффекты для кнопок */

/* Дополнительные стили для лучшей читаемости */
.moto-card__title,
.moto-card__description,
.moto-card__price {
  word-wrap: break-word;
  hyphens: auto;
}

/* Улучшенные тени для глубины */
.moto-card {
  box-shadow: 
    0 8px 30px rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.06);
}

.moto-card:hover {
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.2),
    0 8px 25px rgba(0,0,0,0.1);
} 

body.catalog .main-content {
  margin-left: 0;
}

/* ===== СТИЛИ ДЛЯ БЕСКОНЕЧНОЙ ПРОКРУТКИ ===== */

/* Индикатор загрузки для бесконечной прокрутки */
.moto-catalog__loading-infinite {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.moto-catalog__loading-infinite .moto-catalog__loading-spinner {
  margin: 0 auto 15px;
}

.moto-catalog__loading-infinite p {
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

/* Контейнер для кнопки "Загрузить еще" */
.moto-catalog__load-more {
  text-align: center;
  padding: 30px 20px;
  margin: 30px 0;
}

/* Кнопка "Загрузить еще" */
.moto-catalog__load-more-btn {
  background: linear-gradient(135deg, #ec1827 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(236, 24, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: "Open Sans", sans-serif;
  position: relative;
  overflow: hidden;
}

.moto-catalog__load-more-btn::before {
  content: '';
  position: absolute;
  height: 250%;
  width: 40px;
  top: 0;
  left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg) translateY(-35%);
  animation: shine 3s ease infinite;
}

.moto-catalog__load-more-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(236, 24, 39, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.moto-catalog__load-more-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 24, 39, 0.3);
}

.moto-catalog__load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.moto-catalog__load-more-btn:hover::before {
  left: 100%;
}

/* Сообщение о конце списка */
.moto-catalog__end {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.moto-catalog__end p {
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

/* Анимация для новых карточек */
.moto-card.loading {
  opacity: 0.7;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.moto-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивные стили для бесконечной прокрутки */
@media (max-width: 768px) {
  .moto-catalog__loading-infinite {
    padding: 30px 15px;
    margin: 20px 0;
  }
  
  .moto-catalog__load-more {
    padding: 20px 15px;
    margin: 20px 0;
  }
  
  .moto-catalog__load-more-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .moto-catalog__end {
    padding: 30px 15px;
    margin: 20px 0;
  }
  
  .moto-catalog__end p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .moto-catalog__loading-infinite {
    padding: 25px 10px;
    margin: 15px 0;
  }
  
  .moto-catalog__load-more {
    padding: 15px 10px;
    margin: 15px 0;
  }
  
  .moto-catalog__load-more-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
  
  .moto-catalog__end {
    padding: 25px 10px;
    margin: 15px 0;
  }
  
  .moto-catalog__end p {
    font-size: 1rem;
  }
}

/* ===== КАСТОМНЫЙ HEADER ДЛЯ МОТОЦИКЛОВ ===== */
.moto-header {
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding: 15px 0;
  transition: transform 0.6s ease, opacity 0.6s ease, top 0.6s ease;
  transform: translateY(0);
  opacity: 1;
}

/* Убираем отступ 75px для экранов меньше 600px */
@media (max-width: 599px) {
  .moto-header {
    top: 0;
  }
}

/* Состояние при скролле - header прилипает к верху экрана */
.moto-header.header-scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Состояние скрытого header'а - уходит за пределы экрана */
.moto-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.moto-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Адаптивность для экранов меньше 1200px */
@media (max-width: 1199px) {
  .moto-header__container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px 0; /* Убираем горизонтальные отступы для полного растягивания */
    max-width: none; /* Убираем ограничение ширины */
  }
  
  .moto-header__logo {
    align-self: center;
    padding: 0 20px; /* Добавляем отступы только для логотипа */
  }
  
  .moto-header__search {
    order: 3;
    max-width: none !important;
    width: 100%;
    padding: 0 20px; /* Добавляем отступы для поиска */
  }

  .moto-header__search-btn {
    right: 30px !important;
  }
  
  .moto-header__actions {
    order: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px; /* Добавляем отступы для кнопок */
  }
  
  .moto-header__filters-btn {
    min-width: 160px;
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .moto-header__hamburger {
    width: 38px;
    height: 42px;
    padding: 7px;
  }
  
  .moto-header__cart {
    height: 42px;
    padding: 7px 10px;
    font-size: 0.85rem;
  }
  
  .moto-header__cart img {
    width: 18px;
    height: 18px;
  }
}

.moto-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 18px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
}

.moto-header__logo:hover {
  color: #ec1827;
  text-decoration: none;
  transform: scale(1.02);
}

.moto-header__logo img {
  width: 280px;
  height: 50px;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(211, 147, 147, 0.1); */
  transition: all 0.3s ease;
}

.moto-header__logo:hover img {
  /* box-shadow: 0 4px 15px rgba(236, 24, 39, 0.2); */
  transform: scale(1.05);
}

.moto-header__search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.moto-header__search-input {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 2px solid rgba(226, 226, 226, 0.8);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  color: #333 !important;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.moto-header__search-input:focus {
  outline: none;
  border-color: #ec1827;
  box-shadow: 0 0 0 3px rgba(236, 24, 39, 0.1);
  color: #333 !important;
  background: rgba(255, 255, 255, 0.95);
}

.moto-header__search-input::placeholder {
  color: #888;
}

/* Принудительно устанавливаем цвет текста для всех состояний */
.moto-header__search-input,
.moto-header__search-input:focus,
.moto-header__search-input:active,
.moto-header__search-input:hover {
  color: #333 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.moto-header__search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #ec1827;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.moto-header__search-btn:hover {
  background: #c1101c;
  transform: translateY(-50%) scale(1.1);
}

.moto-header__search-btn i {
  font-size: 14px;
}

/* Контейнер для кнопок */
.moto-header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.moto-header__filters-btn {
  position: relative;
  padding: 12px 25px;
  background: #ec1827;
  font-family: sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 8px;
  height: 44px; /* Фиксированная высота */
  box-sizing: border-box;
}

.moto-header__filters-btn:after,
.moto-header__filters-btn:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 18px;
  background: #ec1827;
  -ms-transform: skewX(-15deg);
  transform: skewX(-15deg);
  transition: all 0.3s ease;
}

.moto-header__filters-btn:hover {
  background: #c1101c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
}

.moto-header__filters-btn:hover:after,
.moto-header__filters-btn:hover:before {
  background: #c1101c;
}

.moto-header__filters-btn i {
  font-size: 16px;
  z-index: 1;
  position: relative;
}

.moto-header__filters-btn span {
  z-index: 1;
  position: relative;
}

/* ===== ССЫЛКА НА КАТАЛОГ ЗАПЧАСТЕЙ ===== */
.moto-header__parts-link {
  position: relative;
  padding: 12px 25px;
  background: #ec1827; /* Зеленый цвет для отличия от кнопки фильтров */
  font-family: sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 8px;
  height: 44px; /* Фиксированная высота */
  box-sizing: border-box;
}

.moto-header__parts-link:hover {
  background: #c1101c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
  text-decoration: none;
  color: #fff;
}

.moto-header__parts-link i {
  font-size: 16px;
}

.moto-header__parts-link span {
  position: relative;
}

/* ===== ГАМБУРГЕР МЕНЮ ===== */
.moto-header__hamburger {
  display: none; /* По умолчанию скрыто */
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 44px; /* Такая же высота как у кнопки фильтров */
  background: #ec1827;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.moto-header__hamburger:hover {
  background: #c1101c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
}

.moto-header__hamburger-line {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Анимация гамбургера при открытии */
.moto-header__hamburger.active .moto-header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.moto-header__hamburger.active .moto-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.moto-header__hamburger.active .moto-header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Показываем гамбургер только на экранах меньше 1200px */
@media (max-width: 1199px) {
  .moto-header__hamburger {
    display: flex;
  }
  
  /* Скрываем кнопку каталога запчастей на мобильных */
  .moto-header__parts-link {
    display: none;
  }
}

/* ===== КОРЗИНА ===== */
.moto-header__cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ec1827;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  height: 44px;
  box-sizing: border-box;
}

.moto-header__cart:hover {
  background: #c1101c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
  text-decoration: none;
  color: white;
}

.moto-header__cart img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.moto-header__cart:hover img {
  transform: scale(1.1);
}

.moto-header__cart-count {
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.moto-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.moto-mobile-menu.active {
  visibility: visible;
  opacity: 1;
}

.moto-mobile-menu__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.moto-mobile-menu__content {
  position: absolute;
  top: 0;
  left: -100%;
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.moto-mobile-menu.active .moto-mobile-menu__content {
  left: 0;
}

.moto-mobile-menu__header {
  background: #ec1827;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.moto-mobile-menu__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

.moto-mobile-menu__close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.moto-mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.moto-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.moto-mobile-menu__item {
  margin: 0;
  padding: 0;
}

.moto-mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.moto-mobile-menu__link:hover {
  background: #f8f9fa;
  color: #ec1827;
  text-decoration: none;
  transform: translateX(5px);
}

.moto-mobile-menu__link--active {
  background: #ec1827;
  color: white;
  border-bottom-color: #c1101c;
}

.moto-mobile-menu__link--active:hover {
  background: #c1101c;
  color: white;
}

.moto-mobile-menu__link i {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.moto-mobile-menu__contacts {
  background: #f8f9fa;
  padding: 20px;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

.moto-mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

.moto-mobile-menu__phone i {
  color: #ec1827;
  font-size: 18px;
}

.moto-mobile-menu__social {
  display: flex;
  gap: 15px;
}

.moto-mobile-menu__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.moto-mobile-menu__social-link:hover {
  border-color: #ec1827;
  color: #ec1827;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.moto-mobile-menu__social-link img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* Адаптивность для мобильного меню */
@media (max-width: 480px) {
  .moto-mobile-menu__content {
    width: 280px;
  }
  
  .moto-mobile-menu__header {
    padding: 15px;
  }
  
  .moto-mobile-menu__title {
    font-size: 18px;
  }
  
  .moto-mobile-menu__nav {
    padding: 15px 0;
  }
  
  .moto-mobile-menu__link {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .moto-mobile-menu__contacts {
    padding: 15px;
  }
  
  .moto-mobile-menu__phone {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .moto-mobile-menu__social {
    gap: 10px;
  }
  
  .moto-mobile-menu__social-link {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Адаптивность для карусели */
  .moto-card__carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .moto-card__carousel-nav {
    bottom: 8px;
  }
  
  .moto-card__carousel-dot {
    width: 6px;
    height: 6px;
  }
  
  .moto-card__back-to-main {
    top: 5px;
    right: 5px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* ===== ОТСТУП ДЛЯ КОНТЕНТА ПОД FIXED HEADER ===== */
.moto-catalog {
  margin-top: 155px; /* 75px (основной header) + 80px (наш header) */
  transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Когда header прилип к верху, уменьшаем отступ */
.moto-header.scrolled ~ .moto-catalog {
  margin-top: 80px; /* Только высота нашего header'а */
}

/* Убираем отступ 75px для экранов меньше 600px */
@media (max-width: 599px) {
  .moto-catalog {
    margin-top: 80px; /* Только высота нашего header'а */
  }
  
  .moto-header.scrolled ~ .moto-catalog {
    margin-top: 80px;
  }
}

/* Адаптивность для экранов меньше 1200px */
@media (max-width: 1199px) {
  .moto-catalog {
    margin-top: 250px; /* 75px + 175px для вертикального расположения */
  }
  
  /* Когда header прилип к верху */
  .moto-header.scrolled ~ .moto-catalog {
    margin-top: 125px; /* Высота нашего header'а в вертикальном режиме */
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .moto-header {
    padding: 12px 0;
  }
  
  .moto-header__container {
    padding: 0 15px;
    gap: 15px;
  }
  
  /* .moto-header__logo img {
    width: 45px;
    height: 45px;
  }
   */
  .moto-header__search {
    order: 3;
    max-width: none;
    width: 100%;
  }
  
  .moto-header__actions {
    order: 2;
    justify-content: center;
    gap: 12px;
  }
  
  .moto-header__filters-btn {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 0.9rem;
    height: 36px;
  }
  
  .moto-header__parts-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    height: 36px;
  }
  
  .moto-header__hamburger {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  
  .moto-header__cart {
    height: 36px;
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  
  .moto-header__cart img {
    width: 16px;
    height: 16px;
  }
  
  .moto-catalog {
    margin-top: 195px; /* 75px + 120px для вертикального расположения */
  }
  
  /* Когда header прилип к верху на мобильных */
  .moto-header.scrolled ~ .moto-catalog {
    margin-top: 70px;
  }
  
  .moto-filters-modal__content {
    width: 95%;
    max-height: 90vh;
  }
  
  .moto-filters-modal__header {
    padding: 15px;
  }
  
  .moto-filters-modal__title {
    font-size: 18px;
  }
  
  .moto-filters-modal__body {
    padding: 15px;
  }
  
  .moto-filters-modal__footer {
    padding: 15px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .moto-header__container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .moto-header__logo {
    justify-content: center;
  }
  
  .moto-header__search {
    order: 3;
  }
  
  .moto-header__actions {
    order: 2;
    justify-content: center;
    gap: 8px;
  }
  
  .moto-header__filters-btn {
    min-width: 100px;
    padding: 6px 12px;
    font-size: 0.85rem;
    height: 36px;
  }
  
  .moto-header__parts-link {
    padding: 6px 12px;
    font-size: 0.85rem;
    height: 36px;
  }
  
  .moto-header__hamburger {
    width: 32px;
    height: 36px;
    padding: 5px;
  }
  
  .moto-header__cart {
    height: 36px;
    padding: 5px 6px;
    font-size: 0.75rem;
  }
  
  .moto-header__cart img {
    width: 14px;
    height: 14px;
  }
  

  .moto-header__hamburger-line {
    height: 2px;
  }
  
  .moto-catalog {
    margin-top: 195px; /* 75px + 120px для вертикального расположения */
  }
  
  /* Когда header прилип к верху на маленьких экранах */
  .moto-header.scrolled ~ .moto-catalog {
    margin-top: 120px;
  }
  
  .moto-filters-modal__content {
    width: 98%;
    margin: 10px;
  }
}

/* ===== МОДАЛЬНОЕ ОКНО ФИЛЬТРОВ ===== */
.moto-filters-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.moto-filters-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.moto-filters-modal__content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.moto-filters-modal__header {
  background: #ec1827;
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moto-filters-modal__title {
  font-size: 20px;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  margin: 0;
}

.moto-filters-modal__close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.moto-filters-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.moto-filters-modal__body {
  padding: 20px;
}

.moto-filters-modal__section {
  margin-bottom: 25px;
}

.moto-filters-modal__section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-family: "Open Sans", sans-serif;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.moto-filters-modal__filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.moto-filters-modal__filter {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.moto-filters-modal__filter:hover {
  background: #e9ecef;
  border-color: #ec1827;
  color: #ec1827;
  text-decoration: none;
  transform: translateX(5px);
}

.moto-filters-modal__filter.active {
  background: #ec1827;
  border-color: #ec1827;
  color: white;
  box-shadow: 0 4px 15px rgba(236, 24, 39, 0.3);
}

.moto-filters-modal__footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.moto-filters-modal__btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.moto-filters-modal__btn--apply {
  background: linear-gradient(135deg, #ec1827 0%, #c1101c 100%);
  color: white;
  box-shadow: 
    0 10px 30px rgba(236, 24, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.moto-filters-modal__btn--apply::before {
  content: '';
  position: absolute;
  height: 250%;
  width: 40px;
  top: 0;
  left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg) translateY(-35%);
  animation: shine 3s ease infinite;
}

.moto-filters-modal__btn--apply:hover {
  background: linear-gradient(135deg, #c1101c 0%, #a93226 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(236, 24, 39, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.moto-filters-modal__btn--cancel {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  border: 2px solid #e9ecef;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.moto-filters-modal__btn--cancel::before {
  content: '';
  position: absolute;
  height: 250%;
  width: 40px;
  top: 0;
  left: -60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg) translateY(-35%);
  animation: shine 3s ease infinite;
}

.moto-filters-modal__btn--cancel:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #dee2e6;
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ===== УЛУЧШЕННЫЕ УВЕДОМЛЕНИЯ ===== */

/* Контейнер для уведомлений */
.moto-notifications-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Основные стили уведомления */
.moto-notification {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 380px;
  min-width: 280px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
}

/* Анимация появления */
.moto-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Анимация исчезновения */
.moto-notification.hide {
  transform: translateX(-100%);
  opacity: 0;
}

/* Иконка уведомления */
.moto-notification__icon {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: bold;
}

/* Контент уведомления */
.moto-notification__content {
  margin-left: 40px;
  padding-right: 30px;
}

/* Заголовок уведомления */
.moto-notification__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Текст уведомления */
.moto-notification__message {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  color: #666;
}

/* Кнопка закрытия */
.moto-notification__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.moto-notification__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #666;
  opacity: 1;
  transform: scale(1.1);
}

/* Прогресс-бар */
.moto-notification__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.moto-notification__progress-bar {
  height: 100%;
  border-radius: 0 0 16px 16px;
  transition: width 0.1s linear;
}

/* Типы уведомлений */

/* Успех */
.moto-notification--success {
  border-left: 4px solid #4CAF50;
}

.moto-notification--success .moto-notification__icon {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.moto-notification--success .moto-notification__title {
  color: #2E7D32;
}

.moto-notification--success .moto-notification__progress-bar {
  background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

/* Ошибка */
.moto-notification--error {
  border-left: 4px solid #f44336;
}

.moto-notification--error .moto-notification__icon {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.moto-notification--error .moto-notification__title {
  color: #C62828;
}

.moto-notification--error .moto-notification__progress-bar {
  background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
}



/* Анимации для иконок */
.moto-notification--success .moto-notification__icon {
  animation: successPulse 0.6s ease-out;
}

.moto-notification--error .moto-notification__icon {
  animation: errorShake 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Эффект свечения для успешных уведомлений */
.moto-notification--success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(76, 175, 80, 0.1) 50%, transparent 70%);
  animation: successShimmer 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes successShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
  .moto-notifications-container {
    bottom: 15px;
    left: 15px;
    right: 15px;
    gap: 10px;
  }
  
  .moto-notification {
    max-width: none;
    min-width: auto;
    padding: 14px 18px;
    border-radius: 12px;
  }
  
  .moto-notification__icon {
    top: 14px;
    left: 18px;
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  
  .moto-notification__content {
    margin-left: 35px;
    padding-right: 25px;
  }
  
  .moto-notification__title {
    font-size: 13px;
  }
  
  .moto-notification__message {
    font-size: 12px;
  }
  
  .moto-notification__close {
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .moto-notifications-container {
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
  }
  
  .moto-notification {
    padding: 12px 16px;
    border-radius: 10px;
  }
  
  .moto-notification__icon {
    top: 12px;
    left: 16px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  
  .moto-notification__content {
    margin-left: 32px;
    padding-right: 22px;
  }
  
  .moto-notification__title {
    font-size: 12px;
  }
  
  .moto-notification__message {
    font-size: 11px;
  }
  
  .moto-notification__close {
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    font-size: 12px;
  }
}

/* Анимация появления для новых уведомлений */
.moto-notification {
  animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes notificationSlideIn {
  from {
    transform: translateX(-100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Эффект при наведении */
.moto-notification:hover {
  transform: translateX(0) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Состояние загрузки для уведомлений */
.moto-notification--loading {
  border-left: 4px solid #9e9e9e;
}

.moto-notification--loading .moto-notification__icon {
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
  animation: spin 1s linear infinite;
}

.moto-notification--loading .moto-notification__icon::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.moto-notification--loading .moto-notification__title {
  color: #616161;
}

.moto-notification--loading .moto-notification__progress-bar {
  background: linear-gradient(90deg, #9e9e9e 0%, #757575 100%);
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Скрываем .moto-detail-gallery__main на экранах меньше 1200px */
@media (max-width: 1199px) {
  .nav__mob-button {
    display: none;
  }
}

@media (max-width: 768px) {
  .moto-detail-page {
      margin-top: 200px;
  }
}