.spc-catalog {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 20px;
  background: #000000;
  min-height: 100vh;
  color: #ffffff;
  position: relative;
  box-sizing: border-box;
}

.spc-catalog-header {
  text-align: center;
  margin-bottom: 50px;
}

.spc-catalog .spc-catalog-title {
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* Дополнительные стили для переопределения темы */
.spc-catalog h1.spc-catalog-title,
.spc-catalog .spc-catalog-title h1,
.spc-catalog .spc-catalog-header h1,
#spare-parts-catalog h1,
#spare-parts-catalog .spc-catalog-title,
.spc-catalog-header .spc-catalog-title,
body .spc-catalog h1,
body .spc-catalog .spc-catalog-title,
body #spare-parts-catalog h1,
body #spare-parts-catalog .spc-catalog-title {
  color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

.spc-catalog-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-bottom: 30px;
}

/* Контейнер для контента каталога */
.spc-catalog-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Переопределение стилей темы для полного контроля */
body .spc-catalog {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  position: relative !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

body .spc-catalog .spc-catalog-content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.spc-catalog::before {
  display: none;
}

@keyframes backgroundShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.spc-search-form {
  margin-bottom: 40px;
  text-align: center;
}

.spc-search-wrapper {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: stretch; /* Выравниваем элементы по высоте */
}

.spc-search-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  min-height: 50px; /* Фиксированная высота */
  box-sizing: border-box;
  line-height: 1.4;
}

.spc-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.spc-search-input:focus {
  background: rgba(255, 255, 255, 0.05);
}

.spc-search-button {
  padding: 15px 25px;
  background: linear-gradient(135deg, #5a8fce 0%, #4a7bb8 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-height: 50px; /* Такая же высота как у input */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spc-search-button:hover {
  background: linear-gradient(135deg, #4e7bb8 0%, #3d6ba0 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(90, 143, 206, 0.3);
}

.spc-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.spc-part-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  color: #ffffff;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  position: relative;
  min-height: 400px;
}

.spc-part-card:nth-child(1) {
  animation-delay: 0.1s;
}
.spc-part-card:nth-child(2) {
  animation-delay: 0.2s;
}
.spc-part-card:nth-child(3) {
  animation-delay: 0.3s;
}
.spc-part-card:nth-child(4) {
  animation-delay: 0.4s;
}
.spc-part-card:nth-child(5) {
  animation-delay: 0.5s;
}
.spc-part-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spc-part-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(90, 143, 206, 0.15);
  border-color: rgba(90, 143, 206, 0.25);
}

.spc-part-images {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.1) 0%,
    rgba(0, 201, 255, 0.1) 100%
  );
}

.spc-part-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spc-part-card:hover .spc-part-main-image {
  transform: scale(1.05);
}

.spc-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  background: linear-gradient(
    135deg,
    rgba(79, 172, 254, 0.2) 0%,
    rgba(0, 201, 255, 0.2) 100%
  );
}

