@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}
main .container {
  padding-bottom: 2rem;
}

.carousel-container {
  position: relative;
}
.carousel-inner .carousel-item > div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.carousel-item .card {
  width: 100%;
  max-width: 300px;
}
.futuristic-img {
  height: 220px;
  object-fit: contain;
  border-radius: 1rem;
  transition: transform 0.4s ease;
  background: transparent; /* Убирает белый фон */
}

/* Стрелки */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  width: auto;
  height: auto;
}
.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
}
.carousel-control-prev-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}
.carousel-control-next-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}


.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.card-img-top {
  max-height: 180px;
  object-fit: contain;
  background-color: #f8f9fa;
  border-radius: 1rem;
}
.card-body h6 {
  font-size: 1rem;
}
.card-body .btn {
  font-size: 0.875rem;
}
.badge-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #e0ad2b;
  color: white;
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 0.5rem;
  z-index: 1;
}

/* Заголовок Tech Solutions в стиле золотого металла */
h1.display-5 {
  color: #e0ad2b;
  text-shadow: 0 0 3px rgba(224,173,43,0.4);
}

/* --- Актуальные аукционы --- */

/* Обертка карточки */
.neon-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.neon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.2);
}

/* Стеклянный эффект */
.glass-effect {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.1);
}

/* Картинка внутри карточки */
.futuristic-img {
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.card:hover .futuristic-img {
  transform: scale(1.07);
}

/* Заголовок и шрифт */
.futuristic-font {
  font-family: 'Orbitron', sans-serif;
  color: #00ffff;
  letter-spacing: 0.5px;
}

/* Неоновая кнопка */
.neon-btn {
  border: 1px solid #00ffff;
  color: #00ffff;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.neon-btn:hover {
  background-color: #00ffff;
  color: #000;
  box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
}

/* Плашка "Аукцион" */
.stock-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(6px);
  background: linear-gradient(135deg, #00ffa2, #00c2ff);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
}

/* Карусель */
.carousel-container {
  position: relative;
}

.carousel-inner .carousel-item > div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel-item .card {
  width: 100%;
  max-width: 300px;
  min-width: 280px;
}

/* Кастомные стрелки карусели */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  width: auto;
  height: auto;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
}

.carousel-control-prev-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='cyan' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='cyan' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.card-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
  background: none;
}

.futuristic-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  transition: transform 0.4s ease;
  display: block;
}

.card:hover .futuristic-img {
  transform: scale(1.07);
}

.neon-empty-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
  margin-top: 1rem;
}

.neon-empty-block p {
  margin: 0;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
}

footer {
  position: relative; /* чтобы z-index применился */
  z-index: 1050; /* больше, чем у элементов карусели */
}



/* --- Фикс адаптивной карусели --- */

/* 1. Главная обертка карточек в слайде */
.carousel-inner .carousel-item > div {
  /* Принудительно запрещаем перенос, даже если он где-то 
    остался в другом CSS файле.
  */
  flex-wrap: nowrap !important; 
  justify-content: center; /* Центрируем группу карточек */
}

/* 2. Сами карточки не должны сжиматься */
.carousel-item .card {
  flex-shrink: 0;
  /* Твои стили min-width/max-width здесь работают отлично */
}

/* 3. Адаптивность для мобильных (экраны до 768px) */
@media (max-width: 767.98px) {
  /* На мобильных мы хотим видеть ТОЛЬКО 1 карточку.
    Выбираем 2-ю, 3-ю (и т.д.) карточку в группе и скрываем их.
  */
  .carousel-inner .carousel-item > div .card:nth-child(n+2) {
    display: none;
  }
  
  /* justify-content: center из пункта 1 
    автоматически отцентрирует единственную видимую карточку.
  */
}

/* На десктопе (min-width: 768px) медиа-запрос выше не сработает,
  поэтому все карточки будут видны по умолчанию. Это то, что нам нужно.
*/
