.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 20px 80px;
  color: #e5e5e5;
  background: linear-gradient(135deg, #0f2e22 0%, #09301f 45%, #171719 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero/cs2-hero.jpg") no-repeat right center;
  background-size: cover;
  opacity: 0.35;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 85%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 55%,
    rgba(23, 23, 25, 0.8) 85%,
    #171719 100%
  );
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.hero-btn .arrow {
  font-size: 18px;
  transition: 0.3s;
}

.hero-btn:hover .arrow {
  transform: translateY(4px);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.4);
}

.catalog {
  padding: 60px 8%;
}

.catalog h2 {
  margin-bottom: 30px;
  font-size: 26px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  border: 1px solid rgba(0, 230, 118, 0.05);
  background: #242426;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 230, 118, 0.2);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.product-card.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.product-info {
  padding: 22px;
}

.description {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: 600;
  color: #00e676;
}

.buttons button {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.details {
  background: #333;
  color: #ccc;
}

.details:hover {
  background: #444;
}

.buy {
  background: #00c853;
  color: #000;
}

.buy:hover {
  background: #00e676;
}

.game-selector {
  width: 84%;
  margin: 40px auto 50px;
  padding: 18px 25px;
  border-radius: 60px;
  background: linear-gradient(135deg, rgba(30, 30, 32, 0.95), rgba(20, 20, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.game-selector::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 150, 0.08), transparent 60%);
  pointer-events: none;
}

.game-selector-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.game-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  background: #2a2a2d;
  color: #aaa;
  cursor: pointer;
  transition: 0.3s;
}

.game-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.game-pill.active {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #0a0a0a;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.25);
}

.game-pill:hover {
  background: #343437;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.filter-btn,
.sort-btn,
.reset-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  background: #2a2a2d;
  color: #aaa;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

.filter-btn:hover,
.sort-btn:hover {
  background: #343437;
}

.filter-btn.active {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #0a0a0a;
}

.reset-btn {
  background: #3a1f1f;
  color: #ff6b6b;
}

.reset-btn:hover {
  background: #502828;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.image-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .image-wrapper img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .overlay {
  opacity: 1;
}

.no-results {
  text-align: center;
  margin-top: 40px;
  color: #888;
  font-size: 18px;
  display: none;
}

.skeleton {
  background: #242426;
  border-radius: 10px;
  overflow: hidden;
  animation: pulse 1.2s infinite;
}

.skeleton-img {
  aspect-ratio: 4 / 3;
  background: #2a2a2d;
}

.skeleton-text {
  height: 16px;
  background: #2a2a2d;
  margin: 12px;
  border-radius: 4px;
}

.skeleton-text.small {
  width: 60%;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

.results-count {
  margin-left: 30px;
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.results-count.animate {
  opacity: 0;
  transform: translateY(-4px);
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 50px 16px 50px;
    text-align: center;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
  }

  .catalog {
    padding: 30px 16px;
  }

  .hero::before {
    background: url("images/hero/cs2-hero-mobile.jpg") no-repeat center;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
  }

  .game-selector {
    margin: 20px auto 30px;
    width: 100%;
    border-radius: 50px;
    padding: 12px 16px;
  }

  .game-selector-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin: 0 auto;
  }

  .game-selector::before {
    border-radius: 50px;
  }

  .game-pill {
    width: 100%;
    justify-content: center;
  }

  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 0;
    justify-content: center;
    width: auto;
  }

  .filter-btn,
  .sort-btn,
  .reset-btn {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .reset-btn {
    margin-top: 0;
    width: auto;
    color: #ff6b6b;
    background: #2a2a2d;
  }

  .results-count {
    margin: 0;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .filters {
    flex-wrap: nowrap;
  }

  .filter-btn,
  .sort-btn,
  .reset-btn {
    white-space: nowrap;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .game-selector {
    width: 100%;
    max-width: 100%;
  }

  .game-selector-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    margin-left: 0;
  }

  .results-count {
    margin-left: auto;
    white-space: nowrap;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .catalog {
    padding: 50px 20px;
  }
}
