/* Стили для контейнера переключателя разделов магазина */
.js-store-parts-select-container {
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

/* Контейнер для кнопок - десктоп */
.t-store__parts-switch-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
  max-width: 100% !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Стили для отдельных кнопок-разделов */
.t-store__parts-switch-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 12px 24px !important;
  background: transparent !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  color: #380006 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  -webkit-transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  font-family: 'Georgia', 'Times New Roman', serif !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 15px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: rgba(56, 0, 6, 0.1) !important;
}

/* Элегантный эффект при наведении */
.t-store__parts-switch-btn:hover {
  background: rgba(56, 0, 6, 0.05) !important;
  transform: translateY(-1px) !important;
  -webkit-transform: translateY(-1px) !important;
  border-color: rgba(56, 0, 6, 0.1) !important;
}

/* Стили для активной кнопки */
.t-store__parts-switch-btn.t-active {
  background: #380006 !important;
  color: #fff !important;
  border-color: #380006 !important;
  transform: translateY(-1px) !important;
  -webkit-transform: translateY(-1px) !important;
}

.t-store__parts-switch-btn.t-active:hover {
  background: #2a0005 !important;
  border-color: #2a0005 !important;
  transform: translateY(-1px) !important;
  -webkit-transform: translateY(-1px) !important;
}

/* Изящный декоративный элемент для активной кнопки */
.t-store__parts-switch-btn.t-active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  -webkit-transform: translateX(-50%) !important;
  width: 30px !important;
  height: 2px !important;
  background: #fff !important;
  border-radius: 1px !important;
}

/* МОБИЛЬНАЯ ВЕРСИЯ - АККОРДЕОН */
@media (max-width: 767px) {
  .js-store-parts-select-container {
    margin-bottom: 20px;
    padding: 0 15px !important;
  }
  
  .t-store__parts-switch-wrapper {
    display: block !important;
    background: rgba(248, 246, 242, 0.5) !important;
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
    padding: 0 !important;
    border: 1px solid #e8e3d9 !important;
    overflow: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .t-store__parts-switch-btn {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #e8e3d9 !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    -webkit-transition: all 0.3s ease !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
  
  /* Убираем нижнюю границу у последнего элемента */
  .t-store__parts-switch-btn:last-child {
    border-bottom: none !important;
  }
  
  /* Эффект при наведении на мобильных */
  .t-store__parts-switch-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: none !important;
    -webkit-transform: none !important;
    padding-left: 25px !important;
  }
  
  /* Активная кнопка в аккордеоне */
  .t-store__parts-switch-btn.t-active {
    background: #380006 !important;
    color: #fff !important;
    padding-left: 25px !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
  
  /* Индикатор активной кнопки в аккордеоне */
  .t-store__parts-switch-btn.t-active::before {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    width: 4px !important;
    height: 20px !important;
    background: #fff !important;
    border-radius: 2px !important;
    -webkit-border-radius: 2px !important;
  }
  
  .t-store__parts-switch-btn.t-active::after {
    display: none !important;
  }
  
  /* Анимация появления для аккордеона */
  .t-store__parts-switch-btn {
    animation: slideInFromLeft 0.4s ease forwards;
    -webkit-animation: slideInFromLeft 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
    -webkit-transform: translateX(-10px);
  }
  
  @keyframes slideInFromLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @-webkit-keyframes slideInFromLeft {
    to {
      opacity: 1;
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }
  }
  
  /* Задержки для анимации */
  .t-store__parts-switch-btn:nth-child(1) { 
    animation-delay: 0.1s;
    -webkit-animation-delay: 0.1s;
  }
  .t-store__parts-switch-btn:nth-child(2) { 
    animation-delay: 0.15s;
    -webkit-animation-delay: 0.15s;
  }
  .t-store__parts-switch-btn:nth-child(3) { 
    animation-delay: 0.2s;
    -webkit-animation-delay: 0.2s;
  }
  .t-store__parts-switch-btn:nth-child(4) { 
    animation-delay: 0.25s;
    -webkit-animation-delay: 0.25s;
  }
  .t-store__parts-switch-btn:nth-child(5) { 
    animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
  }
}

/* Планшетная версия */
@media (min-width: 768px) and (max-width: 1023px) {
  .js-store-parts-select-container {
    padding: 0 20px !important;
  }
  
  .t-store__parts-switch-wrapper {
    gap: 6px !important;
    padding: 12px 0 !important;
  }
  
  .t-store__parts-switch-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* Десктопная версия */
@media (min-width: 1024px) {
  .t-store__parts-switch-wrapper {
    gap: 10px !important;
    padding: 15px 0 !important;
  }
  
  .t-store__parts-switch-btn {
    padding: 12px 28px !important;
    font-size: 15px !important;
  }
}

/* Для очень больших экранов */
@media (min-width: 1200px) {
  .js-store-parts-select-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Дополнительные исправления для Safari */
@supports (-webkit-touch-callout: none) {
  .t-store__parts-switch-btn {
    -webkit-touch-callout: none;
  }
}

/* Исправление для старых версий Safari */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .t-store__parts-switch-btn {
      -webkit-appearance: none;
    }
  }
}