.store-shell {
  --store-accent: #0f6bdc;
  --store-accent-soft: #eef6ff;
  --store-border: #d8e7fb;
  --store-surface: #ffffff;
  --store-surface-soft: #f8fbff;
  --store-text: #0f172a;
  --store-muted: #64748b;
  --store-success: #15803d;
  --store-warning: #b45309;
  --store-danger: #b91c1c;
}

.store-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%),
    radial-gradient(circle at right center, rgba(37, 99, 235, 0.15), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 52%, #ffffff 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: auto -56px -86px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.18));
  filter: blur(12px);
}

.store-badge,
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}

.store-badge {
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--store-text);
  font-size: 0.92rem;
}

.store-chip {
  padding: 0.35rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.85rem;
}

.store-chip.primary {
  background: var(--store-accent-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.store-chip.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--store-success);
}

.store-chip.warning {
  background: #fff7ed;
  border-color: #fdba74;
  color: var(--store-warning);
}

.store-chip.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--store-danger);
}

.store-stat-card,
.store-panel,
.store-card,
.store-form-card,
.store-empty-card,
.store-review-card,
.store-table-card,
.store-side-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: var(--store-surface);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.store-stat-card,
.store-side-card {
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.store-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--store-text);
  line-height: 1;
}

.store-search {
  min-height: 54px;
  border-radius: 18px;
  border-color: #cbd5e1;
  box-shadow: none !important;
}

.store-search:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.25rem rgba(15, 107, 220, 0.12) !important;
}

.store-filter-pill {
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: #fff;
  color: #334155;
  font-weight: 600;
  transition: all 0.18s ease;
}

.store-filter-pill.active,
.store-filter-pill:hover {
  background: var(--store-accent-soft);
  border-color: #93c5fd;
  color: #1d4ed8;
}

.store-category-map {
  border: 1px solid #dbe7ff;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.25rem;
}

.store-category-card {
  border: 1px solid #dbe7ff;
  border-radius: 20px;
  background: #fff;
  padding: 1rem 1rem 0.95rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.store-category-card.selected {
  border-color: #60a5fa;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.14);
}

.store-category-title {
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
}

.store-category-title:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.store-subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.store-subcategory-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid #dbe7ff;
  background: #fff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.38rem 0.72rem;
  transition: all 0.18s ease;
}

.store-subcategory-pill:hover,
.store-subcategory-pill.active {
  border-color: #93c5fd;
  background: var(--store-accent-soft);
  color: #1d4ed8;
  text-decoration: none;
}

.store-react-category-wrap {
  border: 1px solid #dbe7ff;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.1rem;
}

.store-react-category-card {
  border: 1px solid #dbe7ff !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.store-react-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1) !important;
}

.store-react-category-card.selected {
  border-color: #60a5fa !important;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.14) !important;
}

.store-react-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  flex: 0 0 34px;
}

.store-react-parent-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.store-react-parent-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.store-react-sub-pill {
  border: 1px solid #dbe7ff;
  background: #fff;
  color: #334155;
  font-weight: 600;
}

.store-react-sub-pill:hover,
.store-react-sub-pill.active {
  border-color: #93c5fd;
  background: var(--store-accent-soft);
  color: #1d4ed8;
}

.store-card,
.store-review-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-card:hover,
.store-review-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.1);
}

.store-thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 107, 220, 0.64)),
    linear-gradient(135deg, #0ea5e9, #2563eb);
  background-position: center;
  background-size: cover;
}

.store-thumb.sm {
  aspect-ratio: 16 / 9;
}

.store-card-link {
  color: var(--store-text);
  text-decoration: none;
}

.store-card-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.store-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.store-card-actions form {
  margin: 0;
}

.store-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #f59e0b;
}

.store-soft-list > * + * {
  border-top: 1px solid #eef4ff;
}

.store-description {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--store-text);
  line-height: 1.72;
}

.store-side-stack {
  display: grid;
  gap: 1rem;
}

.store-empty-card {
  padding: 2.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.store-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: var(--store-accent-soft);
  color: #1d4ed8;
}

.store-form-card textarea {
  min-height: 180px;
  border-radius: 18px;
}

.store-form-card .form-control,
.store-form-card .form-select {
  min-height: 52px;
  border-radius: 16px;
  border-color: #cbd5e1;
  box-shadow: none;
}

.store-form-card .form-control:focus,
.store-form-card .form-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.25rem rgba(15, 107, 220, 0.12);
}

.store-form-card .form-check-input {
  width: 2.9rem;
  height: 1.45rem;
}

.store-table-card table {
  margin-bottom: 0;
}

.store-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.store-status-badge.approved {
  background: #f0fdf4;
  color: var(--store-success);
}

.store-status-badge.pending {
  background: #fff7ed;
  color: var(--store-warning);
}

.store-status-badge.rejected {
  background: #fef2f2;
  color: var(--store-danger);
}

.store-status-badge.draft,
.store-status-badge.archived,
.store-status-badge.deleted {
  background: #f1f5f9;
  color: #475569;
}

.store-file-note {
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fbff;
  padding: 0.95rem 1rem;
}

.store-helper-list {
  display: grid;
  gap: 0.85rem;
}

.store-helper-item {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 0.95rem 1rem;
}

.store-preview-shell {
  display: grid;
  gap: 1rem;
}

.store-preview-card {
  overflow: hidden;
  border: 1px solid #dbe7ff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.store-preview-meta {
  display: grid;
  gap: 0.8rem;
}

.store-library-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.store-library-card .store-thumb {
  border-radius: 22px;
}

.store-library-meta {
  display: grid;
  gap: 0.7rem;
}

.store-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 600;
  font-size: 0.85rem;
}

.store-review-form .form-select,
.store-review-form .form-control {
  border-radius: 16px;
}

.store-admin-stat {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.store-admin-stat .value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.store-admin-listing-card {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.store-admin-listing-card .card-body {
  padding: 1.1rem 1.1rem 1rem;
}

@media (min-width: 1200px) {
  .store-side-stack {
    position: sticky;
    top: 1.25rem;
    align-self: start;
  }

  .store-preview-shell {
    position: sticky;
    top: 1.25rem;
    align-self: start;
  }
}

@media (max-width: 767.98px) {
  .store-hero {
    border-radius: 24px;
  }

  .store-stat-value {
    font-size: 1.45rem;
  }
}
