#shop-rub {
  padding: 60px 0 100px;
  background: var(--background);
  color: var(--white-color);
  text-align: center;
}

#shop-rub h1 {
  font-size: 2.2rem;
  color: var(--main-color);
  margin-bottom: 40px;
  text-shadow: 0 0 10px color-mix(in srgb, var(--main-color) 60%, transparent);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: center;
  align-items: stretch;
}

.product-card {
  background: var(--background-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 320px;
}

.product-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 25px color-mix(in srgb, var(--main-color) 40%, transparent);
  transform: translateY(-6px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--background-hover);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  flex: 1;
  padding: 18px 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-info h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--white-color);
}

.product-info .desc {
  font-size: 0.9rem;
  color: var(--description-color);
  margin-bottom: 16px;
  flex-grow: 1;
  min-height: 50px;
}

/* Цена */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ff3b3b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.price s {
  color: #64748b;
}

.price .discount {
  color: #ff3b3b;
  text-shadow: 0 0 8px rgba(255, 59, 59, 0.5);
}

.ruble {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Кнопка */
.buy-btn {
  background: var(--main-color);
  color: #0f172a;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 180px;
}

.buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px color-mix(in srgb, var(--main-color) 60%, transparent);
}

.owned {
  background: var(--background-hover);
  color: #94a3b8;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
}

.empty {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-top: 20px;
}

/* 🌙 Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 40px;
  text-align: center;
  color: var(--white-color);
  max-width: 400px;
  animation: slideUp 0.3s ease;
}

.modal-content h2 {
  color: var(--main-color);
  margin-bottom: 15px;
}

.modal-content p {
  color: #cbd5e1;
  line-height: 1.5;
}

.modal-content a {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #94a3b8;
  transition: 0.3s;
}

.close:hover {
  color: var(--main-color);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
