/* ===============================
   Card (Novicoins style with dividers + blur fade-in)
   =============================== */
.shop-card {
  background: #ffffff;
  border: 1px solid #ede9fe;              /* светло-фиолетовый бордер */
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(74, 60, 140, 0.08); /* мягкая тень */
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, box-shadow 0.3s;
  min-height: 424px;
}

/* ореол только для доступных карточек */
.shop-card.available {
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25); /* лёгкий фиолетовый ореол */
}

.shop-card.available:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.35); /* чуть сильнее при ховере */
}

/* image */
.shop-img {
  position: relative;
  width: 100%;
  padding-top: 60%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  margin-bottom: 14px;
  border-bottom: 1px dashed #e0d7ff;  /* пунктир под картинкой */
  padding-bottom: 14px;
}

/* эффект плавного проявления */
.shop-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(12px);
  opacity: 0.6;
  transform: scale(1.05);
  transition: filter 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
}

/* когда картинка загрузилась */
.shop-img img.loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

.shop-card:hover .shop-img img.loaded {
  transform: scale(1.05); /* лёгкий зум при ховере */
}

.shop-img a { display: block; }

.shop-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #a78bfa;
  font-size: 20px;
}

/* info */
.card-body { 
  flex: 1 1 auto; 
  padding-bottom: 12px;
  border-bottom: 1px dashed #e0d7ff; /* пунктир между описанием и действиями */
}

.shop-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #4a3c8c;
  font-weight: 500;
}

.shop-info h3 a {
  color: inherit;
  text-decoration: none;
}

.shop-info h3 a:hover {
  text-decoration: underline;
}

.shop-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #6b7280; /* нейтрально-серый */
  line-height: 1.5;
}

/* ограничение по строкам только там, где нужно */
.shop-info p.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* actions */
.shop-action { 
  margin-top: auto; 
  padding-top: 12px;
}

.shop-action .btn-link {
  background: linear-gradient(135deg, #6E2CA0, #A78BFA);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.shop-action .btn-link:hover {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  transform: translateY(-2px);
}

.shop-action em {
  color: #9ca3af;
  font-size: 13px;
}
