* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
  background-color: #000000;
  border-bottom: 2px solid #FF8C00;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: bold;
  color: #FF8C00;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.navbar-brand span {
  color: #ffffff;
}

.navbar-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.navbar-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 13px;
}

.navbar-menu a:hover {
  color: #FF8C00;
  background-color: rgba(255, 140, 0, 0.1);
}

.navbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.navbar-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.navbar-right a:hover {
  color: #FF8C00;
}

/* ==================== HEADER ==================== */
.header {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 2px solid #FF8C00;
}

.header-title {
  font-size: 48px;
  font-weight: bold;
  color: #FF8C00;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.header-subtitle {
  color: #cccccc;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== FILTERS ==================== */
.filters-section {
  background-color: #111111;
  padding: 20px;
  margin: 20px;
  border: 1px solid #222222;
  border-radius: 8px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-group label {
  color: #FF8C00;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.filter-group select {
  padding: 10px 15px;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #333333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-group select:hover {
  border-color: #FF8C00;
}

.sort-button {
  padding: 10px 20px;
  background-color: #FF8C00;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.sort-button:hover {
  background-color: #FFA500;
}

/* ==================== GAMES GRID ==================== */
.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.game-card {
  background-color: #111111;
  border: 2px solid #222222;
  border-radius: 8px;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: #FF8C00;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
}

.game-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: #000000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #000000;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #FF4444;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-info {
  padding: 15px;
}

.game-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 45px;
  text-align: center;
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
  letter-spacing: 0.5px;
}
.game-price {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.price-current {
  font-size: 20px;
  color: #FF8C00;
  font-weight: bold;
}

.price-original {
  font-size: 14px;
  color: #888888;
  text-decoration: line-through;
}

.game-buttons {
  display: flex;
  gap: 8px;
}

.btn-add-cart {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 50%, #FF6B00 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 2px solid #FF8C00;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  animation: buttonGlow 2s ease-in-out infinite;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FFA500 50%, #FF8C00 100%);
  background-size: 200% 200%;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  animation: buttonGlow 0.5s ease-in-out;
}

.btn-details {
  padding: 10px 15px;
  background-color: #FF8C00;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-details:hover {
  background-color: #FFA500;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal.active {
  display: block;
}

.modal-content {
  background-color: #111111;
  margin: 20px auto;
  padding: 0;
  border: 2px solid #FF8C00;
  border-radius: 8px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  background-color: #000000;
  padding: 20px;
  border-bottom: 2px solid #FF8C00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  color: #FF8C00;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #FFA500;
}

.modal-body {
  padding: 30px;
}

.product-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.product-image {
  width: 100%;
  max-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-title {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.product-price {
  font-size: 32px;
  color: #FF8C00;
  font-weight: bold;
  margin-bottom: 20px;
}

.product-description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-buy {
  padding: 15px 30px;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 50%, #FF6B00 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 2px solid #FF8C00;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 20px;
  animation: buttonGlow 2s ease-in-out infinite;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FFA500 50%, #FF8C00 100%);
  background-size: 200% 200%;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
  animation: buttonGlow 0.5s ease-in-out;
}

/* ==================== SPECS ==================== */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  background-color: #000000;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #222222;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  color: #FF8C00;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.spec-value {
  color: #ffffff;
  font-size: 14px;
}

/* ==================== SYSTEM REQUIREMENTS ==================== */
.system-requirements {
  background-color: #000000;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #222222;
  margin-bottom: 30px;
}

.system-requirements h3 {
  color: #FF8C00;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 2px solid #FF8C00;
  padding-bottom: 10px;
}

.requirement-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #222222;
  color: #cccccc;
  font-size: 13px;
}

.requirement-item:last-child {
  border-bottom: none;
}

/* ==================== INFO SECTIONS ==================== */
.info-section {
  background-color: #000000;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #222222;
  margin-bottom: 20px;
}

.info-section h3 {
  color: #FF8C00;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 2px solid #FF8C00;
  padding-bottom: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background-color: rgba(255, 140, 0, 0.1);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 18px;
  min-width: 25px;
  flex-shrink: 0;
}

.info-text {
  color: #cccccc;
  font-size: 13px;
  line-height: 1.5;
}

.pros .info-item {
  border-left: 3px solid #00FF00;
}

.pros .info-icon {
  color: #00FF00;
}

.cons .info-item {
  border-left: 3px solid #FF4444;
}

.cons .info-icon {
  color: #FF4444;
}

.warnings .info-item {
  border-left: 3px solid #FFAA00;
}

.warnings .info-icon {
  color: #FFAA00;
}

/* ==================== CART ==================== */
.cart-sidebar {
  position: fixed;
  right: 0; /* Прибиваем вправо навсегда */
  transform: translateX(100%); /* Прячем за правый край экрана */
  top: 0;
  width: 400px;
  height: 100vh;
  background-color: #111111;
  border-left: 2px solid #FF8C00;
  z-index: 999;
  transition: transform 0.3s ease; /* Плавно выезжаем через transform */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  transform: translateX(0); /* Возвращаем корзину на место */
}

.cart-header {
  background-color: #000000;
  padding: 20px;
  border-bottom: 2px solid #FF8C00;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 18px;
  font-weight: bold;
  color: #FF8C00;
}

.cart-close {
  font-size: 24px;
  cursor: pointer;
  color: #FF8C00;
  transition: all 0.3s ease;
}

.cart-close:hover {
  color: #FFA500;
}

.cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-item {
  background-color: #000000;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #222222;
}

.cart-item-name {
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 8px;
}

.cart-item-price {
  color: #FF8C00;
  font-size: 14px;
  margin-bottom: 10px;
}

.cart-item-remove {
  background-color: #FF4444;
  color: #ffffff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  background-color: #DD0000;
}

.cart-footer {
  background-color: #000000;
  padding: 20px;
  border-top: 2px solid #FF8C00;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.cart-total-price {
  color: #FF8C00;
  font-weight: bold;
  font-size: 20px;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 50%, #FF6B00 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 2px solid #FF8C00;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  animation: buttonGlow 2s ease-in-out infinite;
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FFA500 50%, #FF8C00 100%);
  background-size: 200% 200%;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
  animation: buttonGlow 0.5s ease-in-out;
}

/* ==================== RESPONSIVE ==================== */
/* ==================== ANIMATIONS ==================== */
@keyframes buttonGlow {
  0% {
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .navbar-menu {
    display: none;
  }

  .search-container {
    width: 100%;
    flex: 1;
  }

  .header-title {
    font-size: 32px;
  }

  .games-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .product-header {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    width: 100%;
    right: 0;
    transform: translateX(100%);
  }
}

/* Анимация казино */
@keyframes slotFlip {
  0% { 
    background-color: #111111;
    border-color: #222222;
    color: #fff;
  }
  50% {
    background-color: #FF8C00;
    border-color: #FF8C00;
    color: #000000;
  }
  100% {
    background-color: #111111;
    border-color: #222222;
    color: #fff;
  }
}

@keyframes slotWin {
  0% {
    background-color: #111111;
    border-color: #222222;
    color: #fff;
    transform: scale(1);
  }
  50% {
    background-color: #00FF00;
    border-color: #00FF00;
    color: #000000;
    transform: scale(1.1);
  }
  100% {
    background-color: #00FF00;
    border-color: #00FF00;
    color: #000000;
    transform: scale(1);
  }
}

.slot-spinning {
  animation: slotFlip 0.1s infinite;
}

.slot-winner {
  animation: slotWin 0.5s ease-out;
  background-color: #00FF00 !important;
  border-color: #00FF00 !important;
  color: #000000 !important;
}