/* Магазин токенов и косметики */

.shop-page {
  padding: 32px 20px 48px;
  min-height: calc(100vh - 64px);
}

.shop-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-align: center;
  color: var(--text-heading);
}

.shop-subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.shop-container {
  max-width: 1720px;
}

.shop-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

.shop-section-tokens {
  min-width: 0;
}

.shop-section-sub {
  position: sticky;
  top: 24px;
  margin-left: 24px;
}

.shop-section-sub .shop-card-sub {
  margin-top: 0;
}

.shop-section + .shop-section {
  margin-top: 0;
}

.shop-music-note {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-section h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.shop-grid-packs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.shop-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shop-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 40px rgba(0,0,0,0.25);
}

.shop-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.shop-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-weight: 600;
}

.shop-price {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 600;
}

.shop-benefit {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.shop-desc {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.shop-section-sub .shop-desc {
  margin-bottom: 12px;
}

.shop-card-sub {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 220, 53, 69), 0.15);
}

.shop-sub-desc {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

/* Блок подарков — сетка с ценниками */
.shop-gifts-section h2 {
  margin-bottom: 8px;
}

.shop-gifts-intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 560px;
}

.shop-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gift-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.gift-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}

.gift-card-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.gift-card-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

.gift-card .token-icon-sm {
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-page);
}

.gift-card .gift-btn {
  margin-top: auto;
  font-size: 0.9rem;
}

.gift-card .gift-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .shop-gifts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gift-card {
    padding: 12px;
  }
  .gift-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
}

.nav a.active {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .shop-main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .shop-section-sub {
    position: static;
    margin-left: 0;
  }
  .shop-grid-packs {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-page {
    padding-top: 20px;
  }
}

