/* ==== shop.css: стили раздела Магазин ==== */

/* 1) Селектор серверов */
.server-selector {
  text-align: center;
  margin: 20px 0;
  position: relative;
  z-index: 1000;
}
.server-selector a {
  display: inline-block;
  margin: 0 8px;
}
.server-selector img {
  width: 140px; /* подгони под свои .png */
  height: auto;
  cursor: pointer;
}

/* 2) Заголовок */
.shop-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* 3) Сетка товаров */
.items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* 4) Карточка товара */
.shop-item {
  position: relative;
  width: 200px;  /* подгони под размер item-card.png */
  height: 320px; /* подгони под размер item-card.png */
  display: none;
}
.shop-item.active {
  display: block;
}

/* фон карточки */
.item-card {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../images/item-card.png') no-repeat center top;
  background-size: contain;
  z-index: 0;
}

/* контент поверх фона */
.item-name,
.item-icon,
.item-unit,
.item-price,
.btn-buy {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

/* название */
.item-name {
  margin-top: 30px; /* отступ до таблички */
  font-size: 18px;
  font-weight: bold;
  color: #E0B341;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* иконка */
.item-icon img {
  width: 64px;
  height: 64px;
  margin: 10px 0;
}

/* юнит */
.item-unit {
  font-size: 14px;
  color: #576E6F;
  margin-bottom: 10px;
}

/* цена */
.item-price {
  background: url('../images/body-bot-bg.jpg') repeat-x;
  padding: 8px 0;
  margin: 0 -10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-price img {
  width: 20px;
  margin-right: 6px;
}
.item-price span {
  font-size: 18px;
  font-weight: bold;
  color: #E0B341;
}

/* кнопка */
.btn-buy {
  background: url('../images/kupit.png') no-repeat center;
  border: none;
  width: 100px;
  height: 30px;
  margin: 0 auto;
  cursor: pointer;
}

/* 5) Скрывать все .shop-item, кроме активного */
.shop-item[data-server="classic"] { display: block; } /* Classic по-умолчанию */

/* 6) Если не нужна библиотека bxslider под магазин — можете игнорировать */
.bx-wrapper,
.slider-container {
  z-index: 1;
}
