.product-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-card {
  box-sizing: border-box;
  background: linear-gradient(135deg, #1a0033, #30004d);
  border: 2px solid #ff00ff;
  border-radius: 15px;
  padding: 20px;
  box-shadow:
    0 0 10px #ff00ff,
    0 0 20px #00ffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* теперь занимает всю ширину ячейки */
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 15px #ff00ff,
    0 0 30px #00ffff,
    0 0 40px #ff00ff;
}

.product-image-wrapper {
  position: relative; /* обязательно для позиционирования псевдоэлемента */
  border: 1px solid #00ffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  z-index: 1;
}

.product-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 15px #00ffff inset;
  z-index: 1;
  pointer-events: none;
}

.product-image {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.product-image-wrapper:hover .product-image {
  transform: scale(1.1);
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #ff00ff;
  text-shadow:
    0 0 8px #ff00ff,
    0 0 15px #ff00ff;
  user-select: none;
  white-space: nowrap;   
  overflow: hidden;       
  text-overflow: ellipsis;
}

.product-description {
  font-size: 0.9rem;
  color: #0ff;
  text-shadow: 0 0 5px #00ffff;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff;
}

.product-price {
  font-size: 1.1rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.product-retro-button {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow:
    0 0 8px #00ffff,
    0 0 15px #ff00ff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.product-retro-button:hover {
  background: linear-gradient(45deg, #ff00ff, #00ffff);
  color: #fff;
  box-shadow:
    0 0 15px #ff00ff,
    0 0 25px #00ffff,
    0 0 35px #ff00ff;
}