@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #111214;
  --card-bg: #1b1c1f;
  --card-hover: #222327;
  --accent: #4c8bf5;
  --accent-hover: #5a96f7;
  --text: #eaeaea;
  --text-muted: #9b9b9b;
  --radius: 14px;
  --transition: 0.25s ease;
  --card-animation-delay: 0.15s;
}

body {
  background-color: var(--bg) !important;
  font-family: "Inter", sans-serif !important;
  color: var(--text) !important;
  overflow-x: hidden;
}

/* Заголовок магазина */
.store__title, h1, .page-title {
  font-size: 2.4rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin: 3rem 0 1.5rem !important;
  color: var(--text) !important;
  opacity: 0;
  animation: slideInDown 0.8s var(--transition) forwards;
}

@keyframes slideInDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Секция карточек */
.store, .products-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 2rem !important;
  padding: 2rem !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Карточка товара */
.product-card, .card {
  background: var(--card-bg) !important;
  border: 1px solid #232427 !important;
  border-radius: var(--radius) !important;
  padding: 2rem !important;
  width: 280px !important;
  text-align: center !important;
  transition: all var(--transition) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25) !important;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: cardEnter 0.7s forwards;
}

.product-card:nth-child(1), .card:nth-child(1) {
  animation-delay: calc(var(--card-animation-delay) * 1);
}
.product-card:nth-child(2), .card:nth-child(2) {
  animation-delay: calc(var(--card-animation-delay) * 2);
}
.product-card:nth-child(3), .card:nth-child(3) {
  animation-delay: calc(var(--card-animation-delay) * 3);
}
/* и так далее… */

/* Анимация появления карточки */
@keyframes cardEnter {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Внутри карточки */
.product-card h2, .card h2 {
  font-size: 1.4rem !important;
  margin-bottom: 0.6rem !important;
  color: var(--text) !important;
  transition: color var(--transition) !important;
}
.product-card p, .card p {
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin-bottom: 1.4rem !important;
}

/* Цена */
.product-card__price, .card .price {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 1rem !important;
}

/* Кнопка */
.product-card__button, .card button, .btn {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.9rem 1.6rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  position: relative;
  overflow: hidden;
}

/* “Ripple” эффект кнопки */
.product-card__button::after, .card button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}
.product-card__button:active::after, .card button:active::after {
  width: 200px;
  height: 200px;
  opacity: 0.3;
  transition: 0s;
  top: 50%;
  left: 50%;
}

/* Кнопка hover/active */
.product-card__button:hover, .card button:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(76,139,245,0.3) !important;
}
.product-card__button:active, .card button:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* Наведение по карточке */
.product-card:hover, .card:hover {
  background: var(--card-hover) !important;
  border-color: #2c2d31 !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
}

/* Анимированный фон для карточки */
.product-card::before, .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(76,139,245,0.03), rgba(76,139,245,0.0));
  pointer-events: none;
  transition: background 0.5s ease;
}
.product-card:hover::before, .card:hover::before {
  background: linear-gradient(135deg, rgba(76,139,245,0.1), rgba(76,139,245,0.0));
}

/* Адаптивность */
@media (max-width: 768px) {
  .store, .products-list {
    padding: 1rem !important;
  }
  .product-card, .card {
    width: 90% !important;
    margin: 0 auto !important;
  }
  .store__title, h1, .page-title {
    font-size: 1.8rem !important;
  }
}