.spc-part-thumbnails {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.spc-part-thumb {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.spc-part-thumb:hover {
  transform: scale(1.05);
  border-color: #6a9bd1;
}

.spc-part-info {
  padding: 25px;
}

.spc-part-title {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.spc-part-card .spc-part-article-corner {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  background: linear-gradient(135deg, #5a8fce 0%, #4a7bb8 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  font-family: "Courier New", monospace;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(90, 143, 206, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

/* Стили для копируемого артикула */
.spc-copyable-article {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spc-copyable-article:hover {
  background: linear-gradient(135deg, #4e7bb8 0%, #3d6ba0 100%);
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(90, 143, 206, 0.3);
}

.spc-copy-icon {
  font-size: 10px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.spc-copyable-article:hover .spc-copy-icon {
  opacity: 1;
}

/* Уведомление о копировании */
.spc-copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  font-weight: 500;
}

.spc-copy-notification.hide {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.spc-part-meta {
  margin-bottom: 20px;
}

.spc-part-price {
  margin-bottom: 12px;
}

.spc-part-price strong {
  color: #6a9bd1;
  font-size: 19px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(106, 155, 209, 0.2);
}

.spc-part-condition {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spc-condition-label {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 8px;
  font-weight: 500;
}

.spc-condition-value {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spc-condition-value.new {
  background: linear-gradient(135deg, #00c9a7 0%, #00b894 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.spc-condition-value.used {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.spc-part-defects {
  margin-bottom: 12px;
  background: rgba(231, 76, 60, 0.1);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.spc-defects-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.spc-defects-text {
  color: #ff6b6b;
  font-size: 13px;
  line-height: 1.5;
}

.spc-part-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}

.spc-no-results {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0;
}

.spc-no-results p {
  font-size: 18px;
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.8);
}

.spc-pagination {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.spc-pagination .page-numbers {
  display: inline-block;
  padding: 12px 18px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.spc-pagination .page-numbers.current {
  background: linear-gradient(135deg, #5a8fce 0%, #4a7bb8 100%);
  color: white;
  border-color: rgba(90, 143, 206, 0.4);
  box-shadow: 0 2px 8px rgba(90, 143, 206, 0.2);
}

.spc-pagination .page-numbers:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .spc-catalog {
    padding: 15px;
  }

  .spc-parts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spc-search-wrapper {
    flex-direction: column;
    border-radius: 10px;
    align-items: stretch;
  }

  .spc-search-input {
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 45px; /* Немного меньше на мобильных */
  }

  .spc-search-button {
    border-radius: 0 0 10px 10px;
    border-top: none;
    min-height: 45px; /* Соответствует input */
  }

  .spc-part-info {
    padding: 20px;
  }

  body .spc-catalog .spc-catalog-content {
    padding: 30px 15px;
  }

  .spc-pagination .page-numbers {
    padding: 10px 14px;
    margin: 0 3px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .spc-catalog {
    padding: 10px;
  }

  .spc-part-info {
    padding: 15px;
  }

  .spc-part-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .spc-part-images {
    height: 180px;
  }

  .spc-search-input {
    padding: 12px 15px;
    font-size: 16px;
  }

  .spc-search-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .spc-part-card .spc-part-article-corner {
    bottom: 8px !important;
    right: 8px !important;
    font-size: 10px;
    padding: 4px 8px;
  }

  .spc-copy-icon {
    font-size: 8px;
  }

  .spc-copy-notification {
    top: 10px;
    right: 10px;
    padding: 10px 16px;
    font-size: 14px;
  }

  body .spc-catalog .spc-catalog-content {
    padding: 20px 10px;
  }
}

/* ВАЖНО: Принудительное переопределение стилей заголовка */
html body .spc-catalog h1,
html body .spc-catalog .spc-catalog-title,
html body #spare-parts-catalog h1,
html body #spare-parts-catalog .spc-catalog-title,
html body .spc-catalog-header h1,
html body .spc-catalog-header .spc-catalog-title {
  color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
}

/* ВАЖНО: Принудительно черный фон */
html body .spc-catalog {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}


/* ===== СТИЛИ ДЛЯ ОТДЕЛЬНОЙ СТРАНИЦЫ ТОВАРА ===== */

/* Основной контейнер страницы товара */
.spc-single-part {
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  padding: 40px 20px;
}

.spc-single-part .entry-header {
  text-align: center;
  margin-bottom: 40px;
}

.spc-single-part .entry-title {
  color: #ffffff !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.spc-breadcrumb {
  margin-bottom: 20px;
}

.spc-breadcrumb a {
  color: #6a9bd1;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.spc-breadcrumb a:hover {
  color: #ffffff;
}

/* Контейнер для содержимого страницы товара */
.spc-single-part-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Галерея изображений */
.spc-single-part-gallery {
  position: sticky;
  top: 20px;
}

.spc-gallery-main {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spc-main-image-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.spc-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: none;
}

.spc-main-image.active {
  display: block;
}

.spc-main-image:hover {
  transform: scale(1.05);
}

.spc-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.spc-gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.spc-gallery-prev {
  left: 15px;
}

.spc-gallery-next {
  right: 15px;
}

.spc-gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

.spc-gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.spc-gallery-thumb.active {
  border-color: #6a9bd1;
  transform: scale(1.05);
}

.spc-gallery-thumb:hover {
  border-color: rgba(106, 155, 209, 0.7);
  transform: scale(1.05);
}

.spc-no-image-large {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 201, 255, 0.2) 100%);
}

/* Информация о товаре */
.spc-single-part-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spc-part-main-info {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.spc-part-price-large {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 18px;
}

.spc-price-label {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 15px;
  font-weight: 500;
}

.spc-price-value {
  color: #6a9bd1;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(106, 155, 209, 0.3);
}

.spc-part-article-large {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.spc-article-label {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 15px;
  font-weight: 500;
}

.spc-article-value {
  background: linear-gradient(135deg, #5a8fce 0%, #4a7bb8 100%);
  color: white;
  font-family: "Courier New", monospace;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(90, 143, 206, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spc-part-condition-large {
  display: flex;
  align-items: center;
  font-size: 16px;
}

.spc-condition-label {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 15px;
  font-weight: 500;
}

.spc-part-description-large h3,
.spc-part-defects-large h3,
.spc-contact-info h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.spc-description-content,
.spc-defects-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 16px;
}

.spc-part-defects-large {
  background: rgba(231, 76, 60, 0.1);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(231, 76, 60, 0.2);
  margin-bottom: 30px;
}

.spc-defects-content {
  color: #ff6b6b;
}

.spc-contact-info {
  background: rgba(76, 175, 80, 0.1);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  margin-top: 30px;
}

/* Модальное окно для просмотра изображений */
.spc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.spc-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#spc-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.spc-modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.spc-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.spc-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 20px;
}

.spc-modal-nav-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.spc-modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

#spc-modal-prev {
  left: -80px;
}

#spc-modal-next {
  right: -80px;
}

body.spc-modal-open {
  overflow: hidden;
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ КАРТОЧЕК В КАТАЛОГЕ ===== */

/* Уменьшаем размер карточек в каталоге */
.spc-parts-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.spc-part-card {
  min-height: 350px;
}

.spc-part-images {
  height: 180px;
}

.spc-part-info {
  padding: 20px;
  padding-bottom: 50px; /* Добавляем отступ снизу для артикула */
}

/* Исправляем позиционирование артикула */
.spc-part-card .spc-part-article-corner {
  position: absolute !important;
  bottom: 15px !important;
  right: 15px !important;
  z-index: 10;
  max-width: calc(100% - 30px);
  word-break: break-all;
}

/* Добавляем стили для ссылки карточки */
.spc-part-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: calc(100% - 50px); /* Оставляем место для артикула */
}

.spc-part-card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* Индикатор количества фото */
.spc-image-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Адаптивность для отдельной страницы товара */
@media (max-width: 768px) {
  .spc-single-part-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .spc-single-part-info {
    padding: 30px 20px;
  }
  
  .spc-main-image-container {
    height: 300px;
  }
  
  .spc-gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .spc-gallery-prev {
    left: 10px;
  }
  
  .spc-gallery-next {
    right: 10px;
  }
  
  .spc-modal-close {
    top: -30px;
    right: -30px;
    width: 30px;
    height: 30px;
    font-size: 24px;
  }
  
  .spc-modal-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  #spc-modal-prev {
    left: -60px;
  }
  
  #spc-modal-next {
    right: -60px;
  }
}

@media (max-width: 480px) {
  .spc-single-part {
    padding: 20px 10px;
  }
  
  .spc-single-part .entry-title {
    font-size: 1.8rem !important;
  }
  
  .spc-single-part-info {
    padding: 20px 15px;
  }
  
  .spc-main-image-container {
    height: 250px;
  }
  
  .spc-gallery-thumbnails {
    padding: 10px;
  }
  
  .spc-gallery-thumb {
    width: 60px;
    height: 60px;
  }
  
  .spc-price-value {
    font-size: 24px;
  }
  
  .spc-modal-close {
    top: 10px;
    right: 10px;
  }
  
  #spc-modal-prev {
    left: 10px;
  }
  
  #spc-modal-next {
    right: 10px;
  }
}


/* Кнопка поделиться */
.spc-share-button {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #5a8fce 0%, #4a7bb8 100%);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(90, 143, 206, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.spc-share-button:hover {
  background: linear-gradient(135deg, #4e7bb8 0%, #3d6ba0 100%);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(90, 143, 206, 0.4);
}

.spc-share-icon {
  font-size: 16px;
  line-height: 1;
}

/* Стили для модального окна карточки */
.spc-part-modal-content {
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.spc-modal-part-details {
  padding: 30px;
  color: #ffffff;
}

.spc-modal-part-header {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.spc-modal-part-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.spc-modal-part-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Галерея в модальном окне */
.spc-modal-part-gallery {
  position: relative;
}

.spc-modal-gallery-main {
  position: relative;
}

.spc-modal-main-image-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 201, 255, 0.1) 100%);
}

.spc-modal-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.spc-modal-main-image.active {
  opacity: 1;
}

.spc-modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.spc-modal-gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.spc-modal-gallery-prev {
  left: 15px;
}

.spc-modal-gallery-next {
  right: 15px;
}

.spc-modal-gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.spc-modal-gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.spc-modal-gallery-thumb.active,
.spc-modal-gallery-thumb:hover {
  border-color: #6a9bd1;
  opacity: 1;
  transform: scale(1.05);
}

.spc-modal-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 201, 255, 0.2) 100%);
  border-radius: 10px;
}

/* Информация в модальном окне */
.spc-modal-part-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.spc-modal-part-main-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spc-modal-part-price {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spc-modal-price-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.spc-modal-price-value {
  color: #6a9bd1;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(106, 155, 209, 0.2);
}

.spc-modal-part-article {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spc-modal-article-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.spc-modal-article-value {
  background: linear-gradient(135deg, #5a8fce 0%, #4a7bb8 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.spc-modal-part-condition {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spc-modal-condition-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.spc-modal-condition-value {
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spc-modal-part-description,
.spc-modal-part-defects,
.spc-modal-contact-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spc-modal-part-description h3,
.spc-modal-part-defects h3,
.spc-modal-contact-info h3 {
  margin: 0 0 15px 0;
  color: #6a9bd1;
  font-size: 18px;
  font-weight: 600;
}

.spc-modal-description-content,
.spc-modal-defects-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.spc-modal-part-defects {
  border-color: rgba(231, 76, 60, 0.2);
  background: rgba(231, 76, 60, 0.05);
}

.spc-modal-part-defects h3 {
  color: #ff6b6b;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
  .spc-modal-part-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .spc-modal-main-image-container {
    height: 300px;
  }
  
  .spc-part-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .spc-modal-part-details {
    padding: 20px;
  }
}

/* Стили для модального окна изображений */
.spc-image-modal {
  z-index: 10001;
}

.spc-image-modal-content {
  max-width: 90%;
  max-height: 90%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.spc-image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.spc-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.spc-modal-nav-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.spc-modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.spc-image-modal .spc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.spc-image-modal .spc-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

