:root {
  --bg: #1a1a1a;
  --card: #232323;
  --card-hover: #282828;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --accent: #ff8c1a;
  --accent-hover: #ffa64d;
  --accent-text: #0a0a0a;
  --radius: 20px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 28px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  padding: 32px 24px 64px;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* Header */

.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.store-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}

.store-logo {
  width: 40px;
  height: 40px;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* State messages */

.store-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-size: 1rem;
}

.store-state.is-error {
  color: #f87171;
}

/* Categories */

.category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}

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

/* Package card */

.package-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--card-hover);
}

.package-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.package-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
}

.package-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 14px;
  flex-grow: 1;
}

.package-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 140, 26, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 48px;
  }
  .package-card {
    padding: 16px;
  }
}
